JP4279593B2 - Elevator control device - Google Patents

Elevator control device Download PDF

Info

Publication number
JP4279593B2
JP4279593B2 JP2003137550A JP2003137550A JP4279593B2 JP 4279593 B2 JP4279593 B2 JP 4279593B2 JP 2003137550 A JP2003137550 A JP 2003137550A JP 2003137550 A JP2003137550 A JP 2003137550A JP 4279593 B2 JP4279593 B2 JP 4279593B2
Authority
JP
Japan
Prior art keywords
program
operation control
mode
control program
reset
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
JP2003137550A
Other languages
Japanese (ja)
Other versions
JP2004338883A (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 JP2003137550A priority Critical patent/JP4279593B2/en
Publication of JP2004338883A publication Critical patent/JP2004338883A/en
Application granted granted Critical
Publication of JP4279593B2 publication Critical patent/JP4279593B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Indicating And Signalling Devices For Elevators (AREA)
  • Maintenance And Inspection Apparatuses For Elevators (AREA)

Description

【0001】
【発明の属する技術分野】
この発明は、エレベーターの運転制御プログラムを書換えるエレベーターの制御装置に関するものである。
【0002】
【従来の技術】
従来のエレベーターの制御装置は、電気的に書換え可能なプログラム記憶装置5の運転制御プログラム領域5Aに、エレベーター運転用のプログラムを記憶している。運転制御プログラムの書換え時は、外部プログラム転送装置3を接続し、更新する運転制御プログラムの書換え用予備領域5Cに書き込む。そして、エレベーター用電動機1の回転を検出し、かごが停止しているとき、運転制御プログラム領域5Aのプログラムを、予備領域5Cのプログラムに書き換える。書換え中は予備領域5Cのプログラムを実行する(例えば、特許文献1参照)。
【0003】
【特許文献1】
特開2001−10772号公報(第1頁、図1)
【0004】
【発明が解決しようとする課題】
上述したような従来のエレベーターの制御装置では、運転制御プログラムが正常に書換えできなかった場合の対策が考慮されていないという問題点があった。つまり、新しい運転制御プログラムのデータが書換え途中で変化して正常に書換えできなかったり、誤って古いバージョンに書換えてしまったり、書換えた新しい運転制御プログラムに不具合があった場合などには、正常な運転制御が実施できなくなってしまうが、運転制御プログラムを正常に復帰させる手段がないため、運転制御プログラムを正常に書換えない限り、その時点でエレベーターの運転ができなくなり、致命的な故障につながってしまうという問題点があった。
【0005】
この発明は、上述のような課題を解決するためになされたもので、新しい運転制御プログラムで正常に動作できない場合は、元の運転制御プログラムに戻すことにより、エレベーターの運転を再開することができるエレベーターの制御装置を得るものである。
【0006】
【課題を解決するための手段】
この発明に係るエレベーターの制御装置は、コンピュータと、電源投入後、リセットスイッチ操作後、若しくは書換えプログラムを起動するために選択指令及びリセット指令の出力を実行した後には、運転制御プログラムを書換えるための書換えプログラムを格納する書換えプログラム領域が実行開始アドレスに割り付けられ、かつ他のアドレスに、新しい運転制御プログラムを一時的に保管するプログラム更新領域、古い運転制御プログラムを一時的に保管するプログラム退避領域及び運転制御プログラムを格納する運転制御プログラム領域が割り付けられ、運転制御プログラムを起動するために選択指令及びリセット指令の出力を実行した後には、前記運転制御プログラム領域が実行開始アドレスに割り付けられ、かつ他のアドレスに、前記プログラム更新領域及び前記プログラム退避領域が割り付けられるプログラムメモリと、選択指令に基づいて前記プログラムメモリの割付を変更するアドレス変更手段と、リセット指令に基づいてコンピュータをリセットするリセット信号生成手段と、外部プログラム転送装置から出力される更新プログラムを入力するインターフェース装置と、コンピュータの動作モードを示すフラグであって、運転制御プログラムモードでの通常運転を実行させる場合又は初期値の場合にはモード1、運転制御プログラムモードでの点検運転を実行させる場合にはモード2、プログラム更新領域から運転制御プログラム領域へ書き換える場合にはモード3、プログラム退避領域から運転制御プログラム領域へ書き換える場合にはモード4を示す動作モードフラグと、プログラム更新領域から運転制御プログラム領域への書換えが完了したか否かを示す書換えモード1完了フラグと、プログラム退避領域から運転制御プログラム領域への書換えが完了したか否かを示す書換えモード2完了フラグとを設けたものである。また、このコンピュータは、電源投入若しくはシステムリセットが行われると、前記プログラムメモリの実行開始アドレスに割り付けされた前記書換えプログラムを実行して、動作モードフラグをモード1と判定し、運転制御プログラムを選択する選択指令を前記アドレス変更手段に出力し、かつリセット指令を前記リセット信号生成手段に出力し、前記リセット信号生成手段によりリセットされた後リセット解除されると、前記アドレス変更手段により前記プログラムメモリの実行開始アドレスに割り付けされた前記運転制御プログラムを実行して、動作モードフラグをモード1と判定し、外部プログラム転送装置から運転制御プログラムの書換え要求があった場合には、前記外部プログラム転送装置から転送される新しい運転制御プログラムを前記プログラム更新領域へ転送し、前記プログラムメモリの実行開始アドレスに割り付けされた古い運転制御プログラムを前記プログラム退避領域へ転送し、動作モードフラグをモード3に設定し、エレベーターを休止させてから書換えプログラムを起動するために前記アドレス変更手段へ選択指令を出力するとともに前記リセット信号生成手段へリセット指令を出力し、前記リセット信号生成手段によりリセットされた後リセット解除されると、前記アドレス変更手段により前記プログラムメモリの実行開始アドレスに割り付けされた前記書換えプログラムを実行して、動作モードフラグをモード3と判定し、プログラム更新領域に格納された新しい運転制御プログラムを運転制御プログラム領域へ転送し、この運転制御プログラム領域への転送が正常に完了した場合、書換えモード1完了フラグをセットするとともに、動作モードフラグをモード2に設定し、新しい運転制御プログラムを選択する選択指令を前記アドレス変更手段に出力し、かつリセット指令を前記リセット信号生成手段に出力し、前記リセット信号生成手段によりリセットされた後リセット解除されると、前記アドレス変更手段により前記プログラムメモリの実行開始アドレスに割り付けされた新しい運転制御プログラムを実行して、動作モードフラグをモード2と判定し、この新しい運転制御プログラムでエレベーターが正常に運転制御できるか否かを判定するための点検運転を行い、点検運転の結果が異常だった場合、書換えモード1完了フラグがセットされているときにはこの書換えモード1完了フラグをリセットするとともに、動作モードフラグをモード4に設定し、エレベーターを休止させてから書換えプログラムを起動するために前記アドレス変更手段へ選択指令を出力するとともに前記リセット信号生成手段へリセット指令を出力し、前記リセット信号生成手段によりリセットされた後リセット解除されると、前記アドレス変更手段により前記プログラムメモリの実行開始アドレスに割り付けされた前記書換えプログラムを実行して、動作モードフラグをモード4と判定し、プログラム退避領域に格納された元の古い運転制御プログラムを運転制御プログラム領域へ転送し、この運転制御プログラム領域への転送が正常に完了した場合、書換えモード2完了フラグをセットするとともに、動作モードフラグをモード2に設定し、元の古い運転制御プログラムを選択する選択指令を前記アドレス変更手段に出力し、かつリセット指令を前記リセット信号生成手段に出力し、前記リセット信号生成手段によりリセットされた後リセット解除されると、前記アドレス変更手段により前記プログラムメモリの実行開始アドレスに割り付けされた元の古い運転制御プログラムを実行して、動作モードフラグをモード2と判定し、この元の古い運転制御プログラムでエレベーターが正常に運転制御できるか否かを判定するための点検運転を行い、点検運転の結果が正常だった場合、この元の古い運転制御プログラムによりエレベーターの運転制御を行うものである。
【0007】
【発明の実施の形態】
実施の形態1.
この発明の実施の形態1に係るエレベーターの制御装置について図面を参照しながら説明する。図1は、この発明の実施の形態1に係るエレベーターの制御装置の構成を示す図である。なお、各図中、同一符号は同一又は相当部分を示す。
【0008】
図1において、エレベーターの制御装置1は、CPU(コンピュータ)3と、プログラムメモリ4と、RAM5と、アドレス変更回路(アドレス変更手段)6と、リセット信号生成回路(リセット信号生成手段)7と、インターフェース装置8と、バス9とを備える。また、インターフェース装置8は、外部プログラム転送装置2と接続している。この外部プログラム転送装置2は、変更したい運転制御プログラムを出力する。
【0009】
なお、プログラムメモリ4は、フラッシュメモリ等の電気的に書換え可能な不揮発性メモリから構成され、書換えプログラム領域41と、運転制御プログラム領域42と、プログラム更新領域43と、プログラム退避領域44とを有する。
【0010】
書換えプログラム領域41は、運転制御プログラムを書換えるための書換えプログラムを格納する。運転制御プログラム領域42は、運転制御プログラムを格納する。また、プログラム更新領域43は、変更したい運転制御プログラムを一時的に保管する。プログラム退避領域44は、変更前の運転制御プログラムを一時的に保管する。
【0011】
アドレス変更回路6は、CPU3上で動作しているプログラムからの選択指令に基づいて、リセット後に実行するプログラムとして、書換えプログラム、もしくは運転制御プログラムの何れかを選択し、プログラム選択信号をプログラムメモリ4へ出力する出力ポートを含んでいる。すなわち、このアドレス変更回路6は、プログラム選択信号により図2に示すようなプログラムメモリ4の割付を変更する。
【0012】
リセット信号生成回路7は、CPU3上で動作しているプログラムからのリセット指令に基づいて、リセット信号をCPU3へ出力する出力ポートを含んでいる。すなわち、このリセット信号生成回路7は、リセット信号によりCPU3をリセット解除する。
【0013】
インターフェース装置8は、外部プログラム転送装置2から出力される更新プログラムを入力する。
【0014】
図2は、この発明の実施の形態1に係るエレベーターの制御装置のプログラムメモリの割付を示す図である。
【0015】
制御装置1のCPU3は、図2に示された、プログラムメモリ4のアドレス「00000」に割り付けられたプログラムで動作する。
【0016】
図2(A)は、電源投入後あるいは図示しないリセットスイッチ操作後(ハードウエア(H/W)によるリセット時の初期状態)、もしくは書換えプログラムを起動するために選択指令およびリセット指令の出力を実行した後(ソフトウエア(S/W)の実行後)のプログラムメモリ4の割付を示しており、書換えプログラムを格納する書換えプログラム領域41と、プログラム更新領域43を構成するプログラム更新領域(1)〜(4)と、プログラム退避領域44を構成するプログラム退避領域(1)〜(4)と、運転制御プログラム領域42とが割り付けられている。
【0017】
図2(B)は、運転制御プログラムを起動するために選択指令およびリセット指令の出力を実行した後のプログラムメモリ4の割付を示しており、運転制御プログラム領域42を構成する運転制御プログラム領域(1)〜(4)と、前述のプログラム更新領域(1)〜(4)と、前述のプログラム退避領域(1)〜(4)とが割り付けられている。なお、運転制御プログラムの動作時には、プログラムメモリ4のマップ上に書換えプログラム領域41が割り付けられない構成になっており、これは書換えプログラム領域41にアクセスできないことを意味する。
【0018】
なお、運転制御プログラム領域42は、運転制御プログラム(1)〜(4)がそれぞれの領域に分かれて記憶されており、プログラム更新領域43およびプログラム退避領域44は、前述のそれぞれの領域に対応した領域(1)〜(4)に分かれている。
【0019】
図3は、この発明の実施の形態1に係るエレベーターの制御装置のフラグを説明するための図である。
【0020】
図3(A)において、「MOD」は、CPU3の動作モードを示す『動作モードフラグ』である。「FLG1」は、プログラム更新領域43から運転制御プログラム領域42への書換えが完了したか否かを示す『書換えモード1完了フラグ』であり、書換え完了時にセット(例えば、FFhに設定)される。また、「FLG2」は、プログラム退避領域44から運転制御プログラム領域42への書換えが完了したか否かを示す『書換えモード2完了フラグ』であり、書換え完了時にセット(例えばFFhに設定)される。
【0021】
図3(B)は、動作モードフラグMODの内容を示し、例えばモード1である運転制御プログラムモードでの通常運転を実行させる場合は、MODには01hの値が設定される。
【0022】
つぎに、この実施の形態1に係るエレベーターの制御装置の動作について図面を参照しながら説明する。
【0023】
図4は、この発明の実施の形態1に係るエレベーターの制御装置の書換えプログラム動作時の動作を示すフローチャートである。また、図5は、この発明の実施の形態1に係るエレベーターの制御装置の運転制御プログラム動作時の動作を示すフローチャートである。
【0024】
まず、通常のエレベーターの運転を行う場合の動作を説明する。
【0025】
電源投入もしくはそれに類するシステムリセットが行われると、CPU3は、プログラムメモリ4のアドレス「00000」からプログラムの実行を開始するので、図2(A)に示す書換えプログラム領域41に格納されている書換えプログラムが動作し、図4のステップ101に至る。
【0026】
ステップ101は、図3(A)に示す動作モードフラグMODを判定するステップであり、初期値はモード1に設定されており、ステップ102に進む。
【0027】
ステップ102は、アドレス変更回路6に内蔵されるプログラム選択信号を出力する出力ポートに、運転制御プログラムを選択する選択指令を出力するステップである。
【0028】
ステップ103は、リセット信号生成回路7に内蔵されるリセット信号を出力する出力ポートに、リセット指令を出力するステップである。
【0029】
ステップ10l→ステップ102→ステップ103の一連の処理により、通常の運転制御プログラムにより起動する設定が行われた後、CPU3がリセットされることになる。
【0030】
前述の状態でCPU3がリセット解除されると、CPU3は、プログラムメモリ4のアドレス「00000」からプログラムの実行を開始するが、アドレス変更回路6により、プログラムメモリ4の割付が変更されるので、図2(B)に示す運転制御プログラム領域42に格納されている運転制御プログラム(1)〜(4)が動作することになり、図5のステップ201に至る。
【0031】
ステップ201は、図3(A)に示す動作モードフラグMODを判定するステップであり、モード1に設定されているため、ステップ202に進む。
【0032】
ステップ202は、通常のエレベーター運転制御を行うステップである。
【0033】
ステップ201→ステップ202の一連の処理により、通常のエレベーターの運転制御が行われることになる。
【0034】
次に、外部プログラム転送装置2から運転制御プログラムの書換え要求があった場合の動作について説明する。
【0035】
ステップ203は、外部プログラム転送装置2から運転制御プログラムの書換え要求があるか否かを判断するステップで、書換え要求があった場合は、ステップ204に進む。
【0036】
ステップ204は、外部プログラム転送装置2から転送される新しい運転制御プログラムを、インターフェース装置8を経由して、図2(B)に示すプログラム更新領域(1)〜(4)へ転送するステップである。
【0037】
ステップ205は、図2(B)に示す運転制御プログラム領域42に格納されている運転制御プログラム(1)〜(4)を、プログラム退避領域44のプログラム退避領域(1)〜(4)へ転送するステップである。これにより、現在正常に動作している運転制御プログラムをバックアップすることができる。
【0038】
ステップ206は、プログラム更新領域43への転送およびバックアップが正常に完了した場合、図3(A)に示す動作モードフラグMODをモード3に設定(03hに設定)するステップである。
【0039】
ステップ207は、運転制御プログラムの書換えを安全に行うためにエレベーターを休止させるステップである。
【0040】
ステップ208は、アドレス変更回路6に内蔵されるプログラム選択信号を出力する出力ポートに、書換えプログラムを選択する選択指令を出力するステップである。
【0041】
ステップ209は、リセット信号生成回路7に内蔵されるリセット信号を出力する出力ポートに、リセット指令を出力するステップである。
【0042】
ステップ203→ステップ204→ステップ205→ステップ206→ステップ207→ステップ208→ステップ209の一連の処理により、運転制御プログラムの書換え要求があった場合に、現在の運転制御プログラムのバックアップを取るとともに、新しい運転制御プログラムヘの書換えを行う設定が行われた後、CPU3がリセットされることになる。
【0043】
次に、運転制御プログラム領域を新しい運転制御プログラムに書換える動作について説明する。
【0044】
前述の状態でCPU3がリセット解除されると、CPU3は、プログラムメモリ4のアドレス「00000」からプログラムの実行を開始するが、アドレス変更回路6により、プログラムメモリ4の割付が変更されるので、図2(A)に示す書換えプログラム領域41に格納されている書換えプログラムが動作することになり、図4のステップ101に至る。ここでは、動作モードフラグMODはモード3に設定されており、ステップ104に進む。
【0045】
ステップ104は、図2(A)に示すプログラム更新領域(1)〜(4)に格納された新しい運転制御プログラムを運転制御プログラム領域(1)〜(4)へ転送するステップである。
【0046】
ステップ105は、運転制御プログラム領域42への転送が正常に完了した場合、図3(A)に示す書換えモード1完了フラグFLGlをセット(FFhに設定)するとともに、動作モードフラグMODをモード2に設定(02hに設定)するステップである。
【0047】
ステップ106は、アドレス変更回路6に内蔵されるプログラム選択信号を出力する出力ポートに、運転制御プログラムを選択する選択指令を出力するステップである。
【0048】
ステップ107は、リセット信号生成回路7に内蔵されるリセット信号を出力する出力ポートに、リセット指令を出力するステップである。
【0049】
ステップ101→ステップ104→ステップ105→ステップ106→ステップ107の一連の処理により、運転制御プログラム領域42が新しい運転制御プログラムに書換えられ、新しい運転制御プログラムによる点検運転が起動する設定が行われた後、CPU3がリセットされることになる。
【0050】
次に、新しい運転制御プログラムでの運転制御が正常に動作するか否かを判断するための点検運転の動作について説明する。
【0051】
前述の状態でCPU3がリセット解除されると、CPU3は、プログラムメモリ4のアドレス「00000」からプログラムの実行を開始するが、アドレス変更回路6により、プログラムメモリ4の割付が変更されるので、図2(B)に示す運転制御プログラム領域42に格納された新しい運転制御プログラム(1)〜(4)が動作することになり、図5のステップ201に至る。ここでは、動作モードフラグMODはモード2に設定されており、ステップ210に進む。
【0052】
ステップ210は、新しい運転制御プログラム(1)〜(4)でエレベーターが正常に運転制御できるか否かを判定するための専用の点検運転を行うステップである。この点検運転は、乗客に対するサービスを極力低下させずにかつ安全に行う必要があるため、例えば、夜中でかつ運転が所定時間以上行われなかった場合を条件に行うもので、乗客が不用意に乗り込まないように戸閉した状態で走行させるなどの試運転を行う。この試運転としては、例えば、自動で往復運転を行ったり、管制運転を自動で行えるような専用運転を行ったりすることを意味する。
【0053】
ステップ211は、点検運転の結果を判定するステップである。点検運転の結果が正常だった場合、ステップ212に進む。この点検運転の結果を判定する方法としては、制御装置1のCPU3による運転制御により、試運転が正常にできたかどうかで判断する。
【0054】
ステップ212は、図3(A)に示す書換えモード1完了フラグFLG1および書換えモード2完了フラグFLG2をリセット(00hに設定)するとともに、動作モードフラグMODをモード1に設定(01hに設定)するステップである。
【0055】
ステップ213は、ステップ202と同じ動作で、通常のエレベーター運転制御を行うステップである。
【0056】
ステップ201→ステップ210→ステップ211→ステップ212→ステップ213の一連の処理により、点検運転を行い、その結果が正常だった場合に新しい運転制御プログラムにより通常のエレベーターの運転制御が行われることになる。
【0057】
もし、点検運転の結果が異常だった場合、ステップ214に進む。
【0058】
ステップ214は、図3(A)に示す書換えモード1完了フラグFLG1および書換えモード2完了フラグFLG2の値を判定するステップである。この場合、書換えモード1を行った後の点検運伝であり、書換えモード1完了フラグFLGlがセット(FFhに設定)されているので、ステップ215に進む。
【0059】
ステップ215は、書換えモード1完了フラグFLG1をリセット(00hに設定)するとともに、動作モードフラグMODをモード4に設定(04hに設定)するステップである。
【0060】
ステップ216は、ステップ207と同じで、運転制御プログラムの書換えを安全に行うためにエレベーターを休止させるステップである。
【0061】
ステップ217は、アドレス変更回路6に内蔵されるプログラム選択信号を出力する出カポートに、書換えプログラムを選択する選択指令を出力するステップである。
【0062】
ステップ218は、リセット信号生成回路7に内蔵されるリセット信号を出力する出力ポートに、リセット指令を出力するステップである。
【0063】
ステップ214→ステップ215→ステップ216→ステップ217→ステップ218の一連の処理により、新しい運転制御プログラムでの点検運転の結果が異常だった場合、プログラム退避領域44にバックアップされた正常に動作していた元の運転制御プログラムヘの書換えを行う設定が行われた後、CPU3がリセットされることになる。
【0064】
次に、運転制御プログラム領域を元の運転制御プログラムに書換える動作について説明する。
【0065】
前述の状態でCPU3がリセット解除されると、CPU3は、プログラムメモリ4のアドレス「00000」からプログラムの実行を開始するが、アドレス変更回路6により、プログラムメモリ4の割付が変更されるので、図2(A)に示す書換えプログラム領域41に格納されている書換えプログラムが動作することになり、図4のステップ101に至る。ここでは、動作モードフラグMODはモード4に設定されており、ステップ108に進む。
【0066】
ステップ108は、図2(A)に示すプログラム退避領域(1)〜(4)に格納された元の運転制御プログラムを運転制御プログラム領域(1)〜(4)へ転送するステップである。
【0067】
ステップ109は、運転制御プログラム領域への転送が正常に完了した場合、図3(A)に示す書換えモード2完了フラグFLG2をセット(FFhに設定)するとともに、動作モードフラグMODをモード2に設定(02hに設定)するステップである。
【0068】
ステップ110は、アドレス変更回路6に内蔵されるプログラム選択信号を出力する出力ポートに、運転制御プログラムを選択する選択指令を出力するステップである。
【0069】
ステップ111は、リセット信号生成回路7に内蔵されるリセット信号を出力する出力ポートに、リセット指令を出力するステップである。
【0070】
ステップ101→ステップ108→ステップ109→ステップ110→ステップ1llの一連の処理により、運転制御プログラム領域42が元の運転制御プログラムに書換えられ、元の運転制御プログラムによる点検運転が起動する設定が行われた後、CPU3がリセットされることになる。
【0071】
次に、元の運転制御プログラムでの運転制御が正常に動作するか否かを判断するための点検運転の動作について説明する。
【0072】
前述の状態でCPU3がリセット解除されると、CPU3は、プログラムメモリ4のアドレス「00000」からプログラムの実行を開始するが、アドレス変更回路6により、プログラムメモリ4の割付が変更されるので、図2(B)に示す運転制御プログラム領域42に格納された元の運転制御プログラム(1)〜(4)が動作することになり、図5のステップ201に至る。ここでは、動作モードフラグMODはモード2に設定されておりステップ210に進む。それ以降、点検運転の結果が正常だった場合は、ステップ211→ステップ212→ステップ213の一連の処理により、点検運転を行い、元の運転制御プログラムにより通常のエレベーターの運転制御が行われることになる。
【0073】
もし、何らかの異常により、元の運転制御プログラムでの点検運転の結果が異常だった場合には、ステップ214に進む。
【0074】
ステップ214は、図3(A)に示す書換えモード1完了フラグFLG1および書換えモード2完了フラグFLG2の値を判定するステップである。この場合、書換えモード2を行った後の点検運伝であり、書換えモード2完了フラグFLG2がセット(FFhに設定)されているので、ステップ219に進む。
【0075】
ステップ219は、書換えモード2完了フラグFLG2をリセット(00hに設定)するとともに、動作モードフラグMODをモード1に設定(01hに設定)するステップである。
【0076】
ステップ220は、異常動作処理として、エレベーターの運転を停止するとともに、例えば、図示しない遠隔保守装置を経由して保守センターに異常を通報するなどの処理を行う。
【0077】
この実施の形態1では、新しい運転制御プログラムで正常に動作できない場合は、元の運転制御プログラムに戻すことにより、エレベーターの運転を再開することができる。
【0078】
さらに、運転制御プログラムの動作時にはプログラムメモリ4のマップ上に書換えプログラム領域41が割り付けられない構成になっているので、運転制御プログラムの暴走などの異常が起こったとしても、誤って書換えプログラムが動作することがなく、運転制御プログラムが不正に書換えられることを防止することができる。
【0079】
実施の形態2.
この発明の実施の形態2に係るエレベーターの制御装置について図面を参照しながら説明する。図6は、この発明の実施の形態2に係るエレベーターの制御装置の構成を示す図である。基本的には、上記実施の形態1と同様である。
【0080】
図6において、異常検出回路(異常検出手段)10が新たに設けられたもので、プログラムの暴走等の異常を検出するウォッチドッグタイマ等から構成される。この異常検出回路10は、異常が発生した場合は、H/Wで生成した異常信号(リセット指令に相当)をリセット信号生成回路7に出力し、リセット信号によりCPU3をリセットする。また、異常検出回路10は、カウンタを内蔵しており、異常が発生した回数をカウンタによりカウントしカウント値が所定の回数まで達した場合には、H/Wで生成した異常信号(選択指令に相当)をアドレス変更回路6に出力し、書換えプログラムを選択するプログラム選択信号をプログラムメモリ4へ出力する。
【0081】
つぎに、この実施の形態2に係るエレベーターの制御装置の動作について図面を参照しながら説明する。
【0082】
図7は、この発明の実施の形態2に係るエレベーターの制御装置の書換えプログラム動作時の動作を示すフローチャートである。
【0083】
図7において、ステップ301〜311は、図4のステップ101〜111と同じ処理である。
【0084】
図5において、もし、新しい運転制御プログラム、もしくは変更前である元の運転制御プログラムの何れかの点検運転が何らかの異常により実施できずに運転制御プログラムが暴走した場合に、異常検出回路10が異常を検知し、異常信号をリセット信号生成回路7に出力し、CPU3をリセットする。
【0085】
異常検出回路10は、異常回数が所定回数(例えば5回)まで達した場合には、アドレス変更回路6に対し異常信号を出力し、書換えプログラムを選択するプログラム選択信号がプログラムメモリ4に出力される。
【0086】
前述の状態でCPU3がリセット解除されると、CPU3は、プログラムメモリ4のアドレス「00000」からプログラムの実行を開始するが、アドレス変更回路6により、プログラムメモリ4の割付が変更されるので、図2(A)に示す書換えプログラム領域41に格納されている書換えプログラムが動作することになり、図7の301に至る。
【0087】
ここでは、動作モードフラグMODは、モード2に設定されており、ステップ312に進む。このステップ312は、エレベーター異常動作処理として、例えば、図示しない遠隔保守装置を経由して保守センターに異常を通報するなどの処理を行う。
【0088】
この実施の形態2では、書換えた運転制御プログラムが何らかの異常により暴走しても、暴走状態の継続を防止することができる。
【0089】
なお、上記実施の形態1では、外部プログラム転送装置2から運転制御プログラムの書換え要求があった場合の動作で、図2(B)に示す運転制御プログラム領域42に格納される運転制御プログラム(1)〜(4)を、プログラム退避領域44のプログラム退避領域(1)〜(4)へ転送する処理を運転制御プログラムの中で実行したが(図5のステップ205)、書換えプログラムの中で実行させる構成にしても良い。
【0090】
【発明の効果】
この発明に係るエレベーターの制御装置は、以上説明したとおり、新しい運転制御プログラムが正常に書換えできなかったり、誤って古いバージョンに書換えてしまったり、書換えた新しい運転制御プログラムに不具合があった場合でも、元の運転制御プログラムに戻すことにより、エレベーターの運転を再開することができるという効果を奏する。
【図面の簡単な説明】
【図1】 この発明の実施の形態1に係るエレベーターの制御装置の構成を示す図である。
【図2】 この発明の実施の形態1に係るエレベーターの制御装置のプログラムメモリの割付を示す図である。
【図3】 この発明の実施の形態1に係るエレベーターの制御装置のフラグを説明するための図である。
【図4】 この発明の実施の形態1に係るエレベーターの制御装置の書換えプログラム動作時の動作を示すフローチャートである。
【図5】 この発明の実施の形態1に係るエレベーターの制御装置の運転制御プログラム動作時の動作を示すフローチャートである。
【図6】 この発明の実施の形態2に係るエレベーターの制御装置の構成を示す図である。
【図7】 この発明の実施の形態2に係るエレベーターの制御装置の書換えプログラム動作時の動作を示すフローチャートである。
【符号の説明】
1、1A 制御装置、2 外部プログラム転送装置、3 CPU、4 プログラムメモリ、5 RAM、6 アドレス変更回路、7 リセット信号生成回路、8 インターフェース装置、9 バス、10 異常検出回路、41 書換えプログラム領域、42 運転制御プログラム領域、43 プログラム更新領域、44プログラム退避領域。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an elevator control device that rewrites an elevator operation control program.
[0002]
[Prior art]
The conventional elevator control device stores an elevator operation program in the operation control program area 5A of the electrically rewritable program storage device 5. When rewriting the operation control program, the external program transfer device 3 is connected and written in the rewriting reserve area 5C of the operation control program to be updated. Then, when the rotation of the elevator motor 1 is detected and the car is stopped, the program in the operation control program area 5A is rewritten to the program in the spare area 5C. During the rewriting, the program in the spare area 5C is executed (for example, see Patent Document 1).
[0003]
[Patent Document 1]
Japanese Patent Laid-Open No. 2001-10772 (first page, FIG. 1)
[0004]
[Problems to be solved by the invention]
In the conventional elevator control apparatus as described above, there is a problem that a countermeasure when the operation control program cannot be rewritten normally is not taken into consideration. In other words, if the data of a new operation control program changes during rewriting and cannot be rewritten normally, or if it is accidentally rewritten to an old version, or if there is a problem with the rewritten new operation control program, it is normal. Although operation control can no longer be performed, there is no means to restore the operation control program to normal, so unless the operation control program is rewritten normally, the elevator cannot be operated at that time, leading to a fatal failure. There was a problem of end.
[0005]
The present invention has been made to solve the above-described problems. When the new operation control program cannot operate normally, the operation of the elevator can be resumed by returning to the original operation control program. An elevator control device is obtained.
[0006]
[Means for Solving the Problems]
The elevator control device according to the present invention is: After the computer is turned on, after the reset switch is operated, or after executing the output of the selection command and the reset command to start the rewriting program, there is a rewriting program area for storing a rewriting program for rewriting the operation control program. A program update area that is assigned to the execution start address and temporarily stores a new operation control program, a program save area that temporarily stores an old operation control program, and an operation control program that stores an operation control program. After the area is allocated and the output of the selection command and the reset command is executed to start the operation control program, the operation control program area is allocated to the execution start address, and the program update area and The program避領area is allocated Program memory, address changing means for changing the allocation of the program memory based on a selection command, and reset signal generating means for resetting the computer based on a reset command An interface device for inputting an update program output from the external program transfer device, and a flag indicating the operation mode of the computer, in which the normal operation in the operation control program mode is executed, or in the case of the initial value, mode 1 When the inspection operation in the operation control program mode is executed, the mode 2 is selected. When the program update area is rewritten from the operation control program area, the mode 3 is selected. When the program save area is rewritten from the operation control program area, the mode 4 is selected. An operation mode flag indicating, a rewrite mode 1 completion flag indicating whether or not rewriting from the program update area to the operation control program area is completed, and whether or not rewriting from the program save area to the operation control program area is completed. Rewrite mode 2 completion flag shown Are provided. This computer also When the power is turned on or the system is reset, the rewrite program assigned to the execution start address of the program memory is executed, the operation mode flag is determined as mode 1, and the selection command for selecting the operation control program is sent to the address Outputting to the changing means, and outputting a reset command to the reset signal generating means, Reset by the reset signal generating means. After reset is released Then, the address change means assigns it to the execution start address of the program memory. Said driving Run the control program The operation mode flag is determined as mode 1, When there is a request to rewrite the operation control program from the external program transfer device, it is transferred from the external program transfer device new The operation control program is transferred to the program update area and assigned to the execution start address of the program memory. old Transfer the operation control program to the program save area, Set the operation mode flag to mode 3, In order to start the rewriting program after stopping the elevator, a selection command is output to the address changing unit and a reset command is output to the reset signal generating unit, and the reset signal generating unit After reset, it is released from reset. Then, the rewriting program assigned to the execution start address of the program memory by the address changing unit is executed, When the operation mode flag is determined to be mode 3, the new operation control program stored in the program update area is transferred to the operation control program area, and when the transfer to this operation control program area is normally completed, the rewrite mode 1 completion flag , The operation mode flag is set to mode 2, a selection command for selecting a new operation control program is output to the address changing unit, a reset command is output to the reset signal generating unit, and the reset signal generation is performed. When the reset is released after resetting by the means, a new operation control program assigned to the execution start address of the program memory is executed by the address changing means, the operation mode flag is determined as mode 2, and the new operation Control the elevator normally with a control program If the result of the inspection operation is abnormal and the rewrite mode 1 completion flag is set, the rewrite mode 1 completion flag is reset and the operation mode flag is set. In order to start the rewriting program after setting the mode 4 to stop the elevator, a selection command is output to the address changing unit and a reset command is output to the reset signal generating unit, which is reset by the reset signal generating unit. Thereafter, when the reset is released, the rewriting program assigned to the execution start address of the program memory is executed by the address changing unit, the operation mode flag is determined to be mode 4, and the original stored in the program save area The old operation control program of the operation control program area When the transfer to the operation control program area is normally completed, the rewrite mode 2 completion flag is set, the operation mode flag is set to mode 2, and a selection command for selecting the original old operation control program is issued. When output to the address changing means and a reset command is output to the reset signal generating means and reset is released by the reset signal generating means, the address changing means sets the execution start address of the program memory. The assigned old operation control program is executed, the operation mode flag is determined to be mode 2, and an inspection operation is performed to determine whether or not the elevator can be normally controlled with this original operation control program. If the result of inspection operation is normal, the original operation control program Elevator operation control Is.
[0007]
DETAILED DESCRIPTION OF THE INVENTION
Embodiment 1 FIG.
An elevator control apparatus according to Embodiment 1 of the present invention will be described with reference to the drawings. 1 is a diagram showing a configuration of an elevator control apparatus according to Embodiment 1 of the present invention. In addition, in each figure, the same code | symbol shows the same or equivalent part.
[0008]
In FIG. 1, an elevator control device 1 includes a CPU (computer) 3, a program memory 4, a RAM 5, an address change circuit (address change means) 6, a reset signal generation circuit (reset signal generation means) 7, An interface device 8 and a bus 9 are provided. The interface device 8 is connected to the external program transfer device 2. The external program transfer device 2 outputs an operation control program to be changed.
[0009]
The program memory 4 includes an electrically rewritable non-volatile memory such as a flash memory, and includes a rewrite program area 41, an operation control program area 42, a program update area 43, and a program save area 44. .
[0010]
The rewrite program area 41 stores a rewrite program for rewriting the operation control program. The operation control program area 42 stores an operation control program. The program update area 43 temporarily stores the operation control program that is to be changed. The program save area 44 temporarily stores the operation control program before the change.
[0011]
The address changing circuit 6 selects either a rewrite program or an operation control program as a program to be executed after reset based on a selection command from a program operating on the CPU 3, and sends a program selection signal to the program memory 4. Output port is included. That is, the address changing circuit 6 changes the allocation of the program memory 4 as shown in FIG. 2 by the program selection signal.
[0012]
The reset signal generation circuit 7 includes an output port that outputs a reset signal to the CPU 3 based on a reset command from a program operating on the CPU 3. That is, the reset signal generation circuit 7 cancels the reset of the CPU 3 by the reset signal.
[0013]
The interface device 8 inputs an update program output from the external program transfer device 2.
[0014]
FIG. 2 is a diagram showing the allocation of the program memory in the elevator control apparatus according to Embodiment 1 of the present invention.
[0015]
The CPU 3 of the control device 1 operates according to the program assigned to the address “00000” of the program memory 4 shown in FIG.
[0016]
FIG. 2A shows the output of a selection command and a reset command after the power is turned on or after operation of a reset switch (not shown) (initial state at the time of reset by hardware (H / W)) or to start a rewrite program Shows the allocation of the program memory 4 after the execution of the software (S / W), and the program update area (1) to (1) to the program update area 43 for storing the rewrite program and the program update area 43 are shown. (4), program save areas (1) to (4) constituting the program save area 44, and an operation control program area 42 are allocated.
[0017]
FIG. 2B shows the allocation of the program memory 4 after the output of the selection command and the reset command is executed to start the operation control program, and the operation control program area ( 1) to (4), the aforementioned program update areas (1) to (4), and the aforementioned program save areas (1) to (4) are allocated. In the operation of the operation control program, the rewrite program area 41 is not allocated on the map of the program memory 4, which means that the rewrite program area 41 cannot be accessed.
[0018]
The operation control program area 42 stores operation control programs (1) to (4) divided into areas, and the program update area 43 and the program save area 44 correspond to the areas described above. It is divided into areas (1) to (4).
[0019]
FIG. 3 is a diagram for explaining flags of the elevator control apparatus according to Embodiment 1 of the present invention.
[0020]
In FIG. 3A, “MOD” is an “operation mode flag” indicating the operation mode of the CPU 3. “FLG1” is a “rewrite mode 1 completion flag” indicating whether or not rewriting from the program update area 43 to the operation control program area 42 is completed, and is set (for example, set to FFh) when rewriting is completed. “FLG2” is a “rewrite mode 2 completion flag” indicating whether or not rewriting from the program save area 44 to the operation control program area 42 is completed, and is set when rewriting is completed (for example, set to FFh). .
[0021]
FIG. 3B shows the contents of the operation mode flag MOD. For example, when normal operation is performed in the operation control program mode which is mode 1, a value of 01h is set in MOD.
[0022]
Next, the operation of the elevator control apparatus according to the first embodiment will be described with reference to the drawings.
[0023]
FIG. 4 is a flowchart showing the operation of the elevator control device according to Embodiment 1 of the present invention during the rewriting program operation. FIG. 5 is a flowchart showing the operation at the time of the operation control program operation of the elevator control apparatus according to Embodiment 1 of the present invention.
[0024]
First, the operation when a normal elevator is operated will be described.
[0025]
When the power is turned on or a similar system reset is performed, the CPU 3 starts executing the program from the address “00000” in the program memory 4, so that the rewrite program stored in the rewrite program area 41 shown in FIG. Operates to reach step 101 in FIG.
[0026]
Step 101 is a step in which the operation mode flag MOD shown in FIG. 3A is determined. The initial value is set to mode 1, and the process proceeds to step 102.
[0027]
Step 102 is a step of outputting a selection command for selecting an operation control program to an output port for outputting a program selection signal incorporated in the address change circuit 6.
[0028]
Step 103 is a step of outputting a reset command to an output port that outputs a reset signal built in the reset signal generation circuit 7.
[0029]
The CPU 3 is reset after the setting to start by a normal operation control program is performed by a series of processing from step 101 to step 102.
[0030]
When the CPU 3 is released from reset in the above-described state, the CPU 3 starts executing the program from the address “00000” of the program memory 4, but the allocation of the program memory 4 is changed by the address changing circuit 6. The operation control programs (1) to (4) stored in the operation control program area 42 shown in FIG. 2 (B) are operated, and the process reaches step 201 in FIG.
[0031]
Step 201 is a step of determining the operation mode flag MOD shown in FIG. 3A, and since it is set to mode 1, the process proceeds to step 202.
[0032]
Step 202 is a step for performing normal elevator operation control.
[0033]
A normal elevator operation control is performed by a series of processing from step 201 to step 202.
[0034]
Next, the operation in the case where there is a request for rewriting the operation control program from the external program transfer device 2 will be described.
[0035]
Step 203 is a step of determining whether or not there is a rewrite request for the operation control program from the external program transfer device 2.
[0036]
Step 204 is a step of transferring a new operation control program transferred from the external program transfer device 2 to the program update areas (1) to (4) shown in FIG. .
[0037]
Step 205 transfers the operation control programs (1) to (4) stored in the operation control program area 42 shown in FIG. 2B to the program save areas (1) to (4) in the program save area 44. It is a step to do. As a result, the operation control program that is currently operating normally can be backed up.
[0038]
Step 206 is a step of setting the operation mode flag MOD shown in FIG. 3A to mode 3 (set to 03h) when the transfer to the program update area 43 and the backup are completed normally.
[0039]
Step 207 is a step of stopping the elevator in order to safely rewrite the operation control program.
[0040]
Step 208 is a step of outputting a selection command for selecting a rewrite program to an output port for outputting a program selection signal built in the address change circuit 6.
[0041]
Step 209 is a step of outputting a reset command to an output port that outputs a reset signal built in the reset signal generation circuit 7.
[0042]
Step 203 → Step 204 → Step 205 → Step 206 → Step 207 → Step 208 → Step 209 When a request for rewriting the operation control program is made, a backup of the current operation control program is taken and a new one is created. After the setting for rewriting the operation control program is performed, the CPU 3 is reset.
[0043]
Next, the operation of rewriting the operation control program area with a new operation control program will be described.
[0044]
When the CPU 3 is released from reset in the above-described state, the CPU 3 starts executing the program from the address “00000” of the program memory 4, but the allocation of the program memory 4 is changed by the address changing circuit 6. The rewrite program stored in the rewrite program area 41 shown in FIG. 2 (A) is operated, and the process reaches step 101 in FIG. Here, the operation mode flag MOD is set to mode 3, and the routine proceeds to step 104.
[0045]
Step 104 is a step of transferring new operation control programs stored in the program update areas (1) to (4) shown in FIG. 2A to the operation control program areas (1) to (4).
[0046]
Step 105 sets the rewrite mode 1 completion flag FLGl shown in FIG. 3A (set to FFh) and sets the operation mode flag MOD to mode 2 when the transfer to the operation control program area 42 is normally completed. This is a step of setting (set to 02h).
[0047]
Step 106 is a step of outputting a selection command for selecting an operation control program to an output port for outputting a program selection signal incorporated in the address change circuit 6.
[0048]
Step 107 is a step of outputting a reset command to an output port for outputting a reset signal built in the reset signal generation circuit 7.
[0049]
After a series of processes of step 101 → step 104 → step 105 → step 106 → step 107, the operation control program area 42 is rewritten with a new operation control program, and the setting for starting the inspection operation by the new operation control program is performed CPU3 is reset.
[0050]
Next, the operation of the inspection operation for determining whether or not the operation control with the new operation control program operates normally will be described.
[0051]
When the CPU 3 is released from reset in the above-described state, the CPU 3 starts executing the program from the address “00000” of the program memory 4, but the allocation of the program memory 4 is changed by the address changing circuit 6. The new operation control programs (1) to (4) stored in the operation control program area 42 shown in FIG. 2 (B) are operated, and the process reaches step 201 in FIG. Here, the operation mode flag MOD is set to mode 2, and the process proceeds to step 210.
[0052]
Step 210 is a step of performing a dedicated inspection operation for determining whether or not the elevator can be normally controlled with the new operation control programs (1) to (4). Since this inspection operation needs to be performed safely without reducing the service to passengers as much as possible, for example, it is performed on condition that the operation has not been performed for a predetermined time at night, and passengers carelessly Trial operation such as running with the door closed so as not to get in. This trial operation means, for example, performing a reciprocating operation automatically or performing a dedicated operation capable of automatically performing a control operation.
[0053]
Step 211 is a step of determining the result of the inspection operation. If the result of the inspection operation is normal, the process proceeds to step 212. As a method for determining the result of the inspection operation, it is determined whether or not the test operation is normally performed by the operation control by the CPU 3 of the control device 1.
[0054]
Step 212 is a step of resetting (setting 00h) the rewriting mode 1 completion flag FLG1 and rewriting mode 2 completion flag FLG2 shown in FIG. 3A and setting the operation mode flag MOD to mode 1 (setting 01h). It is.
[0055]
Step 213 is a step for performing normal elevator operation control in the same operation as step 202.
[0056]
The inspection operation is performed by a series of processes of step 201 → step 210 → step 211 → step 212 → step 213, and when the result is normal, normal operation control of the elevator is performed by a new operation control program. .
[0057]
If the result of the inspection operation is abnormal, the process proceeds to step 214.
[0058]
Step 214 is a step of determining values of the rewrite mode 1 completion flag FLG1 and the rewrite mode 2 completion flag FLG2 shown in FIG. In this case, it is the inspection transmission after the rewrite mode 1 is performed, and the rewrite mode 1 completion flag FLGl is set (set to FFh), so the process proceeds to step 215.
[0059]
In step 215, the rewrite mode 1 completion flag FLG1 is reset (set to 00h) and the operation mode flag MOD is set to mode 4 (set to 04h).
[0060]
Step 216 is the same as step 207, and is a step of stopping the elevator in order to safely rewrite the operation control program.
[0061]
Step 217 is a step of outputting a selection command for selecting a rewrite program to an output port for outputting a program selection signal built in the address change circuit 6.
[0062]
Step 218 is a step of outputting a reset command to an output port that outputs a reset signal built in the reset signal generation circuit 7.
[0063]
If the result of the inspection operation with the new operation control program is abnormal as a result of a series of processing of step 214 → step 215 → step 216 → step 217 → step 218, it was operating normally backed up in the program save area 44. After the setting for rewriting the original operation control program is performed, the CPU 3 is reset.
[0064]
Next, an operation for rewriting the operation control program area to the original operation control program will be described.
[0065]
When the CPU 3 is released from reset in the above-described state, the CPU 3 starts executing the program from the address “00000” of the program memory 4, but the allocation of the program memory 4 is changed by the address changing circuit 6. The rewrite program stored in the rewrite program area 41 shown in FIG. 2 (A) is operated, and the process reaches step 101 in FIG. Here, the operation mode flag MOD is set to mode 4, and the routine proceeds to step 108.
[0066]
Step 108 is a step of transferring the original operation control program stored in the program save areas (1) to (4) shown in FIG. 2 (A) to the operation control program areas (1) to (4).
[0067]
Step 109 sets the rewrite mode 2 completion flag FLG2 shown in FIG. 3A (set to FFh) and sets the operation mode flag MOD to mode 2 when the transfer to the operation control program area is normally completed. (Set to 02h).
[0068]
Step 110 is a step of outputting a selection command for selecting an operation control program to an output port for outputting a program selection signal built in the address change circuit 6.
[0069]
Step 111 is a step of outputting a reset command to an output port that outputs a reset signal built in the reset signal generation circuit 7.
[0070]
Through a series of processes of step 101 → step 108 → step 109 → step 110 → step 11l, the operation control program area 42 is rewritten to the original operation control program, and the setting for starting the inspection operation by the original operation control program is performed. After that, the CPU 3 is reset.
[0071]
Next, the operation of the inspection operation for determining whether or not the operation control in the original operation control program operates normally will be described.
[0072]
When the CPU 3 is released from reset in the above-described state, the CPU 3 starts executing the program from the address “00000” of the program memory 4, but the allocation of the program memory 4 is changed by the address changing circuit 6. The original operation control programs (1) to (4) stored in the operation control program area 42 shown in FIG. 2 (B) are operated, and the process reaches step 201 in FIG. Here, the operation mode flag MOD is set to mode 2 and the process proceeds to step 210. Thereafter, when the result of the inspection operation is normal, the inspection operation is performed by a series of processes of step 211 → step 212 → step 213, and the normal operation control of the elevator is performed by the original operation control program. Become.
[0073]
If the result of the inspection operation in the original operation control program is abnormal due to some abnormality, the process proceeds to step 214.
[0074]
Step 214 is a step of determining values of the rewrite mode 1 completion flag FLG1 and the rewrite mode 2 completion flag FLG2 shown in FIG. In this case, it is an inspection transmission after the rewrite mode 2 is performed, and the rewrite mode 2 completion flag FLG2 is set (set to FFh), so the process proceeds to step 219.
[0075]
In step 219, the rewrite mode 2 completion flag FLG2 is reset (set to 00h) and the operation mode flag MOD is set to mode 1 (set to 01h).
[0076]
In step 220, as an abnormal operation process, the operation of the elevator is stopped and, for example, a process of notifying the maintenance center of an abnormality via a remote maintenance device (not shown) is performed.
[0077]
In the first embodiment, when the new operation control program cannot operate normally, the operation of the elevator can be resumed by returning to the original operation control program.
[0078]
Furthermore, since the rewrite program area 41 is not allocated on the map of the program memory 4 during operation of the operation control program, even if an abnormality such as runaway of the operation control program occurs, the rewrite program operates by mistake. Thus, the operation control program can be prevented from being rewritten illegally.
[0079]
Embodiment 2. FIG.
An elevator control apparatus according to Embodiment 2 of the present invention will be described with reference to the drawings. FIG. 6 is a diagram showing a configuration of an elevator control device according to Embodiment 2 of the present invention. Basically, this is the same as in the first embodiment.
[0080]
In FIG. 6, an abnormality detection circuit (abnormality detection means) 10 is newly provided, and includes a watchdog timer for detecting an abnormality such as a program runaway. When an abnormality occurs, the abnormality detection circuit 10 outputs an abnormality signal (corresponding to a reset command) generated by H / W to the reset signal generation circuit 7 and resets the CPU 3 by the reset signal. The abnormality detection circuit 10 has a built-in counter. When the abnormality is counted by the counter and the count value reaches a predetermined number, an abnormality signal generated by H / W (in response to the selection command). Is output to the address change circuit 6, and a program selection signal for selecting a rewrite program is output to the program memory 4.
[0081]
Next, the operation of the elevator control apparatus according to the second embodiment will be described with reference to the drawings.
[0082]
FIG. 7 is a flowchart showing the operation during the rewrite program operation of the elevator control apparatus according to Embodiment 2 of the present invention.
[0083]
In FIG. 7, steps 301 to 311 are the same processes as steps 101 to 111 in FIG.
[0084]
In FIG. 5, if the operation control program runs out of control without any inspection operation of the new operation control program or the original operation control program before the change due to some abnormality, the abnormality detection circuit 10 is abnormal. Is detected, an abnormal signal is output to the reset signal generation circuit 7, and the CPU 3 is reset.
[0085]
The abnormality detection circuit 10 outputs an abnormality signal to the address change circuit 6 and outputs a program selection signal for selecting a rewrite program to the program memory 4 when the number of abnormalities reaches a predetermined number (for example, 5 times). The
[0086]
When the CPU 3 is released from reset in the above-described state, the CPU 3 starts executing the program from the address “00000” of the program memory 4, but the allocation of the program memory 4 is changed by the address changing circuit 6. The rewrite program stored in the rewrite program area 41 shown in FIG.
[0087]
Here, the operation mode flag MOD is set to mode 2, and the process proceeds to step 312. In step 312, as an elevator abnormal operation process, for example, a process of notifying the maintenance center of an abnormality via a remote maintenance device (not shown) is performed.
[0088]
In the second embodiment, even if the rewritten operation control program runs away due to some abnormality, the runaway state can be prevented from continuing.
[0089]
In the first embodiment, the operation control program (1) stored in the operation control program area 42 shown in FIG. 2 (B) is an operation when the external program transfer device 2 requests to rewrite the operation control program. ) To (4) were transferred to the program saving area 44 in the program saving area (1) to (4) in the operation control program (step 205 in FIG. 5), but executed in the rewriting program. You may make it the structure to make.
[0090]
【The invention's effect】
As described above, the elevator control device according to the present invention can be used even when a new operation control program cannot be rewritten normally, or it is accidentally rewritten to an old version, or there is a defect in the rewritten new operation control program. By returning to the original operation control program, the operation of the elevator can be resumed.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration of an elevator control device according to Embodiment 1 of the present invention.
FIG. 2 is a diagram showing program memory allocation of the elevator control device according to Embodiment 1 of the present invention;
FIG. 3 is a diagram for explaining flags of the elevator control device according to Embodiment 1 of the present invention;
FIG. 4 is a flowchart showing an operation during a rewrite program operation of the elevator control device according to the first embodiment of the present invention.
FIG. 5 is a flowchart showing an operation during an operation control program operation of the elevator control apparatus according to Embodiment 1 of the present invention;
FIG. 6 is a diagram showing a configuration of an elevator control device according to Embodiment 2 of the present invention.
FIG. 7 is a flowchart showing an operation during a rewrite program operation of the elevator control device according to the second embodiment of the present invention.
[Explanation of symbols]
1, 1A control device, 2 external program transfer device, 3 CPU, 4 program memory, 5 RAM, 6 address change circuit, 7 reset signal generation circuit, 8 interface device, 9 bus, 10 abnormality detection circuit, 41 rewrite program area, 42 Operation control program area, 43 program update area, 44 program save area.

Claims (3)

コンピュータと、
電源投入後、リセットスイッチ操作後、若しくは書換えプログラムを起動するために選択指令及びリセット指令の出力を実行した後には、運転制御プログラムを書換えるための書換えプログラムを格納する書換えプログラム領域が実行開始アドレスに割り付けられ、かつ他のアドレスに、新しい運転制御プログラムを一時的に保管するプログラム更新領域、古い運転制御プログラムを一時的に保管するプログラム退避領域及び運転制御プログラムを格納する運転制御プログラム領域が割り付けられ、運転制御プログラムを起動するために選択指令及びリセット指令の出力を実行した後には、前記運転制御プログラム領域が実行開始アドレスに割り付けられ、かつ他のアドレスに、前記プログラム更新領域及び前記プログラム退避領域が割り付けられるプログラムメモリと、
選択指令に基づいて前記プログラムメモリの割付を変更するアドレス変更手段と、
リセット指令に基づいてコンピュータをリセットするリセット信号生成手段と
外部プログラム転送装置から出力される更新プログラムを入力するインターフェース装置と、
コンピュータの動作モードを示すフラグであって、運転制御プログラムモードでの通常運転を実行させる場合又は初期値の場合にはモード1、運転制御プログラムモードでの点検運転を実行させる場合にはモード2、プログラム更新領域から運転制御プログラム領域へ書き換える場合にはモード3、プログラム退避領域から運転制御プログラム領域へ書き換える場合にはモード4を示す動作モードフラグと、
プログラム更新領域から運転制御プログラム領域への書換えが完了したか否かを示す書換えモード1完了フラグと、
プログラム退避領域から運転制御プログラム領域への書換えが完了したか否かを示す書換えモード2完了フラグとを備え、
前記コンピュータは、
電源投入若しくはシステムリセットが行われると、前記プログラムメモリの実行開始アドレスに割り付けされた前記書換えプログラムを実行して、動作モードフラグをモード1と判定し、運転制御プログラムを選択する選択指令を前記アドレス変更手段に出力し、かつリセット指令を前記リセット信号生成手段に出力し、
前記リセット信号生成手段によりリセットされた後リセット解除されると、前記アドレス変更手段により前記プログラムメモリの実行開始アドレスに割り付けされた前記運転制御プログラムを実行して、動作モードフラグをモード1と判定し、外部プログラム転送装置から運転制御プログラムの書換え要求があった場合には、前記外部プログラム転送装置から転送される新しい運転制御プログラムを前記プログラム更新領域へ転送し、前記プログラムメモリの実行開始アドレスに割り付けされた古い運転制御プログラムを前記プログラム退避領域へ転送し、動作モードフラグをモード3に設定し、エレベーターを休止させてから書換えプログラムを起動するために前記アドレス変更手段へ選択指令を出力するとともに前記リセット信号生成手段へリセット指令を出力し、
前記リセット信号生成手段によりリセットされた後リセット解除されると、前記アドレス変更手段により前記プログラムメモリの実行開始アドレスに割り付けされた前記書換えプログラムを実行して、動作モードフラグをモード3と判定し、プログラム更新領域に格納された新しい運転制御プログラムを運転制御プログラム領域へ転送し、この運転制御プログラム領域への転送が正常に完了した場合、書換えモード1完了フラグをセットするとともに、動作モードフラグをモード2に設定し、新しい運転制御プログラムを選択する選択指令を前記アドレス変更手段に出力し、かつリセット指令を前記リセット信号生成手段に出力し、
前記リセット信号生成手段によりリセットされた後リセット解除されると、前記アドレス変更手段により前記プログラムメモリの実行開始アドレスに割り付けされた新しい運転制御プログラムを実行して、動作モードフラグをモード2と判定し、この新しい運転制御プログラムでエレベーターが正常に運転制御できるか否かを判定するための点検運転を行い、点検運転の結果が異常だった場合、書換えモード1完了フラグがセットされているときにはこの書換えモード1完了フラグをリセットするとともに、動作モードフラグをモード4に設定し、エレベーターを休止させてから書換えプログラムを起動するために前記アドレス変更手段へ選択指令を出力するとともに前記リセット信号生成手段へリセット指令を出力し、
前記リセット信号生成手段によりリセットされた後リセット解除されると、前記アドレス変更手段により前記プログラムメモリの実行開始アドレスに割り付けされた前記書換えプログラムを実行して、動作モードフラグをモード4と判定し、プログラム退避領域に格納された元の古い運転制御プログラムを運転制御プログラム領域へ転送し、この運転制御プログラム領域への転送が正常に完了した場合、書換えモード2完了フラグをセットするとともに、動作モードフラグをモード2に設定し、元の古い運転制御プログラムを選択する選択指令を前記アドレス変更手段に出力し、かつリセット指令を前記リセット信号生成手段に出力し、
前記リセット信号生成手段によりリセットされた後リセット解除されると、前記アドレス変更手段により前記プログラムメモリの実行開始アドレスに割り付けされた元の古い運転制御プログラムを実行して、動作モードフラグをモード2と判定し、この元の古い運転制御プログラムでエレベーターが正常に運転制御できるか否かを判定するための点検運転を行い、点検運転の結果が正常だった場合、この元の古い運転制御プログラムによりエレベーターの運転制御を行う
ことを特徴とするエレベーターの制御装置。
A computer,
After the power is turned on, the reset switch is operated, or the output of the selection command and reset command is executed to start the rewrite program, the rewrite program area for storing the rewrite program for rewriting the operation control program is the execution start address. The program update area that temporarily stores new operation control programs, the program save area that temporarily stores old operation control programs, and the operation control program area that stores operation control programs are allocated to other addresses. After executing the output of the selection command and the reset command to start the operation control program, the operation control program area is assigned to the execution start address, and the program update area and the program save are stored at other addresses. Area assigned And program memory, which is,
Address changing means for changing the allocation of the program memory based on a selection command;
Reset signal generating means for resetting the computer based on the reset command ;
An interface device for inputting an update program output from an external program transfer device;
A flag indicating the operation mode of the computer, mode 1 when normal operation in the operation control program mode is executed or an initial value, mode 2 when inspection operation is executed in the operation control program mode, An operation mode flag indicating mode 3 when rewriting from the program update area to the operation control program area, and mode 4 indicating rewriting from the program save area to the operation control program area;
A rewrite mode 1 completion flag indicating whether rewriting from the program update area to the operation control program area is completed;
A rewrite mode 2 completion flag indicating whether or not rewriting from the program save area to the operation control program area has been completed ,
The computer
When the power is turned on or the system is reset, the rewrite program assigned to the execution start address of the program memory is executed, the operation mode flag is determined as mode 1, and the selection command for selecting the operation control program is sent to the address Outputting to the changing means, and outputting a reset command to the reset signal generating means,
When the reset is released Ru after being reset by said reset signal generating means, and executes the operation control program which is allocated to the execution start address of said program memory by said address changing means determines the operation mode flag mode 1 When there is a request for rewriting the operation control program from the external program transfer device, the new operation control program transferred from the external program transfer device is transferred to the program update area and assigned to the execution start address of the program memory. The old operation control program is transferred to the program save area, the operation mode flag is set to mode 3, the elevator is stopped, and then a selection command is output to the address changing means to start the rewriting program. Reset signal generator It outputs a reset command to the,
Wherein when Ru is reset release after being reset by the reset signal generating means executes the address the rewrite program is allocated to the execution start address of said program memory by changing means determines the operation mode flag mode 3, When a new operation control program stored in the program update area is transferred to the operation control program area, and transfer to this operation control program area is normally completed, the rewrite mode 1 completion flag is set and the operation mode flag is set to the mode. 2 is output, a selection command for selecting a new operation control program is output to the address changing unit, and a reset command is output to the reset signal generating unit.
When reset is released after resetting by the reset signal generating means, a new operation control program assigned to the execution start address of the program memory is executed by the address changing means, and the operation mode flag is determined as mode 2. In this new operation control program, a check operation is performed to determine whether or not the elevator can be normally controlled. If the result of the check operation is abnormal, the rewrite mode 1 completion flag is set. Resets the mode 1 completion flag, sets the operation mode flag to mode 4, outputs a selection command to the address changing means to start the rewriting program after stopping the elevator, and resets to the reset signal generating means Command output,
When reset is released after being reset by the reset signal generating means, the rewriting program assigned to the execution start address of the program memory is executed by the address changing means, and the operation mode flag is determined as mode 4, When the original old operation control program stored in the program save area is transferred to the operation control program area and the transfer to this operation control program area is normally completed, the rewrite mode 2 completion flag is set and the operation mode flag Is set to mode 2, a selection command for selecting the original old operation control program is output to the address changing unit, and a reset command is output to the reset signal generating unit.
When reset is released after resetting by the reset signal generating means, the original old operation control program assigned to the execution start address of the program memory is executed by the address changing means, and the operation mode flag is set to mode 2. This original old operation control program performs a check operation to determine whether or not the elevator can be normally controlled. If the result of the inspection operation is normal, the original old operation control program The elevator control device characterized by performing the operation control .
前記コンピュータは、前記リセット信号生成手段によりリセットされた後リセット解除されると、前記アドレス変更手段により前記プログラムメモリの実行開始アドレスに割り付けされた元の古い運転制御プログラムを実行して、動作モードフラグをモード2と判定し、この元の古い運転制御プログラムでエレベーターが正常に運転制御できるか否かを判定するための点検運転を行い、点検運転の結果が異常だった場合、書換えモード2完了フラグがセットされているときにはこの書換えモード1完了フラグをリセットするとともに、動作モードフラグをモード1に設定し、エレベーターの運転を停止するとともに、遠隔保守装置を経由して保守センターに異常を通報する
ことを特徴とする請求項1記載のエレベーターの制御装置。
When the computer is reset by the reset signal generating means and then released from the reset , the computer executes the old operation control program assigned to the execution start address of the program memory by the address changing means, and the operation mode flag Is determined to be mode 2, and a check operation is performed to determine whether or not the elevator can be normally controlled with this old operation control program. If the result of the check operation is abnormal, the rewrite mode 2 completion flag When is set, the rewrite mode 1 completion flag is reset, the operation mode flag is set to mode 1, the elevator operation is stopped, and the abnormality is reported to the maintenance center via the remote maintenance device. The elevator control device according to claim 1.
新しい運転制御プログラム若しくは元の古い運転制御プログラムの異常を検出すると、前記書換えプログラムを起動するために前記アドレス変更手段へ選択指令を出力するとともに前記リセット信号生成手段へリセット指令を出力する異常検出手段をさらに備え、
前記コンピュータは、前記リセット信号生成手段によりリセットされた後リセット解除されると、前記アドレス変更手段により前記プログラムメモリの実行開始アドレスに割り付けされた前記書換えプログラムを実行して、動作モードフラグをモード2と判定し、遠隔保守装置を経由して保守センターに異常を通報する
ことを特徴とする請求項1又は2記載のエレベーターの制御装置。
When detecting an abnormality in a new operation control program or an original old operation control program, an abnormality detection unit that outputs a selection command to the address changing unit and starts a reset command to the reset signal generation unit to start the rewriting program Further comprising
When the computer is reset by the reset signal generating means and then released from the reset, the computer executes the rewrite program assigned to the execution start address of the program memory by the address changing means, and sets the operation mode flag to mode 2 The elevator control device according to claim 1 , wherein an abnormality is reported to the maintenance center via a remote maintenance device.
JP2003137550A 2003-05-15 2003-05-15 Elevator control device Expired - Fee Related JP4279593B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003137550A JP4279593B2 (en) 2003-05-15 2003-05-15 Elevator control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003137550A JP4279593B2 (en) 2003-05-15 2003-05-15 Elevator control device

