[go: up one dir, main page]

JP2024175275A - Surveillance equipment - Google Patents

Surveillance equipment Download PDF

Info

Publication number
JP2024175275A
JP2024175275A JP2023092934A JP2023092934A JP2024175275A JP 2024175275 A JP2024175275 A JP 2024175275A JP 2023092934 A JP2023092934 A JP 2023092934A JP 2023092934 A JP2023092934 A JP 2023092934A JP 2024175275 A JP2024175275 A JP 2024175275A
Authority
JP
Japan
Prior art keywords
power supply
power
monitoring
program
shutdown
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2023092934A
Other languages
Japanese (ja)
Inventor
博和 松野
Hirokazu Matsuno
直樹 木村
Naoki Kimura
源太郎 田中
Gentaro Tanaka
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.)
Saginomiya Seisakusho Inc
Original Assignee
Saginomiya Seisakusho Inc
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 Saginomiya Seisakusho Inc filed Critical Saginomiya Seisakusho Inc
Priority to JP2023092934A priority Critical patent/JP2024175275A/en
Publication of JP2024175275A publication Critical patent/JP2024175275A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Devices That Are Associated With Refrigeration Equipment (AREA)
  • Cold Air Circulating Systems And Constructional Details In Refrigerators (AREA)
  • Power Sources (AREA)
  • Stand-By Power Supply Arrangements (AREA)

Abstract

To provide a monitoring device that monitors a state of a cooling device such as a showcase connected by a network and appropriately restarts the cooling device regardless of timing of power recovery.SOLUTION: An upper control apparatus 1 that is a monitoring device includes: a power supply control circuit 2 that receives power supply from an external power source (an AC100 V power source) or a UPS 3 and supplies power to inside; a communication unit 6 that communicates with a plurality of control apparatuses connected by a network; a control unit 5 in which a program 44 for monitoring the plurality of control apparatuses based on measurement data including temperature received from the communication unit 6 and a monitoring process 51 for monitoring an operation state of the program 44 are operated; a power source state flag 42 showing which is a power supply source, an external power source or an UPS; and a restart flag 41 showing necessity of a restart of the upper control apparatus 1 after shutdown.SELECTED DRAWING: Figure 2

Description

本発明は、ネットワークで接続されたショーケース等の冷却装置の状態の監視等を行う監視装置に関する。 The present invention relates to a monitoring device that monitors the status of cooling devices such as showcases connected via a network.

近年、HACCP(Hazard Analysis and Critical Control Point)により、原材料の入荷から製造・出荷の各工程における、被調理物の温度計測を行い、記録を行うなど食品の安全を確保することが義務づけられている。このような温度の記録を保存するために、監視装置内に収集したデータを上位サーバへ送付する通信手段を設けたり、一定時間(例えば5分毎)ごとに記録を行うシステムが提案されている(例えば、特許文献1を参照)。 In recent years, the Hazard Analysis and Critical Control Point (HACCP) standard has made it mandatory to ensure food safety by measuring and recording the temperature of food being cooked at each stage from the arrival of raw materials to production and shipping. In order to store such temperature records, systems have been proposed that provide a communication means within the monitoring device to send collected data to a higher-level server, or that record at regular intervals (e.g., every five minutes) (see, for example, Patent Document 1).

各種計測データをSSD(Solid State Drive)やハードディスク等に保存(記録)して運用するシステムにおいて、計測データをSSD等へ書込み中に停電等が発生した場合、タイミングによりファイル破損が発生する場合がある。また、状況によってはシステムファイルが損傷し起動不具合が発生する場合もある。 In a system that stores (records) various measurement data on a solid state drive (SSD) or hard disk, if a power outage occurs while the measurement data is being written to the SSD, etc., file corruption may occur depending on the timing. In addition, depending on the situation, system files may be damaged, causing startup problems.

上記のような停電時の対策としてはUPS(無停電電源装置)を利用することが多い。UPSにより停電後もバッテリによりシステムが停止しない為、各種アプリケーションプログラムを終了させた後、OS(オペレーティングシステム)がシャットダウンして自動的にシステムが停止する。その後に復電した場合は、商用電源等の外部電源が供給されるため、自動的に電源投入されOSが起動し、続いてアプリケーションプログラムが起動して稼働状態になる。しかし、シャットダウン中に復電した場合は、シャットダウン中にバッテリから外部電源に切替わるため、シャットダウンが終了してシステムが停止した後、自動的に電源が投入されず稼働状態にならない場合があった。 As a countermeasure for power outages like the one described above, a UPS (uninterruptible power supply) is often used. With a UPS, the system does not stop running due to the battery even after a power outage, so after various application programs are closed, the OS (operating system) shuts down and the system stops automatically. If power is subsequently restored, an external power source such as a commercial power source is supplied, so the power is automatically turned on and the OS starts up, followed by the application programs and the system goes into operation. However, if power is restored during shutdown, the power source switches from the battery to the external power source during shutdown, so after shutdown is complete and the system stops, the power may not be turned on automatically and the system may not go into operation.

シャットダウン中に復電した場合に自動的に電源が投入されない問題に対しては、例えば特許文献2に記載の発明が提案されている。特許文献2には、主電源の電力供給が停止し、かつ、CPU回路に対する電源ユニットの電力供給が停止した場合、ワンショットパルス信号を生成する。電源オン制御回路は、ワンショットパルス信号が入力された場合に、CPU回路に対する電力供給を開始させるための起動信号を生成し再起動を行うことが記載されている。 As a solution to the problem of the power not being turned on automatically when power is restored during shutdown, for example, the invention described in Patent Document 2 has been proposed. Patent Document 2 describes that when the power supply from the main power source is stopped and the power supply from the power supply unit to the CPU circuit is stopped, a one-shot pulse signal is generated. It is described that when the one-shot pulse signal is input, a power-on control circuit generates a start-up signal to start the power supply to the CPU circuit, thereby restarting the circuit.

特開2022-121909号公報JP 2022-121909 A 特開2011-186804号公報JP 2011-186804 A

特許文献2に記載された発明の場合、再起動を行うトリガとして、ワンショットパルス信号を生成する必要があり、ハードウェアの改良が必要となる。そのため、既存の装置に適用するのは困難である。 In the case of the invention described in Patent Document 2, it is necessary to generate a one-shot pulse signal as a trigger for restarting, which requires improvements to the hardware. For this reason, it is difficult to apply this to existing devices.

そこで、本発明は、復電のタイミングに関わらず適切に再起動できるようにすることを目的とする。 Therefore, the present invention aims to enable proper restart regardless of the timing of power recovery.

