JP3643321B2 - Programmable controller setting display device - Google Patents

Programmable controller setting display device Download PDF

Info

Publication number
JP3643321B2
JP3643321B2 JP2001179622A JP2001179622A JP3643321B2 JP 3643321 B2 JP3643321 B2 JP 3643321B2 JP 2001179622 A JP2001179622 A JP 2001179622A JP 2001179622 A JP2001179622 A JP 2001179622A JP 3643321 B2 JP3643321 B2 JP 3643321B2
Authority
JP
Japan
Prior art keywords
memory
programmable controller
display device
setting display
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2001179622A
Other languages
Japanese (ja)
Other versions
JP2002373006A (en
Inventor
洋 川中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2001179622A priority Critical patent/JP3643321B2/en
Publication of JP2002373006A publication Critical patent/JP2002373006A/en
Application granted granted Critical
Publication of JP3643321B2 publication Critical patent/JP3643321B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、複数台のプログラマブルコントローラに対して選択接続して用いられるプログラマブルコントローラ用設定表示装置に関するものであり、特に接続されたプログラマブルコントローラに応じて、異なる画面プログラムを必要とする設定表示装置において、多数の画面プログラムを適正に管理することができるようにしたものである。
【0002】
【従来の技術】
図11は従来のプログラマブルコントローラ用設定表示装置を示すブロック図であり、図において、41は以下に説明する各要素によって構成される設定表示装置であり、42は当該設定表示装置41を制御する第一CPU、43は第一CPU42にバス接続されるとともに、マスクROM又はフラッシュメモリ等の不揮発性メモリによって構成された第一システムメモリ、44は第一CPU42と共働し、処理過程の各種データを一時的に格納するRAM等の第一ワーキングメモリ、45は第一CPU42に接続されているメカキーやタッチキーなどの操作キー、46は第一CPU42の制御出力に応じて画面表示する液晶等の画面表示器、47は当該画面表示器46の表示を行うための画面プログラムが格納されるプログラムメモリとなる第一メモリであり、当該第一メモリ47はEEPROM又はフラッシュメモリ等の不揮発性メモリによって構成され、第一CPU42にバス接続されている。
【0003】
48は第一CPU42にバス接続されるとともに、後述するプログラマブルコントローラとの交信情報や、操作キー45の操作情報が格納されるバッファメモリ、49は第一CPU42にバス接続された第一シリアルインタフェース、50は当該第一シリアルインタフェース49のシリアル端子に接続された第一接続コネクタ、51は第一CPU42にバス接続された第三シリアルインタフェース、52は当該第三シリアルインタフェース51のシリアル端子に接続された第三接続コネクタ、53は設定表示装置41の周辺ツールとして、画面プログラムの作成及び転送をする画面プログラム作成ツール、54は当該画面プログラム作成ツール53で作成された画面プログラムを格納するためのフロッピディスク等で構成された画面プログラム保存媒体であり、画面プログラム作成ツール53で作成された画面プログラム、又は画面プログラム保存媒体54から画面プログラム作成ツール53に転送された画面プログラムは、第三接続コネクタ52,第三シリアルインタフェース51,第一CPU42を介して、第一メモリ47に格納される。
【0004】
55は以下に説明する各要素によって構成されるプログラマブルコントローラであり、56は当該プログラマブルコントローラ55を制御する第二CPU、57は当該第二CPU56にバス接続されるとともに、マスクROM又はフラッシュメモリ等の不揮発メモリによって構成された第二システムメモリ、58は第二CPU56と共働し、処理過程の各種データを一時的に格納するRAMから構成される第二ワーキングメモリ、59は入力端子60から入力された入力信号を、第二CPU56に接続する入力インタフェース、61は第二CPU56にバス接続されるとともに、出力信号を出力端子62に供給する出力インタフェース、63はシーケンスプログラムが格納されるプログラムメモリとなる第二メモリであり、当該第二メモリ63はEEPROM又はフラッシュメモリ等の不揮発性メモリによって構成され、第二CPU56にバス接続されている。
【0005】
64は第二CPU56にバス接続されるとともに、各種制御情報が格納されるデバイスメモリ、65は第二CPU56にバス接続された第二シリアルインタフェース、66は当該第二シリアルインタフェース65のシリアル端子に接続された第二接続コネクタ、67は操作スイッチやセンサスイッチ等から構成される入力機器、68は当該入力機器67から得られる入力信号、69は出力インタフェース61から出力される出力信号、70は当該出力信号69によって駆動制御される各種電機負荷である出力機器である。
【0006】
71はプログラマブルコントローラ55の周辺ツールとして、シーケンスプログラムの作成及び転送をするシーケンスプログラム作成ツール、72は当該シーケンスプログラム作成ツール71で作成されたシーケンスプログラムが格納されるフロッピディスク等からなるシーケンスプログラム保存媒体であり、シーケンスプログラム作成ツール71によって作成されたシーケンスプログラム、又はシーケンスプログラム保存媒体72からシーケンスプログラム作成装置71に転送されたシーケンスプログラムは、第二接続コネクタ66,第二シリアルインタフェース65,第二CPU56を介して、第二メモリ63へ格納されるが、この時は第一接続コネクタ50と第二接続コネクタ66間の接続は行われていない。
【0007】
なお、シーケンスプログラム作成ツール71によって作成されたシーケンスプログラムは、第三接続コネクタ52,第三シリアルインタフェース51,第一CPU42,第一シリアルインタフェース49,第一接続コネクタ50,第二接続コネクタ66,第二シリアルインタフェース65,第二CPU56を介して、第二メモリ63へ格納することもできるが、この時は画面プログラム作成ツール53と設定表示装置41間の接続は行われていない。
【0008】
次に動作について説明する。
図11に示すとおり構成された、従来のプログラマブルコントローラ用設定表示装置において、まずシーケンスプログラム作成ツール71を第二接続コネクタ66に接続し、第二シリアルインタフェース65,第二CPU56を介して、第二メモリ63に対してシーケンスプログラムを転送する。
転送完了後、シーケンスプログラム作成ツール71は、プログラマブルコントローラ55の第二接続コネクタ66から取外し、第二接続コネクタ66には設定表示装置41の第一接続コネクタ50を接続する。
次に、画面プログラム作成ツール53を第三接続コネクタ52に接続し、第三シリアルインタフェース51,第一CPU42を介して、第一メモリ47に対して画面プログラムを転送する。
【0009】
プログラマブルコントローラ55は、入力機器67からの入力信号68を、入力端子60,入力インタフェース59を介して、第二CPU56に取り込み、第二メモリ63に格納されたシーケンスプログラムに応動した出力信号69を、出力インタフェース61,出力端子62を介して出力機器70に与える。
この時、第二CPU56で行われる制御情報が、デバイスメモリ64に格納される。
一方、設定表示装置41の第一CPU42は、操作キー45の操作情報等が格納されたバッファメモリ48の情報や、第一メモリ47に格納された画面プログラムの内容に応動して、画面表示器46の表示内容を制御する。
【0010】
さらに、第一接続コネクタ50と第二接続コネクタ66をケーブル等で接続し、第一シリアルインタフェース49,第二シリアルインタフェース65を介して、第一CPU42と第二CPU56間で、デバイスメモリ64やバッファメモリ48の内容を含む各種の信号交信を行われることにより、デバイスメモリ64内の一部情報が、画面表示器46に表示されたり、操作キー45の操作内容によって、出力機器70が制御されることになる。
【0011】
1台のプログラマブルコントローラ55に1台の設定表示装置41を設置する据付け型のプログラマブルコントローラ用設定表示装置においては、上記のような動作及び使用方法となるが、設定表示装置41が着脱可能な可搬式であって、多数のプログラマブルコントローラ55に選択接続して使用する場合には、あらかじめ作成・保存しておいた画面プログラムを、画面プログラム保存媒体54から、画面プログラム作成ツール53に読込んだ後、これを設定表示装置41の第一メモリ47に転送し直して動作させる必要がある。
【0012】
又、機械の稼動現場に設置されたプログラマブルコントローラに対して、設定表示装置を適用するのに当たっての画面プログラムの扱いには次のような公知例もある。
即ち、特開2000−163550公報に示された「メモリユニット」では、画面プログラム作成ツールに該当するパーソナルコンピュータから、設定表示装置(プログラマブル表示器)内のメモリに対して、画面プログラムを格納させるのに当たって、小形可搬式メモリユニットを媒介することで、現場での取扱いを改善することが提示されている。
【0013】
更に、この発明と関連する技術として、プログラマブルコントローラの運転中にシーケンスプログラムの挿入追加・削除編集等を行うものとしては次のような公知例がある。
即ち、特開昭62−152002公報に示された「プログラマブルコントロ−ラ」では、シーケンスプログラムメモリ(論理メモリ)に加えて変更操作用のシャドウメモリを備え、このシャドウメモリ上でのシーケンスプログラムの変更操作が完了すると、シャドウメモリから論理メモリへデータを転送するようになっている。
【0014】
【発明が解決しようとする課題】
従来のプログラマブルコントローラ用設定表示装置は以上のように構成されていたので、機械現場にある複数のプログラマブルコントローラに対して、1台の設定表示装置を接続しようとすると、画面プログラム作成ツールを現場に運んで行って設定表示装置に接続し、あらかじめ作成し画面プログラム保存媒体に保存しておいた画面プログラムを用意して、画面プログラム作成ツールに読込んだ後、画面プログラム作成ツールから設定表示装置へ転送し直すか、あるいは設定表示装置を一旦画面プログラム作成ツールの設置場所へ運んで、画面プログラム保存媒体に保存しておいた画面プログラムを用意して、画面プログラム作成ツールに読込んだ後、画面プログラム作成ツールから設定表示装置へ画面プログラムを転送しなければならず、転送用の装置や媒体を準備したり、転送作業の時間と手間がかかるという問題点があった。
【0015】
又、特開2000−163550公報に示されたメモリユニットを媒介する場合であっても、各プログラマブルコントローラ毎に画面プログラムの入替え処理が必要となることには変わりはなく、何等かのツールを持ち運んで画面プログラムを転送し直すという方法では、転送時の勘違いや操作ミスによる表示情報の選択間違いを起こす可能性があり、システムが正常に動作しなくなったり、誤動作を引き起こしたりするという危険性もあって、一般の機械のオペレータが取扱うことは困難であった。
【0016】
更に、従来のプログラマブルコントローラ用設定表示装置は、プログラマブルコントローラの運転中にシーケンスプログラムの変更を行う時には、特開昭62−152002公報に示されたシャドウメモリを利用する際、通常の運転動作には不必要なメモリを実装しておく必要があり、プログラマブルコントローラ内のメモリ容量が過大となり、コストアップしてしまうという問題点があった。
【0017】
この発明は、上記のような問題点を解消するためになされたものであり、特に意識しなくても複数のプログラマブルコントローラに対して、それぞれのプログラマブルコントローラに対応した画面プログラムを、現場で手軽に入替えられるようにするとともに、新たにメモリを追加することなく、シャドウメモリとしての機能を持たせることによって、製品コストを増大させることなく、プログラマブルコントローラの運転中におけるシーケンスプログラムの変更を可能とすることを目的としたものである。
さらに、他のプログラマブルコントローラに対応した画面プログラムを誤って転送してしまう事態を防止することにより、一般の機械オペレータが取扱うことができる可搬式プログラマブルコントローラ用設定表示装置を提供することを目的とするものである。
【0018】
【課題を解決するための手段】
この発明の請求項1に係るプログラマブルコントローラ用設定表示装置は、画面プログラム作成ツールで作成された画面プログラムが格納される第一メモリ及びこの第一メモリの内容に応動する第一CPUを備えた設定表示装置と、第二メモリに格納されたシーケンスプログラムに応動し、入力信号に対応した出力信号を発生する第二CPUを備えたプログラマブルコントローラから構成されたものであって、第二メモリには実動領域と保存領域を設け、この実動領域にはシーケンスプログラムが格納されるとともに、保存領域には画面プログラム又は書替準備用シーケンスプログラムが格納され、プログラマブルコントローラが、シーケンスプログラム作成ツールが接続された時であってプログラマブルコントローラの停止中においては、第二メモリの実動領域に対してシーケンスプログラムの書 込みを行う停止書込み手段と、プログラマブルコントローラの運転中においては、事前退避手段によって第二メモリの保存領域内の画面プログラムをシーケンスプログラム作成ツール内に退避させた後に、書替準備用シーケンスプログラムを保存領域に書込む運転中書込み手段と、プログラマブルコントローラが実行シーケンスプログラムの変更を行った後、シーケンスプログラム作成ツールに退避させていた画面プログラムを第二メモリの保存領域に復帰させる事後復帰手段とを備えているものである。
【0019】
この発明の請求項に係るプログラマブルコントローラ用設定表示装置は、プログラマブルコントローラに画面プログラム作成ツールが接続されている時に、第二メモリの保存領域に対して画面プログラムの転送を行う転送選択手段を備えているものである。
【0020】
この発明の請求項に係るプログラマブルコントローラ用設定表示装置は、設定表示装置が選択画面表示手段を備え、プログラマブルコントローラに設定表示装置が接続されている時に、選択画面内の選択スイッチの操作によって、第一メモリと第二メモリの保存領域間で画面プログラムの転送が行われるものである。
【0021】
この発明の請求項に係るプログラマブルコントローラ用設定表示装置は、設定表示装置が簡略起動判定手段を備え、プログラマブルコントローラに設定表示装置が接続されている時には、第二メモリの保存領域から第一メモリへの画面プログラムの転送が行われた後、設定表示装置とプログラマブルコントローラ間の設定・表示信号の交信が行われるものである。
【0022】
この発明の請求項に係るプログラマブルコントローラ用設定表示装置は、設定表示装置に画面プログラム作成ツールが接続された時には、画面プログラム作成ツールと第一メモリ間の画面プログラムの転送が行われ、設定表示装置にシーケンスプログラム作成ツールが接続された時には、第一CPUによる通過モード判定手段によって、シーケンスプログラム作成ツールと第二メモリ間のシーケンスプログラムの転送が行われるものである。
【0023】
【発明の実施の形態】
実施の形態1.
以下、この発明の一実施形態を図に基づいて説明する。図1はこの発明の実施の形態1によるプログラマブルコントローラ用設定表示装置を示すブロック図であり、図において、1は以下に説明する各要素によって構成される設定表示装置、2は当該設定表示装置1を制御する中央演算処理装置となる第一CPU、3は当該第一CPU2にバス接続されるとともに、マスクROM又はフラッシュメモリ等からなる不揮発性メモリによって構成された第一システムメモリ、4は第一CPU2と共働し、処理過程の各種データを一時的に格納するRAM等の第一ワーキングメモリ、5は第一CPU2に接続されているメカキーやタッチキーなどからなる操作キー、6は第一CPU2の制御出力に応じて画面表示する液晶等からなる画面表示器、7は当該画面表示器6の表示を行うための画面プログラムが格納されるプログラムメモリとなる第一メモリであり、当該第一メモリ7はEEPROM又はフラッシュメモリ等の不揮発性メモリによって構成され、第一CPU2にバス接続されている。
【0024】
8は第一CPU2にバス接続されるとともに、後述するプログラマブルコントローラとの交信情報や、操作キー5の操作情報が格納されるバッファメモリ、9は第一CPU2にバス接続された第一シリアルインタフェース、10は当該第一シリアルインタフェース9のシリアル端子に接続された第一接続コネクタ、11は第一CPU2にバス接続された第三シリアルインタフェース、12は当該第三シリアルインタフェース11のシリアル端子に接続された第三接続コネクタ、13は設定表示装置1の周辺ツールとして機能し、画面プログラムの作成及び転送をする画面プログラム作成ツール、14は当該画面プログラム作成ツール13で作成された画面プログラムを格納するためのフロッピディスク等からなる画面プログラム保存媒体であり、画面プログラム作成ツール13で作成された画面プログラム、又は画面プログラム保存媒体14から画面プログラム作成ツール13に転送された画面プログラムは、第三接続コネクタ12,第三シリアルインタフェース11,第一CPU2を介して、第一メモリ7に格納される。
【0025】
15は以下に説明する各要素によって構成されるプログラマブルコントローラであり、16は当該プログラマブルコントローラ15を制御する中央演算処理装置となる第二CPU、17は当該第二CPU16にバス接続されるとともに、マスクROM又はフラッシュメモリ等の不揮発メモリによって構成された第二システムメモリ、18は第二CPU16と共働し、処理過程の各種データを一時的に格納するRAM等から構成される第二ワーキングメモリ、19は入力端子20から入力された入力信号を、第二CPU16に入力する入力インタフェース、21は第二CPU16にバス接続されるとともに、出力信号を出力端子22に供給する出力インタフェース、23は第二CPU16にバス接続されるとともに、実動領域23aと保存領域23bによって構成された第二メモリであり、実動領域23aには実動シーケンスプログラムが格納され、保存領域23bには書替準備用シーケンスプログラム又は画面プログラムが格納されるものである。
【0026】
24は第二CPU16にバス接続されるとともに、各種制御情報が格納されるデバイスメモリ、25は第二CPU16にバス接続された第二シリアルインタフェース、26は当該第二シリアルインタフェース25のシリアル端子に接続された第二接続コネクタ、27は操作スイッチやセンサスイッチ等から構成される入力機器、28は当該入力機器27から得られる入力信号、29は出力インタフェース21から出力される出力信号、30は当該出力信号29によって駆動制御される各種電機負荷である出力機器である。
【0027】
31はプログラマブルコントローラ15の周辺ツールとして機能し、シーケンスプログラムの作成及び転送をするシーケンスプログラム作成ツール、32は当該シーケンスプログラム作成ツール31で作成されたシーケンスプログラムが格納されるフロッピディスク等からなるシーケンスプログラム保存媒体であり、シーケンスプログラム作成ツール31によって作成されたシーケンスプログラム、又はシーケンスプログラム保存媒体32からシーケンスプログラム作成ツール31に転送されたシーケンスプログラムは、第二接続コネクタ26,第二シリアルインタフェース25,第二CPU16を介して、第二メモリ23の実動領域23a又は保存領域23bへ格納されるが、この時は第一接続コネクタ10と第二接続コネクタ26間の接続は行われていない。
【0028】
なお、シーケンスプログラム作成ツール31によって作成されたシーケンスプログラムは、第三接続コネクタ12,第三シリアルインタフェース11,第一CPU2,第一シリアルインタフェース9,第一接続コネクタ10,第二接続コネクタ26,第二シリアルインタフェース25,第二CPU16を介して、第二メモリ23の実動領域23a、又は保存領域23bへ格納することもできるが、この時は画面プログラム作成ツール13と設定表示装置1間の接続は行われていない。
【0029】
また、上記画面プログラム作成ツール13によって作成された画面プログラム、又は画面プログラム保存媒体14から画面プログラム作成ツール13に転送された画面プログラムは、第二接続コネクタ26,第二シリアルインタフェース25,第二CPU16を介して、第二メモリ23の保存領域23bへ格納されるが、この時は第一接続コネクタ10と第二接続コネクタ26間の接続は行われていない。
【0030】
次に、図1に示すとおり構成されたプログラマブルコントローラ用設定表示装置について、その作用・動作を説明する。
図2はプログラマブルコントローラ用設定表示装置の利用形態説明図であり、設定表示装置1は第一接続コネクタ10と第二接続コネクタ26を介して、複数のプログラマブルコントローラ15a,15b,・・・15nに対して選択的に接続使用されるものである。
【0031】
図3〜図8はプログラマブルコントローラ用設定表示装置の各種接続形態を示す説明図であり、図3はシーケンスプログラム作成ツール31(以下PLCツールと略称)をプログラマブルコントローラ15(以下PLCと略称)の第二接続コネクタ26に接続して、PLC15内の第二メモリ23に対するプログラム転送やモニタ・テスト運転等を行う状態を示している。
図4は設定表示装置1(以下GOTと略称)をPLC15に接続して、設定表示動作を行っている状態を示している。
【0032】
図5はGOT1とPLC15が接続されるとともに、GOT1の第三接続コネクタ12にはPLCツール31が接続されていて、GOT1は設定表示機能は持たずに単なるスルーパス動作を行う状態を示している。
これはGOT1にPLCツール31が接続されたことを、GOT1内の第一CPU2が判定して、PLCツール31によるPLC15内の第二メモリ23に対するプログラム転送や、モニタ・テスト運転を可能にさせているものである。
【0033】
図6はGOT1とPLC15が接続されているものの、GOT1の第三接続コネクタ12には、画面プログラム作成ツール13(以下GOTツールと略称)が接続されていて、GOT1は設定表示機能は持たず、GOTツール13とGOT1内の第一メモリ7間の画面プログラムの転送が行える状態となっている。
これはGOT1にGOTツール13が接続されたことを、GOT1内の第一CPU2が判定して、GOTツール13の操作による画面プログラムの転送処理を行うものである。
【0034】
図7はPLC15の第二接続コネクタ26にGOTツール13が接続され、PLC15内の第二CPU16が転送モード判定を行ったことによって、GOTツール13とPLC15内の第二メモリ23における保存領域23b間で画面プログラムの転送処理が行われる状態を示しており、プログラムの転送操作は、GOTツール13側で行われることになる。
図8はPLC15の第二接続コネクタ26にGOT1が接続され、PLC15内の第二CPU16が転送モード判定を行ったことによって、GOT1とPLC15内の保存領域23b間で画面プログラムの転送処理が行われる状態を示しており、プログラムの転送操作はGOT1側で行われることになる。
【0035】
図9はプログラマブルコントローラ15の動作を説明するためのフローチャートであり、工程100はプログラマブルコントローラ15の動作開始工程、工程101は開始工程100に続いて作用し、プログラマブルコントローラ(PLC)15にシーケンスプログラム作成ツール(PLCツール)31が接続されているかどうかを判定する工程、工程102は判定工程101がYESであった時に作用し、PLCツール31の操作がモニタ・テスト運転モードであったかどうかを判定する工程、工程103は判定工程102がYESであった時に作用し、PLC15の図示しないRUN/STOPスイッチがRUN側になっているかどうかを判定する工程、工程104は判定工程103がNOであった時に作用し、停止中のPLC15とPLCツール31がモニタ・テスト動作のための交信を行う工程であり、工程104では、PLCツール31でオペレータが指定した特定デバイスメモリ24の状態のモニタや、強制ON/OFF動作が行われた後、終了工程105へ移行し、引続いて開始工程100へ復帰するよう構成されている。
【0036】
工程106は工程103がYESであった時に作用し、PLCツール31でオペレータが指定した特定デバイスメモリ24の状態のモニタや、強制ON/OFF動作が行われる交信工程、工程107は工程106に続いて作用し、第二メモリ23における実動領域23a内のシーケンスプログラムを一巡実行する工程であり、工程107に続いて終了工程105を経て、開始工程100へ移行する。
【0037】
工程108は工程102がNOであった時に作用し、PLC15の図示しないRUN/STOPスイッチがRUN側になっているかどうかを判定する工程、工程109は判定工程108がNOである時に作用し、PLCツール31と第二メモリ23の実動領域23a間でシーケンスプログラムの転送を行う停止転送工程であり、当該転送工程において、PLCツール31から実動領域23aへのダウンロードであるか、逆向きのアップロードであるかは、PLCツール31の操作内容によって決定されるものであるとともに、転送終了に伴って、終了工程105を経て開始工程100へ復帰する。
【0038】
工程110は工程108がYESであった時に作用し、第二メモリ23における保存領域23b内の画面プログラムの第一分割領域を、PLCツール31へ退避させる工程、工程111は工程110に続いて作用し、第二メモリ23の実動領域23a内のシーケンスプログラムを一巡実行する工程、112は工程110と111を順次繰返しながら、保存領域23b内の画面プログラムの全ての分割領域の退避が終了したか否かを判定する工程であり、工程110〜112によって、事前退避工程113が構成されている。
【0039】
なお、保存領域23bに格納されている大量の画面プログラムを、一気にPLCツール31へシリアル通信で転送するには時間がかかり、この間で継続的にPLC15のシーケンス制御を中断することができないために、PLC15の運転中のプログラム転送に当たっては、上記のような分割転送を順次行うように構成するのが有効である。
【0040】
工程114はPLCツール31から保存領域23bへ書替準備用シーケンスプログラムの第一分割領域を転送書込みする工程、工程115は工程114に続いて作用し、実動領域23a内のシーケンスプログラムを一巡実行する工程、工程116は工程114と115を順次繰返しながら、PLCツール31内の書替用シーケンスプログラムの全ての分割領域が保存領域23bに転送されたか否かを判定する工程であり、上記工程114〜116によって、運転中書込み工程117が構成されている。
【0041】
なお、保存領域23bに大量の書替用シーケンスプログラムを一気にシリアル通信で転送するには時間がかかり、この間で継続的にPLC15のシーケンス制御を中断することができないために、PLC15の運転中のプログラム転送に当たっては、上記のような分割転送を順次行うように構成するのが有効である。
【0042】
工程118は工程116に続いて作用し、第二CPU16が第二メモリ23の実動領域23aと保存領域23bを置換えする工程、即ちスワップ工程である。当該スワップ工程118においては、実動領域23aに格納されていた従来のシーケンス制御を行うためのシーケンスプログラムが保存領域23bに移されるとともに、PLCツール31から転送されてきた書替用シーケンスプログラムが保存領域23bから実動領域23aに移されるものである。
【0043】
工程119は工程118に続いて作用し、PLCツール31に退避されていた画面プログラムの第一分割領域が、新たな保存領域23b(前回の実動領域23a)に転送される工程、工程120は工程119に続いて作用し、新たな実動領域23a(前回の保存領域23b)内のシーケンスプログラムを一巡実行する工程、工程121は工程119と120を順次繰返しながら、PLCツール31内に退避されていた画面プログラムの全ての分割領域が、新たな保存領域23bに転送されたかどうかを判定する工程であり、上記工程119〜121によって、事後復帰手段122が構成されるとともに、工程121に続いて終了工程105を経由して、開始工程100へ復帰する。
【0044】
工程123は工程101がNOであった時に作用し、PLC15に画面プログラム作成ツール13(GOTツール)が接続されているかどうかを判定する工程、工程124は当該判定工程123がYESであった時に作用し、PLC15の図示しないRUN/STOPスイッチがRUN側になっているかどうかを判定する工程、工程125は当該判定工程124がNOであった時に作用し、GOTツール13と保存領域23b間で画面プログラムの転送を行う工程であり、その転送方向はGOTツール13の操作内容によって決定されるものであるとともに、工程125に続いて終了工程105を経由して、開始工程100へ復帰する。
【0045】
工程126は工程124がYESであった時に作用し、GOTツール13と保存領域23b間で画面プログラムの第一分割領域の転送を行う工程、工程127は当該工程126に続いて作用し、実動領域23a内のシーケンスプログラムを一巡実行する工程、工程128は上記工程126と127を順次繰返しながら、GOTツール13と保存領域23b間で全ての分割領域の画面プログラムが転送されたかどうかを判定する工程であり、工程128に続いて終了工程105を経由して、開始工程100へ復帰する。
【0046】
工程129は工程123がNOであった時に作用し、PLC15に設定表示装置(GOT)1が接続されているかどうかを判定する工程、工程130は当該判定工程129がYESであった時に作用し、GOT1が転送モードになっているかどうかを判定する工程であり、工程130は後述する図10の工程212又は213に基づくGOT1側のキー操作情報を、PLC15が受信して判定するものとなっている。
工程131は工程130がYESであった時に作用し、PLC15の図示しないRUN/STOPスイッチがRUN側になっているかどうかを判定する工程、工程132は当該判定工程131がNOであった時に作用し、GOT1内の第一メモリ7と保存領域23b間で画面プログラムの転送を行う工程であり、その転送方向はGOT1の操作内容によって決定されるものであるとともに、工程132に続いて、終了工程105を経由して、開始工程100へ復帰する。
【0047】
工程133は工程131がYESであった時に作用し、GOT1の第一メモリ7と保存領域23b間で画面プログラムの第一分割領域の転送を行う工程、工程134は工程133に続いて作用し、実動領域23a内のシーケンスプログラムを一巡実行する工程、工程135は上記工程133と134を順次繰返しながらGOT1内の第一メモリ7と保存領域23b間で全ての分割領域の画面プログラムが転送されたかどうかを判定する工程であり、当該工程135に続いて、終了工程105を経由して、開始工程100へ復帰する。
【0048】
工程136は工程130がNOであった時に作用し、PLC15の図示しないRUN/STOPスイッチがRUN側になっているかどうかを判定する工程、工程137は当該判定工程136がNOであった時に作用し、GOT1のバッファメモリ8とPLC15のデバイスメモリ24間で、一巡の設定表示信号の交信を行う工程であり、当該工程137に続いて、終了工程105を経由して、開始工程100へ復帰する。
【0049】
工程138は工程136がYESであった時に作用し、GOT1のバッファメモリ8とPLC15のデバイスメモリ24間で、一巡の設定表示信号の交信を行う工程、工程139は当該工程138に続いて作用し、実動領域23a内のシーケンスプログラムを一巡実行する工程であり、当該工程139に続いて、終了工程105を経由して、開始工程100へ復帰する。
【0050】
工程140は上記工程129がNOであった時に作用し、PLC15の図示しないRUN/STOPスイッチがRUN側になっているかどうかを判定する工程、工程141は当該判定工程140がYESであった時に作用し、実動領域23a内のシーケンスプログラムを一巡実行する工程であり、工程141や工程140がNOであった時に続いて、終了工程105を経由して、開始工程100へ復帰する。
【0051】
次に、図10は設定表示装置1の動作を説明するためのフローチャートであり、図において、工程200はGOT1の動作開始工程、工程201は当該工程200に続いて作用し、GOT1の第三接続コネクタ12にGOTツール13が接続されているかどうかを判定する工程、工程202は当該工程201がYESであった時に作用し、図6に示すように、GOTツール13の操作によって、GOTツール13とGOT1内の第一メモリ7間でプログラム転送を行う工程、工程203は工程202、又は後述の工程205,210に続いて作用する動作終了工程、工程204は工程201がNOであった時に作用し、GOT1の第三接続コネクタ12にPLCツール31が接続されているかどうかを判定する工程、工程205は工程204がYESであった時に作用し、図5で示すように、GOT1をスルーパスモードにする工程であり、終了工程203から開始工程200へ移行する。
【0052】
工程206は工程204がNOであった時に作用し、初回動作であるかどうかを判定する工程、工程207は当該工程206がYESであった時に作用し、初回動作記憶用フラグをセットする工程、工程208は当該工程207に続いて作用し、後述の簡略起動判定手段となる判定工程、工程209は当該工程208がYESであった時に作用し、第二メモリ23の保存領域23bから第一メモリ7へ画面プログラムを転送する工程、工程210は工程209に続いて作用し、GOT1が図4で示した設定表示動作を行う工程であり、工程206では工程207でセットされたフラグを監視することで、初回動作であるかどうかを判定するようになっている。
【0053】
また、工程208における簡略起動とは、例えばGOT1の図示しない何らかのファンクションキーを押したままで、GOT1をPLC15に通電接続するような操作を言い、この場合には工程209によって、自動的に第二メモリ23の保存領域23bから第一メモリ7へ画面プログラムの転送が行われてから、工程210による設定表示モードへ移行するようになっている。
【0054】
工程211は工程208がNOであった時に作用し、GOT1が画面プログラム転送方向指示のメッセージを表示する選択画面表示手段となるメッセージ表示工程、工程212はGOT1の画面で表示されたUPロード選択キーが押されたかどうかを判定する工程、工程213は当該工程212がNOであった時に作用し、GOT1の画面で表示されたDOWNロード選択キーが押されたかどうかを判定する工程、工程214は当該工程213がYESであった時に作用し、第一メモリ7から第二メモリ23の保存領域23bへ画面プログラムの転送を実行する工程、工程215は上記工程213がNOであった時に作用し、上記工程212及び213がいずれもNOである状態が所定時間経過した時、工程210へ移行する時間判定工程であり、工程214に続いて、工程210へ移行し、工程212がYESであった時は、工程209へ移行するとともに、工程209,214は図8の状態を示し、工程210は図4の状態を示している。
【0055】
なお、工程209,214において、PLC15がRUN(運転)中である時には、一気に大量の画面プログラムを転送するものではなく、図9の工程133〜135によって分割転送されるものである。
工程216は、工程206がNOであった時に作用し、GOT1が初回動作以外で任意に画面プログラム転送用の選択画面を呼び出す為の選択画面呼出工程であり、当該工程216がYESの場合、工程211へ移行し、NOの場合、工程210へ移行する。
【0056】
以上のように本発明によれば、設定表示装置1と接続されるプログラマブルコントローラ15内の第二メモリ23には、シーケンス制御用実動領域23aと、画面プログラム又は書替準備用シーケンスプログラムが格納される保存領域23bが設けられ、設定表示装置1とプログラマブルコントローラ15を接続すると、画面プログラム作成ツール13によって、保存領域23bに予め格納されていた画面プログラムが、設定表示装置1内の第一メモリ7に転送されるため、一台の設定表示装置1を用いて複数台のプログラマブルコントローラ15に対する設定表示を行うに当たって、画面プログラム作成ツール13等を用いて複雑な転送処理を行う必要がないので、誤操作の危険が軽減されると共に、作業効率も向上する効果がある。
更に、プログラマブルコントローラ15のシーケンスプログラムを運転中に変更する時には、保存領域23bをシャドウメモリとしても利用でき、プログラマブルコントローラ15内のメモリ容量が増大することなく安価に構成できる。
【0057】
また、プログラマブルコントローラ15内の第二メモリ23に、実動シーケンスプログラムが格納される実動領域23aと、画面プログラム又は書替準備用シーケンスプログラムが格納される保存領域23bを設け、プログラマブルコントローラ15は、設定表示装置1の他にシーケンスプログラム作成ツール31、及び画面プログラム作成ツール13にも接続できるよう構成されており、シーケンスプログラム作成ツール31を用いて、プログラマブルコントローラ15の運転中に、プログラム変更する場合、保存領域23bに既に画面プログラムが格納されていた時は、これを上書きしないようにするため、画面プログラムをシーケンスプログラム作成ツール31に一旦退避させてから、書替用シーケンスプログラムを保存領域23bに転送し、転送完了後、実動領域23aと保存領域23bを置き換え(スワップ)し、シーケンスプログラム作成ツール31に退避させていた画面プログラムが新たな保存領域23b(置き換え前の実動領域23a)に書き戻されるので、メモリ容量を増大させることなく、安価となる効果がある。
【0058】
そして、プログラマブルコントローラ15に画面プログラムメモリを内蔵し、プログラマブルコントローラ15に適合した画面プログラムを予め格納しておくことにより、画面プログラムを持たない設定表示装置1であっても、手軽に設定表示動作が行えるようにしたものであり、1台の設定表示装置1を用いて、複数台のプログラマブルコントローラ15に対する設定表示を行うに当たって、画面プログラム作成ツール13等を用いて複雑な転送処理を行う必要がないので、誤操作の危険が軽減されるとともに、作業効率も向上する効果がある。
【0059】
特に、プログラマブルコントローラ15に内蔵した画面プログラムメモリは、プログラマブルコントローラ15の運転中のシーケンスプログラムの変更を行うためにも利用できるとともに、プログラマブルコントローラ15内のメモリ容量が増大せず、安価となる効果がある。
【0060】
又、プログラマブルコントローラ15は、シーケンスプログラム作成ツール31が接続された時であって、プログラマブルコントローラ15の停止中においては、第二メモリ23の実動領域23aに対してシーケンスプログラムの書込みを行う停止書込み手段と、プログラマブルコントローラ15の運転中においては、事前退避手段によって、第二メモリの保存領域23b内の画面プログラムを、シーケンスプログラム作成ツール31内に退避させた後に、書替準備用シーケンスプログラムを、保存領域23bに書込む運転中書込み手段と、プログラマブルコントローラ15が実行シーケンスプログラムの変更を行った後、シーケンスプログラム作成ツール31に退避させていた画面プログラムを、第二メモリ23の保存領域23bに復帰させる事後復帰手段を備えている。
【0061】
このように、プログラマブルコントローラ15の保存領域23bに書替準備用シーケンスプログラムを格納している間は、画面プログラムをシーケンスプログラム作成ツール31に退避させておくよう構成することにより、設定表示装置1や画面プログラム作成ツール13が無くても、画面プログラムの保存が可能であり、しかもプログラマブルコントローラ15内のメモリ容量が増大せず、安価に構成することができる効果がある。
【0062】
更に、プログラマブルコントローラ15は、画面プログラム作成ツール13が接続されている時に、第二メモリ23の保存領域23bに対して、画面プログラムの転送を行う転送選択手段を備えており、プログラマブルコントローラ15の保存領域23bには、画面プログラム作成ツール13から直接画面プログラムを転送できるので、予め画面プログラムをプログラマブルコントローラ15に格納しておく時に、設定表示装置1を必要としないという便利な効果がある。
【0063】
又、設定表示装置1は、選択画面表示手段を備え、第一接続コネクタ10と第二接続コネクタ26が接続されている時に、選択画面表示手段による表示画面内の選択スイッチの操作によって、第一メモリ7と第二メモリ23の保存領域23bとの間で画面プログラムの転送が行われるようにしており、設定表示装置1とプログラマブルコントローラ15間で画面プログラムが自由に転送できるので、画面プログラム作成ツール13から設定表示装置1経由で、プログラマブルコントローラ15への画面プログラムの転送を行うこともできる便利な効果がある。
【0064】
又、設定表示装置1は簡略起動判定手段を備え、第一接続コネクタ10と第二接続コネクタ26が接続されることにより、簡略的に第二メモリ23の保存領域23bから第一メモリ7への画面プログラムの転送が行われた後、設定表示装置1とプログラマブルコントローラ15間の設定・表示信号の交信が行われるよう構成されており、これは、設計技術者が予め画面プログラムをプログラマブルコントローラ15の保存領域23bに格納しておけば、機械の操作者は設定表示装置1を接続するだけで自動的に設定表示動作を行うことができるようになる。
【0065】
このように、設定表示装置1がプログラマブルコントローラ15に接続されることによって、簡略的にプログラマブルコントローラ15から設定表示装置1への画面プログラムの転送が行われ、引続いて自動的に設定表示動作が行われるので、複数台のプログラマブルコントローラ15に対する設定表示装置1の取扱いが極めて単純となり、設計技術者のみならず、機械のオペレータが手軽に使用できるようになる効果がある。
【0066】
更に、設定表示装置1は第三接続コネクタ12を備え、この第三接続コネクタ12に画面プログラム作成ツール13が接続された時には、画面プログラム作成ツール13と第一メモリ7間の画面プログラムの転送が行われ、第三接続コネクタ12にシーケンスプログラム作成ツール31が接続され、しかも第一接続コネクタ10と第二接続コネクタ26が接続されている時には、第一CPU2による通過モード判定手段によって、シーケンスプログラム作成ツール31がプログラマブルコントローラ15の第二接続コネクタ26に直接接続されたと等価なスルーパス動作を行うよう構成されているので、プログラマブルコントローラ15に設定表示装置1を接続したままで、シーケンスプログラム作成ツール31を接続することができる。
【0067】
このように、設定表示装置1を取り外さなくても、シーケンスプログラム作成ツール31を間接的にプログラマブルコントローラ15に接続できるので、プログラマブルコントローラ15には設定表示装置1を一時的に常設しておくことができることとなり、シーケンスプログラム作成ツール31や設定表示装置1の取扱性が向上する効果がある。
【0068】
他の実施の形態.
以上の説明では、画面プログラムが格納される第二メモリ23と、設定表示装置1内の第一メモリ7と、画面プログラム作成ツール13の3者相互間で、画面プログラムのアップ/ダウン転送が自由に行えるようになった例を示したが、第一メモリ7と第二メモリ23間のプログラム転送は、簡略起動操作の時のみ有効にすることもできる。
即ち、図10における工程211〜215を削除して工程209によるUPロードのみを有効にして、第二メモリ23から第一メモリ7へアップロードするようにすれば、簡略起動判定手段208としては、その前工程の初回動作判定工程206で代替して、初回動作がYESの時に工程209へ移行するようにすれば良い。
【0069】
又、以上で説明した実施形態では、設定表示装置1の第三接続コネクタ12には、画面プログラム作成ツール13の他にシーケンスプログラム作成ツール31も接続できるようにしたが、プログラマブルコントローラ15に第三の接続コネクタを設け、この第三の接続コネクタに対して、シーケンスプログラム作成ツール31や画面プログラム作成ツール13の接続ができるようにすることもできる。
【0070】
また、図9の工程118では、実行領域23aと保存領域23bの先頭アドレスを置換えることで、相互のプログラムを置換するようにしているが、各アドレスは変更しないで、相互のデータをワード単位で置換するようにしても良い。
更に、書替用のシーケンスプログラムは、シーケンスプログラム作成ツール31から転送するようにしているが、一旦転送された書替用シーケンスプログラムの一部を、シーケンスプログラム作成ツール31の操作によって書替修正した後で、実行シーケンスプログラムとして置換することもできる。
【0071】
なお、各プログラマブルコントローラ15に共通した画面プログラムは、設定表示装置1内に定常的に格納しておいて、各プログラマブルコントローラ15によって異なる画面プログラムのみを第二メモリ23に格納するようにしても良い。
また、以上で説明した画面プログラム作成ツール13やシーケンスプログラム作成ツール31は、市販のパーソナルコンピュータに所定のアプリケーション・ソフトウエアをインストールして用いるものであるが、これは専用の可搬式ツールであっても差し支えない。
更に、シーケンスプログラムや画面プログラムが格納される第一メモリ7及び第二メモリ23は、不揮発性メモリの代わりにバッテリバックアップされたRAMメモリを使用しても差し支えない。
【0072】
【発明の効果】
この発明の請求項1に係るプログラマブルコントローラ用設定表示装置によれば、プログラマブルコントローラに画面プログラムメモリを内蔵し、プログラマブルコントローラに適合した画面プログラムを予め格納しておくことにより、画面プログラムを持たない設定表示装置であっても、手軽に設定表示動作が行えるようにしたものであり、1台の設定表示装置を用いて複数台のプログラマブルコントローラに対する設定表示を行うに当たって、画面プログラム作成ツール等を用いて複雑な転送処理を行う必要がないので、誤操作の危険が軽減されるとともに、作業効率も向上する効果がある。
特に、プログラマブルコントローラに内蔵した画面プログラムメモリは、プログラマブルコントローラの運転中のシーケンスプログラムの変更を行うためにも利用できると共に、プログラマブルコントローラ内のメモリ容量が増大せず、安価に構成することができる効果がある。
【0073】
更にプログラマブルコントローラのシーケンスプログラムの変更を行う時には、プログラマブルコントローラ内に予め格納されている画面プログラムを、シーケンスプログラム作成ツールに退避させてから書替用シーケンスプログラムが転送されるので、設定表示装置や画面プログラム作成ツールが無くても、画面プログラムの保存が可能であり、しかもプログラマブルコントローラ内のメモリ容量が増大せず安価に構成することができる効果がある。
【0074】
この発明の請求項に係るプログラマブルコントローラ用設定表示装置によれば、プログラマブルコントローラの保存領域には、画面プログラム作成ツールから直接画面プログラムを転送できるので、予め画面プログラムをプログラマブルコントローラに格納しておく時に、設定表示装置を必要としないという便利な効果がある。
【0075】
この発明の請求項に係るプログラマブルコントローラ用設定表示装置によれば、設定表示装置とプログラマブルコントローラ間で画面プログラムが自由に転送できるので、画面プログラム作成ツールから設定表示装置経由でプログラマブルコントローラへの画面プログラムの転送を行うこともできるという便利な効果がある。
【0076】
この発明の請求項に係るプログラマブルコントローラ用設定表示装置によれば、設定表示装置がプログラマブルコントローラに接続されることによって、簡略的にプログラマブルコントローラから設定表示装置への画面プログラムの転送が行われ、引続いて自動的に設定表示動作が行われるので、複数台のプログラマブルコントローラに対する設定表示装置の取扱いが極めて単純となり、設計技術者のみならず機械のオペレータが手軽に使用できるようになる効果がある。
【0077】
この発明の請求項に係るプログラマブルコントローラ用設定表示装置によれば、設定表示装置を取り外さなくても、シーケンスプログラム作成ツールが間接的にプログラマブルコントローラに接続できるので、プログラマブルコントローラには設定表示装置を一時的に常設しておくことができることとなり、シーケンスプログラム作成ツールや設定表示装置の取扱性が向上する効果がある。
【図面の簡単な説明】
【図1】 この発明の実施の形態1によるプログラマブルコントローラ用設定表示装置を示すブロック図である。
【図2】 この発明の実施の形態1によるプログラマブルコントローラ用設定表示装置の利用形態説明図である。
【図3】 この発明の実施の形態1によるプログラマブルコントローラ用設定表示装置の各種接続形態を示す説明図である。
【図4】 この発明の実施の形態1によるプログラマブルコントローラ用設定表示装置の各種接続形態を示す説明図である。
【図5】 この発明の実施の形態1によるプログラマブルコントローラ用設定表示装置の各種接続形態を示す説明図である。
【図6】 この発明の実施の形態1によるプログラマブルコントローラ用設定表示装置の各種接続形態を示す説明図である。
【図7】 この発明の実施の形態1によるプログラマブルコントローラ用設定表示装置の各種接続形態を示す説明図である。
【図8】 この発明の実施の形態1によるプログラマブルコントローラ用設定表示装置の各種接続形態を示す説明図である。
【図9】 この発明の実施の形態1によるプログラマブルコントローラ用設定表示装置のプログラマブルコントローラ部の動作を示すフローチャートである。
【図10】 この発明の実施の形態1によるプログラマブルコントローラ用設定表示装置の設定表示装置部の動作を示すフローチャートである。
【図11】 従来のプログラマブルコントローラ用設定表示装置を示すブロック図である。
【符号の説明】
1 設定表示装置、2 第一CPU、7 第一メモリ、
13 画面プログラム作成ツール、15 プログラマブルコントローラ、
16 第二CPU、23 第二メモリ、23a 実動領域、23b 保存領域、
28 入力信号、29 出力信号、31 シーケンスプログラム作成ツール。
[0001]
BACKGROUND OF THE INVENTION
  The present invention relates to a setting display device for a programmable controller that is used by being selectively connected to a plurality of programmable controllers, and particularly in a setting display device that requires different screen programs according to the connected programmable controllers. A large number of screen programs can be properly managed.
[0002]
[Prior art]
  FIG. 11 is a block diagram showing a conventional programmable controller setting display device. In the figure, reference numeral 41 denotes a setting display device constituted by each element described below, and reference numeral 42 denotes a first control device for controlling the setting display device 41. One CPU 43 is connected to the first CPU 42 by bus, and the first system memory 44 is constituted by a nonvolatile memory such as a mask ROM or flash memory. First working memory such as RAM temporarily stored, 45 is an operation key such as a mechanical key or a touch key connected to the first CPU 42, 46 is a screen such as a liquid crystal which is displayed on the screen according to the control output of the first CPU 42 The display 47 is a program memory in which a screen program for displaying the screen display 46 is stored. A first memory, the first memory 47 is constituted by a nonvolatile memory such as EEPROM or flash memory, and a bus connected to the first CPU 42.
[0003]
  48 is a bus connected to the first CPU 42, and a buffer memory for storing communication information with a programmable controller, which will be described later, and operation information of the operation keys 45, 49 is a first serial interface bus-connected to the first CPU 42, 50 is a first connector connected to the serial terminal of the first serial interface 49, 51 is a third serial interface connected to the first CPU 42 by bus, and 52 is connected to a serial terminal of the third serial interface 51. Third connection connector 53 is a setting display device41As a peripheral tool, a screen program creation tool for creating and transferring a screen program, 54 is a screen program storage medium composed of a floppy disk or the like for storing the screen program created by the screen program creation tool 53 The screen program created by the screen program creation tool 53 or the screen program transferred from the screen program storage medium 54 to the screen program creation tool 53 is transmitted via the third connection connector 52, the third serial interface 51, and the first CPU 42. And stored in the first memory 47.
[0004]
  55 is a programmable controller constituted by each element described below, 56 is a second CPU for controlling the programmable controller 55, 57 is bus-connected to the second CPU 56, and is a mask ROM or a flash memory. A second system memory 58 constituted by a non-volatile memory, 58 cooperates with the second CPU 56, and a second working memory 59 constituted by a RAM for temporarily storing various data of the process, 59 is inputted from the input terminal 60. An input interface for connecting the input signal to the second CPU 56, 61 is connected to the second CPU 56 by bus, and an output interface for supplying an output signal to the output terminal 62, and 63 is a program memory for storing a sequence program. A second memory, the second memory 6 It is constituted by a nonvolatile memory such as EEPROM or flash memory, and a bus connected to the second CPU 56.
[0005]
  A device memory 64 is connected to the second CPU 56 by bus and stores various control information, 65 is a second serial interface connected to the second CPU 56 by bus, and 66 is connected to a serial terminal of the second serial interface 65. The second connection connector 67, an input device composed of an operation switch, a sensor switch, etc., 68 is an input signal obtained from the input device 67, 69 is an output signal output from the output interface 61, and 70 is the output These are output devices that are various electric loads that are driven and controlled by a signal 69.
[0006]
  71 is a sequence program creation tool for creating and transferring a sequence program as a peripheral tool of the programmable controller 55, 72 is a sequence program storage medium comprising a floppy disk or the like in which the sequence program created by the sequence program creation tool 71 is stored The sequence program created by the sequence program creation tool 71 or the sequence program transferred from the sequence program storage medium 72 to the sequence program creation device 71 is the second connection connector 66, the second serial interface 65, and the second CPU 56. The first connection connector 50 and the second connection connector 66 are not connected at this time.
[0007]
  The sequence program created by the sequence program creation tool 71 includes the third connection connector 52, the third serial interface 51, the first CPU 42, the first serial interface 49, the first connection connector 50, the second connection connector 66, Although it can be stored in the second memory 63 via the two serial interface 65 and the second CPU 56, the connection between the screen program creation tool 53 and the setting display device 41 is not made at this time.
[0008]
  Next, the operation will be described.
  In the conventional programmable controller setting display device configured as shown in FIG. 11, the sequence program creation tool 71 is first connected to the second connection connector 66, and the second serial interface 65 and the second CPU 56 are connected to the second. The sequence program is transferred to the memory 63.
  After the transfer is completed, the sequence program creation tool 71 is detached from the second connection connector 66 of the programmable controller 55, and the first connection connector 50 of the setting display device 41 is connected to the second connection connector 66.
  Next, the screen program creation tool 53 is connected to the third connection connector 52, and the screen program is transferred to the first memory 47 via the third serial interface 51 and the first CPU 42.
[0009]
  The programmable controller 55 takes the input signal 68 from the input device 67 into the second CPU 56 via the input terminal 60 and the input interface 59, and outputs the output signal 69 in response to the sequence program stored in the second memory 63. This is given to the output device 70 via the output interface 61 and the output terminal 62.
  At this time, control information performed by the second CPU 56 is stored in the device memory 64.
  On the other hand, the first CPU 42 of the setting display device 41 responds to the information in the buffer memory 48 in which the operation information of the operation keys 45 and the like are stored, and the contents of the screen program stored in the first memory 47, and The display content of 46 is controlled.
[0010]
  Further, the first connection connector 50 and the second connection connector 66 are connected by a cable or the like, and the device memory 64 and the buffer are connected between the first CPU 42 and the second CPU 56 via the first serial interface 49 and the second serial interface 65. By performing various signal communications including the contents of the memory 48, some information in the device memory 64 is displayed on the screen display 46, and the output device 70 is controlled by the operation contents of the operation keys 45. It will be.
[0011]
  In the installation type programmable controller setting display device in which one setting display device 41 is installed in one programmable controller 55, the operation and the method of use are as described above, but the setting display device 41 is detachable. When the portable type is used by being selectively connected to a large number of programmable controllers 55, a screen program created and stored in advance is read from the screen program storage medium 54 into the screen program creation tool 53. It is necessary to transfer this to the first memory 47 of the setting display device 41 for operation.
[0012]
  In addition, there are the following publicly known examples of handling screen programs when a setting display device is applied to a programmable controller installed at a machine operation site.
  That is, in the “memory unit” disclosed in Japanese Patent Laid-Open No. 2000-163550, a screen program is stored in a memory in a setting display device (programmable display) from a personal computer corresponding to a screen program creation tool. Therefore, it has been proposed to improve on-site handling by mediating a small portable memory unit.
[0013]
  Further, as a technique related to the present invention, there are the following known examples for performing insertion / addition / deletion / editing of a sequence program during operation of the programmable controller.
  In other words, the “programmable controller” disclosed in Japanese Patent Application Laid-Open No. Sho 62-152002 includes a shadow memory for change operation in addition to the sequence program memory (logical memory), and the sequence program can be changed on the shadow memory. When the operation is completed, data is transferred from the shadow memory to the logical memory.
[0014]
[Problems to be solved by the invention]
  Since the conventional programmable controller setting display device is configured as described above, if one setting display device is connected to a plurality of programmable controllers in the machine site, the screen program creation tool is put on the site. Carry and connect to the setting display device, prepare the screen program created in advance and saved on the screen program storage medium, load it into the screen program creation tool, and then transfer from the screen program creation tool to the setting display device Transfer the settings again or bring the setting display device to the screen program creation tool installation location, prepare the screen program saved in the screen program storage medium, and load it into the screen program creation tool. The screen program must be transferred from the program creation tool to the setting display device. Or to prepare the equipment and media for the transfer, the time and effort of transfer work there is a problem that it takes.
[0015]
  Moreover, even when the memory unit disclosed in Japanese Patent Laid-Open No. 2000-163550 is used, the screen program replacement process is still required for each programmable controller, and some tools are carried around. If you transfer the screen program again, there is a risk of misunderstanding at the time of transfer or incorrect selection of display information due to operation mistakes, and there is also a risk that the system will not operate normally or cause a malfunction. Therefore, it has been difficult for general machine operators to handle.
[0016]
  Furthermore, when the conventional programmable controller setting display device changes the sequence program during the operation of the programmable controller, when using the shadow memory disclosed in Japanese Patent Laid-Open No. Sho 62-152002, the normal operation operation is not performed. Unnecessary memory must be mounted, and the memory capacity in the programmable controller becomes excessive, resulting in an increase in cost.
[0017]
  The present invention has been made to solve the above-described problems, and screen programs corresponding to each programmable controller can be easily prepared on-site with respect to a plurality of programmable controllers without particular awareness. It is possible to change the sequence program during the operation of the programmable controller without increasing the product cost by providing a function as a shadow memory without adding a new memory, and replacing it with a new one. It is aimed at.
  Furthermore, it aims at providing the setting display apparatus for portable programmable controllers which a general machine operator can handle by preventing the situation which transfers the screen program corresponding to another programmable controller accidentally. Is.
[0018]
[Means for Solving the Problems]
  A programmable controller setting display device according to claim 1 of the present invention includes a first memory in which a screen program created by a screen program creation tool is stored and a first CPU that responds to the contents of the first memory. A display device and a programmable controller including a second CPU that generates an output signal corresponding to an input signal in response to a sequence program stored in the second memory. A moving area and a storage area are provided, a sequence program is stored in the actual movement area, and a screen program or a rewriting preparation sequence program is stored in the storage area.When the programmable controller is connected to the sequence program creation tool and the programmable controller is stopped, the sequence program is written to the active area of the second memory. During the operation of the programmable controller and the programmable controller, the screen program in the storage area of the second memory is saved in the sequence program creation tool by the advance save means, and then the rewrite preparation sequence program is saved. In-operation writing means for writing to the area, and post-return means for returning the screen program saved in the sequence program creation tool to the storage area of the second memory after the programmable controller changes the execution sequence program It is what.
[0019]
  Claims of the invention2The programmable controller setting display device includes a transfer selection means for transferring the screen program to the storage area of the second memory when the screen program creation tool is connected to the programmable controller.
[0020]
  Claims of the invention3In the programmable controller setting display device, the setting display device includes a selection screen display means, and when the setting display device is connected to the programmable controller, the first memory and the second memory are operated by operating the selection switch in the selection screen. The screen program is transferred between the storage areas of the memory.
[0021]
  Claims of the invention4In the programmable controller setting display device according to the present invention, when the setting display device includes a simple activation determination unit and the setting display device is connected to the programmable controller, the screen program is transferred from the storage area of the second memory to the first memory. After the above, the setting / display signal is communicated between the setting display device and the programmable controller.
[0022]
  Claims of the invention5When a screen program creation tool is connected to the setting display device, the programmable controller setting display device transfers the screen program between the screen program creation tool and the first memory, and the setting display device has a sequence program creation tool. Is connected, the sequence program is transferred between the sequence program creation tool and the second memory by the passage mode determination means by the first CPU.
[0023]
DETAILED DESCRIPTION OF THE INVENTION
Embodiment 1 FIG.
  Hereinafter, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a setting display device for a programmable controller according to Embodiment 1 of the present invention. In the figure, 1 is a setting display device constituted by each element described below, and 2 is the setting display device 1 A first CPU, 3 serving as a central processing unit for controlling the CPU, is connected to the first CPU 2 by a bus, and a first system memory composed of a non-volatile memory such as a mask ROM or a flash memory. A first working memory, such as a RAM, which cooperates with the CPU 2 and temporarily stores various processing data, 5 is an operation key comprising mechanical keys and touch keys connected to the first CPU 2, and 6 is a first CPU 2. A screen display composed of a liquid crystal or the like that displays a screen in accordance with the control output of the screen; 7 is a screen program for displaying the screen display 6 A first memory comprising a program memory to be stored, the first memory 7 is constituted by a nonvolatile memory such as EEPROM or flash memory, and a bus connected to the first CPU 2.
[0024]
  8 is a bus connected to the first CPU 2, and a buffer memory for storing communication information with a programmable controller (to be described later) and operation information for the operation keys 5, 9 is a first serial interface connected to the first CPU 2 by a bus, 10 is a first connection connector connected to the serial terminal of the first serial interface 9, 11 is a third serial interface connected to the first CPU 2 by a bus, and 12 is connected to a serial terminal of the third serial interface 11. The third connection connector 13 functions as a peripheral tool of the setting display device 1, and a screen program creation tool for creating and transferring a screen program, and 14 is for storing the screen program created by the screen program creation tool 13. A screen program storage medium consisting of a floppy disk, etc. The screen program created by the screen program creation tool 13 or the screen program transferred from the screen program storage medium 14 to the screen program creation tool 13 is transmitted via the third connection connector 12, the third serial interface 11, and the first CPU 2. And stored in the first memory 7.
[0025]
  Reference numeral 15 denotes a programmable controller configured by each element described below, 16 denotes a second CPU that serves as a central processing unit for controlling the programmable controller 15, and 17 is connected to the second CPU 16 by a bus and masked A second system memory 18 constituted by a non-volatile memory such as a ROM or a flash memory, and a second working memory 19 constituted by a RAM or the like that cooperates with the second CPU 16 and temporarily stores various data of the process. Is an input interface for inputting an input signal input from the input terminal 20 to the second CPU 16, 21 is an output interface that is bus-connected to the second CPU 16 and supplies an output signal to the output terminal 22, and 23 is a second CPU 16. Connected to the bus, and the production area 23a and the storage area A second memory configured by 3b, production sequence program is stored in the production area 23a, the storage area 23b in which rewriting preparatory sequence program or screen programs.
[0026]
  A device memory 24 is bus-connected to the second CPU 16 and stores various control information, 25 is a second serial interface bus-connected to the second CPU 16, and 26 is connected to a serial terminal of the second serial interface 25. The second connection connector 27, an input device 27 including an operation switch, a sensor switch, and the like; 28, an input signal obtained from the input device 27; 29, an output signal output from the output interface 21; This is an output device that is various electric loads that are driven and controlled by a signal 29.
[0027]
  Reference numeral 31 denotes a sequence program creation tool that functions as a peripheral tool of the programmable controller 15 and creates and transfers a sequence program. Reference numeral 32 denotes a sequence program including a floppy disk in which the sequence program created by the sequence program creation tool 31 is stored. The sequence program created by the sequence program creation tool 31 or the sequence program transferred from the sequence program save medium 32 to the sequence program creation tool 31 is a storage medium, the second connection connector 26, the second serial interface 25, the first It is stored in the actual operation area 23a or the storage area 23b of the second memory 23 via the second CPU 16, but at this time, the connection between the first connection connector 10 and the second connection connector 26 is performed. It has not been carried out.
[0028]
  The sequence program created by the sequence program creation tool 31 includes the third connection connector 12, the third serial interface 11, the first CPU 2, the first serial interface 9, the first connection connector 10, the second connection connector 26, Although it can be stored in the actual operation area 23a or the storage area 23b of the second memory 23 via the second serial interface 25 and the second CPU 16, the connection between the screen program creation tool 13 and the setting display device 1 is used at this time. Is not done.
[0029]
  The screen program created by the screen program creation tool 13 or the screen program transferred from the screen program storage medium 14 to the screen program creation tool 13 includes the second connection connector 26, the second serial interface 25, and the second CPU 16. The first connection connector 10 and the second connection connector 26 are not connected at this time.
[0030]
  Next, operations and operations of the programmable controller setting display device configured as shown in FIG. 1 will be described.
  FIG. 2 is an explanatory diagram of a use form of the programmable controller setting display device. The setting display device 1 is connected to the plurality of programmable controllers 15a, 15b,... 15n via the first connection connector 10 and the second connection connector 26. On the other hand, it is selectively connected and used.
[0031]
  3 to 8 are explanatory views showing various connection forms of the programmable controller setting display device. FIG. 3 shows a sequence program creation tool 31 (hereinafter abbreviated as PLC tool) and a programmable controller 15 (hereinafter abbreviated as PLC). A state in which the program is transferred to the second memory 23 in the PLC 15 and the monitor / test operation is performed by connecting to the two-connecting connector 26 is shown.
  FIG. 4 shows a state where the setting display device 1 (hereinafter abbreviated as GOT) is connected to the PLC 15 and the setting display operation is performed.
[0032]
  FIG. 5 shows a state in which the GOT 1 and the PLC 15 are connected and the PLC tool 31 is connected to the third connection connector 12 of the GOT 1, and the GOT 1 does not have a setting display function and performs a simple through-pass operation.
  This is because the first CPU 2 in the GOT 1 determines that the PLC tool 31 is connected to the GOT 1, and enables the program transfer to the second memory 23 in the PLC 15 by the PLC tool 31 and the monitor / test operation. It is what.
[0033]
  In FIG. 6, although GOT1 and PLC15 are connected, a screen program creation tool 13 (hereinafter abbreviated as GOT tool) is connected to the third connection connector 12 of GOT1, and GOT1 does not have a setting display function. The screen program can be transferred between the GOT tool 13 and the first memory 7 in the GOT 1.
  In this case, the first CPU 2 in the GOT 1 determines that the GOT tool 13 is connected to the GOT 1 and performs a screen program transfer process by operating the GOT tool 13.
[0034]
  FIG. 7 shows that the GOT tool 13 is connected to the second connection connector 26 of the PLC 15, and the second CPU 16 in the PLC 15 determines the transfer mode, so that the GOT tool 13 and the storage area 23 b in the second memory 23 in the PLC 15 The screen program transfer process is shown in FIG. 5, and the program transfer operation is performed on the GOT tool 13 side.
  In FIG. 8, the GOT1 is connected to the second connection connector 26 of the PLC 15, and the transfer processing of the screen program is performed between the GOT1 and the storage area 23b in the PLC 15 when the second CPU 16 in the PLC 15 determines the transfer mode. This shows the state, and the program transfer operation is performed on the GOT1 side.
[0035]
  FIG. 9 is a flowchart for explaining the operation of the programmable controller 15, where the process 100 is an operation start process of the programmable controller 15, the process 101 acts following the start process 100, and a sequence program is created in the programmable controller (PLC) 15. The step of determining whether or not the tool (PLC tool) 31 is connected, the step 102 acts when the determination step 101 is YES, and the step of determining whether or not the operation of the PLC tool 31 is in the monitor / test operation mode. Step 103 operates when the determination step 102 is YES, and determines whether or not the RUN / STOP switch (not shown) of the PLC 15 is on the RUN side. Step 104 operates when the determination step 103 is NO. PLC15 and P that are stopped This is a step in which the C tool 31 performs communication for the monitor / test operation. In step 104, after the monitor of the specific device memory 24 designated by the operator and the forced ON / OFF operation are performed in the PLC tool 31 Then, the process proceeds to the end step 105 and then returns to the start step 100.
[0036]
  Step 106 operates when step 103 is YES, and is a communication step in which the state of the specific device memory 24 designated by the operator specified by the PLC tool 31 and a forced ON / OFF operation are performed. Step 107 follows step 106. This is a step of executing the sequence program in the production area 23a in the second memory 23 in a round. The process proceeds to the start step 100 through the end step 105 following the step 107.
[0037]
  Step 108 operates when step 102 is NO and determines whether or not the RUN / STOP switch (not shown) of the PLC 15 is on the RUN side. Step 109 operates when determination step 108 is NO. This is a stop transfer process in which the sequence program is transferred between the tool 31 and the production area 23a of the second memory 23. In the transfer process, the download from the PLC tool 31 to the production area 23a or upload in the reverse direction is performed. Is determined by the operation content of the PLC tool 31, and upon completion of transfer, the process returns to the start process 100 through the end process 105.
[0038]
  Step 110 operates when step 108 is YES, a step of saving the first divided area of the screen program in the storage area 23 b in the second memory 23 to the PLC tool 31, and a step 111 subsequent to step 110. In the step of executing the sequence program in the production area 23a of the second memory 23 in a round, 112 is the process of repeating steps 110 and 111 in succession, and whether all the divided areas of the screen program in the storage area 23b have been saved. This is a step of determining whether or not, and the preliminary saving step 113 is configured by the steps 110 to 112.
[0039]
  In addition, since it takes time to transfer a large amount of screen programs stored in the storage area 23b to the PLC tool 31 by serial communication at once, the sequence control of the PLC 15 cannot be interrupted continuously during this time. When transferring the program while the PLC 15 is operating, it is effective to perform the divided transfer as described above in order.
[0040]
  Step 114 is a step of transferring and writing the first divided area of the rewrite preparation sequence program from the PLC tool 31 to the storage area 23b. Step 115 is performed following the step 114, and the sequence program in the production area 23a is executed in a round. In step 116, the steps 114 and 115 are sequentially repeated, and it is determined whether or not all the divided areas of the rewrite sequence program in the PLC tool 31 have been transferred to the storage area 23b. ˜116 constitutes the in-operation writing step 117.
[0041]
  Note that it takes time to transfer a large number of rewrite sequence programs to the storage area 23b by serial communication at a stretch, and the PLC 15 sequence control cannot be interrupted continuously during this time. In the transfer, it is effective to configure the divided transfer as described above in order.
[0042]
  Step 118 is a step following the step 116, in which the second CPU 16 replaces the actual area 23a and the storage area 23b of the second memory 23, that is, a swap step. In the swap step 118, the sequence program for performing the conventional sequence control stored in the production area 23a is moved to the storage area 23b, and the rewrite sequence program transferred from the PLC tool 31 is stored. It is moved from the area 23b to the production area 23a.
[0043]
  Step 119 operates following step 118, and the step 120, in which the first divided area of the screen program saved in the PLC tool 31 is transferred to the new save area 23b (previous production area 23a), Following the step 119, the step 121, in which the sequence program in the new production area 23a (previous storage area 23b) is executed once, is saved in the PLC tool 31 while the steps 119 and 120 are sequentially repeated. This is a step of determining whether all the divided areas of the screen program that have been transferred have been transferred to the new storage area 23b. The post-return means 122 is constituted by the steps 119 to 121, and the step 121 is followed. The process returns to the start process 100 via the end process 105.
[0044]
  Step 123 operates when step 101 is NO, and determines whether or not the screen program creation tool 13 (GOT tool) is connected to the PLC 15. Step 124 operates when the determination step 123 is YES. The step 125 for determining whether or not the RUN / STOP switch (not shown) of the PLC 15 is on the RUN side, step 125 operates when the determination step 124 is NO, and the screen program between the GOT tool 13 and the storage area 23b. The transfer direction is determined by the operation content of the GOT tool 13, and the process returns to the start process 100 via the end process 105 following the process 125.
[0045]
  Step 126 operates when step 124 is YES, and is a step of transferring the first divided area of the screen program between the GOT tool 13 and the storage area 23b. A step of executing the sequence program in the area 23a once, step 128 is a step of determining whether or not the screen programs of all the divided areas have been transferred between the GOT tool 13 and the storage area 23b while sequentially repeating the above steps 126 and 127. Then, the process returns to the start process 100 via the end process 105 following the process 128.
[0046]
  Step 129 operates when step 123 is NO, and determines whether the setting display device (GOT) 1 is connected to the PLC 15, step 130 operates when the determination step 129 is YES, This is a step for determining whether or not GOT1 is in the transfer mode. Step 130 is for the PLC 15 to receive and determine key operation information on the GOT1 side based on step 212 or 213 in FIG. .
  Step 131 operates when step 130 is YES, and determines whether a RUN / STOP switch (not shown) of the PLC 15 is on the RUN side. Step 132 operates when the determination step 131 is NO. The screen program is transferred between the first memory 7 in the GOT 1 and the storage area 23b. The transfer direction is determined by the operation content of the GOT 1, and the end step 105 follows the step 132. To return to the start process 100.
[0047]
  Step 133 operates when step 131 is YES, a step of transferring the first divided area of the screen program between the first memory 7 of GOT1 and the storage area 23b, and step 134 operates following step 133. In the process of executing the sequence program in the production area 23a in a round, step 135, the screen programs of all the divided areas have been transferred between the first memory 7 in the GOT 1 and the storage area 23b while sequentially repeating the above-described steps 133 and 134. This is a process for determining whether or not, and after the process 135, the process returns to the start process 100 via the end process 105.
[0048]
  Step 136 operates when step 130 is NO, and determines whether a RUN / STOP switch (not shown) of the PLC 15 is on the RUN side. Step 137 operates when the determination step 136 is NO. This is a step of exchanging a round of setting display signals between the buffer memory 8 of GOT 1 and the device memory 24 of PLC 15, and the process returns to the start step 100 via the end step 105 following the step 137.
[0049]
  Step 138 operates when step 136 is YES, and a step of exchanging a set display signal between the buffer memory 8 of GOT 1 and the device memory 24 of PLC 15, and step 139 operates following step 138. In this step, the sequence program in the production area 23a is executed once. After the step 139, the process returns to the start step 100 via the end step 105.
[0050]
  Step 140 operates when the above step 129 is NO, and determines whether or not the RUN / STOP switch (not shown) of the PLC 15 is on the RUN side. Step 141 operates when the determination step 140 is YES. The sequence program in the production area 23a is executed once, and when the step 141 or the step 140 is NO, the process returns to the start step 100 via the end step 105.
[0051]
  Next, FIG. 10 is a flowchart for explaining the operation of the setting display device 1. In FIG. 10, the process 200 is an operation start process of the GOT1, the process 201 is performed following the process 200, and the third connection of the GOT1 is performed. The step 202 for determining whether or not the GOT tool 13 is connected to the connector 12, the step 202 operates when the step 201 is YES. As shown in FIG. 6, the GOT tool 13 is operated by the operation of the GOT tool 13. The step of transferring a program between the first memories 7 in the GOT 1, the step 203 is an operation end step that follows the step 202 or the steps 205 and 210 described later, and the step 204 is performed when the step 201 is NO. , A step of determining whether or not the PLC tool 31 is connected to the third connection connector 12 of GOT1, step 205 is step 204. Acts when was YES, then as shown in Figure 5, a step of the GOT1 to the through-pass mode, the process proceeds from the end step 203 to start step 200.
[0052]
  Step 206 acts when step 204 is NO and determines whether or not it is the first operation, step 207 acts when step 206 is YES and sets the initial operation storage flag, Step 208 follows the step 207 and is a determination step that becomes a simple activation determination unit described later. Step 209 acts when the step 208 is YES, and starts from the storage area 23b of the second memory 23 to the first memory. The process of transferring the screen program to 7, the process 210 is the process that follows the process 209, and the GOT 1 performs the setting display operation shown in FIG. 4. In the process 206, the flag set in the process 207 is monitored. Thus, it is determined whether or not the operation is the first operation.
[0053]
  In addition, the simple activation in step 208 is, for example, an operation of energizing and connecting GOT1 to the PLC 15 while pressing any function key (not shown) of GOT1, and in this case, in step 209, the second memory is automatically set. After the screen program is transferred from the storage area 23b of the memory 23 to the first memory 7, the setting display mode in step 210 is entered.
[0054]
  Step 211 is a message display step that works when step 208 is NO, and GOT1 is a selection screen display means for displaying a screen program transfer direction instruction message. Step 212 is an UP load selection key displayed on the GOT1 screen. The step 213 is performed when the step 212 is NO, and the step 214 determines whether the DOWN load selection key displayed on the screen of the GOT 1 is pressed. Acts when the step 213 is YES, the step of transferring the screen program from the first memory 7 to the storage area 23b of the second memory 23, the step 215 acts when the step 213 is NO. When the predetermined time has elapsed when both of the steps 212 and 213 are NO, the time determination step for shifting to the step 210 Then, after step 214, the process proceeds to step 210. When step 212 is YES, the process proceeds to step 209, and steps 209 and 214 indicate the state of FIG. 8, and step 210 is the state of FIG. Is shown.
[0055]
  In Steps 209 and 214, when the PLC 15 is in RUN (operation), a large number of screen programs are not transferred at once, but are divided and transferred by Steps 133 to 135 in FIG.
  Step 216 is a selection screen calling step that is activated when step 206 is NO and GOT1 arbitrarily calls a selection screen for screen program transfer other than the initial operation. If the step 216 is YES, The process moves to 211, and if NO, the process moves to step 210.
[0056]
  As described above, according to the present invention, the second memory 23 in the programmable controller 15 connected to the setting display device 1 stores the sequence control operation area 23a and the screen program or the rewrite preparation sequence program. When the setting display device 1 and the programmable controller 15 are connected, a screen program previously stored in the storage region 23b is stored in the first memory in the setting display device 1 by the screen program creation tool 13. 7, since it is not necessary to perform complicated transfer processing using the screen program creation tool 13 or the like when performing setting display for a plurality of programmable controllers 15 using one setting display device 1, The risk of erroneous operation is reduced, and work efficiency is improved.
  Furthermore, when the sequence program of the programmable controller 15 is changed during operation, the storage area 23b can be used as a shadow memory, and can be configured at low cost without increasing the memory capacity in the programmable controller 15.
[0057]
  The second memory 23 in the programmable controller 15 is provided with an actual operation area 23a for storing an actual operation sequence program and a storage area 23b for storing a screen program or a rewrite preparation sequence program. In addition to the setting display device 1, the sequence program creation tool 31 and the screen program creation tool 13 are configured to be connectable. The sequence program creation tool 31 is used to change the program during the operation of the programmable controller 15. In this case, when the screen program is already stored in the storage area 23b, the screen program is temporarily saved in the sequence program creation tool 31 in order not to overwrite it, and then the rewrite sequence program is stored in the storage area 23b. In After the transmission and transfer are completed, the production area 23a and the storage area 23b are replaced (swapped), and the screen program saved in the sequence program creation tool 31 is replaced with a new storage area 23b (the production area 23a before replacement). Since the data is written back, there is an effect of reducing the cost without increasing the memory capacity.
[0058]
  Then, by storing a screen program memory in the programmable controller 15 and storing a screen program suitable for the programmable controller 15 in advance, even if the setting display device 1 does not have a screen program, the setting display operation can be easily performed. When performing setting display for a plurality of programmable controllers 15 using one setting display device 1, it is not necessary to perform complicated transfer processing using the screen program creation tool 13 or the like. Therefore, there is an effect that the risk of erroneous operation is reduced and work efficiency is improved.
[0059]
  In particular, the screen program memory built in the programmable controller 15 can be used to change the sequence program during the operation of the programmable controller 15, and the memory capacity in the programmable controller 15 does not increase, resulting in an inexpensive effect. is there.
[0060]
  In addition, the programmable controller 15 is a time when the sequence program creation tool 31 is connected. When the programmable controller 15 is stopped, the programmable controller 15 writes the sequence program to the active area 23a of the second memory 23. During the operation of the means and the programmable controller 15, after the screen program in the storage area 23b of the second memory is saved in the sequence program creation tool 31 by the advance saving means, The in-operation writing means for writing to the storage area 23b and the screen program saved in the sequence program creation tool 31 after the programmable controller 15 changes the execution sequence program are returned to the storage area 23b of the second memory 23. The It has a post-return means that.
[0061]
  In this way, while the rewrite preparation sequence program is stored in the storage area 23b of the programmable controller 15, the screen display program is saved in the sequence program creation tool 31, so that the setting display device 1 or Even without the screen program creation tool 13, the screen program can be stored, and the memory capacity in the programmable controller 15 does not increase.
[0062]
  Furthermore, the programmable controller 15 includes transfer selection means for transferring the screen program to the storage area 23b of the second memory 23 when the screen program creation tool 13 is connected. Since the screen program can be directly transferred from the screen program creation tool 13 to the area 23b, there is a convenient effect that the setting display device 1 is not required when the screen program is stored in the programmable controller 15 in advance.
[0063]
  The setting display device 1 includes selection screen display means. When the first connection connector 10 and the second connection connector 26 are connected, the setting display device 1 is operated by operating a selection switch in the display screen by the selection screen display means. The screen program is transferred between the memory 7 and the storage area 23b of the second memory 23, and the screen program can be freely transferred between the setting display device 1 and the programmable controller 15. There is a convenient effect that the screen program can be transferred from 13 to the programmable controller 15 via the setting display device 1.
[0064]
  In addition, the setting display device 1 includes simple activation determination means. When the first connection connector 10 and the second connection connector 26 are connected, the storage area 23b of the second memory 23 can be simply transferred from the storage area 23b to the first memory 7. After the screen program is transferred, the setting / display signal is exchanged between the setting display device 1 and the programmable controller 15. This is because the design engineer stores the screen program in advance in the programmable controller 15. If stored in the storage area 23b, the operator of the machine can automatically perform the setting display operation simply by connecting the setting display device 1.
[0065]
  As described above, when the setting display device 1 is connected to the programmable controller 15, the screen program is simply transferred from the programmable controller 15 to the setting display device 1, and then the setting display operation is automatically performed. As a result, handling of the setting display device 1 for a plurality of programmable controllers 15 becomes extremely simple, and there is an effect that not only a design engineer but also a machine operator can easily use it.
[0066]
  The setting display device 1 further includes a third connection connector 12. When the screen program creation tool 13 is connected to the third connection connector 12, the screen program transfer between the screen program creation tool 13 and the first memory 7 is performed. When the sequence program creation tool 31 is connected to the third connection connector 12 and the first connection connector 10 and the second connection connector 26 are connected, the sequence program creation is performed by the passage mode determination means by the first CPU 2. Since the tool 31 is configured to perform a through-pass operation equivalent to being directly connected to the second connection connector 26 of the programmable controller 15, the sequence program creation tool 31 can be used while the setting display device 1 is connected to the programmable controller 15. Can be connected.
[0067]
  Thus, since the sequence program creation tool 31 can be indirectly connected to the programmable controller 15 without removing the setting display device 1, the setting display device 1 may be temporarily permanently installed in the programmable controller 15. As a result, the handling of the sequence program creation tool 31 and the setting display device 1 is improved.
[0068]
Other embodiments.
  In the above description, the screen program can be freely transferred up and down among the three parties of the second memory 23 in which the screen program is stored, the first memory 7 in the setting display device 1, and the screen program creation tool 13. However, the program transfer between the first memory 7 and the second memory 23 can be validated only during the simple activation operation.
  That is, if the steps 211 to 215 in FIG. 10 are deleted and only the UP load in step 209 is enabled and the second memory 23 uploads to the first memory 7, the simplified activation determination means 208 Instead of the initial operation determination step 206 of the previous step, the process may move to step 209 when the initial operation is YES.
[0069]
  In the embodiment described above, the sequence program creation tool 31 in addition to the screen program creation tool 13 can be connected to the third connection connector 12 of the setting display device 1. It is also possible to connect the sequence program creation tool 31 and the screen program creation tool 13 to the third connection connector.
[0070]
  Further, in step 118 of FIG. 9, the mutual programs are replaced by replacing the top addresses of the execution area 23a and the storage area 23b. You may make it replace with.
  Furthermore, the sequence program for rewriting is transferred from the sequence program creation tool 31, but a part of the rewritten sequence program once transferred is rewritten and corrected by the operation of the sequence program creation tool 31. Later, it can be replaced as an execution sequence program.
[0071]
  The screen program common to each programmable controller 15 may be stored in the setting display device 1 steadily, and only the screen program that differs depending on each programmable controller 15 may be stored in the second memory 23. .
  The screen program creation tool 13 and the sequence program creation tool 31 described above are used by installing predetermined application software on a commercially available personal computer, and this is a dedicated portable tool. There is no problem.
  Further, the first memory 7 and the second memory 23 in which the sequence program and the screen program are stored may use a battery-backed RAM memory instead of the nonvolatile memory.
[0072]
【The invention's effect】
  According to the setting display device for a programmable controller according to claim 1 of the present invention, the setting without the screen program is provided by storing the screen program memory in the programmable controller and storing the screen program suitable for the programmable controller in advance. Even a display device can easily perform a setting display operation, and when performing setting display for a plurality of programmable controllers using one setting display device, a screen program creation tool or the like is used. Since it is not necessary to perform complicated transfer processing, the risk of erroneous operation is reduced, and work efficiency is improved.
  In particular, the screen program memory built in the programmable controller can be used to change the sequence program during operation of the programmable controller, and the memory capacity in the programmable controller does not increase, and can be configured at low cost. There is.
[0073]
  MoreWhen changing the sequence program of the programmable controller, the screen program stored in advance in the programmable controller is saved in the sequence program creation tool and then the rewrite sequence program is transferred. Even without a creation tool, it is possible to save the screen program, and there is an effect that the memory capacity in the programmable controller does not increase and can be configured at low cost.
[0074]
  Claims of the invention2According to the programmable controller setting display device, since the screen program can be transferred directly from the screen program creation tool to the storage area of the programmable controller, when the screen program is stored in the programmable controller in advance, the setting display device is There is a convenient effect that it is not necessary.
[0075]
  Claims of the invention3According to the programmable controller setting display device according to the present invention, since the screen program can be freely transferred between the setting display device and the programmable controller, the screen program is transferred from the screen program creation tool to the programmable controller via the setting display device. There is a convenient effect that you can also.
[0076]
  Claims of the invention4According to the programmable controller setting display device, the screen display program is simply transferred from the programmable controller to the setting display device by connecting the setting display device to the programmable controller, and then automatically. Since the setting display operation is performed, the handling of the setting display device for a plurality of programmable controllers becomes extremely simple, and there is an effect that not only the design engineer but also the machine operator can easily use it.
[0077]
  Claims of the invention5According to the programmable controller setting display device according to the present invention, the sequence program creation tool can be indirectly connected to the programmable controller without removing the setting display device. Thus, the handling of the sequence program creation tool and the setting display device is improved.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a programmable controller setting display device according to a first embodiment of the present invention;
FIG. 2 is an explanatory diagram of a usage pattern of the programmable controller setting display device according to the first embodiment of the present invention;
FIG. 3 is an explanatory diagram showing various connection forms of the programmable controller setting display device according to Embodiment 1 of the present invention;
FIG. 4 is an explanatory diagram showing various connection forms of the programmable controller setting display device according to Embodiment 1 of the present invention;
FIG. 5 is an explanatory diagram showing various connection forms of the programmable controller setting display device according to Embodiment 1 of the present invention;
FIG. 6 is an explanatory diagram showing various connection forms of the programmable controller setting display device according to Embodiment 1 of the present invention;
FIG. 7 is an explanatory diagram showing various connection forms of the programmable controller setting display device according to Embodiment 1 of the present invention;
FIG. 8 is an explanatory diagram showing various connection forms of the programmable controller setting display device according to the first embodiment of the present invention;
FIG. 9 is a flowchart showing an operation of the programmable controller unit of the programmable controller setting display device according to the first embodiment of the present invention;
FIG. 10 is a flowchart showing the operation of the setting display device section of the programmable controller setting display device according to the first embodiment of the present invention;
FIG. 11 is a block diagram showing a conventional programmable controller setting display device.
[Explanation of symbols]
  1 setting display device, 2 first CPU, 7 first memory,
13 screen program creation tool, 15 programmable controller,
16 Second CPU, 23 Second memory, 23a Production area, 23b Storage area,
28 Input signal, 29 Output signal, 31 Sequence program creation tool.

Claims (5)

画面プログラム作成ツールで作成された画面プログラムが格納される第一メモリ及びこの第一メモリの内容に応動する第一CPUを備えた設定表示装置と、第二メモリに格納されたシーケンスプログラムに応動し、入力信号に対応した出力信号を発生する第二CPUを備えたプログラマブルコントローラから構成されたプログラマブルコントローラ用設定表示装置において、上記第二メモリには実動領域と保存領域を設け、この実動領域にはシーケンスプログラムが格納されるとともに、上記保存領域には画面プログラム又は書替準備用シーケンスプログラムが格納され、上記プログラマブルコントローラは、シーケンスプログラム作成ツールが接続された時であって上記プログラマブルコントローラの停止中においては、上記第二メモリの実動領域に対してシーケンスプログラムの書込みを行う停止書込み手段と、上記プログラマブルコントローラの運転中においては、事前退避手段によって上記第二メモリの保存領域内の画面プログラムを上記シーケンスプログラム作成ツール内に退避させた後に、上記書替準備用シーケンスプログラムを上記保存領域に書込む運転中書込み手段と、上記プログラマブルコントローラが実行シーケンスプログラムの変更を行った後、上記シーケンスプログラム作成ツールに退避させていた画面プログラムを上記第二メモリの保存領域に復帰させる事後復帰手段とを備えていることを特徴とするプログラマブルコントローラ用設定表示装置。 Responding to a first display memory that stores a screen program created by the screen program creation tool, a setting display device that includes a first CPU that responds to the contents of the first memory, and a sequence program that is stored in the second memory In the programmable controller setting display device comprising a programmable controller having a second CPU for generating an output signal corresponding to the input signal, the second memory is provided with an actual area and a storage area. Is stored with a sequence program, a screen program or a rewrite preparation sequence program is stored in the storage area, and the programmable controller is stopped when the sequence program creation tool is connected. In the second memory Stop writing means for writing the sequence program to the moving area, and during operation of the programmable controller, the screen program in the storage area of the second memory is saved in the sequence program creation tool by the advance saving means. After that, the on-run writing means for writing the rewrite preparation sequence program into the storage area, and the screen program saved in the sequence program creation tool after the programmable controller changes the execution sequence program. A programmable controller setting display device comprising post-return means for returning to the storage area of the second memory. プログラマブルコントローラは画面プログラム作成ツールが接続されている時に、第二メモリの保存領域に対して画面プログラムの転送を行う転送選択手段を備えていることを特徴とする請求項1記載のプログラマブルコントローラ用設定表示装置。2. The programmable controller setting according to claim 1, further comprising transfer selection means for transferring the screen program to the storage area of the second memory when the screen program creation tool is connected. Display device. 設定表示装置は選択画面表示手段を備え、プログラマブルコントローラに上記設定表示装置が接続されている時に、上記選択画面内の選択スイッチの操作によって、第一メモリと第二メモリの保存領域間で画面プログラムの転送が行われることを特徴とする請求項1又は請求項2記載のプログラマブルコントローラ用設定表示装置。The setting display device includes selection screen display means, and when the setting display device is connected to the programmable controller, the screen program is generated between the storage areas of the first memory and the second memory by operating the selection switch in the selection screen. The setting display device for a programmable controller according to claim 1, wherein the transfer is performed. 設定表示装置は簡略起動判定手段を備え、プログラマブルコントローラに上記設定表示装置が接続されている時には、第二メモリの保存領域から第一メモリへの画面プログラムの転送が行われた後、上記設定表示装置と上記プログラマブルコントローラ間の設定・表示信号の交信が行われることを特徴とする請求項1から請求項3のいずれか1項に記載のプログラマブルコントローラ用設定表示装置。The setting display device includes a simple start determination means, and when the setting display device is connected to the programmable controller, the setting display is performed after the screen program is transferred from the storage area of the second memory to the first memory. 4. The programmable controller setting display device according to claim 1, wherein a setting / display signal is communicated between the device and the programmable controller. 5. 設定表示装置に画面プログラム作成ツールが接続された時には、上記画面プログラム作成ツールと第一メモリ間の画面プログラムの転送が行われ、上記設定表示装置にシーケンスプログラム作成ツールが接続された時には、第一CPUによる通過モード判定手段によって、上記シーケンスプログラム作成ツールと第二メモリ間のシーケンスプログラムの転送が行われることを特徴とする請求項1から請求項4のいずれか1項に記載のプログラマブルコントローラ用設定表示装置。When the screen program creation tool is connected to the setting display device, the screen program is transferred between the screen program creation tool and the first memory, and when the sequence program creation tool is connected to the setting display device, the first 5. The programmable controller setting according to claim 1, wherein a sequence program is transferred between the sequence program creation tool and the second memory by a passage mode determination means by a CPU. Display device.
JP2001179622A 2001-06-14 2001-06-14 Programmable controller setting display device Expired - Fee Related JP3643321B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001179622A JP3643321B2 (en) 2001-06-14 2001-06-14 Programmable controller setting display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001179622A JP3643321B2 (en) 2001-06-14 2001-06-14 Programmable controller setting display device

Publications (2)

Publication Number Publication Date
JP2002373006A JP2002373006A (en) 2002-12-26
JP3643321B2 true JP3643321B2 (en) 2005-04-27

Family

ID=19020166

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001179622A Expired - Fee Related JP3643321B2 (en) 2001-06-14 2001-06-14 Programmable controller setting display device

Country Status (1)

Country Link
JP (1) JP3643321B2 (en)

Also Published As

Publication number Publication date
JP2002373006A (en) 2002-12-26

Similar Documents

Publication Publication Date Title
JP5039428B2 (en) Programmable controller and PLC system
US11275359B2 (en) Fieldbus controller interface including configuration, monitoring and controlling functionalities
CN104156206A (en) Image making system
US6711448B2 (en) Setting display apparatus for a programmable controller
EP3361334A1 (en) Monitoring method, monitoring module, and mobile terminal for monitoring a programmable logic controller
JPH103307A (en) Numerical controller
JP3643321B2 (en) Programmable controller setting display device
JP2007179112A5 (en)
JP3643320B2 (en) Programmable controller setting display device
JP2001154711A (en) Method and device for debugging process stepping type program
JP4390079B2 (en) Control system
JPH1027105A (en) Microcomputer storing starting program in flash rom
CN113075915A (en) Em-plant based virtual simulation implementation method, system and equipment
JPS63172303A (en) Programming display method for programmable controller
JP4147372B2 (en) Programmable display and control method thereof
JP3207333B2 (en) Programmable controller
JP4919092B2 (en) Control program development support device
JP2007252162A (en) Motor drive device
JPH11249715A (en) Automatic generating method for sequence program and motion controller
KR100275569B1 (en) Handy loader for programmable logic controller
JP2776443B2 (en) Programmable controller
JP5384306B2 (en) Display / control / simulation system, its programmable display, simulator device
JPH0811073A (en) Robot controller
JP2004038996A (en) Alarm history display system
JPS59125405A (en) Automatic computer programming device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20041028

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041109

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041215

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050125

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050127

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080204

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090204

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100204

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100204

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110204

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120204

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130204

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130204

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20140204

Year of fee payment: 9

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees