JPH0439682B2 - - Google Patents

Info

Publication number
JPH0439682B2
JPH0439682B2 JP14146884A JP14146884A JPH0439682B2 JP H0439682 B2 JPH0439682 B2 JP H0439682B2 JP 14146884 A JP14146884 A JP 14146884A JP 14146884 A JP14146884 A JP 14146884A JP H0439682 B2 JPH0439682 B2 JP H0439682B2
Authority
JP
Japan
Prior art keywords
control
data
control device
memory
backup
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
Application number
JP14146884A
Other languages
Japanese (ja)
Other versions
JPS6121502A (en
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 filed Critical
Priority to JP14146884A priority Critical patent/JPS6121502A/en
Publication of JPS6121502A publication Critical patent/JPS6121502A/en
Publication of JPH0439682B2 publication Critical patent/JPH0439682B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B9/00Safety arrangements
    • G05B9/02Safety arrangements electric
    • G05B9/03Safety arrangements electric with multiple-channel loop, i.e. redundant control systems

Description

【発明の詳細な説明】[Detailed description of the invention]

〔発明の技術分野〕 本発明は、中央制御装置等の上位装置から伝送
路を介して与えられる指令データに応じ、分担し
た範囲の制御を行なう制御装置に関するものであ
る。 〔従来技術〕 近来、ホテル,ビルデイング等の大規模な構築
物、または、大規模な生産設備等においては、各
部位または各制御目的毎に制御装置を設け、これ
らを上位装置により集中管理するシステムが採用
されており、各制御装置は、上位装置と伝送路に
より接続されたうえ、上位装置からの指令データ
に応じ制御を行なうものとなつている。 ただし、停電,故障,伝送路の異常等により上
位装置からの指令データが受信不能となつた場
合、制御装置による制御を継続させる目的上、上
位装置側が障害状態となつた直前の制御状態を制
御装置において保持し、あるいは、上位装置の障
害発生に応じ、制御装置において制御上の判断を
安全な方向へ切替え、これにしたがつた制御を継
続するものとなつている。 しかし、従来においては、上位装置側の障害発
生に応じ、すべての制御装置が前述のいずれかと
して固定的に定められたバツクアツプモードへ移
行するものとなつており、制御装置によつては他
と異なるバツクアツプモードが要求される場合も
あり、不都合となる欠点を生じている。 〔発明の概要〕 本発明は、従来のかかる欠点を根本的に解決す
る目的を有し、上位装置から与えられる指令デー
タに依存せず、制御装置が独自の制御を行なうバ
ツクアツプモードを複数種類用意し、これらをメ
モリへ格納しておいたうえ、いずれかを選択する
ことにより、これによつて選択されたバツクアツ
プモードを制御部がメモリから読み出し、これの
内容に応じた制御を行なうものとした極めて効果
的な、制御装置を提供するものである。 〔実施例〕 以下、実施例を示す図によつて本発明の詳細を
説明する。 第1表は、バツクアツプのモードを示し、これ
らはメモリへ格納されており、端末機器を介する
オペレータからの指定に応じていずれかが選択さ
れ、選択されたモードが制御部によりメモリから
読み出され、これの内容に応じた制御が行なわれ
るものとなつている。例えば、端末機器を介して
オペレータよりモードMOが指定されると、制御
部によりメモリからモードMOの制御内容が読み
出され、これの内容に応じた制御が行われる。
[Technical Field of the Invention] The present invention relates to a control device that performs control over a shared range in response to command data given via a transmission line from a higher-level device such as a central control device. [Prior Art] Recently, in large-scale structures such as hotels and buildings, or large-scale production facilities, systems have been developed in which control devices are provided for each part or each control purpose, and these are centrally managed by a host device. Each control device is connected to a higher-level device by a transmission line, and performs control according to command data from the higher-level device. However, if command data from the higher-level device cannot be received due to a power outage, failure, abnormality in the transmission path, etc., the higher-level device will control the control state immediately before the failure state in order to continue control by the control device. In response to the occurrence of a failure in a host device, the control device switches control decisions to a safe direction and continues control in accordance with this. However, conventionally, in response to the occurrence of a failure on the host device side, all control devices transition to a backup mode that is fixedly determined as one of the above, and depending on the control device, other In some cases, a different backup mode is required, resulting in inconvenient drawbacks. [Summary of the Invention] The present invention has the purpose of fundamentally solving the above drawbacks of the conventional technology, and provides multiple types of backup modes in which the control device performs its own control without depending on command data given from a host device. These are prepared and stored in the memory, and when one of them is selected, the control unit reads the selected backup mode from the memory and performs control according to the contents. The present invention provides an extremely effective control device. [Example] Hereinafter, details of the present invention will be explained with reference to figures showing examples. Table 1 shows the backup modes, which are stored in the memory, one of which is selected according to the operator's instructions via the terminal device, and the selected mode is read out from the memory by the control unit. , control is performed according to the contents. For example, when a mode MO is specified by an operator via a terminal device, the control section reads out the control contents of the mode MO from the memory, and performs control according to the contents.

【表】 第1図は、前表の選択に応ずる制御状況のフロ
ーチヤートであり、モード“MO?”201,
“M1?”202,“M2?”203の判断が順次なされ、
ステツプ201,202がNOかつステツプ203がYES
であれば、すなわちモードM2が指定されていれ
ば、上位装置からの指令データ等を表わす所定の
ワードが一定時間以上到来しないか否かをタイマ
ー等により”所定のワード受信不能?”211によ
つて判断し、すなわち上位装置の正常・異常を判
断し、これがYES(上位装置異常)になると、”
理由データにより制御”221を後述の第3図のと
おりに行なう。 これに対し、ステツプ203がNOのときは、す
なわちモードM3が指定されていれば、直ちにス
テツプ221へ移行し、指令データが受信されてい
ても、すなわち上位装置の正常・異常に拘らず、”
理由データにより制御”221を行なう。 また、ステツプ201がYESであれば、すなわち
モードMOが指定されていれば、ステツプ211と
同じく”所定のワード受信不能?”231の判断が
なされ、これのYESに応じてRAM3(第2図参
照)中に保持した”直前の指令データにより制御
出力決定”232を行なう。そして、当該制御装置
においてその供給電源電圧の立ち上がり所定時間
内にあつたか否かにより、”再起動?”233を判断
する。すなわち、停電/復旧に伴う電源の
OFF/ONに応ずる当該制御装置における供給電
源電圧の立ち上がりや、保守,点検等に際する実
装電源スイツチ(図示せず)のOFF/ONに応ず
る当該制御装置における供給電源電圧の立ち上が
りが、ステツプ233において再起動(自己再起動)
として判断される。つまり、供給電源電圧が
OFFになれば当該制御装置はその機能を失い
(RAM3上のデータは電池11によりバツクア
ツプされている)、供給電源電圧がONとなれば
当該制御装置はその制御を開始する。この供給電
源電圧のOFFからONへの変化、すなわち供給電
源電圧の立ち上がりが、ステツプ233において再
起動として検知される。 そして、ステツプ233での判断がYESとなれ
ば、制御入力”I1〜Ioチエツク”241により各制
御対象機器の現状(例えば、ON/OFF状態)を
求め、”I1〜Ioと一致させて制御出力決定”242を
行なう。すなわち、再起動に際しては、制御の連
続性を維持すべく(制御状態を一度合わせるべ
く)、各制御対象機器への制御出力データを現状
の制御状況と同一ものとして決定する。そして、
これによつて求めた”制御出力データをメモリへ
格納”251を行ない。これを読み出して”制御出
力送出”252を行なう。 ただし、ステツプ231がNOであれば、“指令デ
ータにより制御出力決定”261を行ない、ステツ
プ251以降へ移行する。 以上に対し、ステツプ201がNOかつステツプ
202がYESであれば、すなわちモードM1が指定
されていれば、ステツプ211と同じく“所定のワ
ード受信不能?”271を判断し、NOのときはス
テツプ261へ移行し、YESに応じてはステツプ
233と同じく“再起動?”272を判断のうえ、これ
がNOであればステツプ232へ移行するが、YES
となればステツプ252へ移行し、メモリ(RAM
3)中に保持されている制御出力データを送出す
る。例えば、モードM1が指定されている場合に
停電が生じると、この停電の生じた直前の指令デ
ータが制御出力データとしてRAM3中に保持さ
れ、この保持されている制御出力データが、”再
起動”272のYESに応じて、ステツプ252により
送出される。 ステツプ252にて制御出力データを送出した後
は、RAM3中の設定値および制御入力I1〜Io
基づく一般的な”PID(比例,積分,微分)制御”
281を行ない、ステツプ201へ戻る。 したがつて、モードMOでは、制御装置の再起
動に応じ、各部の現状と一致した制御が行なわれ
てから、次第に設定値に基づく制御状態となり、
制御対象機器の応動が急激とならないため、制御
装置の保守,点検等に際し、当該制御装置への電
源OFFを行なつたうえ、当該制御装置への電源
ONにより再起動する場合等に好適となる。 また、モードM0〜M3は、状況に応じて指定
すればよいが、M3では、常時制御装置が独自の
制御を行なうものとする場合等に便利となる。 第2図は、制御装置の構成を示すブロツク図で
あり、制御部として用いるマイクロプロセツサ等
のプロセツサ(以下、CPU)1に対し、固定メ
モリ(以下、ROM:Read Only Memory.)2、
可変メモリ(以下、RAM:Random Access
Memry.)3、インターフエイス(以下、I/
F)4〜7、および、時計回路(以下、CLK)
8を接続し、発振器(以下、OSC)9の発生す
るクロツクパルスに基づきCPU1およびCLK8
が動作するものとなつており、RAM3には、電
池11が接続され、停電時にもこれによる電源の
バツクアツプにより、RAM3中のデータが保持
されるものとなつている。 また、I/F4にはキーボードおよび表示器等
を有する端末器(以下、TE)12が接続され、
I/F5には伝送路21を介し上位装置22が接
続され、I/F5により上位装置22とのデータ
送受信が行なわれるものとなつており、I/F6
には、各種のセンサからの検出出力、および、電
動弁,ダンパ等、各種の制御対象機器からの現状
を示す検出出力が制御入力I1〜Ioとして与えら
れ、I/F7からは、各制御対象機器に対する制
御出力O1〜Ooが送出されるものとなつている。 なお、ROM2中には、命令および第1表の各
データ等が格納されていると共に、RAM3は複
数のエリアに分割され、各エリア毎に設定値の各
データおよび制御出力データ等が格納される。 ここにおいて、CPU1は、ROM2中の命令を
実行し、伝送路21を介して与えられる上位装置
22からの指令データを優先とし、I/F4を介
するTE12からのデータおよびI/F6を介す
る制御入力I1〜Ioに応じ、必要とするデータを
RAM3へアクセスしながら制御上の判断を行な
い、I/F7を介して制御出力O1〜Ooを送出し、
各制御対象機器の制御を行なつており、TE12
の操作によつては、表示用のデータをI/F4か
ら送出し、TE12により表示を行なうものとな
つている。。 なお、タイマー,カウンタ等は、CPU1およ
びRAM3によりソフト的に構成され、必要に応
じてこれらの時間設定,起動,登算等が行なわれ
る。 第3図は、制御装置の制御部による制御状況の
フローチヤートであり、上位装置からの所定のワ
ードが一定時間以上受信されないことを“所定の
ワード受信不能?”101により、タイマー等によ
つて判断し、これがYESとなれば、別途の“タ
イマー起動”102を行ない、これの“タイムアツ
プ?”103がYESとなるのに応じ、RAM3中へ
格納されている指令データの対象項目(以下、ポ
イント)iをカウンタへ“i=1”104によりセ
ツトし、あらかじめRAM3へ指令データと対応
して格納されている指令データの発生原因を示す
理由データを“メモリからiの理由データ読み出
し”105を行ない、これに基づいて“理由データ
に応じた制御内容の読み出し”106をROM2か
ら行なつたうえ、“制御内容によりiの制御出力
更新”107を行ない、これによつてRAM3中の
ポイントiと対応した制御出力データを更新し、
全ポイントnまで以上の処理を行なつたか否かの
判断“i=n?”108がNOであれば、“i=i+
1”109によりカウンタを登算し、ステツプ105以
降を反復する。 ステツプ108がYESとなれば、“1〜nの制御
出力送出”110により、RAM3中の制御出力デ
ータを各ポイント毎に送出する。 第2表は、指令データの発生原因を示す理由デ
ータの一例を示し、これには、各々制御内容が付
加されたうえ、RAM3へ格納されるものとなつ
ている。
[Table] Figure 1 is a flowchart of the control situation according to the selections in the previous table.
“M1?” 202, “M2?” 203 decisions are made sequentially,
Steps 201 and 202 are NO and step 203 is YES
In other words, if mode M2 is specified, a timer or the like is used to check whether a predetermined word representing command data etc. from the host device does not arrive for a certain period of time or not, according to "Unable to receive predetermined word?" 211. In other words, it determines whether the host device is normal or abnormal, and if this becomes YES (high-order device abnormality),
Control "221" is performed based on the reason data as shown in FIG. regardless of whether the host device is normal or abnormal.”
Control ``221'' is performed based on the reason data. Also, if step 201 is YES, that is, if mode MO is specified, the same as step 211 is ``unable to receive predetermined word?''. 231 is made, and in response to YES, the control output is determined 232 based on the previous command data held in the RAM 3 (see Figure 2). Depending on whether it warms up within the specified time or not, "Reboot?" ” 233. In other words, the power supply due to power outage/restoration.
The rise of the power supply voltage in the control device in response to OFF/ON, and the rise in the power supply voltage in the control device in response to the OFF/ON of a mounted power switch (not shown) during maintenance, inspection, etc. are performed in step 233. Restart at (self-restart)
It is judged as. In other words, the supply voltage
When turned off, the control device loses its function (the data on the RAM 3 is backed up by the battery 11), and when the supply voltage is turned on, the control device starts its control. This change in the power supply voltage from OFF to ON, that is, the rise of the power supply voltage, is detected as a restart in step 233. If the judgment in step 233 is YES, the current status of each controlled device (for example, ON/OFF state) is determined by the control input "I 1 - I o check" 241, and it is determined that it matches the "I 1 - I o check" 241. Then, control output determination"242 is performed. That is, at the time of restart, in order to maintain continuity of control (to once match the control states), control output data to each controlled device is determined to be the same as the current control state. and,
``Storing the control output data obtained in this way to the memory'' 251 is performed. This is read out and "control output transmission" 252 is performed. However, if step 231 is NO, "determine control output based on command data" 261 is performed, and the process moves to step 251 and subsequent steps. For the above, step 201 is NO and step
If 202 is YES, that is, if mode M1 is specified, it is determined whether "predetermined word cannot be received?" 271 as in step 211, and if NO, the process moves to step 261, and if YES, the process proceeds to step 271.
As in 233, check “Reboot?” 272, and if this is NO, proceed to step 232, but YES
If so, move on to step 252 and read the memory (RAM
3) Send out the control output data held in it. For example, if a power outage occurs when mode M1 is specified, the command data immediately before the power outage occurs is held in RAM3 as control output data, and this held control output data is used for "restart". In response to YES in step 272, it is sent out in step 252. After sending the control output data in step 252, general "PID (proportional, integral, differential) control" is performed based on the set value in RAM 3 and control inputs I 1 to I o.
Perform step 281 and return to step 201. Therefore, in mode MO, in response to the restart of the control device, control is performed that matches the current state of each part, and then the control state is gradually changed to based on the set value.
To prevent the response of the controlled equipment from being sudden, when performing maintenance or inspection of the control device, turn off the power to the control device, and then turn off the power to the control device.
This is suitable when restarting by turning ON. Further, modes M0 to M3 may be designated depending on the situation, but M3 is convenient when the control device is to perform its own control all the time. FIG. 2 is a block diagram showing the configuration of the control device, in which a processor such as a microprocessor (hereinafter referred to as CPU) 1 used as a control unit, a fixed memory (hereinafter referred to as ROM: Read Only Memory) 2,
Variable memory (hereinafter referred to as RAM: Random Access
Memry.) 3. Interface (hereinafter referred to as I/
F) 4 to 7 and clock circuit (hereinafter referred to as CLK)
CPU1 and CLK8 are connected based on the clock pulses generated by the oscillator (hereinafter referred to as OSC)9.
A battery 11 is connected to the RAM 3, and even in the event of a power outage, the data in the RAM 3 is retained by backing up the power supply. In addition, a terminal device (hereinafter referred to as TE) 12 having a keyboard, display, etc. is connected to the I/F 4,
A host device 22 is connected to the I/F 5 via a transmission line 21, and data is sent and received with the host device 22 through the I/F 5.
Detection outputs from various sensors and detection outputs indicating the current status from various controlled devices such as electric valves and dampers are given as control inputs I1 to Io , and from I/F7, each Control outputs O 1 to O o are sent to the devices to be controlled. Note that the ROM2 stores instructions and each data listed in Table 1, and the RAM3 is divided into a plurality of areas, and each area stores each data of setting values, control output data, etc. . Here, the CPU 1 executes instructions in the ROM 2, gives priority to command data from the host device 22 given via the transmission line 21, and receives data from the TE 12 via I/F 4 and control input via I/F 6. Depending on I 1 to I o , select the required data.
Makes control decisions while accessing RAM 3, sends control outputs O 1 to O o via I/F 7,
It controls each controlled device, and TE12
Depending on the operation, display data is sent from the I/F 4 and displayed by the TE 12. . Incidentally, the timer, counter, etc. are configured in software by the CPU 1 and the RAM 3, and their time setting, activation, and counting are performed as necessary. FIG. 3 is a flowchart of the control status by the control unit of the control device, in which a timer or the like is used to indicate that a predetermined word from the host device is not received for a certain period of time using a “predetermined word unreceivable?” 101. If this is YES, a separate “timer start” 102 is performed, and in response to this “time up?” 103 being YES, the target item (hereinafter referred to as point) of the command data stored in the RAM 3 is activated. ) Set i to the counter with "i = 1" 104, and perform "read out reason data of i from memory" 105 for the reason data indicating the cause of the occurrence of the command data, which has been previously stored in RAM 3 in correspondence with the command data. Based on this, it performs "reading of control contents according to the reason data" 106 from ROM2, and then "updates the control output of i according to the control contents" 107, thereby corresponding to point i in RAM3. Update the control output data that was
If the judgment “i=n?” 108, which determines whether the above processing has been performed up to all points n, is NO, “i=i+
1" 109, and repeat steps 105 and after. If step 108 is YES, "1 to n control output transmission" 110 transmits the control output data in RAM 3 for each point. Table 2 shows an example of reason data indicating the cause of the command data, to which control details are added and stored in the RAM 3.

【表】【table】

Claims (1)

【特許請求の範囲】 1 上位装置から伝送路を介して与えられる指令
データに応じて制御を行なう制御装置において、 この制御装置が独自に制御を行なう複数のバツ
クアツプモードを格納したメモリと、 このメモリに格納されたバツクアツプモードの
中から指定されたバツクアツプモードの選択を行
なう選択手段と、 この選択手段の選択にしたがつて前記メモリか
らバツクアツプモードを読み出し、このバツクア
ツプモードの内容に応じた制御を行なう制御部と を備えたことを特徴とする制御装置。
[Scope of Claims] 1. A control device that performs control according to command data given from a host device via a transmission line, comprising a memory storing a plurality of backup modes independently controlled by the control device; a selection means for selecting a designated backup mode from among the backup modes stored in the memory; and a selection means for reading the backup mode from the memory in accordance with the selection by the selection means, and applying the contents of the backup mode to the backup mode. 1. A control device comprising: a control section that performs corresponding control.
JP14146884A 1984-07-10 1984-07-10 Controller Granted JPS6121502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14146884A JPS6121502A (en) 1984-07-10 1984-07-10 Controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14146884A JPS6121502A (en) 1984-07-10 1984-07-10 Controller

Publications (2)

Publication Number Publication Date
JPS6121502A JPS6121502A (en) 1986-01-30
JPH0439682B2 true JPH0439682B2 (en) 1992-06-30