上記課題を解決するためになされた発明は、外部電源または無停電電源装置から電力供給を受けて、内部へ電力供給する電源制御部と、ネットワークで接続された複数の冷却装置と通信する通信部と、前記通信部が前記複数の冷却装置から受信した少なくとも温度を含む情報に基づいて前記複数の冷却装置を監視するコンピュータプログラム及び、前記コンピュータプログラムの動作状態を監視する監視プログラムが動作する制御部と、電力の供給元が前記外部電源か前記無停電電源装置かを示す電源状態フラグと、シャットダウン後に自装置の再起動の要否を示す再起動フラグと、を備え、前記監視プログラムは、前記電源状態フラグが前記無停電電源装置から電力供給されていることを示している場合は、前記コンピュータプログラムを終了させ、前記コンピュータプログラム終了後前記シャットダウンを実行するとともに前記再起動フラグをセットし、前記電源制御部は、前記シャットダウン中に前記電源状態フラグが前記外部電源から電力供給されていることを示す状態に変化した場合かつ前記再起動フラグがセットされている場合は、前記シャットダウン終了後に前記自装置を再起動する、ことを特徴とする。 The invention made to solve the above problem includes a power control unit that receives power from an external power source or an uninterruptible power supply and supplies power to the inside, a communication unit that communicates with multiple cooling devices connected via a network, a computer program that monitors the multiple cooling devices based on information including at least the temperature received from the multiple cooling devices by the communication unit, and a control unit in which a monitoring program that monitors the operating state of the computer program runs, a power status flag that indicates whether the power source is the external power source or the uninterruptible power supply, and a restart flag that indicates whether the device needs to be restarted after shutdown, and the monitoring program terminates the computer program if the power status flag indicates that power is being supplied from the uninterruptible power supply, and executes the shutdown after the computer program is terminated and sets the restart flag, and the power control unit restarts the device after the shutdown is terminated if the power status flag changes to a state indicating that power is being supplied from the external power source during the shutdown and the restart flag is set.

本発明によれば、外部電源からの電力供給が停止していることを示している場合は、シャットダウンさせる際に再起動フラグをセットするため、電源制御部は、再起動フラグを参照することで電源投入を行って再起動させることができる。したがって、復電のタイミングに関わらず適切に再起動することができる。 According to the present invention, if it indicates that the power supply from the external power source has stopped, a restart flag is set when shutting down, so the power control unit can turn on the power and restart the device by referring to the restart flag. Therefore, it is possible to restart the device appropriately regardless of the timing of power recovery.

本発明の一実施形態にかかる監視装置を備えるシステムの概略構成図である。1 is a schematic configuration diagram of a system including a monitoring device according to an embodiment of the present invention. 図1に示された上位制御機器のブロック図である。FIG. 2 is a block diagram of a higher-level control device shown in FIG. 1 . 図2に示された上位制御機器の動作パターン1のタイミングチャートである。3 is a timing chart of an operation pattern 1 of the higher-level control device shown in FIG. 2 . 図2に示された上位制御機器の動作パターン2のタイミングチャートである。3 is a timing chart of an operation pattern 2 of the higher-level control device shown in FIG. 2 . 図2に示された上位制御機器の動作パターン3のタイミングチャートである。3 is a timing chart of an operation pattern 3 of the higher-level control device shown in FIG. 2 . 図2に示された上位制御機器の動作パターン4のタイミングチャートである。3 is a timing chart of an operation pattern 4 of the higher-level control device shown in FIG. 2 . 図2に示された上位制御機器の動作パターン5のタイミングチャートである。3 is a timing chart of an operation pattern 5 of the upper control device shown in FIG. 2 . 図2に示された上位制御機器のシャットダウン処理のフローチャートである。3 is a flowchart of a shutdown process of the higher-level control device shown in FIG. 2 . 図2に示された上位制御機器のシャットダウン終了後の動作のフローチャートである。3 is a flowchart of an operation after the end of shutdown of the higher-level control device shown in FIG. 2 .

本発明の一実施形態に係る監視装置を説明する。図1は、本実施形態にかかる監視装置を備える監視システムの概略構成図である。 A monitoring device according to one embodiment of the present invention will be described. Figure 1 is a schematic diagram of a monitoring system including a monitoring device according to this embodiment.

図1に示した監視システム100は、上位制御機器1と、クラウドサーバ10と、制御機器1_11、制御機器2_12、制御機器n_1nと、冷却装置1_21、冷却装置2_22、冷却装置n_2nと、を備えている。 The monitoring system 100 shown in FIG. 1 includes a higher-level control device 1, a cloud server 10, control device 1_11, control device 2_12, control device n_1n, cooling device 1_21, cooling device 2_22, and cooling device n_2n.

クラウドサーバ10と上位制御機器1とはネットワークN1で接続されている。ネットワークN1は有線でもよいし無線でもよい。また、上位制御機器1と制御機器1_11、制御機器2_12、制御機器n_1nとはネットワークN2で接続されている。ネットワークN2は、図1では所謂デイジーチェーン接続となっているがバス接続であってもよいし、無線で接続してもよい。 The cloud server 10 and the higher-level control device 1 are connected by a network N1. The network N1 may be wired or wireless. The higher-level control device 1 is connected to the control devices 1_11, 2_12, and n_1n by a network N2. Although the network N2 is connected in a so-called daisy chain manner in FIG. 1, it may be connected by a bus or may be connected wirelessly.

上位制御機器1は、後述する制御機器1_11、制御機器2_12、制御機器n_1nが収集した温度等の計測データをネットワークN2を介して受信し、蓄積する。そして、蓄積した計測データは、例えば1日1回等の所定のタイミングでクラウドサーバ10へ送信する。上位制御機器1の詳細については後述する。 The upper control device 1 receives and accumulates measurement data such as temperature collected by control device 1_11, control device 2_12, and control device n_1n (described later) via network N2. The accumulated measurement data is then transmitted to cloud server 10 at a predetermined timing, such as once a day. Details of the upper control device 1 will be described later.

クラウドサーバ10は、上位制御機器1から送信された計測データを蓄積する。 The cloud server 10 accumulates the measurement data sent from the higher-level control device 1.

制御機器1_11は、冷却装置1_21と接続されている。制御機器1_11は、冷却装置1_21で計測された温度等の計測データを収集し、ネットワークNを介して上位制御機器1へ送信する。制御機器2_12、制御機器n_1nも制御機器1_11と同様の構成であり、接続される冷却装置が異なるのみである。 Control device 1_11 is connected to cooling device 1_21. Control device 1_11 collects measurement data such as temperature measured by cooling device 1_21 and transmits it to higher-level control device 1 via network N. Control device 2_12 and control device n_1n have the same configuration as control device 1_11, and only the cooling device to which they are connected is different.

冷却装置1_21は、ショーケース等の冷蔵機器、冷凍機器といった冷凍サイクルシステムを有する装置である。冷却装置1_21は、ショーケース等の庫内の温度等を計測する計測手段を有し、計測手段により計測された計測データを制御機器1_11に出力する。冷却装置1_22、冷却装置n_2nも冷却装置1_21と同様の構成であり、接続される制御機器が異なるのみである。 The cooling device 1_21 is a device having a refrigeration cycle system, such as a refrigeration device or freezing device, such as a showcase. The cooling device 1_21 has a measuring means for measuring the temperature inside a storage unit such as a showcase, and outputs the measurement data measured by the measuring means to the control device 1_11. The cooling device 1_22 and the cooling device n_2n have the same configuration as the cooling device 1_21, and only the control device to which they are connected is different.

図2に上位制御機器1のブロック図を示す。上記制御機器1は、電源制御回路2と、UPS3と、不揮発性メモリ4と、制御部5と、通信部6、7と、タッチパネル8と、を備えている。上位制御機器1は、例えばFA(Factory Automation)用のパネルコンピュータで構成することができる。また、上記制御機器1は本実施形態にかかる監視装置として機能する。 Figure 2 shows a block diagram of the upper control device 1. The control device 1 includes a power supply control circuit 2, a UPS 3, a non-volatile memory 4, a control unit 5, communication units 6 and 7, and a touch panel 8. The upper control device 1 can be configured, for example, as a panel computer for FA (Factory Automation). The control device 1 also functions as a monitoring device according to this embodiment.

電源制御回路2は、例えば商用電源等の外部電源(AC100V)が供給されて、直流に変換後所定の電圧を内部の各ブロックに供給する。この外部電源は、UPS3以外の監視システム100の外部にあって電力を供給する電源である。また、外部電源が停電した場合は、UPS3からの電力供給に切り替えて内部の各ブロックに供給する。即ち、電源制御回路2は、外部電源またはUPS3から電力供給を受けて、内部へ電力供給する電源制御部として機能する。また、電源制御回路2は、電力の供給元が外部電源かUPS3かを示す電源状態フラグ42を電力供給状態に応じてセットする。 The power supply control circuit 2 is supplied with an external power source (AC 100V) such as a commercial power source, which is converted to DC and then supplies a predetermined voltage to each internal block. This external power source is a power source that is external to the monitoring system 100 other than the UPS 3 and supplies power. Furthermore, in the event of a power outage, power supply is switched to that from the UPS 3 and supplied to each internal block. In other words, the power supply control circuit 2 functions as a power supply control unit that receives power from the external power source or the UPS 3 and supplies power to the inside. Furthermore, the power supply control circuit 2 sets a power supply status flag 42, which indicates whether the power source is the external power source or the UPS 3, depending on the power supply status.

UPS3は、周知の無停電電源装置であり、外部電源から電力供給されているときは内蔵バッテリが充電される。一方で外部電源が停電した場合は、内蔵バッテリにより電源制御回路2を介して上記制御機器1の内部へ電力供給する。なお、本実施形態では、UPS3は上位制御機器1に内蔵されているが、上位制御機器1の外付けとしてもよい。 UPS3 is a well-known uninterruptible power supply device, and when power is supplied from an external power source, the built-in battery is charged. On the other hand, when the external power source is interrupted, the built-in battery supplies power to the inside of the control device 1 via the power supply control circuit 2. Note that in this embodiment, the UPS3 is built into the upper control device 1, but it may also be external to the upper control device 1.

不揮発性メモリ4は、OS(オペレーティングシステム)43、プログラム44、計測データ45等が格納されている。OS43は、周知のようにコンピュータにおいて基本的な機能を担うソフトウェア(コンピュータプログラム)である。本実施形態では、OS43は、後述する制御部5を構成するマイクロプロセッサ上で動作する。 The non-volatile memory 4 stores an OS (operating system) 43, programs 44, measurement data 45, etc. As is well known, the OS 43 is software (computer programs) that performs basic functions in a computer. In this embodiment, the OS 43 runs on a microprocessor that constitutes the control unit 5, which will be described later.

プログラム44は、通信部6が受信した計測データ45に基づいて冷却装置1_21等を監視するコンピュータプログラムである。プログラム44は、OS43と同様に制御部5を構成するマイクロプロセッサ上で動作する。プログラム44は、制御機器1_11等から通信部6が受信した計測データ45を不揮発性メモリ4に格納したり、不揮発性メモリ4に蓄積した計測データ45を通信部7にクラウドサーバ10へ送信させるといった機能を有する。また、プログラム44は、計測データ45に基づいて各種警報等を通知してもよい。 The program 44 is a computer program that monitors the cooling device 1_21, etc., based on the measurement data 45 received by the communication unit 6. The program 44 runs on the microprocessor that constitutes the control unit 5, similar to the OS 43. The program 44 has the function of storing the measurement data 45 received by the communication unit 6 from the control device 1_11, etc., in the non-volatile memory 4, and causing the communication unit 7 to transmit the measurement data 45 stored in the non-volatile memory 4 to the cloud server 10. The program 44 may also notify various types of warnings, etc., based on the measurement data 45.

計測データ45は、上記したように制御機器1_11等から受信した温度等のデータであり、クラウドサーバ10へ送信されるまで一時的に不揮発性メモリ4に蓄積される。 The measurement data 45 is data such as temperature received from the control device 1_11, etc., as described above, and is temporarily stored in the non-volatile memory 4 until it is sent to the cloud server 10.

また、不揮発性メモリ4には、再起動フラグ41と、電源状態フラグ42と、が設定されている。再起動フラグ41は、OS43のシャットダウン後に自装置である上位制御機器1の再起動の要否を示すフラグであり、後述する監視プロセス51によりセットされる。電源状態フラグ42は、電力の供給元が外部電源かUPS3かを示すフラグであり、電源制御回路2によりセットされる。 The non-volatile memory 4 also has a restart flag 41 and a power status flag 42 set. The restart flag 41 is a flag indicating whether the host control device 1, which is the device itself, needs to be restarted after the OS 43 is shut down, and is set by a monitoring process 51, which will be described later. The power status flag 42 is a flag indicating whether the power source is an external power source or a UPS 3, and is set by the power control circuit 2.

制御部5は、上位制御機器1の全体制御を司る。制御部5は、例えばマイクロプロセッサやRAM(Random Access Memory)等を有する。制御部5は、上記したOS43やプログラム44等が実行される。また、制御部5は、監視プロセス51が実行される。 The control unit 5 is responsible for the overall control of the higher-level control device 1. The control unit 5 has, for example, a microprocessor and a RAM (Random Access Memory). The control unit 5 executes the above-mentioned OS 43 and program 44. The control unit 5 also executes a monitoring process 51.

監視プロセス51は、OS43の一部または独立したコンピュータプログラムとして構成されている。即ち、監視プロセス51は、コンピュータプログラムの動作状態を監視する監視プログラムとして機能する。監視プロセス51は、OS43やプログラム44の動作状態を監視するとともに、OS43のシャットダウンやプログラム44の終了及び再起動等の指示等を行う。 The monitoring process 51 is configured as part of the OS 43 or as an independent computer program. That is, the monitoring process 51 functions as a monitoring program that monitors the operating status of computer programs. The monitoring process 51 monitors the operating status of the OS 43 and the program 44, and issues instructions such as shutting down the OS 43 and terminating and restarting the program 44.

通信部6は、ネットワークN2と接続され、制御機器1_11、制御機器2_12、制御機器n_1n、つまりネットワークN2で接続された複数の冷却装置と通信する。本実施形態では、制御機器1_11等は、冷却装置2_21等と別体に構成されているが、一体であってもよく、実質的には、制御機器1_11等は、冷却装置2_21等の一部と見なすことができる。通信部6は、上記した計測データ45として不揮発性メモリ4に格納するデータを受信する。 The communication unit 6 is connected to the network N2 and communicates with the control device 1_11, the control device 2_12, and the control device n_1n, that is, the multiple cooling devices connected via the network N2. In this embodiment, the control device 1_11, etc. are configured separately from the cooling device 2_21, etc., but they may be integrated, and essentially the control device 1_11, etc. can be considered as part of the cooling device 2_21, etc. The communication unit 6 receives data to be stored in the non-volatile memory 4 as the above-mentioned measurement data 45.

通信部7は、ネットワークN1と接続され、クラウドサーバ10と通信する。通信部7は、不揮発性メモリ4に蓄積された計測データ45等をクラウドサーバ10に送信する。 The communication unit 7 is connected to the network N1 and communicates with the cloud server 10. The communication unit 7 transmits the measurement data 45 and the like stored in the non-volatile memory 4 to the cloud server 10.