Publications (2)

Publication Number Publication Date
JP2004338883A JP2004338883A (en) 2004-12-02
JP4279593B2 true JP4279593B2 (en) 2009-06-17

Family

ID=33527187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003137550A Expired - Fee Related JP4279593B2 (en) 2003-05-15 2003-05-15 Elevator control device

Country Status (1)

Country Link
JP (1) JP4279593B2 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4854995B2 (en) * 2005-06-28 2012-01-18 株式会社日立製作所 Elevator control device
JP2007022690A (en) * 2005-07-12 2007-02-01 Toshiba Elevator Co Ltd Elevator control device
JP2007039206A (en) * 2005-08-03 2007-02-15 Hitachi Building Systems Co Ltd Elevator control system
JP2007084187A (en) * 2005-09-20 2007-04-05 Toshiba Elevator Co Ltd Control device for elevator
JP4734096B2 (en) * 2005-11-22 2011-07-27 株式会社日立ビルシステム Elevator control system
JP2007186279A (en) * 2006-01-11 2007-07-26 Kuma Lift Gijutsu Kenkyusho:Kk Elevator service operating device
JP4868900B2 (en) * 2006-03-20 2012-02-01 東芝エレベータ株式会社 Elevator control device
JP2007308259A (en) * 2006-05-18 2007-11-29 Mitsubishi Electric Corp Elevator control system
JP5083890B2 (en) * 2007-12-27 2012-11-28 東芝エレベータ株式会社 Elevator control device
JP2017007800A (en) * 2015-06-22 2017-01-12 東芝エレベータ株式会社 Passenger conveyor program update system
JP2017007799A (en) * 2015-06-22 2017-01-12 東芝エレベータ株式会社 Passenger conveyor program update system
US20170144858A1 (en) * 2015-11-25 2017-05-25 Otis Elevator Company Automated passenger conveying system manipulation via an automated remote activation and validation of controller software