Family

ID=15292582

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14146884A Granted JPS6121502A (en) 1984-07-10 1984-07-10 Controller

Country Status (1)

Country Link
JP (1) JPS6121502A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2578372B2 (en) * 1989-11-18 1997-02-05 横河電機株式会社 Distributed control system

Also Published As

Publication number Publication date
JPS6121502A (en) 1986-01-30

Similar Documents

Publication Publication Date Title
DE69315223D1 (en) COMPUTER ERROR RESTART AND WARNING SYSTEM
JPH0439682B2 (en)
JP2529707B2 (en) Blackout detection method
JP3190564B2 (en) Electronic equipment with battery power
JPH0815396A (en) Power supply voltage detector
JPS6116340A (en) Emergency operation device of processor system
JPS62281781A (en) Monitoring method for accident information
JPH0119184B2 (en)
JPH0329015A (en) Instantaneous service interruption processor for equipment using computer
JPH01128147A (en) Arithmetic unit
JPS6121501A (en) Controller
JPH0120775B2 (en)
JPH03157701A (en) Power failure processing system for programmable controller
JPS5816481B2 (en) computer system power supply
JPS62138943A (en) Storage device
JPH0517743U (en) Redundant computer system
JPH02196341A (en) Fault restoring system for information processor
JPS6160445B2 (en)
JPH07248802A (en) Duplexed monitor and control device
JPS6248860B2 (en)
JPS6318188B2 (en)
JPS6156538B2 (en)
JPH0253137A (en) Change system for on-line program
JPH04303242A (en) System power-on device
JPH0316656B2 (en)