タッチパネル8は、液晶ディスプレイ等の表示装置表面に重ねられた周知の入力装置である。タッチパネル8は、操作者の手指等で画面をタッチすることで各種操作を行う。また、タッチパネル8は、プログラム44が発した警報等を表示してもよい。なお、入力装置としては、タッチパネル8に代えて、キーボードやマウスを備えるようにしてもよい。 The touch panel 8 is a well-known input device that is overlaid on the surface of a display device such as a liquid crystal display. The touch panel 8 allows the operator to perform various operations by touching the screen with the operator's fingers, etc. The touch panel 8 may also display alarms and the like issued by the program 44. Note that instead of the touch panel 8, a keyboard or a mouse may also be provided as an input device.

次に、上述した構成の上位制御機器1の動作について図3~図7を参照して説明する。図3は、動作パターン1としてシャットダウン終了後に復電した場合を示したタイミングチャートである。図3~図7においては、電源状態と、電源状態フラグ42と、アプリ終了指令と、再起動フラグ41と、シャットダウンコマンドと、機器動作と、が表示されている。 Next, the operation of the higher-level control device 1 configured as described above will be described with reference to Figs. 3 to 7. Fig. 3 is a timing chart showing a case where power is restored after a shutdown is completed as operation pattern 1. Figs. 3 to 7 show the power state, power state flag 42, an application termination command, a restart flag 41, a shutdown command, and device operation.

電源状態は、上位制御機器1に対する電力供給元を示すものであり、AC(外部電源)の場合はHigh、バッテリ(UPS3)の場合はLowとしている。アプリ終了指令は、監視プロセス51がプログラム44に対して終了を指示する指令である。シャットダウンコマンドは、監視プロセス51がOS43に対してシャットダウンを指示する指令である。機器動作は、上位制御機器1の動作状態を示すものであり、例えば上位制御機器1の状態遷移として制御部5等で保持されるものである。 The power supply state indicates the source of power supply to the upper control device 1, and is High for AC (external power source) and Low for battery (UPS 3). The application termination command is a command issued by the monitoring process 51 to the program 44 to terminate. The shutdown command is a command issued by the monitoring process 51 to the OS 43 to shut down. The device operation indicates the operating state of the upper control device 1, and is held in the control unit 5, for example, as a state transition of the upper control device 1.

図3において、時刻t11に外部電源からの電力供給が停止し、停電が発生したとする。すると、電源状態は外部電源からバッテリ(UPS3)に切り替わる。そして、上位制御機器1はUPS3からの電力供給により動作が継続する。時刻t11では、電源制御回路2が電源状態に合わせて電源状態フラグ42を“0”から“1”に変化させる。 In FIG. 3, assume that at time t11, the power supply from the external power source stops and a power outage occurs. Then, the power source state switches from the external power source to the battery (UPS3). The higher-level control device 1 continues to operate with the power supply from the UPS3. At time t11, the power supply control circuit 2 changes the power source state flag 42 from "0" to "1" in accordance with the power source state.

次に、時刻t11から所定時間経過した時刻t12に、監視プロセス51はプログラム44を強制終了させる指令を出力する(図中(1))。プログラム44の強制終了指令出力後は、監視プロセス51はプログラム44にかかるプロセスの終了を待つ(図中(2))。ここで、時刻t11~t12の間は瞬停対策として設定された期間である。瞬停対策については動作パターン5で説明する。 Next, at time t12, a predetermined time after time t11, the monitoring process 51 outputs a command to forcibly terminate program 44 ((1) in the figure). After outputting the command to forcibly terminate program 44, the monitoring process 51 waits for the process related to program 44 to end ((2) in the figure). Here, the period from time t11 to t12 is a period set as a countermeasure against momentary power interruption. Countermeasures against momentary power interruption will be explained in operation pattern 5.

即ち、監視プロセス51(監視プログラム)は、電源状態フラグ42がUPS3から電力供給されていることを示す状態に変化した場合は、当該変化から所定時間経過後にプログラム44の終了指示を行っている。 In other words, when the power supply status flag 42 changes to a state indicating that power is being supplied from the UPS 3, the monitoring process 51 (monitoring program) issues an instruction to terminate the program 44 a predetermined time after the change.

次に、監視プロセス51は、時刻t13でプログラム44にかかるプロセスの終了が検出されると、再起動フラグ41を “1”にする(セットする)。そして、再起動フラグ41のセットとともに、監視プロセス51は、シャットダウンコマンドを出力し、OS43のシャットダウンを行う。すると、時刻t14で機器動作が「稼働中」から「シャットダウン」に変化する。そして、シャットダウンが終了すると上位制御機器1の電源が落ちて機器動作は「停止」に変化する。 Next, when the monitoring process 51 detects the end of the process related to the program 44 at time t13, it sets the restart flag 41 to "1". Then, together with setting the restart flag 41, the monitoring process 51 outputs a shutdown command and shuts down the OS 43. Then, at time t14, the device operation changes from "running" to "shutdown". Then, when the shutdown is complete, the power to the higher-level control device 1 is turned off and the device operation changes to "stopped".

即ち、監視プロセス51(監視プログラム)は、電源状態フラグ42がUPS3から電力供給されていることを示している場合は、プログラム44を終了させ、プログラム44終了後シャットダウンを実行するとともに再起動フラグをセットしている。 That is, if the power supply status flag 42 indicates that power is being supplied from the UPS 3, the monitoring process 51 (monitoring program) terminates the program 44, and after the program 44 is terminated, it executes a shutdown and sets a restart flag.

次に、上位制御機器1が停止後の時刻t15に外部電源からの電力供給が復帰(復電)すると、電源制御回路2は、電源状態フラグ42を“1”から“0”に変化させるとともに、再起動フラグ41を参照する。時刻t15では再起動フラグ41は“1”であるので、電源制御回路2は、再起動を行い上位制御機器1の電源を投入してOS43を起動させるとともに、再起動フラグ41を“0”にする(クリアする)。すると、機器動作は「起動」に変化する。 Next, when the power supply from the external power source is restored (power restored) at time t15 after the higher-level control device 1 has been stopped, the power supply control circuit 2 changes the power supply status flag 42 from "1" to "0" and refers to the restart flag 41. Since the restart flag 41 is "1" at time t15, the power supply control circuit 2 performs a restart, turns on the power supply of the higher-level control device 1, starts up the OS 43, and sets (clears) the restart flag 41 to "0". Then, the device operation changes to "starting up".

次に、動作パターン2としてシャットダウン中に復電した場合を図4のタイミングチャートを参照して説明する。図4において、時刻t21~t24までは、図3の時刻t11~t14と同様である。そして、シャットダウン中の時刻t25に復電すると、電源制御回路2は、電源状態フラグ42を“1”から“0”に変化させる。但し、時刻t25は、シャットダウン中であり、機器動作がシャットダウン状態であるので、直ちに再起動等は行わず、シャットダウン終了を待つ。 Next, the case where power is restored during shutdown as operation pattern 2 will be described with reference to the timing chart of Figure 4. In Figure 4, times t21 to t24 are the same as times t11 to t14 in Figure 3. Then, when power is restored at time t25 during shutdown, the power supply control circuit 2 changes the power supply state flag 42 from "1" to "0". However, since shutdown is in progress at time t25 and the device operation is in a shutdown state, no restart is performed immediately and the device waits for the shutdown to finish.

次に、時刻t26で電源制御回路2はシャットダウン終了を検出すると、再起動フラグ41参照する。時刻t26では再起動フラグ41は“1”であるので、電源制御回路2は、再起動を行い上位制御機器1の電源を投入してOS43を起動させるとともに、再起動フラグ41を“0”にする。すると、機器動作は「再起動」に変化する。その後再起動が終了すると、機器動作は「稼働中」となる。 Next, at time t26, when the power supply control circuit 2 detects the end of the shutdown, it refers to the restart flag 41. Since the restart flag 41 is "1" at time t26, the power supply control circuit 2 performs a restart, turns on the power of the higher-level control device 1, starts up the OS 43, and sets the restart flag 41 to "0". Then, the device operation changes to "restarting". After that, when the restart is completed, the device operation becomes "operating".

即ち、電源制御回路2(電源制御部)は、シャットダウン中に電源状態フラグ42が外部電源から電力供給されていることを示す状態に変化した場合かつ再起動フラグ41がセットされている場合は、シャットダウン終了後、上位制御機器1を再起動している。 That is, if the power status flag 42 changes to a state indicating that power is being supplied from an external power source during shutdown and the restart flag 41 is set, the power control circuit 2 (power control unit) restarts the higher-level control device 1 after shutdown is completed.

次に、動作パターン3としてプロセス終了待ち中に復電した場合を図5のタイミングチャートを参照して説明する。図5において、時刻t31~t32までは、図3の時刻t11~t12と同様である。そして、プロセス終了中の時刻t33に復電すると、電源制御回路2は、電源状態フラグ42を“1”から“0”に変化させる。但し、時刻t33は、プロセス終了中であるので、その完了を待つ。 Next, referring to the timing chart in Figure 5, a case where power is restored while waiting for a process to finish will be described as operation pattern 3. In Figure 5, times t31 to t32 are the same as times t11 to t12 in Figure 3. Then, when power is restored at time t33 while the process is finishing, the power supply control circuit 2 changes the power supply state flag 42 from "1" to "0". However, since the process is finishing at time t33, the process will wait for its completion.

次に、時刻t34で、監視プロセス51がプロセスの終了を検出すると、アプリ(プログラム44)を再起動する。すると、機器状態は「プロセス再起動」に変化し、再起動が完了すると「稼働中」に変化する。つまり、図5の動作パターン3ではOS43の再起動を伴わない。 Next, at time t34, when the monitoring process 51 detects the end of the process, it restarts the application (program 44). Then, the device status changes to "process restart", and when the restart is complete, it changes to "operating". In other words, operation pattern 3 in FIG. 5 does not involve a restart of the OS 43.

即ち、監視プロセス51(監視プログラム)は、プログラム44の終了中に電源状態フラグ42が外部電源から電力供給されていることを示す状態に変化した場合は、プログラム44の終了後にプログラム44の再起動をしている。 That is, if the power status flag 42 changes to a state indicating that power is being supplied from an external power source while the program 44 is terminating, the monitoring process 51 (monitoring program) restarts the program 44 after the program 44 is terminated.

次に、動作パターン4として強制終了指令をセット中に復電した場合を図6のタイミングチャートを参照して説明する。図6において、時刻t41~t42までは、図3の時刻t11~t12と同様である。そして、強制終了指令のセット中(出力中)の時刻t43に復電すると、電源制御回路2は、電源状態フラグ42を“1”から“0”に変化させる。そして、監視プロセス51は、プログラム44を再起動する。図6においては、強制終了指令の出力中であるので、プロセスの終了を待たずに直ちに再起動させる。すると、機器状態はプロセス再起動に変化し、再起動が完了すると稼働中に変化する。つまり、図6の動作パターン4もOS43の再起動を伴わない。 Next, the case where power is restored while a forced termination command is set will be described as operation pattern 4 with reference to the timing chart of FIG. 6. In FIG. 6, times t41 to t42 are the same as times t11 to t12 in FIG. 3. Then, when power is restored at time t43 while a forced termination command is set (output), the power supply control circuit 2 changes the power supply status flag 42 from "1" to "0". Then, the monitoring process 51 restarts the program 44. In FIG. 6, since a forced termination command is being output, the program is restarted immediately without waiting for the process to end. Then, the device status changes to process restart, and when the restart is complete, it changes to operating. In other words, operation pattern 4 in FIG. 6 does not involve a restart of the OS 43 either.

次に、動作パターン5として瞬停対策期間内(強制終了指令をセットする前)に復電した場合を図7のタイミングチャートを参照して説明する。図7において、時刻t51は、図3の時刻t11と同様である。そして、瞬停対策期間内である時刻t51から所定時間経過前のt52に復電すると、監視プロセス51は、所定時間経過前であるのでプログラム44の強制終了指令を出力しない。したがって、プログラム44も含め上位制御機器1は動作を継続する。瞬停のような瞬間的な停電の場合は、極めて短時間に外部電源が復帰するため、プログラム44やOS43の再起動をするまでもない。そこで、図7等に示した瞬停対策期間を設定し、不要な再起動を防止している。瞬停対策期間の所定時間は例えば6秒程度とすることができるが適宜変更してもよい。 Next, the case where power is restored within the instantaneous power failure countermeasure period (before the forced termination command is set) as operation pattern 5 will be described with reference to the timing chart of FIG. 7. In FIG. 7, time t51 is the same as time t11 in FIG. 3. When power is restored at t52, a predetermined time before the time t51, which is within the instantaneous power failure countermeasure period, the monitoring process 51 does not output a forced termination command for the program 44 because the predetermined time has not yet elapsed. Therefore, the upper control device 1 including the program 44 continues to operate. In the case of a momentary power failure such as a momentary power failure, the external power supply is restored in an extremely short time, so there is no need to restart the program 44 or the OS 43. Therefore, the instantaneous power failure countermeasure period shown in FIG. 7 is set to prevent unnecessary restarts. The predetermined time for the instantaneous power failure countermeasure period can be, for example, about 6 seconds, but may be changed as appropriate.

即ち、監視プロセス51(監視プログラム)は、電源状態フラグ42がUPS3から電力供給されていることを示す状態に変化した後に、所定時間内に電源状態フラグ42が外部電源から電力供給されていることを示す状態に変化した場合は、プログラム44の終了指示を行わないようにしている。 In other words, if the power supply status flag 42 changes to a state indicating that power is being supplied from an external power source within a predetermined time after the power supply status flag 42 changes to a state indicating that power is being supplied from the UPS 3, the monitoring process 51 (monitoring program) does not instruct the program 44 to terminate.

次に、上述した構成の上位制御機器1のシャットダウン処理について図8及び図9のフローチャートを参照して説明する。 Next, the shutdown process of the higher-level control device 1 having the above-described configuration will be described with reference to the flowcharts in Figures 8 and 9.

まず、監視プロセス51は、電源状態フラグ42がAC電源(外部電源)を示しているか判定する(ステップS1)。ステップS1の判定の結果、AC電源である場合は(ステップS1:Yes)、瞬停タイマをクリアする(ステップS2)。瞬停タイマとは、上記した瞬停対策期間である所定時間を計時するタイマであり、例えば制御部5が有し、監視プロセス51が動作させる。 First, the monitoring process 51 determines whether the power supply status flag 42 indicates an AC power supply (external power supply) (step S1). If the result of the determination in step S1 is that the power supply is an AC power supply (step S1: Yes), the instantaneous power interruption timer is cleared (step S2). The instantaneous power interruption timer is a timer that measures a predetermined time period, which is the instantaneous power interruption countermeasure period described above, and is provided in, for example, the control unit 5 and operated by the monitoring process 51.