Also Published As

Publication number Publication date
JP2004338883A (en) 2004-12-02

Similar Documents

Publication Publication Date Title
JP4279593B2 (en) Elevator control device
EP3249534B1 (en) Vehicle control device
JP2010092127A (en) Computer system, processor diagnostic method, and processor diagnosis control program
JP3578638B2 (en) Diagnostic device for microcomputer memory
CN104011688A (en) Controller And Process Monitoring Method
JP3830867B2 (en) Single-chip microcomputer and its boot area switching method
US7558990B2 (en) Semiconductor circuit device and method of detecting runaway
JP2020021506A (en) Electronic controller and session establishing program
JP3296043B2 (en) Vehicle electronic control unit
CN115220963A (en) OTA upgrade exception recovery method and device for vehicle, vehicle and storage medium
WO2019064644A1 (en) Electronic control device and control program verification method
JP2004151944A (en) Method for writing data in non-volatile storage device, its program and device, and onboard electronic controller
JP4708088B2 (en) Failure recovery method and microcomputer
JP2003271420A (en) Electronic control device
JPH10187454A (en) Bios reloading system
JPH06160245A (en) Abnormality diagnosis system for vehicle
JPH1011293A (en) Information processor
JP2002236503A (en) Electronic controller for vehicle
JPH06348535A (en) Abnormality generation history storage device
JP2009520290A (en) Fault-tolerant processor system
CN110908339B (en) Numerical controller
JP6762411B2 (en) Electronic control unit for automobiles
JP6914430B2 (en) Memory diagnostic device and memory diagnostic method
JPS61813A (en) Deciding system for faulty area of sequence controller
JPH0962534A (en) Self-diagnostic method for electronic computer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060307

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080926

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081111

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081225

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: 20090310

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090312

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

Free format text: PAYMENT UNTIL: 20120319

Year of fee payment: 3

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: 20120319

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130319

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130319

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140319

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees