JP6012918B1 - Control system and control method - Google Patents

Control system and control method Download PDF

Info

Publication number
JP6012918B1
JP6012918B1 JP2016545383A JP2016545383A JP6012918B1 JP 6012918 B1 JP6012918 B1 JP 6012918B1 JP 2016545383 A JP2016545383 A JP 2016545383A JP 2016545383 A JP2016545383 A JP 2016545383A JP 6012918 B1 JP6012918 B1 JP 6012918B1
Authority
JP
Japan
Prior art keywords
data
program
backup
storage unit
unit
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.)
Active
Application number
JP2016545383A
Other languages
Japanese (ja)
Other versions
JPWO2017077654A1 (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
Application granted granted Critical
Publication of JP6012918B1 publication Critical patent/JP6012918B1/en
Publication of JPWO2017077654A1 publication Critical patent/JPWO2017077654A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

プログラマブルコントローラは、機械の制御の際に使用されるデータ又はプログラムを記憶するバックアップ対象記憶部と、データ又はプログラムをバックアップ記憶するバックアップ記憶部と、監視対象ハードウェアの状態を表す値を監視して、値が予め定められた閾値に達したか否かを判定する状態監視部と、値が閾値に達したと状態監視部で判定されたら、データ又はプログラムをバックアップ対象記憶部から読み出してバックアップ記憶部に書き込んでバックアップするバックアップ処理部と、を備える。The programmable controller monitors a value representing the status of the monitoring target hardware, a backup target storage unit that stores data or a program used for machine control, a backup storage unit that stores data or a program in a backup manner, and When the state monitoring unit determines whether or not the value has reached a predetermined threshold, and when the state monitoring unit determines that the value has reached the threshold, the data or program is read from the backup target storage unit and stored in the backup A backup processing unit for writing to the unit for backup.

Description

本発明は、産業機械を制御するプログラマブルコントローラ、制御システム及び制御方法に関する。   The present invention relates to a programmable controller, a control system, and a control method for controlling an industrial machine.

従来、工場の生産ラインでは、産業機械を制御するプログラマブルコントローラが使用されている。   Conventionally, a programmable controller for controlling an industrial machine is used in a production line of a factory.

一般に、プログラマブルコントローラで産業機械を制御するための制御プログラム及び制御パラメータは、コンピュータ上でエンジニアリングツールプログラムを実行することにより作成されて、コンピュータからプログラマブルコントローラに送信される。   Generally, a control program and control parameters for controlling an industrial machine with a programmable controller are created by executing an engineering tool program on a computer and transmitted from the computer to the programmable controller.

ところで、制御プログラム及び制御パラメータは、産業機械を動作させながら、プログラマブルコントローラ上で変更又は調整される場合がある。その後、故障で例示されるトラブルがプログラマブルコントローラで発生すると、変更又は調整された後の制御プログラム及び制御パラメータが失われてしまうことになる。従って、プログラマブルコントローラ内の制御プログラム及び制御パラメータをバックアップする要求がある。   By the way, a control program and a control parameter may be changed or adjusted on a programmable controller while operating an industrial machine. Thereafter, when a trouble exemplified by a failure occurs in the programmable controller, the control program and the control parameters after being changed or adjusted are lost. Therefore, there is a request for backing up the control program and control parameters in the programmable controller.

関連する技術として、特許文献1には、中央処理部170の動作の異常を検知するエラー検知部WDT(ウォッチドッグタイマ)を有し、アクセス素子178は、エラー検知部WDTによって中央処理部170の動作のトラブルが検知されると、被バックアップ記憶部182のデータをバックアップ記憶部184に退避するプログラマブルコントローラ120が記載されている(要約書)。   As a related technique, Patent Document 1 includes an error detection unit WDT (watchdog timer) that detects an abnormality in the operation of the central processing unit 170, and the access element 178 is connected to the central processing unit 170 by the error detection unit WDT. A programmable controller 120 is described that saves the data in the backup storage unit 182 to the backup storage unit 184 when an operation trouble is detected (summary).

また、特許文献2には、CPU22は、情報処理ユニットに電力を供給する電源電圧が切断されたときには、電源電圧が切断されたときから、情報処理ユニットを構成する回路を動作させるための動作電源電圧VCCが情報処理ユニットを正常に動作させ得る正常動作電圧領域を出るまでの時間内に、SRAM24に蓄積されている情報のうち、所定の情報を、フラッシュメモリ23の空き領域に移動させるプログラマブル・コントローラの情報処理ユニットが記載されている(要約書)。Further, in Patent Document 2, when the power supply voltage for supplying power to the information processing unit is cut off, the CPU 22 operates the power supply for operating the circuits constituting the information processing unit from when the power supply voltage is cut off. Programmable to move predetermined information out of the information stored in the SRAM 24 to an empty area of the flash memory 23 within a time until the voltage V CC exits a normal operating voltage area where the information processing unit can operate normally. -The information processing unit of the controller is described (summary).

特開2014−81700号公報JP 2014-81700 A 特開2000−305610号公報JP 2000-305610 A

一般に、ウォッチドッグタイマは、無限ループ又はデッドロックで例示されるソフトウェアのトラブルがCPUで発生したときに、割り込み信号をCPUに送信して、ソフトウェアのトラブルを解除するための回路である。従って、特許文献1記載の技術では、ソフトウェアのトラブルが発生すると、被バックアップ記憶部182のデータをバックアップ記憶部184に退避できるが、ソフトウェア以外のトラブルが発生しても、被バックアップ記憶部182のデータをバックアップ記憶部184に退避することができない。   Generally, the watchdog timer is a circuit for canceling software trouble by transmitting an interrupt signal to the CPU when a software trouble exemplified by an infinite loop or deadlock occurs in the CPU. Therefore, in the technique described in Patent Document 1, if a software trouble occurs, the data in the backup storage unit 182 can be saved to the backup storage unit 184. However, even if a trouble other than software occurs, the data stored in the backup storage unit 182 Data cannot be saved in the backup storage unit 184.

また、特許文献2記載の技術では、情報処理ユニットに電力を供給する電源電圧が切断されたときに、SRAM24に蓄積されている情報をフラッシュメモリ23に移動させることができる。つまり、特許文献2記載の技術では、情報処理ユニット外部での電源電圧切断というトラブルが発生したら、SRAM24に蓄積されている情報をフラッシュメモリ23に移動させることができるが、情報処理ユニット内部でトラブルが発生しても、SRAM24に蓄積されている情報をフラッシュメモリ23に移動させることができない。   Also, with the technology described in Patent Document 2, information stored in the SRAM 24 can be moved to the flash memory 23 when the power supply voltage for supplying power to the information processing unit is cut off. In other words, in the technique described in Patent Document 2, if a trouble of power supply voltage disconnection outside the information processing unit occurs, information stored in the SRAM 24 can be moved to the flash memory 23. Even if this occurs, the information stored in the SRAM 24 cannot be moved to the flash memory 23.

本発明は、上記に鑑みてなされたものであって、データ又はプログラムを好適にバックアップすることができるプログラマブルコントローラを得ることを目的とする。   This invention is made | formed in view of the above, Comprising: It aims at obtaining the programmable controller which can back up data or a program suitably.

上述した課題を解決し、目的を達成するために、本発明は、機械の制御の際に使用されるデータ又はプログラムを記憶するバックアップ対象記憶部と、データ又はプログラムをバックアップ記憶するバックアップ記憶部と、監視対象ハードウェアの状態を表す値を監視して、値が予め定められた閾値に達したか否かを判定する状態監視部と、値が閾値に達したと状態監視部で判定されたら、データ又はプログラムをバックアップ対象記憶部から読み出してバックアップ記憶部に書き込んでバックアップするバックアップ処理部と、を備える。   In order to solve the above-described problems and achieve the object, the present invention includes a backup target storage unit that stores data or a program used in machine control, and a backup storage unit that stores data or a program as a backup. A state monitoring unit that monitors a value representing the state of the monitored hardware and determines whether or not the value has reached a predetermined threshold; and a state monitoring unit that determines that the value has reached the threshold A backup processing unit that reads data or a program from the backup target storage unit, writes the data or program in the backup storage unit, and backs up the data or program.

本発明にかかるプログラマブルコントローラ、制御システム及び制御方法は、データ又はプログラムを好適にバックアップすることができるという効果を奏する。   The programmable controller, control system, and control method according to the present invention have an effect that data or a program can be suitably backed up.

実施の形態1にかかるプログラマブルコントローラの構成を示す図The figure which shows the structure of the programmable controller concerning Embodiment 1. FIG. 実施の形態1にかかるプログラマブルコントローラの処理を示すフローチャート1 is a flowchart showing processing of a programmable controller according to a first embodiment; 実施の形態2にかかるプログラマブルコントローラの構成を示す図The figure which shows the structure of the programmable controller concerning Embodiment 2. FIG. 実施の形態2にかかるプログラマブルコントローラの不揮発性半導体記憶部の構成を示す図The figure which shows the structure of the non-volatile semiconductor memory part of the programmable controller concerning Embodiment 2. FIG. 実施の形態3にかかるプログラマブルコントローラの構成を示す図The figure which shows the structure of the programmable controller concerning Embodiment 3. FIG. 実施の形態4にかかるプログラマブルコントローラの構成を示す図The figure which shows the structure of the programmable controller concerning Embodiment 4. FIG. 実施の形態5にかかる制御システムの構成を示す図The figure which shows the structure of the control system concerning Embodiment 5. FIG. 実施の形態5にかかる制御システムの外部装置のハードウェア構成を示す図The figure which shows the hardware constitutions of the external apparatus of the control system concerning Embodiment 5. 実施の形態5にかかる制御システムの外部装置の機能ブロックを示す図The figure which shows the functional block of the external device of the control system concerning Embodiment 5. 実施の形態5にかかる制御システムの外部装置の処理を示すフローチャート10 is a flowchart showing processing of an external device of the control system according to the fifth embodiment. 実施の形態5にかかる制御システムの外部装置の表示部の表示面を示す図The figure which shows the display surface of the display part of the external apparatus of the control system concerning Embodiment 5. 実施の形態5の他の制御システムの例にかかるプログラマブルコントローラの構成を示す図The figure which shows the structure of the programmable controller concerning the example of the other control system of Embodiment 5. FIG. 実施の形態6にかかる制御システムの構成を示す図The figure which shows the structure of the control system concerning Embodiment 6. FIG. 実施の形態6にかかる制御システムのマスタプログラマブルコントローラの構成を示す図The figure which shows the structure of the master programmable controller of the control system concerning Embodiment 6. FIG. 実施の形態6にかかる制御システムのマスタプログラマブルコントローラのバックアップ記憶部の内容を示す図The figure which shows the content of the backup memory | storage part of the master programmable controller of the control system concerning Embodiment 6 実施の形態6にかかる制御システムのスレーブプログラマブルコントローラの構成を示す図The figure which shows the structure of the slave programmable controller of the control system concerning Embodiment 6. FIG. 実施の形態6にかかる制御システムのスレーブプログラマブルコントローラの処理を示すフローチャートA flowchart which shows a process of a slave programmable controller of a control system concerning a 6th embodiment. 実施の形態6にかかる制御システムのマスタプログラマブルコントローラの処理を示すフローチャートA flowchart which shows a process of a master programmable controller of a control system concerning a 6th embodiment. 実施の形態7にかかる制御システムの構成を示す図The figure which shows the structure of the control system concerning Embodiment 7. 実施の形態7にかかる制御システムの外部装置の機能ブロックを示す図The figure which shows the functional block of the external device of the control system concerning Embodiment 7. 実施の形態7にかかる制御システムのマスタプログラマブルコントローラの構成を示す図The figure which shows the structure of the master programmable controller of the control system concerning Embodiment 7. FIG. 実施の形態7にかかる制御システムのスレーブプログラマブルコントローラの構成を示す図The figure which shows the structure of the slave programmable controller of the control system concerning Embodiment 7. FIG. 実施の形態7にかかる制御システムの処理を示すシーケンス図FIG. 10 is a sequence diagram showing processing of the control system according to the seventh embodiment. 実施の形態7にかかる制御システムの外部装置の表示部の表示面を示す図The figure which shows the display surface of the display part of the external apparatus of the control system concerning Embodiment 7.

以下に、本発明の実施の形態にかかるプログラマブルコントローラ、制御システム及び制御方法を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Below, a programmable controller, a control system, and a control method concerning an embodiment of the invention are explained in detail based on a drawing. Note that the present invention is not limited to the embodiments.

実施の形態1.
図1は、実施の形態1にかかるプログラマブルコントローラの構成を示す図である。プログラマブルコントローラ(JIS B 3502:2011、programmable controllers(PLC))1は、メイン基板1aと、サブ基板1b及び1cと、を含む。メイン基板1aは、バスB2を介してサブ基板1b及び1cと通信可能に接続されている。
Embodiment 1 FIG.
FIG. 1 is a diagram illustrating a configuration of a programmable controller according to the first embodiment. A programmable controller (JIS B 3502: 2011, programmable controllers (PLC)) 1 includes a main board 1a and sub boards 1b and 1c. The main board 1a is communicably connected to the sub boards 1b and 1c via the bus B2.

サブ基板1bには、機械2が接続され、サブ基板1cには、機械3が接続されている。メイン基板1aは、サブ基板1bを介して機械2を制御し、サブ基板1cを介して機械3を制御する。   A machine 2 is connected to the sub board 1b, and a machine 3 is connected to the sub board 1c. The main board 1a controls the machine 2 through the sub board 1b and controls the machine 3 through the sub board 1c.

メイン基板1aは、メイン基板1aの内部バスであるバスB1とバスB2とを連絡するバスブリッジ回路であるバスインタフェース1a9を含む。   The main board 1a includes a bus interface 1a9 that is a bus bridge circuit that connects the bus B1 and the bus B2 that are internal buses of the main board 1a.

メイン基板1aは、外部装置と通信するための通信インタフェース1a7を含む。通信インタフェース1a7は、バスB1に接続されている。通信は、Ethernet(登録商標、IEEE 802.3)又は無線LAN(IEEE 802.11a/b/g/n/ac)が例示される。   The main board 1a includes a communication interface 1a7 for communicating with an external device. The communication interface 1a7 is connected to the bus B1. The communication is exemplified by Ethernet (registered trademark, IEEE 802.3) or wireless LAN (IEEE 802.11a / b / g / n / ac).

メイン基板1aは、外部装置と通信するためのUSB(Universal Serial Bus)インタフェース1a8を含む。USBインタフェース1a8は、バスB1に接続されている。   The main board 1a includes a USB (Universal Serial Bus) interface 1a8 for communicating with an external device. The USB interface 1a8 is connected to the bus B1.

メイン基板1aは、プロジェクトデータ1a10aを記憶する不揮発性半導体記憶部1a10を含む。不揮発性半導体記憶部1a10は、バスB1に接続されている。不揮発性半導体記憶部1a10は、SSD(Solid State Drive)又はeMMC(embedded Multi Media Card)が例示される。SSD又はeMMCは、フラッシュメモリ(登録商標)を使用して構成される。   The main board 1a includes a non-volatile semiconductor storage unit 1a10 that stores project data 1a10a. The nonvolatile semiconductor memory unit 1a10 is connected to the bus B1. The nonvolatile semiconductor storage unit 1a10 is exemplified by an SSD (Solid State Drive) or an eMMC (embedded Multi Media Card). The SSD or eMMC is configured using a flash memory (registered trademark).

プロジェクトデータ1a10aは、機械2及び3を制御するための制御プログラム1a10a1と、制御プログラム1a10a1の実行時に参照される制御パラメータ1a10a2と、制御プログラム1a10a1の実行時の作業領域であるデバイスを規定するデバイスメモリ1a10a3と、サブ基板1bと機械2との接続関係及びサブ基板1cと機械3との接続関係を規定する接続情報1a10a4と、を含む。   The project data 1a10a includes a control program 1a10a1 for controlling the machines 2 and 3, a control parameter 1a10a2 that is referred to when the control program 1a10a1 is executed, and a device memory that defines a device that is a work area when the control program 1a10a1 is executed. 1a10a3, and connection information 1a10a4 that defines the connection relationship between the sub-board 1b and the machine 2 and the connection relationship between the sub-board 1c and the machine 3.

メイン基板1aは、CPU1a1を含む。CPU1a1は、バスB1に接続されている。CPU1a1が制御プログラム1a10a1を実行することで、機械2及び3を制御する機械制御部1a1aが実現される。   The main board 1a includes a CPU 1a1. The CPU 1a1 is connected to the bus B1. The machine control unit 1a1a that controls the machines 2 and 3 is realized by the CPU 1a1 executing the control program 1a10a1.

メイン基板1aは、機械2及び3の制御の際に使用されるデータ又は制御プログラム1a10a1を記憶するRAM(Random Access Memory)1a2及び揮発性半導体記憶部1a3を含む。データは、デバイスを含む。RAM1a2及び揮発性半導体記憶部1a3は、バスB1に接続されている。   The main board 1a includes a RAM (Random Access Memory) 1a2 and a volatile semiconductor storage unit 1a3 for storing data or a control program 1a10a1 used when controlling the machines 2 and 3. The data includes the device. The RAM 1a2 and the volatile semiconductor storage unit 1a3 are connected to the bus B1.

揮発性半導体記憶部1a3は、SRAM(Static Random Access Memory)又はDRAM(Dynamic Random Access Memory)が例示される。   The volatile semiconductor storage unit 1a3 is exemplified by SRAM (Static Random Access Memory) or DRAM (Dynamic Random Access Memory).

実施の形態1では、揮発性半導体記憶部1a3が、本発明のバックアップ対象記憶部に対応する。   In the first embodiment, the volatile semiconductor storage unit 1a3 corresponds to the backup target storage unit of the present invention.

メイン基板1aは、揮発性半導体記憶部1a3がデータ又は制御プログラム1a10a1を保持するための電力Pを供給するバッテリ1a4を含む。   The main board 1a includes a battery 1a4 that supplies electric power P for the volatile semiconductor storage unit 1a3 to hold data or a control program 1a10a1.

実施の形態1では、バッテリ1a4が、本発明の監視対象ハードウェアに対応する。   In the first embodiment, the battery 1a4 corresponds to the monitoring target hardware of the present invention.

メイン基板1aは、バッテリ1a4の電圧を検出する電圧センサ1a5を含む。電圧センサ1a5は、バスB1に接続されている。   Main board 1a includes a voltage sensor 1a5 for detecting the voltage of battery 1a4. The voltage sensor 1a5 is connected to the bus B1.

揮発性半導体記憶部1a3は、バッテリ1a4から電力Pの供給を受けることで、プログラマブルコントローラ1の電源がオフされたり、プログラマブルコントローラ1に系統電力を供給する系統電源が停電したりした場合であっても、データ又は制御プログラム1a10a1を保持し続けることができる。   The volatile semiconductor storage unit 1a3 is a case where the power supply of the programmable controller 1 is turned off or the system power supply supplying the system power to the programmable controller 1 is interrupted by receiving the supply of power P from the battery 1a4. In addition, the data or the control program 1a10a1 can be kept.

実施の形態1では、揮発性半導体記憶部1a3は、バッテリ1a4から供給される電圧が1.2V以上であれば、プログラマブルコントローラ1の電源がオフされたり、プログラマブルコントローラ1に系統電力を供給する系統電源が停電したりした場合であっても、データ又は制御プログラム1a10a1を保持し続けることができるものとする。   In the first embodiment, the volatile semiconductor storage unit 1a3 is a system that turns off the power of the programmable controller 1 or supplies system power to the programmable controller 1 if the voltage supplied from the battery 1a4 is 1.2V or higher. It is assumed that the data or control program 1a10a1 can continue to be retained even when the power supply fails.

つまり、揮発性半導体記憶部1a3は、バッテリ1a4が消耗、劣化又は故障して、バッテリ1a4から供給される電圧が1.2Vを下回ったら、プログラマブルコントローラ1の電源がオフされたり、プログラマブルコントローラ1に系統電力を供給する系統電源が停電したりすると、データ又は制御プログラム1a10a1を保持できない。つまり、バッテリ1a4から供給される電圧が1.2Vを下回ったら、揮発性半導体記憶部1a3内のデータ又は制御プログラム1a10a1は消える。   That is, when the battery 1a4 is consumed, deteriorated, or failed and the voltage supplied from the battery 1a4 falls below 1.2V, the volatile semiconductor storage unit 1a3 is turned off or the programmable controller 1 is turned off. If a system power supply that supplies system power fails, the data or the control program 1a10a1 cannot be retained. That is, when the voltage supplied from the battery 1a4 falls below 1.2V, the data in the volatile semiconductor storage unit 1a3 or the control program 1a10a1 disappears.

CPU1a1は、制御プログラム1a10a1の実行に際して、制御プログラム1a10a1をRAM1a2又は揮発性半導体記憶部1a3にロードして実行する。制御プログラム1a10a1がRAM1a2又は揮発性半導体記憶部1a3のどちらにロードされるかは、制御プログラム1a10a1に記述されている。   When executing the control program 1a10a1, the CPU 1a1 loads the control program 1a10a1 into the RAM 1a2 or the volatile semiconductor storage unit 1a3 and executes it. Whether the control program 1a10a1 is loaded into the RAM 1a2 or the volatile semiconductor storage unit 1a3 is described in the control program 1a10a1.

制御プログラム1a10a1の一部がRAM1a2に配置され、制御プログラム1a10a1の他の一部が揮発性半導体記憶部1a3に配置されても良いし、制御プログラム1a10a1の全部が揮発性半導体記憶部1a3に配置されても良い。   A part of the control program 1a10a1 may be arranged in the RAM 1a2, and another part of the control program 1a10a1 may be arranged in the volatile semiconductor storage unit 1a3, or the whole control program 1a10a1 may be arranged in the volatile semiconductor storage unit 1a3. May be.

CPU1a1は、制御プログラム1a10a1の実行に際して、使用するデータをRAM1a2又は揮発性半導体記憶部1a3に配置する。データは、デバイスを含む。データがRAM1a2又は揮発性半導体記憶部1a3のどちらに配置されるかは、制御プログラム1a10a1又はデバイスメモリ1a10a3に記述されている。   When executing the control program 1a10a1, the CPU 1a1 arranges data to be used in the RAM 1a2 or the volatile semiconductor storage unit 1a3. The data includes the device. Whether the data is stored in the RAM 1a2 or the volatile semiconductor storage unit 1a3 is described in the control program 1a10a1 or the device memory 1a10a3.

データの一部がRAM1a2に配置され、データの他の一部が揮発性半導体記憶部1a3に配置されても良いし、データの全部が揮発性半導体記憶部1a3に配置されても良い。   A part of the data may be arranged in the RAM 1a2, and another part of the data may be arranged in the volatile semiconductor storage unit 1a3, or the whole data may be arranged in the volatile semiconductor storage unit 1a3.

メイン基板1aは、揮発性半導体記憶部1a3に記憶されているデータ又は制御プログラム1a10a1をバックアップ記憶するバックアップ記憶部1a6aを含む。   The main board 1a includes a backup storage unit 1a6a that stores data stored in the volatile semiconductor storage unit 1a3 or the control program 1a10a1 as a backup.

実施の形態1では、バックアップ記憶部1a6aは、リムーバブルな不揮発性記憶部材であり、バスB1に接続されたスロット1a6に挿入されている。バックアップ記憶部1a6aは、SDカード(登録商標)、CompactFlash(登録商標)、USBメモリ又はDVD(Digital Versatile Disc)が例示される。   In the first embodiment, the backup storage unit 1a6a is a removable nonvolatile storage member, and is inserted into the slot 1a6 connected to the bus B1. The backup storage unit 1a6a is exemplified by an SD card (registered trademark), CompactFlash (registered trademark), USB memory, or DVD (Digital Versatile Disc).

バックアップ記憶部1a6aがリムーバブルな不揮発性記憶部材であれば、バックアップされたデータ又は制御プログラム1a10a1の可搬性が向上する。   If the backup storage unit 1a6a is a removable nonvolatile storage member, the portability of the backed up data or the control program 1a10a1 is improved.

なお、バックアップ記憶部1a6aは、非リムーバブルな不揮発性記憶部材であっても良い。非リムーバブルな不揮発性記憶部材は、SSD又はeMMCが例示される。   Note that the backup storage unit 1a6a may be a non-removable nonvolatile storage member. The non-removable nonvolatile memory member is exemplified by SSD or eMMC.

バックアップ記憶部1a6aが非リムーバブルな不揮発性記憶部材であれば、スロット1a6が不要になるので、メイン基板1aの実装面積を抑制することができる。   If the backup storage unit 1a6a is a non-removable nonvolatile storage member, the slot 1a6 is not necessary, so that the mounting area of the main board 1a can be suppressed.

不揮発性半導体記憶部1a10は、閾値データ1a10cを記憶する。閾値データ1a10cは、監視対象ハードウェアであるバッテリ1a4の状態を表す値である電圧と比較するための、予め定められた閾値「1.2V」を含む。   The nonvolatile semiconductor memory unit 1a10 stores threshold data 1a10c. The threshold data 1a10c includes a predetermined threshold “1.2V” for comparison with a voltage that is a value representing the state of the battery 1a4 that is the monitoring target hardware.

実施の形態1では、監視対象ハードウェアの状態を表す値は、監視対象ハードウェアの消耗、劣化又は故障の度合いを表す値である。   In the first embodiment, the value indicating the state of the monitoring target hardware is a value indicating the degree of consumption, deterioration, or failure of the monitoring target hardware.

実施の形態1では、監視対象ハードウェアはバッテリ1a4である。バッテリ1a4の初期電圧を1.5Vとすると、バッテリ1a4は、消耗、劣化又は故障の度合いに従って、電圧が1.5Vから徐々に低下して行く。従って、バッテリ1a4の電圧は、バッテリ1a4の消耗、劣化又は故障の度合いを表す値である。   In the first embodiment, the monitoring target hardware is the battery 1a4. Assuming that the initial voltage of the battery 1a4 is 1.5V, the voltage of the battery 1a4 gradually decreases from 1.5V according to the degree of consumption, deterioration, or failure. Therefore, the voltage of the battery 1a4 is a value representing the degree of consumption, deterioration, or failure of the battery 1a4.

不揮発性半導体記憶部1a10は、バックアッププログラム1a10bを記憶する。CPU1a1がバックアッププログラム1a10bを実行することで、バックアップ部1a1bが実現される。   The nonvolatile semiconductor storage unit 1a10 stores a backup program 1a10b. As the CPU 1a1 executes the backup program 1a10b, the backup unit 1a1b is realized.

バックアッププログラム1a10bは、監視対象ハードウェアであるバッテリ1a4の状態を表す値である電圧を監視して、電圧が予め定められた閾値「1.2V」に達したか否かを判定する状態監視プログラム1a10b1を含む。   The backup program 1a10b monitors a voltage that is a value representing the state of the battery 1a4 that is the monitoring target hardware, and determines whether or not the voltage has reached a predetermined threshold “1.2V”. 1a10b1.

CPU1a1が状態監視プログラム1a10b1を実行することで、監視対象ハードウェアの状態を表す値を監視して、値が予め定められた閾値に達したか否かを判定する状態監視部1a1b1が実現される。   When the CPU 1a1 executes the state monitoring program 1a10b1, a state monitoring unit 1a1b1 that monitors a value indicating the state of the monitored hardware and determines whether the value has reached a predetermined threshold is realized. .

バックアッププログラム1a10bは、監視対象ハードウェアであるバッテリ1a4の状態を表す値である電圧が閾値「1.2V」に達したと状態監視部1a1b1で判定されたら、データ又はプログラムをバックアップ対象記憶部である揮発性半導体記憶部1a3から読み出してバックアップ記憶部1a6aに書き込んでバックアップするバックアップ処理プログラム1a10b2を含む。   When the state monitoring unit 1a1b1 determines that the voltage, which is a value representing the state of the battery 1a4 that is the monitoring target hardware, has reached the threshold “1.2V”, the backup program 1a10b stores the data or program in the backup target storage unit. It includes a backup processing program 1a10b2 that reads from a certain volatile semiconductor storage unit 1a3, writes to the backup storage unit 1a6a, and backs up.

CPU1a1がバックアップ処理プログラム1a10b2を実行することで、監視対象ハードウェアの状態を表す値が閾値に達したと状態監視部1a1b1で判定されたら、データ又はプログラムをバックアップ対象記憶部である揮発性半導体記憶部1a3から読み出してバックアップ記憶部1a6aに書き込むバックアップ処理部1a1b2が実現される。   When the CPU 1a1 executes the backup processing program 1a10b2 and the state monitoring unit 1a1b1 determines that the value representing the state of the monitored hardware has reached the threshold value, the data or program is stored in the volatile semiconductor memory that is the backup target storage unit. A backup processing unit 1a1b2 that reads from the unit 1a3 and writes to the backup storage unit 1a6a is realized.

プログラマブルコントローラ1の動作について、説明する。   The operation of the programmable controller 1 will be described.

図2は、実施の形態1にかかるプログラマブルコントローラの処理を示すフローチャートである。CPU1a1は、図2に示す処理を定期的に実行する。   FIG. 2 is a flowchart of a process performed by the programmable controller according to the first embodiment. The CPU 1a1 periodically executes the process shown in FIG.

状態監視部1a1b1は、ステップS100において、監視対象ハードウェアであるバッテリ1a4の状態を表す値である電圧を、電圧センサ1a5を使用して監視する。   In step S100, the state monitoring unit 1a1b1 monitors the voltage, which is a value representing the state of the battery 1a4 that is the monitoring target hardware, using the voltage sensor 1a5.

状態監視部1a1b1は、ステップS102において、監視対象ハードウェアであるバッテリ1a4の状態を表す値である電圧が閾値「1.2V」に達したか否かを判定する。   In step S102, the state monitoring unit 1a1b1 determines whether or not the voltage that is a value representing the state of the battery 1a4 that is the hardware to be monitored has reached the threshold value “1.2V”.

状態監視部1a1b1は、監視対象ハードウェアであるバッテリ1a4の状態を表す値である電圧が閾値「1.2V」に達していないと判定したら(No)、処理をステップS100に進める。   If the state monitoring unit 1a1b1 determines that the voltage that is the value representing the state of the battery 1a4 that is the monitoring target hardware has not reached the threshold “1.2V” (No), the process proceeds to step S100.

状態監視部1a1b1は、監視対象ハードウェアであるバッテリ1a4の状態を表す値である電圧が閾値「1.2V」に達したと判定したら(Yes)、処理をステップS104に進める。   If the state monitoring unit 1a1b1 determines that the voltage, which is a value representing the state of the battery 1a4 that is the monitoring target hardware, has reached the threshold value “1.2 V” (Yes), the process proceeds to step S104.

バックアップ処理部1a1b2は、ステップS104において、データ又はプログラムをバックアップ対象記憶部である揮発性半導体記憶部1a3から読み出してバックアップ記憶部1a6aに書き込んでバックアップし、処理をステップS100に進める。   In step S104, the backup processing unit 1a1b2 reads the data or program from the volatile semiconductor storage unit 1a3 that is the backup target storage unit, writes the data or program in the backup storage unit 1a6a, backs up, and advances the processing to step S100.

なお、バックアップ処理部1a1b2は、データ又はプログラムをバックアップ記憶部1a6aに書き込んでバックアップする際に、バックアップの日付及び時刻並びにバックアップの原因「バッテリ電圧が閾値まで低下」を、データ又はプログラムに付帯させて、バックアップ記憶部1a6aに書き込んでバックアップすると好適である。   When the backup processing unit 1a1b2 writes the data or program to the backup storage unit 1a6a and backs up, the backup date and time and the cause of the backup "battery voltage drops to the threshold value" are attached to the data or program. It is preferable that data is backed up by writing in the backup storage unit 1a6a.

実施の形態1にかかるプログラマブルコントローラ1は、次の効果を奏する。   The programmable controller 1 according to the first embodiment has the following effects.

揮発性半導体記憶部1a3は、バッテリ1a4が消耗、劣化又は故障して、バッテリ1a4から供給される電圧が1.2Vを下回ったら、プログラマブルコントローラ1の電源がオフされたり、プログラマブルコントローラ1に系統電力を供給する系統電源が停電したりすると、データ又はプログラムを保持できない。つまり、バッテリ1a4から供給される電圧が1.2Vを下回ったら、揮発性半導体記憶部1a3内のデータ又はプログラムは消えてしまう。   When the battery 1a4 is consumed, deteriorated, or failed and the voltage supplied from the battery 1a4 falls below 1.2V, the volatile semiconductor storage unit 1a3 turns off the power of the programmable controller 1 or supplies power to the programmable controller 1 If the system power supply that supplies power fails, data or programs cannot be retained. That is, when the voltage supplied from the battery 1a4 falls below 1.2V, the data or program in the volatile semiconductor storage unit 1a3 is erased.

状態監視部1a1b1は、監視対象ハードウェアであるバッテリ1a4の状態を表す値である電圧が閾値「1.2V」に達したか否かを判定する。   The state monitoring unit 1a1b1 determines whether or not the voltage, which is a value representing the state of the battery 1a4 that is the monitoring target hardware, has reached the threshold “1.2V”.

バックアップ処理部1a1b2は、監視対象ハードウェアであるバッテリ1a4の状態を表す値である電圧が閾値「1.2V」に達したと状態監視部1a1b1で判定されたら、データ又はプログラムをバックアップ対象記憶部である揮発性半導体記憶部1a3から読み出してバックアップ記憶部1a6aに書き込む。   When the state monitoring unit 1a1b1 determines that the voltage, which is a value representing the state of the battery 1a4, which is the monitoring target hardware, has reached the threshold value “1.2 V”, the backup processing unit 1a1b2 stores the data or program as the backup target storage unit Are read from the volatile semiconductor storage unit 1a3 and written to the backup storage unit 1a6a.

これにより、実施の形態1にかかるプログラマブルコントローラ1は、監視対象ハードウェアであるバッテリ1a4の消耗、劣化又は故障を察知して、バックアップ対象記憶部である揮発性半導体記憶部1a3内のデータ又はプログラムが消える前に、バックアップ対象記憶部である揮発性半導体記憶部1a3内のデータ又はプログラムをバックアップ記憶部1a6aにバックアップすることができる。   Thereby, the programmable controller 1 according to the first embodiment senses the consumption, deterioration, or failure of the battery 1a4 that is the monitoring target hardware, and the data or program in the volatile semiconductor storage unit 1a3 that is the backup target storage unit Before disappears, the data or program in the volatile semiconductor storage unit 1a3, which is the backup target storage unit, can be backed up to the backup storage unit 1a6a.

従って、実施の形態1にかかるプログラマブルコントローラ1は、監視対象ハードウェアであるバッテリ1a4の消耗、劣化又は故障によりバックアップ対象記憶部である揮発性半導体記憶部1a3内のデータ又はプログラムが失われることを抑制することができる。   Therefore, in the programmable controller 1 according to the first embodiment, data or a program in the volatile semiconductor storage unit 1a3 that is the backup target storage unit is lost due to consumption, deterioration, or failure of the battery 1a4 that is the monitoring target hardware. Can be suppressed.

これにより、ユーザがプログラマブルコントローラ1のハードウェア状態を監視してデータ又はプログラムをバックアップする作業工数を抑制できる。   Thereby, the user can monitor the hardware state of the programmable controller 1 and suppress the work man-hours for backing up data or programs.

実施の形態2.
図3は、実施の形態2にかかるプログラマブルコントローラの構成を示す図である。実施の形態2にかかるプログラマブルコントローラ10は、図1で示した、実施の形態1にかかるプログラマブルコントローラ1と比較すると、メイン基板1aに代えて、メイン基板10aを含む。
Embodiment 2. FIG.
FIG. 3 is a diagram of a configuration of the programmable controller according to the second embodiment. The programmable controller 10 according to the second embodiment includes a main board 10a instead of the main board 1a as compared with the programmable controller 1 according to the first embodiment shown in FIG.

メイン基板10aは、実施の形態1のメイン基板1aと比較すると、揮発性半導体記憶部1a3、バッテリ1a4及び電圧センサ1a5を備えていない。従って、プログラマブルコントローラ10では、データ及びプログラムは、RAM1a2にロードされる。   The main substrate 10a does not include the volatile semiconductor storage unit 1a3, the battery 1a4, and the voltage sensor 1a5 as compared with the main substrate 1a of the first embodiment. Therefore, in the programmable controller 10, data and programs are loaded into the RAM 1a2.

図4は、実施の形態2にかかるプログラマブルコントローラの不揮発性半導体記憶部の構成を示す図である。不揮発性半導体記憶部1a10は、データ又はプログラムを記憶する記憶セル群1a10eと、記憶セル群1a10eへのデータ書込み及び記憶セル群1a10eからのデータ読出しを制御するコントローラ1a10dと、を含む。   FIG. 4 is a diagram of a configuration of the nonvolatile semiconductor memory unit of the programmable controller according to the second embodiment. The nonvolatile semiconductor memory unit 1a10 includes a memory cell group 1a10e that stores data or a program, and a controller 1a10d that controls data writing to the memory cell group 1a10e and data reading from the memory cell group 1a10e.

記憶セル群1a10eは、フラッシュメモリ(登録商標)が例示される。   The memory cell group 1a10e is exemplified by a flash memory (registered trademark).

記憶セル群1a10e内の各記憶セルは、電荷蓄積部を有している。各記憶セルは、SLC(Single Level Cell)の場合には、電荷蓄積部内の電荷の有無で1ビットのデータを記憶する。   Each memory cell in the memory cell group 1a10e has a charge storage unit. In the case of SLC (Single Level Cell), each memory cell stores 1-bit data depending on the presence or absence of charge in the charge storage unit.

電荷蓄積部への電荷の注入及び抜き出しは、電荷蓄積部を覆う絶縁膜を経由して行われる。絶縁膜は、電荷が通過する都度、消耗、劣化又は故障する。従って、各記憶セルは、データ書込みの都度、消耗、劣化又は故障する。つまり、不揮発性半導体記憶部1a10は、データ書込み回数に関して寿命がある。   The injection and extraction of charges to and from the charge storage unit are performed via an insulating film that covers the charge storage unit. The insulating film is consumed, deteriorated, or failed every time the charge passes. Therefore, each memory cell is consumed, deteriorated, or failed every time data is written. That is, the nonvolatile semiconductor memory unit 1a10 has a lifetime with respect to the number of data writing.

不揮発性半導体記憶部1a10は、寿命に達すると、データ又はプログラムの書込みが行えなくなり、データ又はプログラムの保持が行えなくなり、データ又はプログラムの読出しが行えなくなる。   When the non-volatile semiconductor storage unit 1a10 reaches the end of its life, data or program cannot be written, data or program cannot be held, and data or program cannot be read.

コントローラ1a10dは、一部の記憶セルに書込みが偏らないように、つまり全ての記憶セルに均等に書込みを行うように、記憶セル群1a10eを使用する。また、コントローラ1a10dは、記憶セル群1a10eへのデータ書込み回数をカウント及び保持している。   The controller 1a10d uses the memory cell group 1a10e so that writing is not biased to a part of the memory cells, that is, writing is performed equally to all the memory cells. Further, the controller 1a10d counts and holds the number of times of data writing to the memory cell group 1a10e.

実施の形態2では、不揮発性半導体記憶部1a10が、本発明のバックアップ対象記憶部に対応する。   In the second embodiment, the nonvolatile semiconductor storage unit 1a10 corresponds to the backup target storage unit of the present invention.

また、実施の形態2では、不揮発性半導体記憶部1a10が、本発明の監視対象ハードウェアに対応する。   In the second embodiment, the nonvolatile semiconductor storage unit 1a10 corresponds to the monitoring target hardware of the present invention.

不揮発性半導体記憶部1a10の初期時のデータ書込み回数は、0である。不揮発性半導体記憶部1a10は、データ書込みの都度、絶縁膜が消耗、劣化又は故障する。従って、不揮発性半導体記憶部1a10のデータ書込み回数は、不揮発性半導体記憶部1a10の消耗、劣化又は故障の度合いを表す値である。   The initial number of data writes to the nonvolatile semiconductor memory unit 1a10 is zero. In the nonvolatile semiconductor memory unit 1a10, the insulating film is consumed, deteriorated, or failed every time data is written. Therefore, the data write count of the nonvolatile semiconductor memory unit 1a10 is a value representing the degree of consumption, deterioration, or failure of the nonvolatile semiconductor memory unit 1a10.

閾値データ1a10cは、監視対象ハードウェアである不揮発性半導体記憶部1a10の状態を表す値であるデータ書込み回数と比較するための、予め定められた閾値「10万回」を含む。   The threshold data 1a10c includes a predetermined threshold “100,000 times” for comparison with the number of times of data writing, which is a value representing the state of the nonvolatile semiconductor memory unit 1a10 that is the monitoring target hardware.

プログラマブルコントローラ10の動作について、説明する。   The operation of the programmable controller 10 will be described.

実施の形態2にかかるプログラマブルコントローラ10の処理を示すフローチャートは、図2で示した、実施の形態1にかかるプログラマブルコントローラ1の処理を示すフローチャートと同様である。従って、図2を参照して、実施の形態2にかかるプログラマブルコントローラ10の処理を説明する。   The flowchart showing the process of the programmable controller 10 according to the second embodiment is the same as the flowchart showing the process of the programmable controller 1 according to the first embodiment shown in FIG. Therefore, with reference to FIG. 2, the process of the programmable controller 10 concerning Embodiment 2 is demonstrated.

状態監視部1a1b1は、ステップS100において、監視対象ハードウェアである不揮発性半導体記憶部1a10の状態を表す値であるデータ書込み回数を、不揮発性半導体記憶部1a10内のコントローラ1a10dを監視することで、監視する。   In step S100, the state monitoring unit 1a1b1 monitors the controller 1a10d in the non-volatile semiconductor storage unit 1a10 by monitoring the number of data writes that is a value representing the state of the non-volatile semiconductor storage unit 1a10 that is the monitoring target hardware. Monitor.

状態監視部1a1b1は、ステップS102において、監視対象ハードウェアである不揮発性半導体記憶部1a10の状態を表す値であるデータ書込み回数が閾値「10万回」に達したか否かを判定する。   In step S102, the state monitoring unit 1a1b1 determines whether or not the number of times of data writing, which is a value representing the state of the nonvolatile semiconductor storage unit 1a10 that is the monitoring target hardware, has reached the threshold “100,000 times”.

状態監視部1a1b1は、監視対象ハードウェアである不揮発性半導体記憶部1a10の状態を表す値であるデータ書込み回数が閾値「10万回」に達していないと判定したら(No)、処理をステップS100に進める。   If the state monitoring unit 1a1b1 determines that the number of data writes, which is a value representing the state of the nonvolatile semiconductor storage unit 1a10 that is the monitoring target hardware, has not reached the threshold “100,000 times” (No), the process is performed in step S100. Proceed to

状態監視部1a1b1は、監視対象ハードウェアである不揮発性半導体記憶部1a10の状態を表す値であるデータ書込み回数が閾値「10万回」に達したと判定したら(Yes)、処理をステップS104に進める。   If the state monitoring unit 1a1b1 determines that the number of data writings, which is a value representing the state of the nonvolatile semiconductor storage unit 1a10 that is the monitoring target hardware, has reached the threshold “100,000 times” (Yes), the process proceeds to step S104. Proceed.

バックアップ処理部1a1b2は、ステップS104において、データ又はプログラムをバックアップ対象記憶部である不揮発性半導体記憶部1a10から読み出してバックアップ記憶部1a6aに書き込んでバックアップし、処理をステップS100に進める。   In step S104, the backup processing unit 1a1b2 reads the data or program from the nonvolatile semiconductor storage unit 1a10 that is the backup target storage unit, writes the data or program in the backup storage unit 1a6a, backs up, and advances the processing to step S100.

なお、バックアップ処理部1a1b2は、データ又はプログラムをバックアップ記憶部1a6aに書き込んでバックアップする際に、バックアップの日付及び時刻並びにバックアップの原因「書込み回数が閾値に到達」を、データ又はプログラムに付帯させて、バックアップ記憶部1a6aに書き込んでバックアップすると好適である。   When the backup processing unit 1a1b2 writes data or a program to the backup storage unit 1a6a and backs up, the backup date and time and the cause of the backup “the number of times the write has reached the threshold” are attached to the data or program. It is preferable that data is backed up by writing in the backup storage unit 1a6a.

実施の形態2にかかるプログラマブルコントローラ10は、次の効果を奏する。   The programmable controller 10 according to the second embodiment has the following effects.

監視対象ハードウェアである不揮発性半導体記憶部1a10は、データ又はプログラムの書込みの都度、絶縁膜が消耗、劣化又は故障する。つまり、不揮発性半導体記憶部1a10は、データ又はプログラムの書込み回数に関して寿命がある。不揮発性半導体記憶部1a10は、寿命に達すると、データ又はプログラムの書込みが行えなくなり、データ又はプログラムの保持が行えなくなり、データ又はプログラムの読出しが行えなくなる。   In the nonvolatile semiconductor memory unit 1a10 that is the monitoring target hardware, the insulating film is consumed, deteriorated, or failed every time data or a program is written. That is, the nonvolatile semiconductor memory unit 1a10 has a lifetime with respect to the number of data or program writes. When the non-volatile semiconductor storage unit 1a10 reaches the end of its life, data or program cannot be written, data or program cannot be held, and data or program cannot be read.

状態監視部1a1b1は、監視対象ハードウェアである不揮発性半導体記憶部1a10の状態を表す値であるデータ書込み回数が閾値「10万回」に達したか否かを判定する。   The state monitoring unit 1a1b1 determines whether or not the number of times of data writing, which is a value representing the state of the nonvolatile semiconductor storage unit 1a10 that is the monitoring target hardware, has reached the threshold “100,000 times”.

バックアップ処理部1a1b2は、監視対象ハードウェアである不揮発性半導体記憶部1a10の状態を表す値であるデータ書込み回数が閾値「10万回」に達したと状態監視部1a1b1で判定されたら、データ又はプログラムをバックアップ対象記憶部である不揮発性半導体記憶部1a10から読み出してバックアップ記憶部1a6aに書き込む。   When the state monitoring unit 1a1b1 determines that the number of times of data writing, which is a value indicating the state of the nonvolatile semiconductor storage unit 1a10 that is the monitoring target hardware, has reached the threshold “100,000 times”, the backup processing unit 1a1b2 The program is read from the non-volatile semiconductor storage unit 1a10 that is a backup target storage unit and written to the backup storage unit 1a6a.

これにより、実施の形態2にかかるプログラマブルコントローラ10は、監視対象ハードウェアである不揮発性半導体記憶部1a10の消耗、劣化又は故障を察知して、バックアップ対象記憶部である不揮発性半導体記憶部1a10内のデータ又はプログラムが失われる前に、バックアップ対象記憶部である不揮発性半導体記憶部1a10内のデータ又はプログラムをバックアップ記憶部1a6aにバックアップすることができる。   As a result, the programmable controller 10 according to the second embodiment senses the consumption, deterioration, or failure of the nonvolatile semiconductor storage unit 1a10 that is the monitoring target hardware, and the nonvolatile controller 10a in the nonvolatile semiconductor storage unit 1a10 that is the backup target storage unit Before the data or program is lost, the data or program in the non-volatile semiconductor storage unit 1a10, which is the backup target storage unit, can be backed up to the backup storage unit 1a6a.

従って、実施の形態2にかかるプログラマブルコントローラ10は、監視対象ハードウェアである不揮発性半導体記憶部1a10の消耗、劣化又は故障によりバックアップ対象記憶部である不揮発性半導体記憶部1a10内のデータ又はプログラムが失われることを抑制することができる。   Therefore, in the programmable controller 10 according to the second embodiment, the data or program in the nonvolatile semiconductor storage unit 1a10 that is the backup target storage unit is lost due to the consumption, deterioration, or failure of the nonvolatile semiconductor storage unit 1a10 that is the monitoring target hardware. It can be suppressed from being lost.

これにより、ユーザがプログラマブルコントローラ10のハードウェア状態を監視してプロジェクトデータ1a10aをバックアップする作業工数を抑制することが可能である。   Thereby, it is possible for the user to monitor the hardware state of the programmable controller 10 and suppress the work man-hours for backing up the project data 1a10a.

実施の形態3.
図5は、実施の形態3にかかるプログラマブルコントローラの構成を示す図である。実施の形態3にかかるプログラマブルコントローラ20は、実施の形態1にかかるプログラマブルコントローラ1と比較すると、メイン基板1aに代えて、メイン基板20aを含む。
Embodiment 3 FIG.
FIG. 5 is a diagram illustrating a configuration of a programmable controller according to the third embodiment. When compared with the programmable controller 1 according to the first embodiment, the programmable controller 20 according to the third embodiment includes a main board 20a instead of the main board 1a.

メイン基板20aは、実施の形態1のメイン基板1aと比較すると、電圧センサ1a5を備えていない。   Compared with main board 1a of the first embodiment, main board 20a does not include voltage sensor 1a5.

また、メイン基板20aは、実施の形態1のメイン基板1aと比較すると、メイン基板20aの温度を計測する温度センサ1a11を更に含む。   The main board 20a further includes a temperature sensor 1a11 that measures the temperature of the main board 20a as compared with the main board 1a of the first embodiment.

実施の形態3では、揮発性半導体記憶部1a3又は不揮発性半導体記憶部1a10が、本発明のバックアップ対象記憶部に対応する。   In Embodiment 3, the volatile semiconductor storage unit 1a3 or the nonvolatile semiconductor storage unit 1a10 corresponds to the backup target storage unit of the present invention.

また、実施の形態3では、メイン基板20aが、本発明の監視対象ハードウェアに対応する。   In the third embodiment, the main board 20a corresponds to the monitoring target hardware of the present invention.

メイン基板20aの温度が上昇するのは、メイン基板20aに実装されている部品の温度が上昇するからである。従って、メイン基板20aに実装されている部品が消耗、劣化又は故障して、部品の温度が部品仕様上の温度を超えて上昇すると、メイン基板20aの温度が製品仕様上の温度を超えて上昇する。従って、メイン基板20aの温度は、メイン基板20aに実装されている部品の消耗、劣化又は故障の度合いを表す値である。   The temperature of the main board 20a rises because the temperature of components mounted on the main board 20a rises. Accordingly, when the component mounted on the main board 20a is consumed, deteriorated, or failed, and the temperature of the component rises above the temperature on the part specification, the temperature of the main board 20a rises above the temperature on the product specification. To do. Therefore, the temperature of the main board 20a is a value representing the degree of wear, deterioration, or failure of components mounted on the main board 20a.

メイン基板20aの温度が製品仕様上の温度を超えると、メイン基板20aの各部又はメイン基板20a上の各部品の消耗、劣化又は故障を招き、揮発性半導体記憶部1a3又は不揮発性半導体記憶部1a10に記憶されているデータ又はプログラムが失われたり、読み出せなくなったりする。   When the temperature of the main board 20a exceeds the temperature in the product specification, each part of the main board 20a or each part on the main board 20a is consumed, deteriorated, or malfunctioned, and the volatile semiconductor storage unit 1a3 or the nonvolatile semiconductor storage unit 1a10. The data or program stored in the memory is lost or cannot be read.

閾値データ1a10cは、監視対象ハードウェアであるメイン基板20aの状態を表す値である温度と比較するための、予め定められた閾値「45℃」を含む。   The threshold data 1a10c includes a predetermined threshold “45 ° C.” for comparison with a temperature that is a value representing the state of the main board 20a that is the monitoring target hardware.

なお、温度センサ1a11は、メイン基板20a上に実装されても良いし、メイン基板20aを収容している筐体に実装されても良い。筐体内の雰囲気の温度は、メイン基板20aの温度と相関関係がある。従って、温度センサ1a11は、メイン基板20aを収容している筐体に実装されて、筐体内の雰囲気の温度を計測しても良い。   The temperature sensor 1a11 may be mounted on the main board 20a, or may be mounted on a housing that houses the main board 20a. The temperature of the atmosphere in the housing has a correlation with the temperature of the main board 20a. Therefore, the temperature sensor 1a11 may be mounted on a housing that houses the main board 20a and measure the temperature of the atmosphere in the housing.

また、温度センサ1a11は、メイン基板20a上に実装される場合は、消耗部品の近傍に実装されても良い。消耗部品は、電解コンデンサが例示される。電解コンデンサは、使用とともに電解液が徐々に失われ、静電容量が低下するので、温度が上昇する。つまり、電解コンデンサは、消耗、劣化又は故障により、温度が上昇する。   Further, when the temperature sensor 1a11 is mounted on the main board 20a, it may be mounted in the vicinity of the consumable part. The consumable part is exemplified by an electrolytic capacitor. With an electrolytic capacitor, the electrolyte gradually loses with use and the capacitance decreases, so the temperature rises. That is, the temperature of the electrolytic capacitor rises due to wear, deterioration, or failure.

温度センサ1a11を消耗部品の近傍に実装するとは、温度センサ1a11と消耗部品との間の距離が、温度センサ1a11と他の部品との間の距離よりも短くなる場所に実装することをいう。   Mounting the temperature sensor 1a11 in the vicinity of the consumable component means that the temperature sensor 1a11 is mounted in a place where the distance between the temperature sensor 1a11 and the consumable component is shorter than the distance between the temperature sensor 1a11 and other components.

また、温度センサ1a11は、メイン基板20a上に実装される場合は、消耗、劣化又は故障により温度上昇する部品の近傍に実装されても良い。消耗、劣化又は故障により温度上昇する部品は、通信インタフェース1a7が例示される。通信インタフェース1a7は、有線ネットワーク又は無線ネットワーク上に信号を送信するアナログ部品を有するので、消耗、劣化又は故障により、温度が上昇する。アナログ部品は、オペアンプが例示される。   Further, when the temperature sensor 1a11 is mounted on the main board 20a, it may be mounted in the vicinity of a component whose temperature rises due to wear, deterioration or failure. The communication interface 1a7 is exemplified as a component whose temperature rises due to wear, deterioration, or failure. Since the communication interface 1a7 has analog components that transmit signals over a wired network or a wireless network, the temperature rises due to wear, deterioration, or failure. The analog component is exemplified by an operational amplifier.

温度センサ1a11を消耗、劣化又は故障により温度上昇する部品の近傍に実装するとは、温度センサ1a11と消耗、劣化又は故障により温度上昇する部品との間の距離が、温度センサ1a11と他の部品との間の距離よりも短くなる場所に実装することをいう。   Mounting the temperature sensor 1a11 in the vicinity of a component that increases in temperature due to wear, deterioration, or failure means that the distance between the temperature sensor 1a11 and the component that increases in temperature due to wear, deterioration, or failure is the same as the temperature sensor 1a11 and other components. Mounting in a place that is shorter than the distance between.

プログラマブルコントローラ20の動作について、説明する。   The operation of the programmable controller 20 will be described.

実施の形態3にかかるプログラマブルコントローラ20の処理を示すフローチャートは、図2で示した、実施の形態1にかかるプログラマブルコントローラ1の処理を示すフローチャートと同様である。従って、図2を参照して、実施の形態3にかかるプログラマブルコントローラ20の処理を説明する。   The flowchart showing the process of the programmable controller 20 according to the third embodiment is the same as the flowchart showing the process of the programmable controller 1 according to the first embodiment shown in FIG. Therefore, with reference to FIG. 2, the process of the programmable controller 20 concerning Embodiment 3 is demonstrated.

状態監視部1a1b1は、ステップS100において、監視対象ハードウェアであるメイン基板20aの状態を表す値である温度を、温度センサ1a11を使用して監視する。   In step S100, the state monitoring unit 1a1b1 monitors the temperature, which is a value representing the state of the main board 20a, which is the monitoring target hardware, using the temperature sensor 1a11.

状態監視部1a1b1は、ステップS102において、監視対象ハードウェアであるメイン基板20aの状態を表す値である温度が閾値「45℃」に達したか否かを判定する。   In step S102, the state monitoring unit 1a1b1 determines whether or not the temperature that is a value representing the state of the main board 20a that is the monitoring target hardware has reached the threshold “45 ° C.”.

状態監視部1a1b1は、監視対象ハードウェアであるメイン基板20aの状態を表す値である温度が閾値「45℃」に達していないと判定したら(No)、処理をステップS100に進める。   If the state monitoring unit 1a1b1 determines that the temperature, which is a value representing the state of the main board 20a that is the monitoring target hardware, has not reached the threshold “45 ° C.” (No), the process proceeds to step S100.

状態監視部1a1b1は、監視対象ハードウェアであるメイン基板20aの状態を表す値である温度が閾値「45℃」に達したと判定したら(Yes)、処理をステップS104に進める。   If the state monitoring unit 1a1b1 determines that the temperature, which is a value representing the state of the main board 20a that is the monitoring target hardware, has reached the threshold “45 ° C.” (Yes), the process proceeds to step S104.

バックアップ処理部1a1b2は、ステップS104において、データ又はプログラムをバックアップ対象記憶部である揮発性半導体記憶部1a3から読み出してバックアップ記憶部1a6aに書き込んでバックアップし、処理をステップS100に進める。または、バックアップ処理部1a1b2は、ステップS104において、データ又はプログラムをバックアップ対象記憶部である不揮発性半導体記憶部1a10から読み出してバックアップ記憶部1a6aに書き込んでバックアップし、処理をステップS100に進める。   In step S104, the backup processing unit 1a1b2 reads the data or program from the volatile semiconductor storage unit 1a3 that is the backup target storage unit, writes the data or program in the backup storage unit 1a6a, backs up, and advances the processing to step S100. Alternatively, in step S104, the backup processing unit 1a1b2 reads data or a program from the nonvolatile semiconductor storage unit 1a10 that is a backup target storage unit, writes the data or program in the backup storage unit 1a6a, backs up, and advances the processing to step S100.

なお、バックアップ処理部1a1b2は、データ又はプログラムをバックアップ記憶部1a6aに書き込んでバックアップする際に、バックアップの日付及び時刻並びにバックアップの原因「温度が閾値に到達」を、データ又はプログラムに付帯させて、バックアップ記憶部1a6aに書き込んでバックアップすると好適である。   When the backup processing unit 1a1b2 writes the data or program to the backup storage unit 1a6a and backs up, the backup date and time and the cause of the backup “temperature reaches a threshold” are attached to the data or program, It is preferable to perform backup by writing to the backup storage unit 1a6a.

実施の形態3にかかるプログラマブルコントローラ20は、次の効果を奏する。   The programmable controller 20 according to the third embodiment has the following effects.

監視対象ハードウェアであるメイン基板20aに実装されている部品が消耗、劣化又は故障して、部品の温度が部品仕様上の温度を超えて上昇すると、監視対象ハードウェアであるメイン基板20aの温度が製品仕様上の温度を超えて上昇する。   When the component mounted on the main board 20a that is the monitoring target hardware is consumed, deteriorated, or failed, and the temperature of the component rises above the temperature in the component specifications, the temperature of the main board 20a that is the monitoring target hardware Rises above the product specifications.

メイン基板20aの温度が製品仕様上の温度を超えると、メイン基板20aの各部又はメイン基板20a上の各部品の消耗、劣化又は故障を招き、揮発性半導体記憶部1a3又は不揮発性半導体記憶部1a10に記憶されているデータ又はプログラムが失われたり、読み出せなくなったりする。   When the temperature of the main board 20a exceeds the temperature in the product specification, each part of the main board 20a or each part on the main board 20a is consumed, deteriorated, or malfunctioned, and the volatile semiconductor storage unit 1a3 or the nonvolatile semiconductor storage unit 1a10. The data or program stored in the memory is lost or cannot be read.

状態監視部1a1b1は、監視対象ハードウェアであるメイン基板20aの状態を表す値である温度が閾値「45℃」に達したか否かを判定する。   The state monitoring unit 1a1b1 determines whether or not the temperature, which is a value representing the state of the main board 20a that is the monitoring target hardware, has reached the threshold “45 ° C.”.

バックアップ処理部1a1b2は、監視対象ハードウェアであるメイン基板20aの状態を表す値である温度が閾値「45℃」に達したと状態監視部1a1b1で判定されたら、データ又はプログラムをバックアップ対象記憶部である揮発性半導体記憶部1a3から読み出してバックアップ記憶部1a6aに書き込む。または、バックアップ処理部1a1b2は、データ又はプログラムをバックアップ対象記憶部である不揮発性半導体記憶部1a10から読み出してバックアップ記憶部1a6aに書き込む。   When the state monitoring unit 1a1b1 determines that the temperature, which is a value representing the state of the main board 20a, which is the monitoring target hardware, has reached the threshold “45 ° C.”, the backup processing unit 1a1b2 stores the data or program as the backup target storage unit Are read from the volatile semiconductor storage unit 1a3 and written to the backup storage unit 1a6a. Alternatively, the backup processing unit 1a1b2 reads data or a program from the nonvolatile semiconductor storage unit 1a10 that is a backup target storage unit and writes the data or program to the backup storage unit 1a6a.

これにより、実施の形態3にかかるプログラマブルコントローラ20は、監視対象ハードウェアであるメイン基板20a上に実装された部品の消耗、劣化又は故障を察知して、バックアップ対象記憶部である揮発性半導体記憶部1a3内のデータ又はプログラムが失われる前に、バックアップ対象記憶部である揮発性半導体記憶部1a3内のデータ又はプログラムをバックアップ記憶部1a6aにバックアップすることができる。または、実施の形態3にかかるプログラマブルコントローラ20は、監視対象ハードウェアであるメイン基板20a上に実装された部品の消耗、劣化又は故障を察知して、バックアップ対象記憶部である不揮発性半導体記憶部1a10内のデータ又はプログラムが失われる前に、バックアップ対象記憶部である不揮発性半導体記憶部1a10内のデータ又はプログラムをバックアップ記憶部1a6aにバックアップすることができる。   As a result, the programmable controller 20 according to the third embodiment senses the consumption, deterioration, or failure of the components mounted on the main board 20a that is the monitoring target hardware, and the volatile semiconductor memory that is the backup target storage unit. Before the data or program in the unit 1a3 is lost, the data or program in the volatile semiconductor storage unit 1a3, which is the backup target storage unit, can be backed up to the backup storage unit 1a6a. Alternatively, the programmable controller 20 according to the third embodiment senses wear, deterioration, or failure of components mounted on the main board 20a that is monitoring target hardware, and is a non-volatile semiconductor storage unit that is a backup target storage unit Before the data or program in 1a10 is lost, the data or program in the nonvolatile semiconductor storage unit 1a10, which is the backup target storage unit, can be backed up to the backup storage unit 1a6a.

従って、実施の形態3にかかるプログラマブルコントローラ20は、監視対象ハードウェアであるメイン基板20a上に実装された部品の消耗、劣化又は故障によりバックアップ対象記憶部である揮発性半導体記憶部1a3内のデータ又はプログラムが失われることを抑制することができる。または、実施の形態3にかかるプログラマブルコントローラ20は、監視対象ハードウェアであるメイン基板20a上に実装された部品の消耗、劣化又は故障によりバックアップ対象記憶部である不揮発性半導体記憶部1a10内のデータ又はプログラムが失われることを抑制することができる。   Therefore, the programmable controller 20 according to the third embodiment has the data in the volatile semiconductor storage unit 1a3 that is the backup target storage unit due to wear, deterioration, or failure of the components mounted on the main board 20a that is the monitoring target hardware. Or it can suppress that a program is lost. Alternatively, the programmable controller 20 according to the third embodiment includes data in the nonvolatile semiconductor storage unit 1a10 that is a backup target storage unit due to wear, deterioration, or failure of components mounted on the main board 20a that is monitoring target hardware. Or it can suppress that a program is lost.

これにより、ユーザがプログラマブルコントローラ20のハードウェア状態を監視してデータ又はプログラムをバックアップする作業工数を抑制できる。   Thereby, the user can monitor the hardware state of the programmable controller 20, and can suppress the man-hours which back up data or a program.

実施の形態4.
図6は、実施の形態4にかかるプログラマブルコントローラの構成を示す図である。実施の形態4にかかるプログラマブルコントローラ30は、実施の形態1にかかるプログラマブルコントローラ1と比較すると、メイン基板1aに代えて、メイン基板30aを含む。
Embodiment 4 FIG.
FIG. 6 is a diagram illustrating a configuration of a programmable controller according to the fourth embodiment. When compared with the programmable controller 1 according to the first embodiment, the programmable controller 30 according to the fourth embodiment includes a main board 30a instead of the main board 1a.

メイン基板30aは、実施の形態1のメイン基板1aと比較すると、揮発性半導体記憶部1a3、バッテリ1a4及び電圧センサ1a5を備えていない。従って、プログラマブルコントローラ30では、データ及び制御プログラム1a10a1は、RAM1a2にロードされる。   Compared with the main substrate 1a of the first embodiment, the main substrate 30a does not include the volatile semiconductor storage unit 1a3, the battery 1a4, and the voltage sensor 1a5. Accordingly, in the programmable controller 30, the data and control program 1a10a1 is loaded into the RAM 1a2.

メイン基板30aの通信インタフェース1a7は、有線又は無線のネットワークNを介して、外部装置31と通信する。   The communication interface 1a7 of the main board 30a communicates with the external device 31 via a wired or wireless network N.

不揮発性半導体記憶部1a10は、通信インタフェース1a7と外部装置31との間の通信の物理的な設定を表す通信パラメータ1a10fを記憶する。   The nonvolatile semiconductor storage unit 1a10 stores a communication parameter 1a10f that represents a physical setting of communication between the communication interface 1a7 and the external device 31.

通信パラメータ1a10fは、通信速度、フレームサイズ、クロックマスタ又はクロックスレーブの区別、MDI(Medium Dependent Interface)又はMDI−X(Medium Dependent Interface Crossover)の区別が例示される。   Examples of the communication parameter 1a10f include communication speed, frame size, distinction between clock masters and clock slaves, distinction between MDI (Medium Dependent Interface) and MDI-X (Medium Dependent Interface Crossover).

実施の形態4では、不揮発性半導体記憶部1a10が、本発明のバックアップ対象記憶部に対応する。   In the fourth embodiment, the nonvolatile semiconductor storage unit 1a10 corresponds to the backup target storage unit of the present invention.

また、実施の形態4では、通信インタフェース1a7が、本発明の監視対象ハードウェアに対応する。   In the fourth embodiment, the communication interface 1a7 corresponds to the monitoring target hardware of the present invention.

通信インタフェース1a7は、有線ネットワーク又は無線ネットワーク上に信号を送信するアナログ部品を有するので、消耗、劣化又は故障する。   Since the communication interface 1a7 includes analog components that transmit signals over a wired network or a wireless network, the communication interface 1a7 is consumed, deteriorated, or failed.

通信インタフェース1a7に消耗、劣化又は故障がない場合には、通信インタフェース1a7と外部装置31との間での通信失敗の頻度は、非常に低い。なお、通信インタフェース1a7は、外部装置31との間での通信失敗が発生したら、通信をリトライする。   When the communication interface 1a7 is not consumed, deteriorated, or malfunctioned, the frequency of communication failure between the communication interface 1a7 and the external device 31 is very low. The communication interface 1a7 retries communication when a communication failure with the external device 31 occurs.

通信インタフェース1a7に消耗、劣化又は故障がある場合には、通信インタフェース1a7と外部装置31との間での通信失敗の頻度は、上昇する。そして、通信インタフェース1a7と外部装置31との間での通信失敗が複数回連続して発生するようになる。従って、通信インタフェース1a7と外部装置31との間での通信失敗の連続発生回数は、通信インタフェース1a7の消耗、劣化又は故障の度合いを表す値である。   When the communication interface 1a7 is consumed, deteriorated, or malfunctioned, the frequency of communication failure between the communication interface 1a7 and the external device 31 increases. Then, communication failure between the communication interface 1a7 and the external device 31 occurs continuously a plurality of times. Therefore, the number of continuous occurrences of communication failure between the communication interface 1a7 and the external device 31 is a value representing the degree of wear, deterioration, or failure of the communication interface 1a7.

通信インタフェース1a7の消耗、劣化又は故障が更に進行すると、通信インタフェース1a7と外部装置31との間の通信が不能になり、外部装置31が不揮発性半導体記憶部1a10に記憶されている通信パラメータ1a10f又はプロジェクトデータ1a10aを読み出せなくなる。   When the communication interface 1a7 is further consumed, deteriorated, or broken down, communication between the communication interface 1a7 and the external device 31 becomes impossible, and the external device 31 stores the communication parameter 1a10f stored in the nonvolatile semiconductor storage unit 1a10 or The project data 1a10a cannot be read.

閾値データ1a10cは、監視対象ハードウェアである通信インタフェース1a7の状態を表す値である通信連続失敗回数と比較するための、予め定められた閾値「3回」を含む。   The threshold data 1a10c includes a predetermined threshold “3 times” for comparison with the number of consecutive communication failures that is a value representing the state of the communication interface 1a7 that is the monitoring target hardware.

プログラマブルコントローラ30の動作について、説明する。   The operation of the programmable controller 30 will be described.

実施の形態4にかかるプログラマブルコントローラ30の処理を示すフローチャートは、図2で示した、実施の形態1にかかるプログラマブルコントローラ1の処理を示すフローチャートと同様である。従って、図2を参照して、実施の形態4にかかるプログラマブルコントローラ30の処理を説明する。   The flowchart showing the process of the programmable controller 30 according to the fourth embodiment is the same as the flowchart showing the process of the programmable controller 1 according to the first embodiment shown in FIG. Therefore, the process of the programmable controller 30 according to the fourth embodiment will be described with reference to FIG.

状態監視部1a1b1は、ステップS100において、監視対象ハードウェアである通信インタフェース1a7の状態を表す値である通信連続失敗回数を、通信インタフェース1a7を監視することで、監視する。   In step S100, the state monitoring unit 1a1b1 monitors the communication interface 1a7 by monitoring the communication interface 1a7, which is a value representing the state of the communication interface 1a7 that is the monitoring target hardware.

状態監視部1a1b1は、ステップS102において、監視対象ハードウェアである通信インタフェース1a7の状態を表す値である通信連続失敗回数が閾値「3回」に達したか否かを判定する。   In step S102, the state monitoring unit 1a1b1 determines whether or not the number of consecutive communication failures, which is a value representing the state of the communication interface 1a7 that is the monitoring target hardware, has reached the threshold “3 times”.

状態監視部1a1b1は、監視対象ハードウェアである通信インタフェース1a7の状態を表す値である通信連続失敗回数が閾値「3回」に達していないと判定したら(No)、処理をステップS100に進める。   If the state monitoring unit 1a1b1 determines that the number of consecutive communication failures, which is a value representing the state of the communication interface 1a7 that is the monitoring target hardware, has not reached the threshold “3 times” (No), the process proceeds to step S100.

状態監視部1a1b1は、監視対象ハードウェアである通信インタフェース1a7の状態を表す値である通信連続失敗回数が閾値「3回」に達したと判定したら(Yes)、処理をステップS104に進める。   If the state monitoring unit 1a1b1 determines that the number of consecutive communication failures, which is a value representing the state of the communication interface 1a7 that is the monitoring target hardware, has reached the threshold “3 times” (Yes), the process proceeds to step S104.

バックアップ処理部1a1b2は、ステップS104において、通信パラメータ1a10fを含むデータ又はプログラムをバックアップ対象記憶部である不揮発性半導体記憶部1a10から読み出してバックアップ記憶部1a6aに書き込んでバックアップし、処理をステップS100に進める。   In step S104, the backup processing unit 1a1b2 reads data or a program including the communication parameter 1a10f from the nonvolatile semiconductor storage unit 1a10 that is the backup target storage unit, writes the data or program in the backup storage unit 1a6a, and backs up, and the process proceeds to step S100. .

なお、バックアップ処理部1a1b2は、データ又はプログラムをバックアップ記憶部1a6aに書き込んでバックアップする際に、バックアップの日付及び時刻並びにバックアップの原因「通信連続失敗回数が閾値に到達」を、データ又はプログラムに付帯させて、バックアップ記憶部1a6aに書き込んでバックアップすると好適である。   When the backup processing unit 1a1b2 writes data or a program to the backup storage unit 1a6a for backup, the backup date and time and the cause of the backup “the number of consecutive communication failures reaches the threshold” are attached to the data or program. Thus, it is preferable to write in the backup storage unit 1a6a for backup.

実施の形態4にかかるプログラマブルコントローラ30は、次の効果を奏する。   The programmable controller 30 according to the fourth embodiment has the following effects.

監視対象ハードウェアである通信インタフェース1a7に消耗、劣化又は故障がある場合には、通信インタフェース1a7と外部装置31との間での通信エラーつまり通信失敗の頻度は、上昇する。そして、通信インタフェース1a7と外部装置31との間での通信失敗が複数回連続して発生するようになる。   When the communication interface 1a7, which is the hardware to be monitored, is consumed, deteriorated, or failed, the frequency of communication errors, that is, communication failures between the communication interface 1a7 and the external device 31 increases. Then, communication failure between the communication interface 1a7 and the external device 31 occurs continuously a plurality of times.

通信インタフェース1a7の消耗、劣化又は故障が更に進行すると、通信インタフェース1a7と外部装置31との間の通信が不能になり、外部装置31が不揮発性半導体記憶部1a10に記憶されている通信パラメータ1a10fを含むデータ又はプログラムを読み出せなくなる。   When the communication interface 1a7 is further consumed, deteriorated, or failed, communication between the communication interface 1a7 and the external device 31 becomes impossible, and the external device 31 sets the communication parameter 1a10f stored in the nonvolatile semiconductor storage unit 1a10. The data or program that it contains cannot be read.

状態監視部1a1b1は、監視対象ハードウェアである通信インタフェース1a7の状態を表す値である通信連続失敗回数が閾値「3回」に達したか否かを判定する。   The state monitoring unit 1a1b1 determines whether or not the number of consecutive communication failures, which is a value representing the state of the communication interface 1a7 that is the monitoring target hardware, has reached the threshold “3 times”.

バックアップ処理部1a1b2は、監視対象ハードウェアである通信インタフェース1a7の状態を表す値である通信連続失敗回数が閾値「3回」に達したと状態監視部1a1b1で判定されたら、通信パラメータ1a10fを含むデータ又はプログラムをバックアップ対象記憶部である不揮発性半導体記憶部1a10から読み出してバックアップ記憶部1a6aに書き込む。   The backup processing unit 1a1b2 includes the communication parameter 1a10f if the state monitoring unit 1a1b1 determines that the communication continuous failure count, which is a value representing the state of the communication interface 1a7 that is the monitoring target hardware, has reached the threshold “3 times”. Data or a program is read from the non-volatile semiconductor storage unit 1a10 that is a backup target storage unit and written to the backup storage unit 1a6a.

これにより、実施の形態4にかかるプログラマブルコントローラ30は、監視対象ハードウェアである通信インタフェース1a7の消耗、劣化又は故障を察知して、バックアップ対象記憶部である不揮発性半導体記憶部1a10内の通信パラメータ1a10fを含むデータ又はプログラムをバックアップ記憶部1a6aにバックアップすることができる。   Thereby, the programmable controller 30 according to the fourth embodiment senses the consumption, deterioration, or failure of the communication interface 1a7 that is the monitoring target hardware, and the communication parameters in the nonvolatile semiconductor storage unit 1a10 that is the backup target storage unit. Data or programs including 1a10f can be backed up in the backup storage unit 1a6a.

従って、実施の形態4にかかるプログラマブルコントローラ30は、監視対象ハードウェアである通信インタフェース1a7の消耗、劣化又は故障により不揮発性半導体記憶部1a10内の通信パラメータ1a10fを含むデータ又はプログラムが失われることを抑制できる。   Therefore, the programmable controller 30 according to the fourth embodiment indicates that data or a program including the communication parameter 1a10f in the nonvolatile semiconductor memory unit 1a10 is lost due to consumption, deterioration, or failure of the communication interface 1a7 that is the monitoring target hardware. Can be suppressed.

これにより、ユーザがプログラマブルコントローラ30のハードウェア状態を監視してデータ又はプログラムをバックアップする作業工数を抑制できる。   Thereby, the user can monitor the hardware state of the programmable controller 30, and can suppress the man-hours which back up data or a program.

なお、実施の形態4では、監視対象ハードウェアを通信インタフェース1a7としたが、監視対象ハードウェアをUSBインタフェース1a8又はバスインタフェース1a9とし、USB通信連続失敗回数又はバス通信連続失敗回数を監視しても良い。   In the fourth embodiment, the monitoring target hardware is the communication interface 1a7. However, even if the monitoring target hardware is the USB interface 1a8 or the bus interface 1a9, the USB communication continuous failure count or the bus communication continuous failure count is monitored. good.

実施の形態5.
図7は、実施の形態5にかかる制御システムの構成を示す図である。実施の形態5にかかる制御システム40は、プログラマブルコントローラ41と、プログラマブルコントローラ41と通信する外部装置50と、を含む。
Embodiment 5 FIG.
FIG. 7 is a diagram illustrating a configuration of a control system according to the fifth embodiment. The control system 40 according to the fifth embodiment includes a programmable controller 41 and an external device 50 that communicates with the programmable controller 41.

プログラマブルコントローラ41は、図1で示した、実施の形態1にかかるプログラマブルコントローラ1と比較すると、メイン基板1aに代えて、メイン基板41aを含む。   Compared with the programmable controller 1 according to the first embodiment shown in FIG. 1, the programmable controller 41 includes a main board 41a instead of the main board 1a.

メイン基板41aは、実施の形態1のメイン基板1aと比較すると、実施の形態3で説明した温度センサ1a11を、更に含む。   The main board 41a further includes the temperature sensor 1a11 described in the third embodiment as compared with the main board 1a of the first embodiment.

不揮発性半導体記憶部1a10は、実施の形態4で説明した通信パラメータ1a10fを記憶する。   The nonvolatile semiconductor storage unit 1a10 stores the communication parameter 1a10f described in the fourth embodiment.

メイン基板41aの通信インタフェース1a7は、有線又は無線のネットワークNを介して、外部装置50と通信する。   The communication interface 1a7 of the main board 41a communicates with the external device 50 via a wired or wireless network N.

図8は、実施の形態5にかかる制御システムの外部装置のハードウェア構成を示す図である。実施の形態5では、外部装置50は、コンピュータである。コンピュータは、CPU51と、RAM52と、ROM(Read Only Memory)53と、記憶部54と、入力部55と、表示部56と、通信インタフェース57と、リムーバブルな記憶部材である記憶部59が挿入されたスロット58と、を含む。CPU51、RAM52、ROM53、記憶部54、入力部55、表示部56、通信インタフェース57及びスロット58は、バスBを介して接続されている。   FIG. 8 is a diagram illustrating a hardware configuration of an external device of the control system according to the fifth embodiment. In the fifth embodiment, the external device 50 is a computer. In the computer, a CPU 51, a RAM 52, a ROM (Read Only Memory) 53, a storage unit 54, an input unit 55, a display unit 56, a communication interface 57, and a storage unit 59 which is a removable storage member are inserted. Slot 58. The CPU 51, RAM 52, ROM 53, storage unit 54, input unit 55, display unit 56, communication interface 57, and slot 58 are connected via the bus B.

CPU51は、RAM52を作業領域として使用しながら、ROM53及び記憶部54に記憶されているプログラムを実行する。ROM53に記憶されているプログラムは、BIOS(Basic Input/Output System)又はUEFI(Unified Extensible Firmware Interface)が例示される。記憶部54に記憶されているプログラムは、オペレーティングシステムプログラム及びエンジニアリングツールプログラムが例示される。記憶部54は、SSD又はHDD(Hard Disk Drive)が例示される。   The CPU 51 executes programs stored in the ROM 53 and the storage unit 54 while using the RAM 52 as a work area. The program stored in the ROM 53 is exemplified by BIOS (Basic Input / Output System) or UEFI (Unified Extensible Firmware Interface). Examples of the program stored in the storage unit 54 include an operating system program and an engineering tool program. The storage unit 54 is exemplified by an SSD or an HDD (Hard Disk Drive).

入力部55は、ユーザからの操作入力を受け付ける。入力部55は、キーボード又はマウスが例示される。表示部56は、文字及び画像を表示する。表示部56は、液晶表示装置が例示される。通信インタフェース57は、プログラマブルコントローラ41と通信を行う。   The input unit 55 receives an operation input from the user. The input unit 55 is exemplified by a keyboard or a mouse. The display unit 56 displays characters and images. The display unit 56 is exemplified by a liquid crystal display device. The communication interface 57 communicates with the programmable controller 41.

図9は、実施の形態5にかかる制御システムの外部装置の機能ブロックを示す図である。記憶部54は、エンジニアリングツールプログラム54aを記憶する。CPU51がエンジニアリングツールプログラム54aを実行することで、エンジニアリングツール部51aが実現される。   FIG. 9 is a functional block diagram of an external device of the control system according to the fifth embodiment. The storage unit 54 stores an engineering tool program 54a. The engineering tool unit 51a is realized by the CPU 51 executing the engineering tool program 54a.

エンジニアリングツールプログラム54aは、ユーザからの入力に基づいてプロジェクトデータ1a10aを作成してプログラマブルコントローラ41に送信するプロジェクトデータ作成プログラム54a1を含む。   The engineering tool program 54a includes a project data creation program 54a1 that creates project data 1a10a based on an input from the user and transmits it to the programmable controller 41.

CPU51がプロジェクトデータ作成プログラム54a1を実行することで、ユーザからの入力に基づいてプロジェクトデータ1a10aを作成してプログラマブルコントローラ41に送信するプロジェクトデータ作成部51a1が実現される。   When the CPU 51 executes the project data creation program 54a1, the project data creation unit 51a1 that creates the project data 1a10a based on the input from the user and transmits it to the programmable controller 41 is realized.

エンジニアリングツールプログラム54aは、ユーザからの入力に基づいてバックアッププログラム1a10bを作成してプログラマブルコントローラ41に送信するバックアッププログラム作成プログラム54a2を含む。   The engineering tool program 54a includes a backup program creation program 54a2 that creates the backup program 1a10b based on the input from the user and transmits it to the programmable controller 41.

CPU51がバックアッププログラム作成プログラム54a2を実行することで、ユーザからの入力に基づいてバックアッププログラム1a10bを作成してプログラマブルコントローラ41に送信するバックアッププログラム作成部51a2が実現される。   When the CPU 51 executes the backup program creation program 54a2, the backup program creation unit 51a2 that creates the backup program 1a10b based on the input from the user and transmits it to the programmable controller 41 is realized.

エンジニアリングツールプログラム54aは、ユーザからの入力に基づいて閾値データ1a10cを作成してプログラマブルコントローラ41に送信する閾値データ作成プログラム54a3を含む。   The engineering tool program 54a includes a threshold data creation program 54a3 that creates threshold data 1a10c based on input from the user and transmits the threshold data 1a10c to the programmable controller 41.

CPU51が閾値データ作成プログラム54a3を実行することで、ユーザからの入力に基づいて閾値データ1a10cを作成してプログラマブルコントローラ41に送信する閾値データ作成部51a3が実現される。   When the CPU 51 executes the threshold data creation program 54a3, the threshold data creation unit 51a3 that creates the threshold data 1a10c based on the input from the user and transmits it to the programmable controller 41 is realized.

閾値データ作成プログラム54a3は、1つ又は複数の監視対象ハードウェアの監視の要否と、1つ又は複数の監視対象ハードウェアの状態を夫々判定するための1つ又は複数の閾値と、を対応付けて入力するための入力画面を表示する入力画面表示プログラム54a3aを含む。   The threshold data creation program 54a3 corresponds to the necessity of monitoring one or more monitored hardware and one or more thresholds for determining the status of one or more monitored hardware, respectively. It includes an input screen display program 54a3a that displays an input screen for input.

CPU51が入力画面表示プログラム54a3aを実行することで、1つ又は複数の監視対象ハードウェアの監視の要否と、1つ又は複数の監視対象ハードウェアの状態を夫々判定するための1つ又は複数の閾値と、を対応付けて入力するための入力画面を表示する入力画面表示部51a3aが実現される。   By executing the input screen display program 54a3a by the CPU 51, one or a plurality of items for determining whether or not one or a plurality of monitoring target hardware needs to be monitored and the state of the one or a plurality of monitoring target hardwares, respectively. An input screen display unit 51a3a for displaying an input screen for inputting the threshold value in association with each other is realized.

閾値データ作成プログラム54a3は、入力画面への入力を受け付ける入力受付プログラム54a3bを含む。   The threshold data creation program 54a3 includes an input reception program 54a3b that receives input to the input screen.

CPU51が閾値データ作成プログラム54a3を実行することで、入力画面への入力を受け付ける入力受付部51a3bが実現される。   When the CPU 51 executes the threshold data creation program 54a3, an input receiving unit 51a3b that receives an input on the input screen is realized.

閾値データ作成プログラム54a3は、入力受付部51a3bで受け付けられた入力に基づいて、1つ又は複数の監視対象ハードウェアの監視の要否と、1つ又は複数の閾値と、を対応付けて有する閾値データ1a10cを作成する作成プログラム54a3cを含む。   The threshold data creation program 54a3 has a threshold value that correlates the necessity of monitoring one or more monitoring target hardware and one or more threshold values based on the input received by the input receiving unit 51a3b. A creation program 54a3c for creating data 1a10c is included.

CPU51が閾値データ作成プログラム54a3を実行することで、入力受付部51a3bで受け付けられた入力に基づいて、1つ又は複数の監視対象ハードウェアの監視の要否と、1つ又は複数の閾値と、を対応付けて有する閾値データ1a10cを作成する作成部51a3cが実現される。   When the CPU 51 executes the threshold data creation program 54a3, based on the input received by the input receiving unit 51a3b, whether or not one or more monitoring target hardware needs to be monitored, one or more thresholds, The creation unit 51a3c for creating the threshold data 1a10c having the associations is realized.

閾値データ作成プログラム54a3は、作成部51a3cで作成された閾値データ1a10cをプログラマブルコントローラ41に送信する送信プログラム54a3dを含む。   The threshold data creation program 54a3 includes a transmission program 54a3d that transmits the threshold data 1a10c created by the creation unit 51a3c to the programmable controller 41.

CPU51が送信プログラム54a3dを実行することで、作成部51a3cで作成された閾値データ1a10cをプログラマブルコントローラ41に送信する送信部51a3dが実現される。   When the CPU 51 executes the transmission program 54a3d, the transmission unit 51a3d that transmits the threshold data 1a10c created by the creation unit 51a3c to the programmable controller 41 is realized.

制御システム40の動作について、説明する。   The operation of the control system 40 will be described.

図10は、実施の形態5にかかる制御システムの外部装置の処理を示すフローチャートである。   FIG. 10 is a flowchart of a process performed by an external device of the control system according to the fifth embodiment.

入力画面表示部51a3aは、ステップS200において、1つ又は複数の監視対象ハードウェアの監視の要否と、1つ又は複数の監視対象ハードウェアの状態を夫々判定するための1つ又は複数の閾値と、を対応付けて入力するための入力画面を表示部56に表示する。   In step S200, the input screen display unit 51a3a determines one or more threshold values for determining whether or not one or a plurality of monitoring target hardware needs to be monitored and the state of the one or more monitoring target hardware, respectively. Are displayed on the display unit 56 in association with each other.

入力受付部51a3bは、ステップS202において、入力画面への入力を受け付ける。   In step S202, the input receiving unit 51a3b receives an input to the input screen.

図11は、実施の形態5にかかる制御システムの外部装置の表示部の表示面を示す図である。表示部56の表示面56a内には、入力画面60が、入力画面表示部51a3aにより表示されている。入力画面60は、現在から作成される閾値データ1a10cを送信する対象であるプログラマブルコントローラ41を一意に特定する情報を入力するための接続情報入力部61と、1つ又は複数の監視対象ハードウェアの監視の要否と、1つ又は複数の閾値と、を対応付けて入力するためのバックアップ設定入力部62と、を含む。   FIG. 11 is a diagram illustrating a display surface of the display unit of the external device of the control system according to the fifth embodiment. An input screen 60 is displayed on the display surface 56a of the display unit 56 by the input screen display unit 51a3a. The input screen 60 includes a connection information input unit 61 for inputting information for uniquely specifying the programmable controller 41 to which threshold data 1a10c created from the present time is transmitted, and one or a plurality of monitoring target hardware. And a backup setting input unit 62 for inputting the necessity of monitoring and one or more threshold values in association with each other.

接続情報入力部61は、プログラマブルコントローラ41の製造シリアル番号を入力する製造シリアル番号入力欄61aと、プログラマブルコントローラ41のIPv4(Internet Protocol version4)アドレスを入力するためのIPアドレス入力欄61bと、プログラマブルコントローラ41の形名を入力するための形名入力欄61cと、を有する。   The connection information input unit 61 includes a manufacturing serial number input field 61a for inputting a manufacturing serial number of the programmable controller 41, an IP address input field 61b for inputting an IPv4 (Internet Protocol version 4) address of the programmable controller 41, and a programmable controller. A model name input field 61c for inputting 41 model names.

バックアップ設定入力部62は、4つの監視対象ハードウェアの監視の要否と、4つの閾値と、を対応付けて入力するための設定入力欄62a,62b,62c及び62dを有する。   The backup setting input unit 62 includes setting input fields 62a, 62b, 62c, and 62d for inputting the necessity / unnecessity of monitoring of four monitored hardware and the four threshold values in association with each other.

製造シリアル番号入力欄61aには、プログラマブルコントローラ41の製造シリアル番号である「120300****」がユーザによって入力されている。   In the manufacturing serial number input field 61a, “120300 ***”, which is the manufacturing serial number of the programmable controller 41, is input by the user.

IPアドレス入力欄61bには、プログラマブルコントローラ41のIPv4アドレスである「192.168.0.1」がユーザによって入力されている。   In the IP address input field 61b, “192.168.0.1”, which is the IPv4 address of the programmable controller 41, is input by the user.

形名入力欄61cには、プログラマブルコントローラ41の形名である「R08CPU」がユーザによって入力されている。   In the model name input field 61c, “R08CPU” which is the model name of the programmable controller 41 is input by the user.

設定入力欄62aは、監視対象ハードウェアであるバッテリ1a4の監視の要否を入力する要否入力欄62a1を有する。   The setting input column 62a includes a necessity input column 62a1 for inputting necessity of monitoring of the battery 1a4 which is the monitoring target hardware.

要否入力欄62a1には、監視対象ハードウェアであるバッテリ1a4の監視を行うことを表す「要」がユーザによって入力されている。   In the necessity input column 62a1, “necessary” indicating that the battery 1a4 as the monitoring target hardware is monitored is input by the user.

設定入力欄62aは、監視対象ハードウェアであるバッテリ1a4の状態を判定するための閾値を入力する閾値入力欄62a2を有する。   The setting input field 62a includes a threshold value input field 62a2 for inputting a threshold value for determining the state of the battery 1a4 that is the monitoring target hardware.

閾値入力欄62a2には、監視対象ハードウェアであるバッテリ1a4の状態を判定するための、バッテリ1a4の電圧の閾値「1.2V」がユーザによって入力されている。   In the threshold value input column 62a2, a threshold value “1.2V” of the voltage of the battery 1a4 for determining the state of the battery 1a4 as the monitoring target hardware is input by the user.

設定入力欄62bは、監視対象ハードウェアである不揮発性半導体記憶部1a10の監視の要否を入力する要否入力欄62b1を有する。   The setting input column 62b has a necessity input column 62b1 for inputting necessity of monitoring of the non-volatile semiconductor storage unit 1a10 which is hardware to be monitored.

要否入力欄62b1には、監視対象ハードウェアである不揮発性半導体記憶部1a10の監視を行うことを表す「要」がユーザによって入力されている。   In the necessity input column 62b1, “necessary” indicating that the nonvolatile semiconductor storage unit 1a10 that is the monitoring target hardware is monitored is input by the user.

設定入力欄62bは、監視対象ハードウェアである不揮発性半導体記憶部1a10の状態を判定するための閾値を入力する閾値入力欄62b2を有する。   The setting input field 62b includes a threshold value input field 62b2 for inputting a threshold value for determining the state of the nonvolatile semiconductor memory unit 1a10 that is the monitoring target hardware.

閾値入力欄62b2には、監視対象ハードウェアである不揮発性半導体記憶部1a10の状態を判定するための、不揮発性半導体記憶部1a10への書込み回数の閾値「10万回」がユーザによって入力されている。   In the threshold value input column 62b2, a threshold value “100,000 times” of the number of times of writing to the nonvolatile semiconductor memory unit 1a10 for determining the state of the nonvolatile semiconductor memory unit 1a10 that is the monitoring target hardware is input by the user. Yes.

設定入力欄62cは、監視対象ハードウェアであるメイン基板41aの監視の要否を入力する要否入力欄62c1を有する。   The setting input column 62c includes a necessity input column 62c1 for inputting necessity of monitoring of the main board 41a which is the monitoring target hardware.

要否入力欄62c1には、監視対象ハードウェアであるメイン基板41aの監視を行わないことを表す「否」がユーザによって入力されている。   In the necessity input column 62c1, “No” indicating that monitoring of the main board 41a as the monitoring target hardware is not performed is input by the user.

設定入力欄62cは、監視対象ハードウェアであるメイン基板41aの状態を判定するための閾値を入力する閾値入力欄62c2を有する。   The setting input field 62c includes a threshold value input field 62c2 for inputting a threshold value for determining the state of the main board 41a that is the monitoring target hardware.

閾値入力欄62c2には、監視対象ハードウェアであるメイン基板41aの監視を行わないので、メイン基板41aの状態を判定するための閾値がユーザによって入力されていない。   In the threshold value input column 62c2, since the main board 41a that is the monitoring target hardware is not monitored, the threshold value for determining the state of the main board 41a is not input by the user.

設定入力欄62dは、監視対象ハードウェアである通信インタフェース1a7の監視の要否を入力する要否入力欄62d1を有する。   The setting input field 62d has a necessity input field 62d1 for inputting necessity of monitoring of the communication interface 1a7 which is the monitoring target hardware.

要否入力欄62d1には、監視対象ハードウェアである通信インタフェース1a7の監視を行うことを表す「要」がユーザによって入力されている。   In the necessity input column 62d1, “necessary” indicating that the communication interface 1a7 that is the monitoring target hardware is monitored is input by the user.

設定入力欄62dは、監視対象ハードウェアである通信インタフェース1a7の状態を判定するための閾値を入力する閾値入力欄62d2を有する。   The setting input field 62d has a threshold value input field 62d2 for inputting a threshold value for determining the state of the communication interface 1a7 that is the monitoring target hardware.

閾値入力欄62d2には、監視対象ハードウェアである通信インタフェース1a7の状態を判定するための、通信インタフェース1a7の通信連続失敗回数の閾値「3回」がユーザによって入力されている。   In the threshold value input column 62d2, the threshold value “three times” of the communication continuous failure number of the communication interface 1a7 for determining the state of the communication interface 1a7 that is the monitoring target hardware is input by the user.

再び図10を参照すると、作成部51a3cは、ステップS204において、入力受付部51a3bで受け付けられた入力に基づいて、1つ又は複数の監視対象ハードウェアの監視の要否と、1つ又は複数の閾値と、を対応付けて有する閾値データ1a10cを作成する。   Referring to FIG. 10 again, the creating unit 51a3c determines whether or not one or a plurality of monitoring target hardware needs to be monitored based on the input received by the input receiving unit 51a3b and the one or more monitoring units in step S204. Threshold data 1a10c having threshold values associated with each other is created.

送信部51a3dは、ステップS206において、作成部51a3cで作成された閾値データ1a10cをプログラマブルコントローラ41に送信する。プログラマブルコントローラ41のCPU1a1は、閾値データ1a10cを外部装置50から受信したら、受信した閾値データ1a10cを不揮発性半導体記憶部1a10に書き込む。   In step S206, the transmission unit 51a3d transmits the threshold data 1a10c created by the creation unit 51a3c to the programmable controller 41. When the CPU 1a1 of the programmable controller 41 receives the threshold data 1a10c from the external device 50, the CPU 1a1 writes the received threshold data 1a10c into the nonvolatile semiconductor storage unit 1a10.

プログラマブルコントローラ41のCPU1a1は、実施の形態1で説明した図2のフローチャートで示される処理を実行する。   The CPU 1a1 of the programmable controller 41 executes the process shown in the flowchart of FIG. 2 described in the first embodiment.

プログラマブルコントローラ41の状態監視部1a1b1は、外部装置50から受信した閾値データ1a10cに基づいて、監視対象ハードウェアであるバッテリ1a4の状態を表す値である電圧を監視して、電圧が閾値「1.2V」に達したか否かを判定する。プログラマブルコントローラ41のバックアップ処理部1a1b2は、バッテリ1a4の電圧が閾値「1.2V」に達したと状態監視部1a1b1で判定されたら、データ又はプログラムをバックアップ対象記憶部である揮発性半導体記憶部1a3から読み出してバックアップ記憶部1a6aに書き込んでバックアップする。   Based on the threshold data 1a10c received from the external device 50, the state monitoring unit 1a1b1 of the programmable controller 41 monitors a voltage that is a value representing the state of the battery 1a4 that is the monitoring target hardware, and the voltage is the threshold “1. It is determined whether or not “2V” has been reached. When the state monitoring unit 1a1b1 determines that the voltage of the battery 1a4 has reached the threshold value “1.2V”, the backup processing unit 1a1b2 of the programmable controller 41 stores the data or program as the backup target storage unit volatile semiconductor storage unit 1a3. Are backed up and written to the backup storage unit 1a6a for backup.

なお、バックアップ処理部1a1b2は、データ又はプログラムをバックアップ記憶部1a6aに書き込んでバックアップする際に、バックアップの日付及び時刻、バックアップの原因「バッテリ電圧が閾値まで低下」、並びに、プログラマブルコントローラ41の製造シリアル番号、IPv4アドレス及び形名を、データ又はプログラムに付帯させて、バックアップ記憶部1a6aに書き込んでバックアップすると好適である。   When the backup processing unit 1a1b2 writes data or a program to the backup storage unit 1a6a for backup, the backup date and time, the cause of the backup “battery voltage drops to the threshold”, and the serial number of the programmable controller 41 manufactured It is preferable that the number, the IPv4 address, and the model name are attached to the data or program and written in the backup storage unit 1a6a for backup.

プログラマブルコントローラ41の状態監視部1a1b1は、外部装置50から受信した閾値データ1a10cに基づいて、監視対象ハードウェアである不揮発性半導体記憶部1a10の状態を表す値である書込み回数を監視して、書込み回数が閾値「10万回」に達したか否かを判定する。プログラマブルコントローラ41のバックアップ処理部1a1b2は、不揮発性半導体記憶部1a10の書込み回数が閾値「10万回」に達したと状態監視部1a1b1で判定されたら、データ又はプログラムをバックアップ対象記憶部である不揮発性半導体記憶部1a10から読み出してバックアップ記憶部1a6aに書き込む。   Based on the threshold data 1a10c received from the external device 50, the state monitoring unit 1a1b1 of the programmable controller 41 monitors the number of writes, which is a value representing the state of the nonvolatile semiconductor storage unit 1a10 that is the monitored hardware, and writes It is determined whether or not the number of times has reached the threshold “100,000 times”. When the state monitoring unit 1a1b1 determines that the number of times of writing in the nonvolatile semiconductor storage unit 1a10 has reached the threshold value “100,000 times”, the backup processing unit 1a1b2 of the programmable controller 41 stores the data or program as a backup target storage unit. Is read from the conductive semiconductor storage unit 1a10 and written to the backup storage unit 1a6a.

なお、バックアップ処理部1a1b2は、データ又はプログラムをバックアップ記憶部1a6aに書き込んでバックアップする際に、バックアップの日付及び時刻、バックアップの原因「書込み回数が閾値に到達」、並びに、プログラマブルコントローラ41の製造シリアル番号、IPv4アドレス及び形名を、データ又はプログラムに付帯させて、バックアップ記憶部1a6aに書き込んでバックアップすると好適である。   When the backup processing unit 1a1b2 writes data or a program to the backup storage unit 1a6a and backs up, the backup date and time, the cause of the backup “the number of writes reaches the threshold”, and the serial number of the programmable controller 41 manufactured It is preferable that the number, the IPv4 address, and the model name are attached to the data or program and written in the backup storage unit 1a6a for backup.

プログラマブルコントローラ41の状態監視部1a1b1は、外部装置50から受信した閾値データ1a10cに基づいて、監視対象ハードウェアであるメイン基板41aの状態を表す値である温度の監視を行わない。   Based on the threshold data 1a10c received from the external device 50, the state monitoring unit 1a1b1 of the programmable controller 41 does not monitor the temperature that is a value representing the state of the main board 41a that is the hardware to be monitored.

プログラマブルコントローラ41の状態監視部1a1b1は、外部装置50から受信した閾値データ1a10cに基づいて、監視対象ハードウェアである通信インタフェース1a7の状態を表す値である通信連続失敗回数を監視して、通信連続失敗回数が閾値「3回」に達したか否かを判定する。プログラマブルコントローラ41のバックアップ処理部1a1b2は、通信インタフェース1a7の通信連続失敗回数が閾値「3回」に達したと状態監視部1a1b1で判定されたら、データ又はプログラムをバックアップ対象記憶部である不揮発性半導体記憶部1a10又は揮発性半導体記憶部1a3から読み出してバックアップ記憶部1a6aに書き込む。   Based on the threshold data 1a10c received from the external device 50, the state monitoring unit 1a1b1 of the programmable controller 41 monitors the number of continuous communication failures, which is a value representing the state of the communication interface 1a7 that is the monitored hardware, and continues communication. It is determined whether or not the number of failures has reached the threshold value “3 times”. When the status monitoring unit 1a1b1 determines that the number of consecutive communication failures of the communication interface 1a7 has reached the threshold “3 times”, the backup processing unit 1a1b2 of the programmable controller 41 stores the data or program as a non-volatile semiconductor that is a backup target storage unit Read from the storage unit 1a10 or the volatile semiconductor storage unit 1a3 and write to the backup storage unit 1a6a.

なお、バックアップ処理部1a1b2は、データ又はプログラムをバックアップ記憶部1a6aに書き込んでバックアップする際に、バックアップの日付及び時刻、バックアップの原因「通信連続失敗回数が閾値に到達」、並びに、プログラマブルコントローラ41の製造シリアル番号、IPv4アドレス及び形名を、データ又はプログラムに付帯させて、バックアップ記憶部1a6aに書き込んでバックアップすると好適である。   When the backup processing unit 1a1b2 writes data or a program to the backup storage unit 1a6a for backup, the backup date and time, the cause of the backup “the number of consecutive communication failures reaches the threshold”, and the programmable controller 41 It is preferable that the manufacturing serial number, the IPv4 address, and the model name are attached to the data or program and written in the backup storage unit 1a6a for backup.

実施の形態5にかかる制御システム40は、次の効果を奏する。   The control system 40 according to the fifth embodiment has the following effects.

制御システム40は、1つ又は複数の監視対象ハードウェアの監視の要否と、1つ又は複数の監視対象ハードウェアの状態を夫々判定するための1つ又は複数の閾値と、を対応付けた閾値データ1a10cを作成できる。   The control system 40 associates the necessity of monitoring one or more monitored hardware with one or more thresholds for determining the status of the one or more monitored hardware, respectively. Threshold data 1a10c can be created.

これにより、制御システム40は、ハードウェアの不要な監視を抑制して、プログラマブルコントローラ41の処理負荷を抑制できる。また、制御システム40は、ハードウェアの不要な監視を抑制して、バックアップ記憶部1a6aの使用領域を抑制できる。   Thereby, the control system 40 can suppress unnecessary monitoring of hardware and can suppress the processing load of the programmable controller 41. In addition, the control system 40 can suppress unnecessary monitoring of hardware and suppress the use area of the backup storage unit 1a6a.

また、制御システム40は、監視対象ハードウェアが複数ある場合に、複数の監視対象ハードウェアの監視の要否と、複数の監視対象ハードウェアの状態を夫々判定するための複数の閾値と、の入力を直感的に行うことを可能にできる。これにより、制御システム40は、複数の監視対象ハードウェアの監視の要否と、複数の監視対象ハードウェアの状態を夫々判定するための複数の閾値と、の入力を漏れなく、容易に行うことを可能にできる。   In addition, when there are a plurality of hardware to be monitored, the control system 40 determines whether monitoring of the plurality of hardware to be monitored is necessary and a plurality of thresholds for determining the states of the plurality of hardware to be monitored, respectively. Input can be performed intuitively. As a result, the control system 40 can easily input, without omission, the necessity of monitoring a plurality of monitored hardware and a plurality of threshold values for determining the status of each of the monitored hardware. Can be made possible.

なお、実施の形態5では、外部装置50はコンピュータとしたが、外部装置50はプログラマブル表示器(JIS B 3551:2012、programmable display)であっても良い。   In the fifth embodiment, the external device 50 is a computer, but the external device 50 may be a programmable display (JIS B 3551: 2012, programmable display).

また、実施の形態5では、外部装置50が、閾値データ1a10cをプログラマブルコントローラ41に送信することとした。しかし、外部装置50が、閾値データ1a10cをリムーバブルな記憶部59に書き込み、ユーザが記憶部59を外部装置50から取り出して、プログラマブルコントローラ41のスロット1a6に挿入することとしても良い。   In the fifth embodiment, the external device 50 transmits the threshold data 1a10c to the programmable controller 41. However, the external device 50 may write the threshold data 1a10c into the removable storage unit 59, and the user may take out the storage unit 59 from the external device 50 and insert it into the slot 1a6 of the programmable controller 41.

これにより、外部装置50とプログラマブルコントローラ41とが通信できない場合であっても、プログラマブルコントローラ41が閾値データ1a10cを使用できる。   Thereby, even if it is a case where the external apparatus 50 and the programmable controller 41 cannot communicate, the programmable controller 41 can use threshold value data 1a10c.

また、実施の形態5では、外部装置50が閾値データ1a10cを作成することとしたが、これに限定されない。   In the fifth embodiment, the external device 50 creates the threshold data 1a10c. However, the present invention is not limited to this.

図12は、実施の形態5の他の制御システムの例にかかるプログラマブルコントローラの構成を示す図である。実施の形態5の他の例にかかるプログラマブルコントローラ70は、プログラマブルコントローラ41と比較すると、メイン基板41aに代えて、メイン基板70aを含む。   FIG. 12 is a diagram illustrating a configuration of a programmable controller according to another control system example of the fifth embodiment. When compared with the programmable controller 41, the programmable controller 70 according to another example of the fifth embodiment includes a main board 70a instead of the main board 41a.

メイン基板71aは、実施の形態5のメイン基板41aと比較すると、文字及び画像を表示する表示部1a12と、ユーザからの操作入力を受け付ける入力部1a13と、を更に含む。表示部1a12は、液晶表示装置が例示される。入力部1a13は、物理ボタン又はタッチパネルが例示される。   The main board 71a further includes a display unit 1a12 that displays characters and images, and an input unit 1a13 that receives an operation input from the user, as compared with the main board 41a of the fifth embodiment. The display unit 1a12 is exemplified by a liquid crystal display device. The input unit 1a13 is exemplified by a physical button or a touch panel.

不揮発性半導体記憶部1a10内のバックアッププログラム1a10bは、閾値データ作成プログラム1a10b3を更に含む。CPU1a1が閾値データ作成プログラム1a10b3を実行することで、閾値データ作成部1a1b3が実現される。   The backup program 1a10b in the nonvolatile semiconductor storage unit 1a10 further includes a threshold data creation program 1a10b3. When the CPU 1a1 executes the threshold data creation program 1a10b3, the threshold data creation unit 1a1b3 is realized.

プログラマブルコントローラ70は、外部装置50との通信ができない工場建屋内でも閾値データ1a10cを作成できる。また、プログラマブルコントローラ70は、外部装置50を不要にできる。これにより、プログラマブルコントローラ70は、コストを抑制できる。   The programmable controller 70 can create the threshold data 1a10c even in a factory building that cannot communicate with the external device 50. Moreover, the programmable controller 70 can make the external device 50 unnecessary. Thereby, the programmable controller 70 can suppress cost.

実施の形態6.
図13は、実施の形態6にかかる制御システムの構成を示す図である。実施の形態6にかかる制御システム80は、マスタとして動作する1つのマスタプログラマブルコントローラ81と、スレーブとして動作する複数のスレーブプログラマブルコントローラ82及び83と、を含む。マスタプログラマブルコントローラ81並びにスレーブプログラマブルコントローラ82及び83は、有線又は無線のネットワークNを介して通信可能である。
Embodiment 6 FIG.
FIG. 13 is a diagram illustrating a configuration of a control system according to the sixth embodiment. The control system 80 according to the sixth embodiment includes one master programmable controller 81 that operates as a master, and a plurality of slave programmable controllers 82 and 83 that operate as slaves. The master programmable controller 81 and the slave programmable controllers 82 and 83 can communicate via a wired or wireless network N.

実施の形態6では、スレーブとして動作するスレーブプログラマブルコントローラは2個としたが、スレーブとして動作するスレーブプログラマブルコントローラは1個としても良いし、2個より多くても良い。   In the sixth embodiment, the number of slave programmable controllers that operate as slaves is two, but the number of slave programmable controllers that operate as slaves may be one or more than two.

図14は、実施の形態6にかかる制御システムのマスタプログラマブルコントローラの構成を示す図である。実施の形態6にかかる制御システム80のマスタプログラマブルコントローラ81は、メイン基板81aを含む。   FIG. 14 is a diagram illustrating a configuration of a master programmable controller of the control system according to the sixth embodiment. The master programmable controller 81 of the control system 80 according to the sixth embodiment includes a main board 81a.

マスタプログラマブルコントローラ81の不揮発性半導体記憶部1a10内のバックアッププログラム1a10bは、スレーブプログラマブルコントローラ82又は83からデータ又はプログラムを受信してバックアップ記憶部1a6aに書き込んでバックアップする他装置バックアップ管理プログラム1a10b4を、更に含む。   The backup program 1a10b in the nonvolatile semiconductor storage unit 1a10 of the master programmable controller 81 further receives another device backup management program 1a10b4 that receives data or a program from the slave programmable controller 82 or 83, writes it in the backup storage unit 1a6a, and backs it up. Including.

マスタプログラマブルコントローラ81のCPU1a1が他装置バックアップ管理プログラム1a10b4を実行することで、スレーブプログラマブルコントローラ82又は83からデータ又はプログラムを受信してバックアップ記憶部1a6aに書き込んでバックアップする他装置バックアップ管理部1a1b4が実現される。   The CPU 1a1 of the master programmable controller 81 executes the other device backup management program 1a10b4, thereby realizing the other device backup management unit 1a1b4 that receives data or a program from the slave programmable controller 82 or 83, writes it to the backup storage unit 1a6a, and backs it up. Is done.

図15は、実施の形態6にかかる制御システムのマスタプログラマブルコントローラのバックアップ記憶部の内容を示す図である。   FIG. 15 is a diagram illustrating the contents of the backup storage unit of the master programmable controller of the control system according to the sixth embodiment.

マスタプログラマブルコントローラ81のバックアップ処理部1a1b2は、監視対象ハードウェアの状態を表す値が閾値に達したと状態監視部1a1b1で判定されたら、データ又はプログラムをバックアップ対象記憶部から読み出して、バックアップ記憶部1a6a内に自装置バックアップデータ又はプログラム1a6a1を書き込んでバックアップする。   The backup processing unit 1a1b2 of the master programmable controller 81 reads the data or program from the backup target storage unit when the state monitoring unit 1a1b1 determines that the value representing the status of the monitoring target hardware has reached the threshold, and the backup storage unit The device backup data or program 1a6a1 is written in 1a6a for backup.

マスタプログラマブルコントローラ81の他装置バックアップ管理部1a1b4は、スレーブプログラマブルコントローラ82からデータ又はプログラムを受信したら、バックアップ記憶部1a6a内にスレーブバックアップデータ又はプログラム1a6a2を書き込んでバックアップする。   When the other device backup management unit 1a1b4 of the master programmable controller 81 receives the data or program from the slave programmable controller 82, it writes the slave backup data or program 1a6a2 in the backup storage unit 1a6a for backup.

マスタプログラマブルコントローラ81の他装置バックアップ管理部1a1b4は、スレーブプログラマブルコントローラ83からデータ又はプログラムを受信したら、バックアップ記憶部1a6a内にスレーブバックアップデータ又はプログラム1a6a3を書き込んでバックアップする。   When the other device backup management unit 1a1b4 of the master programmable controller 81 receives the data or program from the slave programmable controller 83, it writes the slave backup data or program 1a6a3 in the backup storage unit 1a6a for backup.

図16は、実施の形態6にかかる制御システムのスレーブプログラマブルコントローラの構成を示す図である。実施の形態6にかかる制御システム80のスレーブプログラマブルコントローラ82は、メイン基板82aを含む。   FIG. 16 is a diagram of a configuration of the slave programmable controller of the control system according to the sixth embodiment. The slave programmable controller 82 of the control system 80 according to the sixth embodiment includes a main board 82a.

スレーブプログラマブルコントローラ82の不揮発性半導体記憶部1a10内のバックアッププログラム1a10bは、バックアップ記憶部1a6aにバックアップしたデータ又はプログラムを、マスタプログラマブルコントローラ81に送信するバックアップ送信プログラム1a10b5を、更に含む。   The backup program 1a10b in the nonvolatile semiconductor storage unit 1a10 of the slave programmable controller 82 further includes a backup transmission program 1a10b5 that transmits the data or program backed up to the backup storage unit 1a6a to the master programmable controller 81.

スレーブプログラマブルコントローラ82のCPU1a1がバックアップ送信プログラム1a10b5を実行することで、バックアップ記憶部1a6aにバックアップしたデータ又はプログラムを、マスタプログラマブルコントローラ81に送信するバックアップ送信部1a1b5が実現される。   When the CPU 1a1 of the slave programmable controller 82 executes the backup transmission program 1a10b5, the backup transmission unit 1a1b5 that transmits the data or program backed up to the backup storage unit 1a6a to the master programmable controller 81 is realized.

スレーブプログラマブルコントローラ83の構成は、スレーブプログラマブルコントローラ82の構成と同様であるので、図示及び説明を省く。   Since the configuration of the slave programmable controller 83 is the same as the configuration of the slave programmable controller 82, illustration and description are omitted.

スレーブプログラマブルコントローラ82の動作について、説明する。   The operation of the slave programmable controller 82 will be described.

図17は、実施の形態6にかかる制御システムのスレーブプログラマブルコントローラの処理を示すフローチャートである。スレーブプログラマブルコントローラ82のバックアップ送信部1a1b5は、バックアップ処理部1a1b2がデータ又はプログラムをバックアップ記憶部1a6aにバックアップしたら、図17に示す処理を実行する。   FIG. 17 is a flowchart illustrating processing of the slave programmable controller of the control system according to the sixth embodiment. The backup transmission unit 1a1b5 of the slave programmable controller 82 executes the process shown in FIG. 17 when the backup processing unit 1a1b2 backs up data or programs to the backup storage unit 1a6a.

スレーブプログラマブルコントローラ82のバックアップ送信部1a1b5は、ステップS300において、バックアップ処理部1a1b2がバックアップしたデータ又はプログラムをバックアップ記憶部1a6aから読み出して、マスタプログラマブルコントローラ81に送信し、処理を終了する。   In step S300, the backup transmission unit 1a1b5 of the slave programmable controller 82 reads the data or program backed up by the backup processing unit 1a1b2 from the backup storage unit 1a6a, transmits it to the master programmable controller 81, and ends the process.

図18は、実施の形態6にかかる制御システムのマスタプログラマブルコントローラの処理を示すフローチャートである。   FIG. 18 is a flowchart of the process of the master programmable controller of the control system according to the sixth embodiment.

マスタプログラマブルコントローラ81の他装置バックアップ管理部1a1b4は、ステップS400において、データ又はプログラムをスレーブプログラマブルコントローラ82から受信する。   The other device backup management unit 1a1b4 of the master programmable controller 81 receives data or a program from the slave programmable controller 82 in step S400.

他装置バックアップ管理部1a1b4は、ステップS402において、送信元のスレーブプログラマブルコントローラ82のスレーブバックアップデータ又はプログラム1a6a2がバックアップ記憶部1a6a内に既にあるか否かを判定する。   In step S402, the other apparatus backup management unit 1a1b4 determines whether the slave backup data or the program 1a6a2 of the transmission source slave programmable controller 82 is already in the backup storage unit 1a6a.

他装置バックアップ管理部1a1b4は、ステップS402でスレーブプログラマブルコントローラ82のスレーブバックアップデータ又はプログラム1a6a2がバックアップ記憶部1a6a内にないと判定したら(No)、ステップS404において、受信したデータ又はプログラムをスレーブバックアップデータ又はプログラム1a6a2としてバックアップ記憶部1a6aに書き込んでバックアップする。   If the other device backup management unit 1a1b4 determines that the slave backup data or the program 1a6a2 of the slave programmable controller 82 is not in the backup storage unit 1a6a in step S402 (No), the received data or program is transferred to the slave backup data in step S404. Alternatively, the program 1a6a2 is written in the backup storage unit 1a6a for backup.

他装置バックアップ管理部1a1b4は、ステップS402でスレーブプログラマブルコントローラ82のスレーブバックアップデータ又はプログラム1a6a2がバックアップ記憶部1a6a内に既にあると判定したら(Yes)、ステップS406において、受信したデータ又はプログラムとスレーブバックアップデータ又はプログラム1a6a2との間に差分があるか否かを判定する。   If the other device backup management unit 1a1b4 determines that the slave backup data or the program 1a6a2 of the slave programmable controller 82 is already in the backup storage unit 1a6a in step S402 (Yes), the received data or program and the slave backup in step S406 It is determined whether there is a difference between the data or the program 1a6a2.

他装置バックアップ管理部1a1b4は、ステップS406で受信したデータ又はプログラムとスレーブバックアップデータ又はプログラム1a6a2との間に差分がないと判定したら(No)、処理を終了する。   If the other device backup management unit 1a1b4 determines that there is no difference between the data or program received in step S406 and the slave backup data or program 1a6a2 (No), the other device backup management unit 1a1b4 ends the processing.

他装置バックアップ管理部1a1b4は、ステップS406で受信したデータ又はプログラムとスレーブバックアップデータ又はプログラム1a6a2との間に差分があると判定したら(Yes)、ステップS408において、差分をバックアップ記憶部1a6aに書き込んでバックアップし、処理を終了する。なお、この際、他装置バックアップ管理部1a1b4は、バックアップ管理部1a1b4内に既にあるスレーブバックアップデータ又はプログラム1a6a2の内の差分に相当する部分だけに差分を上書きし、バックアップ管理部1a1b4内に既にあるスレーブバックアップデータ又はプログラム1a6a2の内の差分に相当しない部分を上書きしないでそのままにすると好適である。   If the other device backup management unit 1a1b4 determines that there is a difference between the data or program received in step S406 and the slave backup data or program 1a6a2 (Yes), it writes the difference in the backup storage unit 1a6a in step S408. Back up and finish processing. At this time, the other device backup management unit 1a1b4 overwrites only the portion corresponding to the difference in the slave backup data or the program 1a6a2 already in the backup management unit 1a1b4 and already exists in the backup management unit 1a1b4. It is preferable to leave the portion of the slave backup data or program 1a6a2 that does not correspond to the difference without being overwritten.

実施の形態6にかかる制御システム80は、次の効果を奏する。   The control system 80 according to the sixth embodiment has the following effects.

制御システム80は、マスタプログラマブルコントローラ81並びにスレーブプログラマブルコントローラ82及び83のバックアップデータ又はプログラムを、マスタプログラマブルコントローラ81に集約できる。   The control system 80 can collect backup data or programs of the master programmable controller 81 and the slave programmable controllers 82 and 83 in the master programmable controller 81.

従って、ユーザは、マスタプログラマブルコントローラ81並びにスレーブプログラマブルコントローラ82及び83のバックアップデータ又はプログラムを回収するために、マスタプログラマブルコントローラ81だけに行けばよい。   Therefore, the user only needs to go to the master programmable controller 81 to collect the backup data or programs of the master programmable controller 81 and the slave programmable controllers 82 and 83.

これにより、制御システム80は、ユーザがマスタプログラマブルコントローラ81並びにスレーブプログラマブルコントローラ82及び83のバックアップデータ又はプログラムを回収するためにマスタプログラマブルコントローラ81並びにスレーブプログラマブルコントローラ82及び83の設置場所を巡回する作業を抑制することができ、ユーザの作業工数を抑制できる。   Thereby, the control system 80 performs the operation | work which a user patrols the installation place of the master programmable controller 81 and the slave programmable controllers 82 and 83 in order to collect | recover the backup data or program of the master programmable controller 81 and the slave programmable controllers 82 and 83. It can suppress, and a user's work man-hour can be suppressed.

また、制御システム80は、マスタプログラマブルコントローラ81並びにスレーブプログラマブルコントローラ82及び83のバックアップデータ又はプログラムをマスタプログラマブルコントローラ81に集約しているので、マスタプログラマブルコントローラ81並びにスレーブプログラマブルコントローラ82及び83のバックアップデータ又はプログラムの保守性を向上できる。   Moreover, since the control system 80 consolidates the backup data or programs of the master programmable controller 81 and the slave programmable controllers 82 and 83 in the master programmable controller 81, the backup data or the master programmable controller 81 and the slave programmable controllers 82 and 83 The maintainability of the program can be improved.

また、制御システム80は、スレーブプログラマブルコントローラ82及び83のバックアップデータ又はプログラムをマスタプログラマブルコントローラ81に集約しているので、スレーブプログラマブルコントローラ82又は83の破損時でも、スレーブプログラマブルコントローラ82及び83のバックアップデータ又はプログラムをマスタプログラマブルコントローラ81で回収できるので、スレーブプログラマブルコントローラ82及び83のバックアップデータ又はプログラムが失われることを抑制できる。   In addition, since the control system 80 aggregates the backup data or programs of the slave programmable controllers 82 and 83 in the master programmable controller 81, the backup data of the slave programmable controllers 82 and 83 can be obtained even when the slave programmable controller 82 or 83 is damaged. Alternatively, since the program can be collected by the master programmable controller 81, it is possible to prevent the backup data or programs of the slave programmable controllers 82 and 83 from being lost.

実施の形態7.
図19は、実施の形態7にかかる制御システムの構成を示す図である。実施の形態7にかかる制御システム90は、外部装置91と、マスタとして動作する1つのマスタプログラマブルコントローラ92と、スレーブとして動作する複数のスレーブプログラマブルコントローラ93及び94と、を含む。外部装置91、マスタプログラマブルコントローラ92並びにスレーブプログラマブルコントローラ93及び94は、有線又は無線のネットワークNを介して通信可能である。
Embodiment 7 FIG.
FIG. 19 is a diagram illustrating a configuration of a control system according to the seventh embodiment. The control system 90 according to the seventh embodiment includes an external device 91, one master programmable controller 92 that operates as a master, and a plurality of slave programmable controllers 93 and 94 that operate as slaves. The external device 91, master programmable controller 92, and slave programmable controllers 93 and 94 can communicate via a wired or wireless network N.

実施の形態7では、スレーブとして動作するスレーブプログラマブルコントローラは2個としたが、スレーブとして動作するスレーブプログラマブルコントローラは1個としても良いし、2個より多くても良い。   In the seventh embodiment, the number of slave programmable controllers that operate as slaves is two. However, the number of slave programmable controllers that operate as slaves may be one or more.

実施の形態7では、外部装置91は、コンピュータである。コンピュータのハードウェア構成は、図8で示した、実施の形態5にかかる外部装置50のハードウェア構成と同様であるので、図示及び説明を省く。   In the seventh embodiment, the external device 91 is a computer. Since the hardware configuration of the computer is the same as the hardware configuration of the external device 50 according to the fifth embodiment shown in FIG. 8, illustration and description are omitted.

図20は、実施の形態7にかかる制御システムの外部装置の機能ブロックを示す図である。エンジニアリングツールプログラム54aは、図9で示した、実施の形態5の外部装置50と比較して、リストア制御プログラム54a4を更に含む。   FIG. 20 is a diagram of functional blocks of an external device of the control system according to the seventh embodiment. The engineering tool program 54a further includes a restore control program 54a4 as compared with the external device 50 of the fifth embodiment shown in FIG.

CPU51がリストア制御プログラム54a4を実行することで、リストア制御部51a4が実現される。   The CPU 51 executes the restore control program 54a4, thereby realizing the restore control unit 51a4.

リストア制御プログラム54a4は、マスタプログラマブルコントローラ92のバックアップ記憶部1a6aにバックアップされているデータ又はプログラムのリストを、マスタプログラマブルコントローラ92に要求するリスト要求プログラム54a4aを含む。   The restore control program 54a4 includes a list request program 54a4a that requests the master programmable controller 92 for a list of data or programs backed up in the backup storage unit 1a6a of the master programmable controller 92.

CPU51がリスト要求プログラム54a4aを実行することで、マスタプログラマブルコントローラ92のバックアップ記憶部1a6aにバックアップされているデータ又はプログラムのリストを、マスタプログラマブルコントローラ92に要求するリスト要求部51a4aが実現される。   When the CPU 51 executes the list request program 54a4a, the list request unit 51a4a that requests the master programmable controller 92 for a list of data or programs backed up in the backup storage unit 1a6a of the master programmable controller 92 is realized.

リストア制御プログラム54a4は、リスト要求部51a4aで受信したデータ又はプログラムのリストを一覧表示する一覧表示画面を表示する一覧表示プログラム54a4bを含む。   The restore control program 54a4 includes a list display program 54a4b for displaying a list display screen for displaying a list of data or programs received by the list request unit 51a4a.

CPU51が一覧表示プログラム54a4bを実行することで、リスト要求部51a4aで受信したデータ又はプログラムのリストを一覧表示する一覧表示画面を表示する一覧表示部51a4bが実現される。   When the CPU 51 executes the list display program 54a4b, a list display unit 51a4b that displays a list display screen for displaying a list of data or programs received by the list request unit 51a4a is realized.

リストア制御プログラム54a4は、リストア対象のデータ又はプログラム並びにスレーブプログラマブルコントローラ93又は94の内のリストア先のプログラマブルコントローラを一意に特定する情報の入力を一覧表示画面内で受け付けるリストア入力受付プログラム54a4cを含む。   The restore control program 54a4 includes a restore input acceptance program 54a4c that accepts input of data or a program to be restored and information for uniquely specifying a restore destination programmable controller of the slave programmable controllers 93 or 94 within the list display screen.

CPU51がリストア入力受付プログラム54a4cを実行することで、リストア対象のデータ又はプログラム並びにスレーブプログラマブルコントローラ93又は94の内のリストア先のプログラマブルコントローラを一意に特定する情報の入力を一覧表示画面内で受け付けるリストア入力受付部51a4cが実現される。   Restoration in which the CPU 51 executes the restore input acceptance program 54a4c to accept input of data or a program to be restored and information for uniquely specifying a restore destination programmable controller in the slave programmable controller 93 or 94 within the list display screen The input receiving unit 51a4c is realized.

リストア制御プログラム54a4は、リストア対象のデータ又はプログラム並びにスレーブプログラマブルコントローラ93又は94の内のリストア先のプログラマブルコントローラを一意に特定する情報を、スレーブプログラマブルコントローラ93又は94の内のリストア先のプログラマブルコントローラに送信するリストア要求送信プログラム54a4dを含む。   The restore control program 54a4 sends the data or program to be restored and information for uniquely specifying the restore destination programmable controller in the slave programmable controller 93 or 94 to the restore destination programmable controller in the slave programmable controller 93 or 94. A restore request transmission program 54a4d to be transmitted is included.

CPU51が一覧表示プログラム54a4dを実行することで、リストア対象のデータ又はプログラム並びにスレーブプログラマブルコントローラ93又は94の内のリストア先のプログラマブルコントローラを一意に特定する情報を、スレーブプログラマブルコントローラ93又は94の内のリストア先のプログラマブルコントローラに送信するリストア要求送信部51a4dが実現される。   When the CPU 51 executes the list display program 54a4d, the data or program to be restored and information for uniquely specifying the restore destination programmable controller in the slave programmable controller 93 or 94 are stored in the slave programmable controller 93 or 94. A restore request transmission unit 51a4d for transmitting to the restore destination programmable controller is realized.

図21は、実施の形態7にかかる制御システムのマスタプログラマブルコントローラの構成を示す図である。実施の形態7にかかる制御システム90のマスタプログラマブルコントローラ92は、メイン基板92aを含む。   FIG. 21 is a diagram illustrating a configuration of a master programmable controller of the control system according to the seventh embodiment. The master programmable controller 92 of the control system 90 according to the seventh embodiment includes a main board 92a.

実施の形態7にかかるマスタプログラマブルコントローラ92は、図14で示した、実施の形態6にかかるマスタプログラマブルコントローラ81と比較すると、バックアッププログラム1a10bが、リストア対象のデータ又はプログラムをバックアップ記憶部1a6aから読み出して、スレーブプログラマブルコントローラ93又は94の内のリストア先のプログラマブルコントローラに送信するリストア管理プログラム1a10b6を、更に含む。   Compared with the master programmable controller 81 according to the sixth embodiment shown in FIG. 14, the master programmable controller 92 according to the seventh embodiment reads the data or program to be restored from the backup storage unit 1a6a. And a restore management program 1a10b6 to be transmitted to the restore destination programmable controller in the slave programmable controller 93 or 94.

マスタプログラマブルコントローラ92のCPU1a1がリストア管理プログラム1a10b6を実行することで、リストア対象のデータ又はプログラムをバックアップ記憶部1a6aから読み出して、スレーブプログラマブルコントローラ93又は94の内のリストア先のプログラマブルコントローラに送信するリストア管理部1a1b6が実現される。   Restore by which the CPU 1a1 of the master programmable controller 92 executes the restore management program 1a10b6 to read the data or program to be restored from the backup storage unit 1a6a and send it to the restore destination programmable controller in the slave programmable controller 93 or 94 The management unit 1a1b6 is realized.

図22は、実施の形態7にかかる制御システムのスレーブプログラマブルコントローラの構成を示す図である。実施の形態7にかかる制御システム90のスレーブプログラマブルコントローラ93は、メイン基板93aを含む。   FIG. 22 is a diagram illustrating a configuration of a slave programmable controller of the control system according to the seventh embodiment. The slave programmable controller 93 of the control system 90 according to the seventh embodiment includes a main board 93a.

実施の形態7にかかるスレーブプログラマブルコントローラ93は、図16で示した、実施の形態6にかかるスレーブプログラマブルコントローラ82と比較すると、バックアッププログラム1a10bが、リストア対象のデータ又はプログラムをマスタプログラマブルコントローラ92から受信して、バックアップ記憶部1a6a又は不揮発性半導体記憶部1a10に書き込んでリストアするリストア処理プログラム1a10b7を、更に含む。   The slave programmable controller 93 according to the seventh embodiment receives the data or program to be restored from the master programmable controller 92 as compared with the slave programmable controller 82 according to the sixth embodiment shown in FIG. Then, it further includes a restore processing program 1a10b7 for writing and restoring to the backup storage unit 1a6a or the nonvolatile semiconductor storage unit 1a10.

スレーブプログラマブルコントローラ93のCPU1a1がリストア処理プログラム1a10b7を実行することで、リストア対象のデータ又はプログラムをマスタプログラマブルコントローラ92から受信して、バックアップ記憶部1a6a又は不揮発性半導体記憶部1a10に書き込んでリストアするリストア処理部1a1b7が実現される。   Restoration in which the CPU 1a1 of the slave programmable controller 93 receives the data or program to be restored from the master programmable controller 92 and writes it to the backup storage unit 1a6a or the non-volatile semiconductor storage unit 1a10 by executing the restore processing program 1a10b7 The processing unit 1a1b7 is realized.

制御システム90の動作について、説明する。   The operation of the control system 90 will be described.

図23は、実施の形態7にかかる制御システムの処理を示すシーケンス図である。   FIG. 23 is a sequence diagram illustrating processing of the control system according to the seventh embodiment.

外部装置91のリスト要求部51a4aは、ステップS500において、マスタプログラマブルコントローラ92のバックアップ記憶部1a6aにバックアップされているバックアップデータ又はプログラムのリストを、マスタプログラマブルコントローラ92に要求する。   The list request unit 51a4a of the external device 91 requests the master programmable controller 92 for a list of backup data or programs backed up in the backup storage unit 1a6a of the master programmable controller 92 in step S500.

マスタプログラマブルコントローラ92のリストア管理部1a1b6は、ステップS510において、バックアップ記憶部1a6aにバックアップされているバックアップデータ又はプログラムのリストを、外部装置91に送信する。   In step S510, the restore management unit 1a1b6 of the master programmable controller 92 transmits a list of backup data or programs backed up in the backup storage unit 1a6a to the external device 91.

外部装置91の一覧表示部51a4bは、ステップS502において、リスト要求部51a4aで受信したバックアップデータ又はプログラムのリストを、表示部56の表示面に一覧表示する。   In step S502, the list display unit 51a4b of the external device 91 displays a list of backup data or programs received by the list request unit 51a4a on the display surface of the display unit 56.

図24は、実施の形態7にかかる制御システムの外部装置の表示部の表示面を示す図である。表示部56の表示面56b内には、一覧表示画面100が、一覧表示部51a4bにより表示されている。一覧表示画面100は、マスタプログラマブルコントローラ92のバックアップ記憶部1a6aにバックアップされているバックアップデータ又はプログラムの情報を表示するバックアップデータ情報表示部101と、バックアップデータ又はプログラムをリストアするリストア先のスレーブプログラマブルコントローラを一意に特定する情報を入力するリストア先入力部102と、を含む。   FIG. 24 is a diagram illustrating a display surface of the display unit of the external device of the control system according to the seventh embodiment. A list display screen 100 is displayed on the display surface 56b of the display unit 56 by the list display unit 51a4b. The list display screen 100 includes a backup data information display unit 101 that displays backup data or program information backed up in the backup storage unit 1a6a of the master programmable controller 92, and a restore destination slave programmable controller that restores the backup data or program. And a restore destination input unit 102 for inputting information for uniquely identifying the.

接続情報入力部61は、バックアップ元のスレーブプログラマブルコントローラの製造シリアル番号を表示する製造シリアル番号表示欄101aと、バックアップ元のスレーブプログラマブルコントローラのIPv4アドレスを表示するためのIPアドレス表示欄101bと、バックアップ元のスレーブプログラマブルコントローラの形名を表示するための形名表示欄101cと、バックアップされた日付を表示する日付表示欄101dと、バックアップされた時刻を表示する時刻表示欄101eと、バックアップのトリガとなった監視対象ハードウェアの状態を表示するトリガ表示欄101fと、を含む。   The connection information input unit 61 includes a manufacturing serial number display field 101a for displaying the manufacturing serial number of the backup source slave programmable controller, an IP address display field 101b for displaying the IPv4 address of the backup source slave programmable controller, and a backup A model name display column 101c for displaying the model name of the original slave programmable controller, a date display column 101d for displaying the backup date, a time display column 101e for displaying the backup time, a backup trigger, And a trigger display field 101f that displays the status of the monitored hardware that has become.

図24では、行103から行107までの計5つのバックアップデータが一覧表示されている。   In FIG. 24, a total of five backup data from line 103 to line 107 are displayed in a list.

リストア先入力部102は、リストア先のスレーブプログラマブルコントローラの製造シリアル番号を入力する製造シリアル番号入力欄102aと、リストア先のスレーブプログラマブルコントローラのIPv4アドレスを入力するIPアドレス入力欄102bと、を含む。   The restore destination input unit 102 includes a manufacture serial number input field 102a for inputting a manufacture serial number of a slave programmable controller as a restore destination, and an IP address input field 102b for inputting an IPv4 address of the slave programmable controller as a restore destination.

再び図23を参照すると、外部装置91のリストア入力受付部51a4cは、ステップS504において、リストア対象のバックアップデータ又はプログラム並びにリストア先のスレーブプログラマブルコントローラを一意に特定する情報の入力を、一覧表示画面100内で受け付ける。   Referring to FIG. 23 again, in step S504, the restore input receiving unit 51a4c of the external device 91 inputs the information for uniquely specifying the backup data or program to be restored and the slave programmable controller to be restored to the list display screen 100. Accept within.

再び図24を参照すると、行103の製造シリアル番号入力欄102aには、製造シリアル番号「140300****」がユーザによって入力され、行103のIPアドレス入力欄102bには、IPv4アドレス「192.168.0.52」がユーザによって入力されている。従って、行103にリスト表示されたバックアップデータ又はプログラムが、製造シリアル番号「140300****」且つIPv4アドレス「192.168.0.52」であるスレーブプログラマブルコントローラにリストアされる。   Referring to FIG. 24 again, the manufacturing serial number “140300 ***” is input by the user in the manufacturing serial number input field 102a in the row 103, and the IPv4 address “192” is input in the IP address input field 102b in the row 103. .168.0.52 "has been entered by the user. Therefore, the backup data or program listed in the row 103 is restored to the slave programmable controller having the manufacturing serial number “140300 ***” and the IPv4 address “192.168.0.52”.

また、行105の製造シリアル番号入力欄102aには、製造シリアル番号「140300****」がユーザによって入力され、行105のIPアドレス入力欄102bには、IPv4アドレス「192.168.0.52」がユーザによって入力されている。従って、行105にリスト表示されたバックアップデータ又はプログラムが、製造シリアル番号「140300****」且つIPv4アドレス「192.168.0.52」であるスレーブプログラマブルコントローラにリストアされる。   Further, the manufacturing serial number “140300 ***” is input to the manufacturing serial number input field 102 a of the row 105 by the user, and the IPv4 address “192.168.8.0.” Is input to the IP address input field 102 b of the row 105. 52 "has been entered by the user. Therefore, the backup data or program listed in the row 105 is restored to the slave programmable controller having the manufacturing serial number “140300 ***” and the IPv4 address “192.168.0.52”.

ユーザは、一覧表示画面100への情報入力が終わったら、実行ボタン110をクリックする。外部装置91のリストア入力受付部51a4cは、実行ボタン110がユーザによってクリックされたら、情報の入力の受け付けを終了する。   When the information input to the list display screen 100 is completed, the user clicks the execution button 110. When the execution button 110 is clicked by the user, the restore input reception unit 51a4c of the external device 91 ends the reception of information input.

再び図23を参照すると、外部装置91のリストア要求送信部51a4dは、ステップS506において、リストア対象のバックアップデータ又はプログラム並びにリストア先のスレーブプログラマブルコントローラを一意に特定する情報を、マスタプログラマブルコントローラ92に送信する。   Referring to FIG. 23 again, in step S506, the restore request transmission unit 51a4d of the external device 91 transmits, to the master programmable controller 92, information that uniquely specifies the backup data or program to be restored and the slave programmable controller to be restored. To do.

マスタプログラマブルコントローラ92のリストア管理部1a1b6は、ステップS512において、リストア対象のバックアップデータ又はプログラムをバックアップ記憶部1a6aから読み出して、リストア先のスレーブプログラマブルコントローラに送信する。   In step S512, the restore management unit 1a1b6 of the master programmable controller 92 reads the backup data or program to be restored from the backup storage unit 1a6a and transmits it to the restore destination slave programmable controller.

リストア先のスレーブプログラマブルコントローラのリストア処理部1a1b7は、ステップS520において、受信したリストア対象のバックアップデータ又はプログラムを、不揮発性半導体記憶部1a10及びバックアップ記憶部1a6aに書き込んでリストアする。   In step S520, the restore processing unit 1a1b7 of the restore destination slave programmable controller writes the received backup data or program to be restored to the nonvolatile semiconductor storage unit 1a10 and the backup storage unit 1a6a to restore.

実施の形態7にかかる制御システム90は、次の効果を奏する。   The control system 90 according to the seventh embodiment has the following effects.

制御システム90は、バックアップデータ又はプログラムのリストを、一覧表示画面100内に一覧表示する。これにより、制御システム90は、ユーザがリストを見ながらリストア対象のバックアップデータ又はプログラムを適切に選択することを、可能にできる。   The control system 90 displays a list of backup data or programs in the list display screen 100. Thereby, the control system 90 can enable the user to appropriately select the backup data or program to be restored while looking at the list.

また、制御システム90は、ユーザが外部装置91を操作するだけで、ユーザがマスタプログラマブルコントローラ92又はリストア先のスレーブプログラマブルコントローラの設置場所に行かなくても、スレーブプログラマブルコントローラのリストアを行うことを可能にできる。これにより、制御システム90は、ユーザの作業工数を抑制することができる。制御システム90は、リストア先のスレーブプログラマブルコントローラが複数ある場合に、ユーザの作業工数を好適に抑制できる。   Further, the control system 90 can restore the slave programmable controller simply by operating the external device 91 without the user having to go to the installation location of the master programmable controller 92 or the restore destination slave programmable controller. Can be. Thereby, the control system 90 can suppress a user's work man-hour. When there are a plurality of slave programmable controllers as restore destinations, the control system 90 can suitably suppress the user's work man-hours.

なお、実施の形態7では、外部装置91はコンピュータとしたが、外部装置91はプログラマブル表示器であっても良い。   In the seventh embodiment, the external device 91 is a computer, but the external device 91 may be a programmable display.

また、実施の形態7では、外部装置91がリストア入力を受け付けることとしたが、これに限定されない。マスタプログラマブルコントローラ92が、図12で示した、表示部1a12及び入力部1a13を備えて、リストア制御プログラム54a4を実行することとしても良い。これにより、制御システム90は、外部装置91を不要にできるので、コストを抑制できる。マスタプログラマブルコントローラ92が表示部1a12及び入力部1a13を備えてリストア制御プログラム54a4を実行する場合は、リスト要求プログラム54a4a及びリストア要求送信プログラム54a4dは不要である。   In the seventh embodiment, the external apparatus 91 accepts a restore input, but the present invention is not limited to this. The master programmable controller 92 may include the display unit 1a12 and the input unit 1a13 illustrated in FIG. 12 and execute the restore control program 54a4. Thereby, since the control system 90 can make the external apparatus 91 unnecessary, it can suppress cost. When the master programmable controller 92 includes the display unit 1a12 and the input unit 1a13 and executes the restore control program 54a4, the list request program 54a4a and the restore request transmission program 54a4d are unnecessary.

以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。   The configuration described in the above embodiment shows an example of the contents of the present invention, and can be combined with another known technique, and can be combined with other configurations without departing from the gist of the present invention. It is also possible to omit or change the part.

1,10,20,30,41,70 プログラマブルコントローラ、1a1,51 CPU、1a1b バックアップ部、1a1b1 状態監視部、1a1b2 バックアップ処理部、1a1b3,51a3 閾値データ作成部、1a1b4 他装置バックアップ管理部、1a1b5 バックアップ送信部、1a1b6 リストア管理部、1a1b7 リストア処理部、1a3 揮発性半導体記憶部、1a4 バッテリ、1a5 電圧センサ、1a6a バックアップ記憶部、1a10 不揮発性半導体記憶部、1a10b バックアッププログラム、1a10c 閾値データ、1a10f 通信パラメータ、1a11 温度センサ、1a12 表示部、1a13 入力部、50,91 外部装置、51a3a 入力画面表示部、51a3b 入力受付部、51a3c 作成部、51a3d 送信部、51a4 リストア制御部、51a4a リスト要求部、51a4b 一覧表示部、51a4c リストア入力受付部、51a4d リストア要求送信部、54 記憶部、60 入力画面、40,80,90 制御システム、81,92 マスタプログラマブルコントローラ、82,83,93,94 スレーブプログラマブルコントローラ、100 一覧表示画面。   1, 10, 20, 30, 41, 70 Programmable controller, 1a1, 51 CPU, 1a1b backup unit, 1a1b1 status monitoring unit, 1a1b2 backup processing unit, 1a1b3, 51a3 threshold data creation unit, 1a1b4 Other device backup management unit, 1a1b5 backup Transmission unit, 1a1b6 restore management unit, 1a1b7 restore processing unit, 1a3 volatile semiconductor storage unit, 1a4 battery, 1a5 voltage sensor, 1a6a backup storage unit, 1a10 nonvolatile semiconductor storage unit, 1a10b backup program, 1a10c threshold data, 1a10f communication parameter 1a11 temperature sensor, 1a12 display unit, 1a13 input unit, 50, 91 external device, 51a3a input screen display unit, 51a3b input reception unit, 5 a3c creation unit, 51a3d transmission unit, 51a4 restore control unit, 51a4a list request unit, 51a4b list display unit, 51a4c restore input reception unit, 51a4d restore request transmission unit, 54 storage unit, 60 input screen, 40, 80, 90 control system , 81, 92 Master programmable controller, 82, 83, 93, 94 Slave programmable controller, 100 list display screen.

Claims (5)

複数のプログラマブルコントローラを備える制御システムであって、
前記複数のプログラマブルコントローラの各々は、
機械の制御の際に使用されるデータ又はプログラムを記憶するバックアップ対象記憶部と、
前記データ又はプログラムをバックアップ記憶するバックアップ記憶部と、
監視対象ハードウェアの状態を表す値を監視して、前記値が予め定められた閾値に達したか否かを判定する状態監視部と、
前記値が前記閾値に達したと前記状態監視部で判定されたら、前記データ又はプログラムを前記バックアップ対象記憶部から読み出して前記バックアップ記憶部に書き込んでバックアップするバックアップ処理部と、
を備え、
前記複数のプログラマブルコントローラの内の1つは、
前記バックアップ記憶部にバックアップした前記データ又はプログラムを、前記複数のプログラマブルコントローラの内の他の1つに送信するバックアップ送信部を更に備え、
前記複数のプログラマブルコントローラの内の他の1つは、
前記複数のプログラマブルコントローラの内の1つから前記データ又はプログラムを受信して前記バックアップ記憶部に書き込んでバックアップする他装置バックアップ管理部を更に備えることを特徴とする、制御システム。
A control system comprising a plurality of Programmer llama logic controllers,
Each of the plurality of programmable controllers is
A backup target storage unit for storing data or programs used in machine control; and
A backup storage unit for storing the data or program as a backup;
A state monitoring unit that monitors a value representing the state of the monitored hardware and determines whether the value has reached a predetermined threshold;
When the state monitoring unit determines that the value has reached the threshold, a backup processing unit that reads the data or program from the backup target storage unit, writes the data or program in the backup storage unit, and backs up,
With
One of the plurality of programmable controllers is:
A backup transmission unit for transmitting the data or program backed up in the backup storage unit to another one of the plurality of programmable controllers;
Another one of the plurality of programmable controllers is:
A control system further comprising: another device backup management unit that receives the data or program from one of the plurality of programmable controllers, writes the data or program in the backup storage unit, and backs up the data or program.
前記他装置バックアップ管理部は、
前記複数のプログラマブルコントローラの内の1つから前記データ又はプログラムを受信した際に、前記バックアップ記憶部内に前記複数のプログラマブルコントローラの内の1つの前記データ又はプログラムが既にある場合は、前記バックアップ記憶部内に既にある前記データ又はプログラムと受信した前記データ又はプログラムとの差分を、前記バックアップ記憶部に書き込んでバックアップすることを特徴とする、請求項に記載の制御システム。
The other apparatus backup management unit
When the data or program is received from one of the plurality of programmable controllers, if the one data or program of the plurality of programmable controllers already exists in the backup storage unit, the backup storage unit the difference between the data or program received there the data or program already, characterized in that the backup write to the backup storage unit, the control system according to claim 1.
前記複数のプログラマブルコントローラの内の他の1つの前記バックアップ記憶部にバックアップされている前記データ又はプログラムのリストを、前記複数のプログラマブルコントローラの内の他の1つに要求するリスト要求部と、
前記リスト要求部で受信した前記データ又はプログラムのリストを一覧表示する一覧表示画面を表示する一覧表示部と、
リストア対象の前記データ又はプログラム並びに前記複数のプログラマブルコントローラの内のリストア先のプログラマブルコントローラを一意に特定する情報の入力を前記一覧表示画面内で受け付けるリストア入力受付部と、
リストア対象の前記データ又はプログラム並びに前記複数のプログラマブルコントローラの内のリストア先のプログラマブルコントローラを一意に特定する情報を、前記複数のプログラマブルコントローラの内の他の1つに送信するリストア要求送信部と、
を有する外部装置を更に備え、
前記複数のプログラマブルコントローラの内の他の1つは、
リストア対象の前記データ又はプログラムを前記バックアップ記憶部から読み出して、前記複数のプログラマブルコントローラの内のリストア先のプログラマブルコントローラに送信するリストア管理部を更に備え、
前記複数のプログラマブルコントローラの内の1つは、
リストア対象の前記データ又はプログラムを前記複数のプログラマブルコントローラの内の他の1つから受信して、前記バックアップ記憶部又は前記バックアップ対象記憶部に書き込んでリストアするリストア処理部を更に備えることを特徴とする、請求項に記載の制御システム。
A list requesting unit that requests a list of the data or program backed up in the other one of the plurality of programmable controllers to the other one of the plurality of programmable controllers;
A list display unit for displaying a list display screen for displaying a list of the data or program received by the list request unit;
A restore input accepting unit that accepts input of information that uniquely specifies the data or program to be restored and a programmable controller that is a restore destination of the plurality of programmable controllers in the list display screen;
A restore request transmitter for transmitting the data or program to be restored and information for uniquely specifying a restore-destination programmable controller among the plurality of programmable controllers to another one of the plurality of programmable controllers;
Further comprising an external device having
Another one of the plurality of programmable controllers is:
A restore management unit is further provided that reads the data or program to be restored from the backup storage unit and transmits the data or program to the restore destination programmable controller of the plurality of programmable controllers,
One of the plurality of programmable controllers is:
It further includes a restore processing unit that receives the data or program to be restored from another one of the plurality of programmable controllers, writes the data or program to the backup storage unit or the backup target storage unit, and restores the data or program. The control system according to claim 1 .
前記複数のプログラマブルコントローラの内の他の1つは、
前記複数のプログラマブルコントローラの内の他の1つの前記バックアップ記憶部にバックアップされている前記データ又はプログラムのリストを一覧表示する一覧表示画面を表示する一覧表示部と、
リストア対象の前記データ又はプログラム並びに前記複数のプログラマブルコントローラの内のリストア先のプログラマブルコントローラを一意に特定する情報の入力を前記一覧表示画面内で受け付けるリストア入力受付部と、
リストア対象の前記データ又はプログラムを前記バックアップ記憶部から読み出して、前記複数のプログラマブルコントローラの内のリストア先のプログラマブルコントローラに送信するリストア管理部を更に備え、
前記複数のプログラマブルコントローラの内の1つは、
リストア対象の前記データ又はプログラムを前記複数のプログラマブルコントローラの内の他の1つから受信して、前記バックアップ記憶部又は前記バックアップ対象記憶部に書き込んでリストアするリストア処理部を更に備えることを特徴とする、請求項に記載の制御システム。
Another one of the plurality of programmable controllers is:
A list display unit for displaying a list display screen for displaying a list of the data or programs backed up in the other one of the plurality of programmable controllers in the backup storage unit;
A restore input accepting unit that accepts input of information that uniquely specifies the data or program to be restored and a programmable controller that is a restore destination of the plurality of programmable controllers in the list display screen;
A restore management unit is further provided that reads the data or program to be restored from the backup storage unit and transmits the data or program to the restore destination programmable controller of the plurality of programmable controllers,
One of the plurality of programmable controllers is:
It further includes a restore processing unit that receives the data or program to be restored from another one of the plurality of programmable controllers, writes the data or program to the backup storage unit or the backup target storage unit, and restores the data or program. The control system according to claim 1 .
複数のプログラマブルコントローラを備える制御システムが実行する制御方法であって、
前記複数のプログラマブルコントローラの各々は、
監視対象ハードウェアの状態を表す値を監視して、前記値が予め定められた閾値に達したか否かを判定する状態監視ステップと、
前記値が前記閾値に達したと前記状態監視ステップで判定されたら、機械の制御の際に使用されるデータ又はプログラムをバックアップ対象記憶部から読み出して、前記データ又はプログラムをバックアップ記憶するバックアップ記憶部に書き込んでバックアップするバックアップ処理ステップと、
を実行し、
前記複数のプログラマブルコントローラの内の1つは、
前記バックアップ記憶部にバックアップした前記データ又はプログラムを、前記複数のプログラマブルコントローラの内の他の1つに送信するバックアップ送信ステップを更に実行し、
前記複数のプログラマブルコントローラの内の他の1つは、
前記複数のプログラマブルコントローラの内の1つから前記データ又はプログラムを受信して前記バックアップ記憶部に書き込んでバックアップする他装置バックアップ管理ステップを更に実行することを特徴とする、制御方法。
A control system to that control method executed with a plurality of programmable controllers,
Each of the plurality of programmable controllers is
A state monitoring step of monitoring a value representing the state of the monitored hardware and determining whether the value has reached a predetermined threshold;
When it is determined in the state monitoring step that the value has reached the threshold value, a backup storage unit that reads out data or a program used in machine control from a backup target storage unit and stores the data or program as a backup Backup processing steps to write to and back up,
Run
One of the plurality of programmable controllers is:
Further executing a backup transmission step of transmitting the data or program backed up to the backup storage unit to another one of the plurality of programmable controllers;
Another one of the plurality of programmable controllers is:
A control method further comprising: performing another device backup management step of receiving the data or program from one of the plurality of programmable controllers and writing the data or program to the backup storage unit for backup.
JP2016545383A 2015-11-06 2015-11-06 Control system and control method Active JP6012918B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2015/081394 WO2017077654A1 (en) 2015-11-06 2015-11-06 Programmable controller, control system, and control method

Publications (2)

Publication Number Publication Date
JP6012918B1 true JP6012918B1 (en) 2016-10-25
JPWO2017077654A1 JPWO2017077654A1 (en) 2017-11-09

Family

ID=57145164

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016545383A Active JP6012918B1 (en) 2015-11-06 2015-11-06 Control system and control method

Country Status (2)

Country Link
JP (1) JP6012918B1 (en)
WO (1) WO2017077654A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107942873B (en) * 2017-12-11 2019-09-20 永艺家具股份有限公司 A kind of the operation cost intelligence accounting and monitoring method of Furniture manufacture production line
CN109164728B (en) * 2018-08-14 2021-07-02 江苏天纳节能科技股份有限公司 Industrial control cabinet and system safety control method thereof
JP7342425B2 (en) * 2019-05-30 2023-09-12 セイコーエプソン株式会社 Robot management system and robot management system control method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS575162A (en) * 1980-06-13 1982-01-11 Tokyo Electric Power Co Inc:The Redundant system controller
JPH0219902A (en) * 1988-07-08 1990-01-23 Fanuc Ltd Programmable controller
JPH0254306A (en) * 1988-08-19 1990-02-23 Fuji Electric Co Ltd Programmable controller
JPH04233852A (en) * 1990-12-28 1992-08-21 Omron Corp Communication fault discrimination system for programmable controller
JPH0520106U (en) * 1991-08-23 1993-03-12 横河電機株式会社 Controller
JPH0628015A (en) * 1992-07-09 1994-02-04 Mitsubishi Electric Corp Programmable controller
JP2000311006A (en) * 1999-02-23 2000-11-07 Matsushita Electric Works Ltd Programmable controller
JP2001084002A (en) * 1999-09-10 2001-03-30 Aisin Seiki Co Ltd Control device
JP2007102764A (en) * 2005-09-09 2007-04-19 Omron Corp Remote terminal device of programmable controller
JP2014081700A (en) * 2012-10-15 2014-05-08 Fuji Electric Co Ltd Programmable controller, data backup method of programmable controller, and starting method of programmable controller

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS575162A (en) * 1980-06-13 1982-01-11 Tokyo Electric Power Co Inc:The Redundant system controller
JPH0219902A (en) * 1988-07-08 1990-01-23 Fanuc Ltd Programmable controller
JPH0254306A (en) * 1988-08-19 1990-02-23 Fuji Electric Co Ltd Programmable controller
JPH04233852A (en) * 1990-12-28 1992-08-21 Omron Corp Communication fault discrimination system for programmable controller
JPH0520106U (en) * 1991-08-23 1993-03-12 横河電機株式会社 Controller
JPH0628015A (en) * 1992-07-09 1994-02-04 Mitsubishi Electric Corp Programmable controller
JP2000311006A (en) * 1999-02-23 2000-11-07 Matsushita Electric Works Ltd Programmable controller
JP2001084002A (en) * 1999-09-10 2001-03-30 Aisin Seiki Co Ltd Control device
JP2007102764A (en) * 2005-09-09 2007-04-19 Omron Corp Remote terminal device of programmable controller
JP2014081700A (en) * 2012-10-15 2014-05-08 Fuji Electric Co Ltd Programmable controller, data backup method of programmable controller, and starting method of programmable controller

Also Published As

Publication number Publication date
JPWO2017077654A1 (en) 2017-11-09
WO2017077654A1 (en) 2017-05-11

Similar Documents

Publication Publication Date Title
US9551986B2 (en) SCADA system real-time data and event management on a PC card
CN110116752B (en) Apparatus and method for controlling vehicle based on redundant structure
JP6012918B1 (en) Control system and control method
US20140173328A1 (en) Correcting a failure associated with a current firmware image
US11262830B2 (en) Managing ephemeral storage on a computing node
JP2020187651A (en) Device, communication module, application module and method
JP6145987B2 (en) Programmable controller, programmable controller data backup method, programmable controller activation method
US20160048120A1 (en) Programmable logic controller system and programmable logic controller
JP2016071635A (en) Abnormality monitoring circuit of ECU
JP2020147250A (en) Electronic control device
TWI590012B (en) Control machine for distributed control system and distributed control basic module
CN109709849B (en) Method and device for controlling safe operation of single chip microcomputer
JP2018180982A (en) Information processing device and log recording method
WO2015076012A1 (en) Electronic control device and software rewriting system
JP6973678B1 (en) Controls, control methods, and programs
JP2008129669A (en) Hardware failure recording device and method
JP5091765B2 (en) Modular equipment and modular equipment systems
CN103294585A (en) Server monitoring system
KR102267485B1 (en) Robot control device, robot system and robot control method
JP6735938B1 (en) Data processing device, data processing system, data saving method and program
JP2017021498A (en) Control system and controller therefor
CN114026506B (en) Programmable display and data management method
US20170270021A1 (en) Repair of failed firmware through an unmodified dual-role communication port
US20190179721A1 (en) Utilizing non-volatile phase change memory in offline status and error debugging methodologies
JP2010258498A (en) Device to be managed and management system, and management program

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20160818

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160823

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160920

R150 Certificate of patent or registration of utility model

Ref document number: 6012918

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250