次に、監視プロセス51は、自身が有する変数である電源ステータスに「AC」を代入する。つまり、監視プロセス51は現在外部電源から電力供給されていると認識する。 Next, the monitoring process 51 assigns "AC" to its own variable, the power supply status. In other words, the monitoring process 51 recognizes that power is currently being supplied from an external power source.

一方、ステップS1の判定の結果、AC電源でない場合は(ステップS1:No)、監視プロセス51は、瞬停タイマがタイムアップ(UP)したか判定する。つまり、停電発生(UPS3から電力供給開始後)後所定時間経過したか判定している。ステップS4の判定の結果、瞬停タイマがUPした場合は(ステップS4:Yes)、監視プロセス51は、停電確定として電源ステータスに「UPS」を代入する(ステップS5)。つまり、監視プロセス51は現在UPS3から電力供給されていると認識する。また、ステップS4の判定の結果、瞬停タイマがUPしていない場合は(ステップS4:No)、監視プロセス51は、瞬停タイマを更新する(ステップS6)。 On the other hand, if the result of the determination in step S1 is that the power source is not an AC power source (step S1: No), the monitoring process 51 determines whether the momentary power interruption timer has timed out (UP). In other words, it determines whether a predetermined time has elapsed since the occurrence of a power outage (after the UPS 3 starts supplying power). If the result of the determination in step S4 is that the momentary power interruption timer has timed out (step S4: Yes), the monitoring process 51 assigns "UPS" to the power supply status as a confirmed power outage (step S5). In other words, the monitoring process 51 recognizes that power is currently being supplied from the UPS 3. Also, if the result of the determination in step S4 is that the momentary power interruption timer has not timed out (step S4: No), the monitoring process 51 updates the momentary power interruption timer (step S6).

次に、監視プロセス51は、電源ステータスを参照して「UPS」であるか判定する(ステップS7)。ステップS7の判定の結果、電源ステータスが「UPS」である場合は(ステップS7:Yes)、プログラム44に強制終了を通知(指示)する(ステップS8)。なお、この強制終了通知は、電源ステータスが「AC」から「UPS」に変化して初めてステップS8が実行された1回のみとする。これは、本ステップは、ループによって複数回実行される場合があるので、何度も強制終了通知を行わないようにするためである。 Next, the monitoring process 51 refers to the power supply status and determines whether it is "UPS" (step S7). If the result of the determination in step S7 is that the power supply status is "UPS" (step S7: Yes), the monitoring process 51 notifies (instructs) the program 44 to perform a forced termination (step S8). Note that this forced termination notification is only issued once, when step S8 is executed for the first time after the power supply status changes from "AC" to "UPS". This is because this step may be executed multiple times in a loop, and therefore the forced termination notification is not issued multiple times.

次に、監視プロセス51は、全プロセスが終了したか判定する(ステップS9)。全プロセスとは、プログラム44にかかるプロセスの全てである。プログラム44が複数のプロセスからなる場合は、プログラム44を終了させる場合は複数のプロセスを全て終了させる必要があるし、プログラム44が複数のプログラムからなる場合は、複数のプログラムそれぞれの全プロセスを終了させる必要がある。 Next, the monitoring process 51 determines whether all processes have been terminated (step S9). All processes are all processes related to the program 44. If the program 44 is made up of multiple processes, all of the multiple processes must be terminated when terminating the program 44, and if the program 44 is made up of multiple programs, all of the processes for each of the multiple programs must be terminated.

次に、監視プロセス51は、再起動フラグ41をセットし(ステップS10)、OSシャットダウンコマンドを実行する(ステップS11)。すると、OS43がシャットダウンし、上位制御機器1の電源が落ちる。 Next, the monitoring process 51 sets the restart flag 41 (step S10) and executes an OS shutdown command (step S11). This causes the OS 43 to shut down, and the power to the higher-level control device 1 is turned off.

一方、ステップS7の判定の結果、電源ステータスが「AC」である場合は(ステップS7:No)、監視プロセス51は、電源ステータスが「UPS」から「AC」に変化した直後であるか判定する(ステップS12)。ステップS12では、電源ステータスが「UPS」から「AC」に変化した直後、つまり、復電を検出したか判定している。 On the other hand, if the result of the determination in step S7 is that the power supply status is "AC" (step S7: No), the monitoring process 51 determines whether the power supply status has just changed from "UPS" to "AC" (step S12). In step S12, it is determined whether the power supply status has just changed from "UPS" to "AC", that is, whether a power recovery has been detected.

ステップS12の判定の結果、復電したことが検出された場合は(ステップS12:Yes)、監視プロセス51は、プログラム44を再起動する(ステップS13)。ステップS13においては、プロセス終了中の場合は終了後再起動する。 If it is determined in step S12 that power has been restored (step S12: Yes), the monitoring process 51 restarts the program 44 (step S13). In step S13, if the process is currently terminating, it is restarted after terminating.

ステップS11でOSシャットダウンコマンドを実行し、シャットダウン終了後は、図9のフローチャートを実行する。まず、電源制御回路2は、外部電源から電力供給されているか判定する(ステップS21)。ステップS21の判定の結果、UPS3から電力供給されている場合は(ステップS21:No)、例えば作業者等が電源をOFFした、あるいは停電中であるとして、電源制御回路2は、そのままシャットダウン状態を継続させ上位制御機器1を起動しない。 In step S11, an OS shutdown command is executed, and after the shutdown is completed, the flowchart in FIG. 9 is executed. First, the power supply control circuit 2 determines whether power is being supplied from an external power supply (step S21). If the result of the determination in step S21 is that power is being supplied from the UPS 3 (step S21: No), the power supply control circuit 2 determines that, for example, an operator has turned off the power or there is a power outage, and continues the shutdown state and does not start up the higher-level control device 1.

一方、ステップS21の判定の結果、外部電源から電力供給されている場合は(ステップS21:Yes)、電源制御回路2は、再起動フラグ41がセットされているか判定する(ステップS22)。ステップS22の判定の結果、再起動フラグ41がセットされていない場合は(ステップS22:No)、例えば作業者等が手動でアプリ(プログラム44)を終了操作したとして、電源制御回路2は、上位制御機器1の再起動は行わない。 On the other hand, if the result of the determination in step S21 is that power is being supplied from an external power source (step S21: Yes), the power supply control circuit 2 determines whether the restart flag 41 is set (step S22). If the result of the determination in step S22 is that the restart flag 41 is not set (step S22: No), the power supply control circuit 2 does not restart the higher-level control device 1, assuming that, for example, an operator or the like has manually terminated the app (program 44).

次に、ステップS22の判定の結果、再起動フラグ41がセットされている場合は(ステップS22:Yes)、再起動フラグ41をクリアし(ステップS23)、電源を投入してOS43を再起動させる(ステップS24)。OS43が再起動すると監視プロセス51も起動し、アプリ(プログラム44)も起動する(ステップS25)。そして、アプリ稼働中へ移行する。 Next, if the result of the determination in step S22 is that the restart flag 41 is set (step S22: Yes), the restart flag 41 is cleared (step S23), and the power is turned on to restart the OS 43 (step S24). When the OS 43 restarts, the monitoring process 51 also starts, and the application (program 44) also starts (step S25). Then, the application is transitioned to being in operation.

上記フローチャートの動作を図3~図7で説明する。図3の場合は、停電前は、ステップS1、S2、S3、S7、S12、S1のループを繰り返す、停電して瞬停対策期間中は、ステップS1、S4、S6、S7、S12、S1のループを繰り返す。ここで、瞬停対策期間中にステップS7からS12へ遷移するのは、電源状態フラグ42がバッテリであっても、電源ステータスはステップS5未実行によりUPSに変化していないためである。瞬停対策期間が経過すると、ステップS1、S4、S5、S7、S8、S9、S1のループを繰り返す。全プロセスが終了すると、ステップS1、S4、S5、S7、S8、S9、S10、S11と実行される。図3のシャットダウン後は、復電するまではステップS21を繰り返し、復電後は、ステップS21~S25を実行する。 The operation of the above flowchart will be explained with reference to Figs. 3 to 7. In the case of Fig. 3, before a power outage, a loop of steps S1, S2, S3, S7, S12, and S1 is repeated, and during the power outage countermeasure period, a loop of steps S1, S4, S6, S7, S12, and S1 is repeated. Here, the reason for the transition from step S7 to S12 during the power outage countermeasure period is that even if the power supply status flag 42 is battery, the power supply status has not changed to UPS because step S5 has not been executed. After the power outage countermeasure period has elapsed, a loop of steps S1, S4, S5, S7, S8, S9, and S1 is repeated. When all processes are completed, steps S1, S4, S5, S7, S8, S9, S10, and S11 are executed. After the shutdown in Fig. 3, step S21 is repeated until power is restored, and after power is restored, steps S21 to S25 are executed.

図4の場合は、シャットダウンまでは図3と同じである。シャットダウン後は、既に復電しているので、ステップS21~S25を順次実行する。 In the case of Figure 4, the process up to shutdown is the same as in Figure 3. After shutdown, power has already been restored, so steps S21 to S25 are executed in sequence.

図5、図6の場合は、瞬停対策期間中までは図3と同じである。瞬停対策期間が経過すると、ステップS1、S4、S5、S7、S8、S9、S1のループを繰り返すが、そのループの最中に復電すると、ステップS1、S2、S3、S7、S12、S13、S1と遷移する。 In the cases of Figures 5 and 6, the process is the same as Figure 3 up until the momentary power failure countermeasure period. Once the momentary power failure countermeasure period has elapsed, the loop of steps S1, S4, S5, S7, S8, S9, and S1 is repeated, but if power is restored during this loop, the process transitions to steps S1, S2, S3, S7, S12, S13, and S1.

図7の場合は、停電前は図3と同じである。停電して瞬停対策期間中は、ステップS1、S4、S6、S7、S12、S1のループを繰り返すが、その最中に復電すると、ステップS1、S2、S3、S7、S12、S1の停電前のループに戻る。 In the case of Figure 7, the state before the power outage is the same as Figure 3. During the period of countermeasures against momentary power outages, the loop of steps S1, S4, S6, S7, S12, and S1 is repeated, but if power is restored during this period, the loop returns to the state before the power outage, which is steps S1, S2, S3, S7, S12, and S1.

本実施形態によれば、上位制御機器1は、外部電源またはUPS3から電力供給を受けて、内部へ電力供給する電源制御回路2と、ネットワークN2で接続された複数の制御機器1_11等と通信する通信部6と、通信部6から受信した温度を含む計測データに基づいて複数の制御機器1_11等を監視するプログラム44及び、プログラム44の動作状態を監視する監視プロセス51が動作する制御部5と、を備えている。さらに、上位制御機器1は、電力の供給元が外部電源かUPSかを示す電源状態フラグ42と、シャットダウン後に上位制御機器1の再起動の要否を示す再起動フラグ41と、を備えている。そして、監視プロセス51は、電源状態フラグ42がUPS3から電力供給されていることを示している場合は、プログラム44を終了させ、プログラム44終了後シャットダウンを実行するとともに再起動フラグ41をセットする。そして、電源制御回路2は、シャットダウン中に電源状態フラグ42が外部電源から電力供給されていることを示す状態に変化した場合かつ再起動フラグ41がセットされている場合は、シャットダウン終了後、上位制御機器1を再起動する。 According to this embodiment, the upper control device 1 includes a power supply control circuit 2 that receives power from an external power source or a UPS 3 and supplies power to the inside, a communication unit 6 that communicates with a plurality of control devices 1_11, etc. connected via a network N2, a program 44 that monitors the plurality of control devices 1_11, etc. based on measurement data including temperature received from the communication unit 6, and a control unit 5 in which a monitoring process 51 that monitors the operating state of the program 44 operates. Furthermore, the upper control device 1 includes a power supply status flag 42 that indicates whether the power source is an external power source or a UPS, and a restart flag 41 that indicates whether the upper control device 1 needs to be restarted after shutdown. If the power supply status flag 42 indicates that power is being supplied from the UPS 3, the monitoring process 51 ends the program 44, executes shutdown after the program 44 ends, and sets the restart flag 41. If the power supply status flag 42 changes to a state indicating that power is being supplied from an external power source during shutdown and the restart flag 41 is set, the power supply control circuit 2 restarts the upper control device 1 after shutdown ends.

上位制御機器1を上記のように構成することにより、外部電源からの電力供給が停止していることを示している場合は、シャットダウンさせる際に再起動フラグ41をセットするため、電源制御回路2は、再起動フラグ41を参照することで電源投入を行って再起動させることができる。したがって、復電のタイミングに関わらず適切に再起動することができる。 By configuring the higher-level control device 1 as described above, if it indicates that the power supply from the external power source has stopped, the restart flag 41 is set when shutting down, so the power supply control circuit 2 can turn on the power and restart it by referring to the restart flag 41. Therefore, it can be restarted appropriately regardless of the timing of power recovery.

また、監視プログラム51は、プログラム44の終了中に電源状態フラグ42が外部電源から電力供給されていることを示す状態に変化した場合は、プログラム44の終了後にプログラム44の再起動をしている。このようにすることにより、プログラム44が終了中に復電した場合は、シャットダウンまで行う必要が無く、短時間で稼働状態に復帰することができる。 In addition, if the power status flag 42 changes to a state indicating that power is being supplied from an external power source while the program 44 is terminating, the monitoring program 51 restarts the program 44 after the program 44 is terminated. In this way, if power is restored while the program 44 is terminating, it is not necessary to perform a shutdown, and the operating state can be restored in a short time.

また、監視プログラム51は、電源状態フラグ42がUPS3から電力供給されていることを示す状態に変化した場合は、当該変化から所定時間経過後にプログラム44の終了指示を行っている。このようにすることにより、瞬停ではない停電であることを確定させてからプログラム44の再起動等を実行することができる。 In addition, when the power supply status flag 42 changes to a state indicating that power is being supplied from the UPS 3, the monitoring program 51 issues an instruction to terminate the program 44 a predetermined time after the change. In this way, it is possible to determine that the power outage is not a momentary power outage, and then restart the program 44, etc.

また、監視プログラム51は、電源状態フラグ42がUPS3から電力供給されていることを示す状態に変化した後に、所定時間内に電源状態フラグ42が外部電源から電力供給されていることを示す状態に変化した場合は、プログラム44の終了指示を行わない。このようにすることにより、瞬停が発生した際に、プログラム44の再起動等を行う必要が無く、稼働状態を維持することができる。 In addition, if the power supply status flag 42 changes to a state indicating that power is being supplied from an external power source within a predetermined time after the power supply status flag 42 changes to a state indicating that power is being supplied from the UPS 3, the monitoring program 51 does not instruct the program 44 to terminate. In this way, when a momentary power interruption occurs, there is no need to restart the program 44, and the operating state can be maintained.

なお、本発明は上記実施形態に限定されるものではない。即ち、当業者は、従来公知の知見に従い、本発明の骨子を逸脱しない範囲で種々変形して実施することができる。かかる変形によってもなお本発明の監視装置の構成を具備する限り、勿論、本発明の範疇に含まれるものである。 The present invention is not limited to the above-described embodiment. In other words, a person skilled in the art can implement the present invention by modifying it in various ways in accordance with conventional knowledge without departing from the gist of the present invention. As long as such modifications still include the configuration of the monitoring device of the present invention, they are of course included in the scope of the present invention.

1 上位制御機器(監視装置)
2 電源制御回路(電源制御部)
3 UPS
4 不揮発性メモリ
41 再起動フラグ
42 電源状態フラグ
44 プログラム(コンピュータプログラム)
5 制御部
51 監視プロセス51(監視プログラム)
6 通信部
11 制御機器(冷却装置)
12 制御機器(冷却装置)
1n 制御機器(冷却装置)
N2 ネットワーク
1. Upper control device (monitoring device)
2 Power supply control circuit (power supply control unit)
3. UPS
4 Non-volatile memory 41 Restart flag 42 Power status flag 44 Program (computer program)
5 Control unit 51 Monitoring process 51 (monitoring program)
6 Communication unit 11 Control device (cooling device)
12 Control equipment (cooling device)
1n Control device (cooling device)
N2 Network

Claims (4)

外部電源または無停電電源装置から電力供給を受けて、内部へ電力供給する電源制御部と、
ネットワークで接続された複数の冷却装置と通信する通信部と、
前記通信部が前記複数の冷却装置から受信した少なくとも温度を含む情報に基づいて前記複数の冷却装置を監視するコンピュータプログラム及び、前記コンピュータプログラムの動作状態を監視する監視プログラムが動作する制御部と、
電力の供給元が前記外部電源か前記無停電電源装置かを示す電源状態フラグと、
シャットダウン後に自装置の再起動の要否を示す再起動フラグと、
を備え、
前記監視プログラムは、前記電源状態フラグが前記無停電電源装置から電力供給されていることを示している場合は、前記コンピュータプログラムを終了させ、前記コンピュータプログラム終了後前記シャットダウンを実行するとともに前記再起動フラグをセットし、
前記電源制御部は、前記シャットダウン中に前記電源状態フラグが前記外部電源から電力供給されていることを示す状態に変化した場合かつ前記再起動フラグがセットされている場合は、前記シャットダウン終了後に前記自装置を再起動する、
ことを特徴とする監視装置。
a power supply control unit that receives power from an external power supply or an uninterruptible power supply device and supplies power to an internal portion of the device;
a communication unit that communicates with a plurality of cooling devices connected via a network;
a control unit in which a computer program for monitoring the plurality of cooling devices based on information including at least temperatures received from the plurality of cooling devices by the communication unit and a monitoring program for monitoring an operating state of the computer program run;
a power supply status flag indicating whether the power source is the external power supply or the uninterruptible power supply;
A restart flag indicating whether or not the device needs to be restarted after shutdown;
Equipped with
when the power status flag indicates that power is being supplied from the uninterruptible power supply, the monitoring program terminates the computer program, and after the computer program has terminated, executes the shutdown and sets the restart flag;
the power supply control unit, when the power supply state flag changes to a state indicating that power is being supplied from the external power supply during the shutdown and when the restart flag is set, restarts the device after the shutdown is completed.
A monitoring device comprising:
前記監視プログラムは、前記コンピュータプログラムの終了中に前記電源状態フラグが前記外部電源から電力供給されていることを示す状態に変化した場合は、前記コンピュータプログラムの終了後に前記コンピュータプログラムの再起動をすることを特徴とする請求項1に記載の監視装置。 The monitoring device according to claim 1, characterized in that if the power supply status flag changes to a state indicating that power is being supplied from the external power supply while the computer program is being terminated, the monitoring program restarts the computer program after the computer program is terminated. 前記監視プログラムは、前記電源状態フラグが前記無停電電源装置から電力供給されていることを示す状態に変化した場合は、当該変化から所定時間経過後に前記コンピュータプログラムの終了指示を行うことを特徴とする請求項2に記載の監視装置。 The monitoring device according to claim 2, characterized in that, when the power supply status flag changes to a state indicating that power is being supplied from the uninterruptible power supply, the monitoring program issues an instruction to terminate the computer program a predetermined time after the change. 前記監視プログラムは、前記電源状態フラグが前記無停電電源装置から電力供給されていることを示す状態に変化した後に、前記所定時間内に前記電源状態フラグが前記外部電源から電力供給されていることを示す状態に変化した場合は、前記コンピュータプログラムの終了指示を行わないことを特徴とする請求項3に記載の監視装置。 The monitoring device according to claim 3, characterized in that the monitoring program does not instruct the computer program to terminate if the power supply status flag changes to a state indicating that power is being supplied from the external power source within the predetermined time after the power supply status flag changes to a state indicating that power is being supplied from the uninterruptible power supply.
JP2023092934A 2023-06-06 2023-06-06 Surveillance equipment Pending JP2024175275A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023092934A JP2024175275A (en) 2023-06-06 2023-06-06 Surveillance equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2023092934A JP2024175275A (en) 2023-06-06 2023-06-06 Surveillance equipment

Publications (1)

Publication Number Publication Date
JP2024175275A true JP2024175275A (en) 2024-12-18

Family

ID=93893022

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023092934A Pending JP2024175275A (en) 2023-06-06 2023-06-06 Surveillance equipment

Country Status (1)

Country Link
JP (1) JP2024175275A (en)

Similar Documents

Publication Publication Date Title
US8700935B2 (en) Power supply unit configured to not control a power supply from reducing the power state to a mirroring unit and storage units during a rebuild operation even when such power reducing state is satisfied
US8468383B2 (en) Reduced power failover system
US10394307B2 (en) Information processing apparatus, information processing method, and program
JP3777136B2 (en) Computer device, data dead copy method, program, and computer device operating method
KR20130002921A (en) Information processing device and power supply control circuit
JP6971016B2 (en) Controls, control methods and programs
CN106909479B (en) Startup and shutdown test fixture
JP6130520B2 (en) MULTISYSTEM SYSTEM AND MULTISYSTEM SYSTEM MANAGEMENT METHOD
US11455211B2 (en) Power control system and power control method
JP5794137B2 (en) Control system and relay device
WO2018095107A1 (en) Bios program abnormal processing method and apparatus
JP3712556B2 (en) Power supply device, power supply control device, and schedule operation monitoring control method for power supply system
CN105824381A (en) Single board power down restart adjustment method, apparatus and system
JP5445572B2 (en) Computer system, standby power reduction method, and program
JP2008203957A (en) Nas system
JP2024175275A (en) Surveillance equipment
JP4289293B2 (en) Start control method, duplex platform system, and information processing apparatus
JP2011090642A (en) Controller, control system and starting method for the same
CN118672624A (en) Multi-node server firmware upgrading method and device
US20140019740A1 (en) Computer Startup Method, Startup Apparatus, State Transition Method And State Transition Apparatus
CN103518188B (en) Supervisor system resuming control
TW201327172A (en) Control device for power sequence and adjusting method for delay time of power sequence
JP5644153B2 (en) Information processing apparatus and power supply control circuit
JP6142578B2 (en) Start-up waiting time shortening apparatus and method, server, and computer program
JP7066081B1 (en) How to operate the power supply of the controller unit and general-purpose operating system