JP6145987B2 - Programmable controller, programmable controller data backup method, programmable controller activation method - Google Patents

Programmable controller, programmable controller data backup method, programmable controller activation method Download PDF

Info

Publication number
JP6145987B2
JP6145987B2 JP2012227735A JP2012227735A JP6145987B2 JP 6145987 B2 JP6145987 B2 JP 6145987B2 JP 2012227735 A JP2012227735 A JP 2012227735A JP 2012227735 A JP2012227735 A JP 2012227735A JP 6145987 B2 JP6145987 B2 JP 6145987B2
Authority
JP
Japan
Prior art keywords
storage unit
programmable controller
backup storage
abnormality
central processing
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
JP2012227735A
Other languages
Japanese (ja)
Other versions
JP2014081700A (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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2012227735A priority Critical patent/JP6145987B2/en
Publication of JP2014081700A publication Critical patent/JP2014081700A/en
Application granted granted Critical
Publication of JP6145987B2 publication Critical patent/JP6145987B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Programmable Controllers (AREA)

Description

本発明は、機器を制御するプログラマブルコントローラ、プログラマブルコントローラの記憶部に記憶されたデータをバックアップするデータバックアップ方法、およびプログラマブルコントローラの起動方法に関する。   The present invention relates to a programmable controller that controls equipment, a data backup method that backs up data stored in a storage unit of the programmable controller, and a startup method of the programmable controller.

制御装置の1つにプログラマブルコントローラが知られている。プログラマブルコントローラシステムでは、上位の管理装置に、1または複数のプログラマブルコントローラが接続され、プログラマブルコントローラが、それぞれ複数の被制御機器を制御する。従って、プログラマブルコントローラは、上位の管理装置から制御指令を受けて、その制御指令を解析し、下位の被制御機器を制御するとともに、制御に要するパラメータやステータス情報を保持しなければならない。   A programmable controller is known as one of control devices. In the programmable controller system, one or more programmable controllers are connected to a higher-level management device, and each programmable controller controls a plurality of controlled devices. Therefore, the programmable controller must receive a control command from a higher-level management device, analyze the control command, control the lower-level controlled device, and hold parameters and status information required for control.

また、プログラマブルコントローラシステムは下位の被制御機器は動力を有する場合も多いので、被制御機器を適切に制御することで、プログラマブルコントローラシステム全体として、様々な制御動作を安全かつ確実に遂行しなければならない。例えば、プログラマブルコントローラは、プログラマブルコントローラシステムの稼働中に何らかのエラーが発生したとしても、その時点の動作状態を示すデータをバックアップし、安全に被制御機器を停止させなければならない。また、プログラマブルコントローラは、エラーが復旧されると、バックアップされたデータを再配置し、速やかに元の動作状態に復帰させるべきである。   In addition, in the programmable controller system, the lower-level controlled devices often have power. Therefore, the programmable controller system as a whole must perform various control operations safely and reliably by appropriately controlling the controlled devices. Don't be. For example, even if an error occurs during the operation of the programmable controller system, the programmable controller must back up data indicating the operation state at that time and safely stop the controlled device. In addition, when the error is recovered, the programmable controller should rearrange the backed up data and quickly return to the original operating state.

例えば、特許文献1には電源電圧の低下を検知すると、プロセッサ(中央処理部)が、SRAMに蓄積されている一部のデータをフラッシュメモリにバックアップする技術が記載されている。   For example, Patent Document 1 describes a technique in which a processor (central processing unit) backs up part of data stored in an SRAM to a flash memory when a drop in power supply voltage is detected.

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

しかし、上記した特許文献1の技術では、プロセッサが、自己のプログラムを通じて、バックアップに関する全ての処理を実行する。従って、プロセッサにエラーが発生したときには、バックアップ対象である情報を格納した被バックアップメモリから、その情報を読み出し、バックアップ先のバックアップメモリに情報を書き込むというバックアップ処理の実行が困難となる。   However, in the technique of Patent Document 1 described above, the processor executes all processes related to backup through its own program. Therefore, when an error occurs in the processor, it is difficult to execute a backup process of reading the information from the backup target memory storing the information to be backed up and writing the information in the backup destination backup memory.

本発明は、このような課題に鑑み、バックアップ処理を工夫しバックアップ処理を確実に実行できるプログラマブルコントローラおよびそのデータバックアップ方法、そしてプログラマブルコントローラの起動方法を提供することを目的としている。   The present invention has been made in view of such problems, and an object thereof is to provide a programmable controller, a data backup method thereof, and a startup method of the programmable controller that can devise a backup process and reliably execute the backup process.

上記課題を解決するために、請求項1のプログラマブルコントローラは、被バックアップ記憶部と、バックアップ記憶部と、被バックアップ記憶部とバックアップ記憶部とをアクセス可能な中央処理部およびアクセス素子と、当該中央処理部の動作の異常を検知するエラー検知部と、を有し、アクセス素子は、エラー検知部によって中央処理部の動作の異常が検知されると、被バックアップ記憶部のデータをバックアップ記憶部に退避し、かつ当該検知された異常の要因を前記バックアップ記憶部の所定の領域に記録するように構成される。
In order to solve the above problems, a programmable controller according to claim 1 includes a backup storage unit, a backup storage unit, a central processing unit and an access element that can access the backup storage unit and the backup storage unit, An error detection unit that detects an abnormality in the operation of the processing unit, and the access element stores the data in the backup storage unit in the backup storage unit when an error in the operation of the central processing unit is detected by the error detection unit. It is configured to evacuate and record the detected abnormality factor in a predetermined area of the backup storage unit.

請求項2の発明は、被バックアップ記憶部のデータの読み出しと、バックアップ記憶部への書き込みを同一アクセスサイクルに実行するようにアクセス素子を構成する。
請求項3に係る発明は、中央処理部の動作の異常が検知されると、中央処理部のバスアクセスを止めさせるようにアクセス素子を構成する。
According to the second aspect of the present invention, the access element is configured to execute reading of data in the backup target storage unit and writing to the backup storage unit in the same access cycle.
The invention according to claim 3 configures the access element to stop the bus access of the central processing unit when an abnormality in the operation of the central processing unit is detected.

請求項に係る発明は、起動時に、バックアップ記憶部の所定の領域を参照し、当該所定の領域に、中央処理部の動作の異常がエラー検知部によって検知されたことが記録されていた場合、待機モードとなって外部から所定の指示を待つように中央処理部を構成する。
The invention according to claim 4 refers to a predetermined area of the backup storage unit at the time of activation, and records that an error in the operation of the central processing unit is detected by the error detection unit in the predetermined area The central processing unit is configured to enter a standby mode and wait for a predetermined instruction from the outside.

請求項に係る発明は、所定の指示が復元指示であり、
当該復元指示を受けると、バックアップ記憶部に記憶されたデータを被バックアップ記憶部に復元するように中央処理部を構成する。
In the invention according to claim 5 , the predetermined instruction is a restoration instruction,
Upon receiving the restoration instruction, the central processing unit is configured to restore the data stored in the backup storage unit to the backup storage unit.

請求項に係る発明は、所定の指示がバックアップデータ送信指示であり、
バックアップデータ送信指示を受けると、バックアップ記憶部に記憶されたデータの全部または部を外部に送信するように中央処理部を構成する。
In the invention according to claim 6 , the predetermined instruction is a backup data transmission instruction,
When receiving the backup data transmission instruction, constituting the central processing unit to transmit all or part of the data stored in the backup storage unit to the outside.

請求項7に係る発明は、被バックアップ記憶部とバックアップ記憶部を具備したプログラマブルコントローラの被バックアップ記憶部に記憶されたデータをバックアップ記憶部にバックアップするデータバックアップ方法であって、プログラマブルコントローラに搭載される中央処理部の異常が検知されると、当該中央処理部とは異なるアクセス素子が被バックアップ記憶部のデータをバックアップ記憶部に退避し、かつ当該検知された異常の要因を前記バックアップ記憶部の所定の領域に記録する。
The invention according to claim 7 is a data backup method for backing up the data stored in the backup storage unit of the programmable controller having the backup storage unit and the backup storage unit to the backup storage unit, and is mounted on the programmable controller. When an abnormality in the central processing unit is detected, an access element different from the central processing unit saves the data in the backup storage unit to the backup storage unit, and the detected abnormality factor is stored in the backup storage unit. Record in a predetermined area.

請求項に係る発明は、所定の異常を契機に被バックアップ記憶部に記憶されたデータをバックアップ記憶部にバックアップすると共にバックアップ記憶部の所定の領域に所定の異常の要因を記録するプログラマブルコントローラの起動方法であって、プログラマブルコントローラは、起動後の制御実行に先立ち、所定の異常の要因を参照し、参照した異常要因がプログラマブルコントローラの中央処理部に関わる異常であった場合、待機モードに留まる。
The invention according to claim 8 is a programmable controller that backs up data stored in a backup storage unit in response to a predetermined abnormality to a backup storage unit and records a predetermined abnormality factor in a predetermined area of the backup storage unit. Prior to execution of control after startup, the programmable controller refers to a predetermined abnormality factor, and stays in a standby mode if the referenced abnormality factor is an abnormality related to the central processing unit of the programmable controller. .

本発明は、プログラマブルコントローラが搭載する中央処理部の異常が検知されると、中央処理部とは異なるアクセス素子が被バックアップ記憶部に記憶されたデータをバックアップ記憶部にバックアップする。このようにすることで中央処理部に異常が発生したときでもバックアップ処理を確実に実行できる高信頼なプログラマブルコントローラを提供することができる。   In the present invention, when an abnormality of a central processing unit mounted on a programmable controller is detected, an access element different from the central processing unit backs up data stored in a backup storage unit to a backup storage unit. By doing so, it is possible to provide a highly reliable programmable controller that can reliably execute backup processing even when an abnormality occurs in the central processing unit.

本発明に係るプログラマブルコントローラシステムを構成する各装置の概略的な関係を示した説明図である。It is explanatory drawing which showed the schematic relationship of each apparatus which comprises the programmable controller system which concerns on this invention. 本発明に係るプログラマブルコントローラの主回路の概略的な構成を示すブロック図である。It is a block diagram which shows the schematic structure of the main circuit of the programmable controller which concerns on this invention. 本発明のバックアップの処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process of backup of this invention. バックアップの処理のデータ転送の詳細なタイミングを示したタイミングチャートである。6 is a timing chart showing detailed timing of data transfer in backup processing. リスタート時(起動時)の処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process at the time of restart (at the time of starting).

以下に図面を参照しながら、本発明の好適な実施形態について詳細に説明する。かかる実施形態に示す具体的な数値などは、発明の理解を容易とするための例示にすぎず、特に断る場合を除き、本発明を限定するものではない。なお、本明細書及び図面において、実質的に同一の機能、構成を有する要素については、同一の符号を付することにより重複説明を省略し、また本発明に直接関係のない要素は図示を省略する。
(プログラマブルコントローラシステム100)
図1は、プログラマブルコントローラシステム100を構成する各装置の概略的な関係を示した説明図である。プログラマブルコントローラシステム100は、管理装置110と、1以上(1または複数)のプログラマブルコントローラ120と、1以上(1または複数)の被制御機器130とを含んで構成される。また、管理装置110と1または複数のプログラマブルコントローラ120とは、例えば、ギガベース等のEthernet(登録商標)によるネットワーク配線140によって接続される。プログラマブルコントローラ120と1または複数の被制御機器130とは、例えば、専用の接続配線142を通じて接続されている。
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. Specific numerical values and the like shown in the embodiment are merely examples for facilitating understanding of the invention, and do not limit the present invention unless otherwise specified. In the present specification and drawings, elements having substantially the same function and configuration are denoted by the same reference numerals, and redundant description is omitted, and elements not directly related to the present invention are not illustrated. To do.
(Programmable controller system 100)
FIG. 1 is an explanatory diagram showing a schematic relationship between devices constituting the programmable controller system 100. The programmable controller system 100 includes a management device 110, one or more (one or more) programmable controllers 120, and one or more (one or more) controlled devices 130. Further, the management device 110 and the one or more programmable controllers 120 are connected by a network wiring 140 by Ethernet (registered trademark) such as a gigabase, for example. The programmable controller 120 and the one or more controlled devices 130 are connected through, for example, a dedicated connection wiring 142.

管理装置110は、1または複数のプログラマブルコントローラ120に指示を与えたり、1または複数のプログラマブルコントローラ120からステータス情報を読み出し、プログラマブルコントローラシステム100全体における工程管理などを行う。   The management device 110 gives instructions to one or more programmable controllers 120, reads status information from one or more programmable controllers 120, and performs process management in the entire programmable controller system 100 and the like.

プログラマブルコントローラ120は、電源モジュール、CPUモジュール、入出力モジュール、通信モジュール等の複数のモジュールからなり、PLC(Programmable Logic Controller)とも呼ばれる。例えば、CPUモジュールは、ラダー図等を通じて生成されたシーケンス制御のための制御プログラムを有し、管理装置110から制御指令と、入出力モジュールを通じて入力された被制御機器130のセンサ検出結果とに基づいて被制御機器130を制御する。   The programmable controller 120 includes a plurality of modules such as a power supply module, a CPU module, an input / output module, and a communication module, and is also called a PLC (Programmable Logic Controller). For example, the CPU module has a control program for sequence control generated through a ladder diagram or the like, and is based on a control command from the management apparatus 110 and a sensor detection result of the controlled device 130 input through the input / output module. To control the controlled device 130.

被制御機器130は、FA(Factory Automation)における様々な状態を検知するセンサ、そのセンサの検知結果に応じて動作する電動機、エンコーダ等の電気機器で構成される。   The controlled device 130 includes a sensor that detects various states in FA (Factory Automation), and an electric device such as an electric motor and an encoder that operate according to the detection result of the sensor.

このようなプログラマブルコントローラシステム100は、様々な制御対象に適用できる。例えば、生産実行システム(MES:Manufacturing Execution System)にプログラマブルコントローラシステム100を適用した場合、プログラマブルコントローラ120は被制御機器130としてのフィルムユニット(Film Unit)等の生産機器に接続される。   Such a programmable controller system 100 can be applied to various control objects. For example, when the programmable controller system 100 is applied to a production execution system (MES), the programmable controller 120 is connected to a production device such as a film unit as a controlled device 130.

プログラマブルコントローラ120は、入出力モジュール等から生産機器の動作状態を読み出し、モータドライバ等を通じて生産機器内の電動機を回転制御する。管理装置110は、プログラマブルコントローラ120ごとの情報の収集および制御指令の送信を実行する。こうして、プログラマブルコントローラ120はシステム100全体として、工程管理、品質管理、製造量管理等の生産支援管理を総合的に実行することができる。
The programmable controller 120 reads the operation state of the production device from the input / output module and the like, and controls the rotation of the electric motor in the production device through a motor driver or the like. The management device 110 collects information for each programmable controller 120 and transmits a control command. In this way, the programmable controller 120 can comprehensively execute production support management such as process management, quality management, and manufacturing amount management as the entire system 100.

以下、プログラマブルコントローラ120の具体的な動作について、プログラマブルコントローラ120が備える図2のプロセッサ170がプログラムを正常に実行できなくなる異常が発生したときのバックアップ処理を説明する。
(プロセッサ170に異常が発生したときのバックアップ処理)
図2は、プログラマブルコントローラ120の主回路154の概略的な構成を示すブロック図である。主回路154は、プロセッサ170(中央処理部)と、第1通信素子172と、第1メモリ(専用メモリ)174と、共通バス176と、アクセス素子178と、WDT(ウォッチドックタイマー)エラー検知素子(エラー検知部)179と、第2通信素子180と、第2メモリ(被バックアップメモリ)182と、第3メモリ(バックアップメモリ)184とを含んで構成される。
In the following, a specific operation of the programmable controller 120 will be described with respect to backup processing when an abnormality occurs in which the processor 170 of FIG. 2 provided in the programmable controller 120 cannot normally execute the program.
(Backup processing when an abnormality occurs in the processor 170)
FIG. 2 is a block diagram illustrating a schematic configuration of the main circuit 154 of the programmable controller 120. The main circuit 154 includes a processor 170 (central processing unit), a first communication element 172, a first memory (dedicated memory) 174, a common bus 176, an access element 178, and a WDT (watchdog timer) error detection element. (Error detection unit) 179, second communication element 180, second memory (memory to be backed up) 182, and third memory (backup memory) 184 are configured.

プロセッサ170は、中央処理装置(CPU)、プログラム等が格納されたROM等を含む半導体集積回路で構成され、バスマスタ機能を有する。そして、プロセッサ170は、主回路154全体を制御するとともに、ROMに保持されたシーケンス制御のための制御プログラムに基づいて1または複数の被制御機器130を制御する。   The processor 170 is composed of a semiconductor integrated circuit including a central processing unit (CPU), a ROM storing programs, and the like, and has a bus master function. The processor 170 controls the entire main circuit 154 and controls one or more controlled devices 130 based on a control program for sequence control held in the ROM.

第1通信素子172は、ギガベース等のEthernet(登録商標)によるネットワーク配線140を通じて管理装置110や他のプログラマブルコントローラ120との通信を行う。第1メモリ174は、プロセッサ170と直接接続された(共通バス176を通じて接続されていない)揮発性のSDRAMであり、プロセッサ170のワークエリアとして機能する。第1メモリ174には、少なくとも、管理装置110や他のプログラマブルコントローラ120との通信における通信状態や異常履歴等のRAS(Reliability, Availability, Serviceability)情報が記憶されている。   The first communication element 172 communicates with the management apparatus 110 and other programmable controllers 120 through the network wiring 140 by Ethernet (registered trademark) such as Gigabase. The first memory 174 is a volatile SDRAM that is directly connected to the processor 170 (not connected through the common bus 176), and functions as a work area of the processor 170. The first memory 174 stores at least RAS (Reliability, Availability, Serviceability) information such as a communication state and abnormality history in communication with the management apparatus 110 and other programmable controllers 120.

アクセス素子178は、共通バス176に接続された、例えば、PGA(Programmable Gate Array)またはASIC(Application Specific Integrated Circuit)等の集積回路で構成され、主回路154内の論理計算を担う。また、アクセス素子178は、バスマスタ機能を有し、第2メモリ182および第3メモリ184に共通バス176を通じてアクセスすることができ、アクセス素子178に組み込まれたハードウェアロジックのみでバスアクセス処理を実行できる。すなわち、アクセス素子178はハードウェアロジックをプログラマブルに組み込むことができる素子であり、その素子の実態は論理回路のみを集積したハードウェアロジックデバイスである。よって、アクセス素子178は機械語等のプログラムを参照しながら処理を実行するものではなく、プログラムの介在なくバスにアクセスすることができる(アクセス素子178を単にデバイス、もしくはDMAデバイスともいう)。
The access element 178 is configured by an integrated circuit such as a PGA (Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit) connected to the common bus 176, and performs logical calculation in the main circuit 154. The access element 178 has a bus master function, and can access the second memory 182 and the third memory 184 through the common bus 176, and executes a bus access process only with the hardware logic incorporated in the access element 178. it can. That is, the access element 178 is an element that can incorporate hardware logic in a programmable manner, and the actual state of the element is a hardware logic device in which only logic circuits are integrated. Therefore, the access element 178 does not execute processing while referring to a program such as a machine language, and can access the bus without the intervention of the program (the access element 178 is also simply referred to as a device or a DMA device).

WDTエラー検知素子179はプロセッサ170が正常に動作しているか否かを監視する素子であり、プロセッサ170から定期的に送られてくる信号(ウォッチドッグ信号)を受信し、定められた期間を経過してもウォッチドッグ信号を受信しないとき、プログラムハングアップなどプロセッサ170に何らかの異常が発生していると判断しエラー検知信号をアクセス素子178に出力する。   The WDT error detection element 179 is an element that monitors whether or not the processor 170 is operating normally. The WDT error detection element 179 receives a signal (watchdog signal) periodically sent from the processor 170 and passes a predetermined period. Even when the watchdog signal is not received, it is determined that some abnormality has occurred in the processor 170 such as a program hang-up, and an error detection signal is output to the access element 178.

第2通信素子180は、専用の接続配線142を通じて被制御機器130との通信を行う。第2メモリ182は、共通バス176に接続された揮発性かつ比較的高速のSRAMである。第2メモリ182には、少なくとも、被制御機器130との通信における通信状態や異常履歴等のRAS情報や入出力モジュールを通じて取得した被制御機器130の動作状態を示す情報が記憶されている。   The second communication element 180 communicates with the controlled device 130 through the dedicated connection wiring 142. The second memory 182 is a volatile and relatively high speed SRAM connected to the common bus 176. The second memory 182 stores at least information indicating the operation state of the controlled device 130 acquired through the input / output module, such as RAS information such as a communication state and abnormality history in communication with the controlled device 130.

第3メモリ184は、共通バス176に接続された不揮発性のRAMである。第3メモリ184は、第1メモリ174や第2メモリ182に格納されたデータの一部もしくは全てをバックアップするために用いられる。従って、少なくとも、不図示の電源が切断されている間でもデータを保持する機能を有している。ここでは、不揮発性のRAMを挙げているが、内蔵または外付けのコンデンサ等を用いてメモリの記憶内容を保持可能な揮発性のRAMを用いることもできる。以下、WDTエラー検知素子179がプロセッサ170に係る異常を検知したとき、主回路154の各機能部によってバックアップするバックアップ対処方法の流れを説明する。
(バックアップ対処方法)
図3は、プロセッサ170が異常時のバックアップ対処方法の処理の流れを示したフローチャートである。WDTエラー検知素子179は、前述の通りプロセッサ170からウォッチドッグ信号を受信し、定められた期間にウォッチドッグ信号を受信している限りではプロセッサ170が正常に動作していると判断し、監視処理を繰り返す(S1におけるNO)。一方で、WDTエラー検知素子179は、定められた期間を経過してもウォッチドッグ信号を受信しないとき、プロセッサ170に何らかの異常が発生していると判断する(S1におけるYES)。
The third memory 184 is a nonvolatile RAM connected to the common bus 176. The third memory 184 is used to back up part or all of the data stored in the first memory 174 and the second memory 182. Therefore, it has a function of retaining data even at least while a power supply (not shown) is turned off. Here, a non-volatile RAM is cited, but a volatile RAM that can hold the stored contents of the memory using a built-in or external capacitor or the like can also be used. Hereinafter, a flow of a backup coping method in which backup is performed by each functional unit of the main circuit 154 when the WDT error detection element 179 detects an abnormality related to the processor 170 will be described.
(Solution for backup)
FIG. 3 is a flowchart showing a processing flow of the backup coping method when the processor 170 is abnormal. The WDT error detection element 179 receives the watchdog signal from the processor 170 as described above, determines that the processor 170 is operating normally as long as the watchdog signal is received during a predetermined period, and performs monitoring processing. Is repeated (NO in S1). On the other hand, when the WDT error detecting element 179 does not receive the watchdog signal even after a predetermined period has elapsed, it is determined that some abnormality has occurred in the processor 170 (YES in S1).

そして、WDTエラー検知素子179は、プロセッサ170に何らかの異常が発生したと判断するとアクセス素子178にエラー検知信号を出力する(S2)。
アクセス素子178はWDTエラー検知素子179からエラー検知信号を受けると、アクセス素子178、第2メモリ182、および、第3メモリ184以外の素子を停止する(S3)。具体的に説明すると、アクセス素子178はWDTエラー検知素子179からエラー検知信号を受けると、リセット信号をプロセッサ170、第1通信素子172および第2通信素子180に与え、リセットさせる。または、アクセス素子178はバスを開放するようバス使用権獲得のリクエスト信号をプロセッサ170、第1通信素子172および第2通信素子180に与え、各素子のバスアクセス権を剥奪するようにしても良い。または、アクセス素子178はバスを開放するようバス使用権獲得のリクエスト信号をプロセッサ170に与え、第1通信素子172および第2通信素子180にはリセット信号を与えてリセットさせても良い。すなわち、アクセス素子178は、WDTエラー検知素子179からエラー検知信号を受けると、各素子のバスアクセスを止めさせるよう作用する(これら実施形態を含むステップS3の処理、すなわち各素子のバスアクセスを止めさせる処理を例外処理ともいう)。
If the WDT error detection element 179 determines that some abnormality has occurred in the processor 170, it outputs an error detection signal to the access element 178 (S2).
When receiving the error detection signal from the WDT error detection element 179, the access element 178 stops the elements other than the access element 178, the second memory 182 and the third memory 184 (S3). More specifically, when the access element 178 receives an error detection signal from the WDT error detection element 179, it provides a reset signal to the processor 170, the first communication element 172, and the second communication element 180 to reset it. Alternatively, the access element 178 may give a bus use right acquisition request signal to the processor 170, the first communication element 172, and the second communication element 180 so as to release the bus, and deprive the bus access right of each element. . Alternatively, the access element 178 may give a bus use right acquisition request signal to the processor 170 to release the bus, and the first communication element 172 and the second communication element 180 may be reset by giving a reset signal. That is, when receiving an error detection signal from the WDT error detection element 179, the access element 178 acts to stop the bus access of each element (the process of step S3 including these embodiments, that is, the bus access of each element is stopped). (This process is also called exception handling.)

続いて、アクセス素子178は、バックアップ対象のデータをバックアップすべく、第2メモリ182に記憶されたバックアップが必要なデータを第3メモリ184に転送する(S4)。なお、第2メモリ182内においてバックアップの対象となるデータのアドレスやサイズ、また、第3メモリ184に格納すべきアドレス等については、予めプロセッサ170によってアクセス素子178のレジスタ(不図示)に設定されているものとする。   Subsequently, the access element 178 transfers the data requiring backup stored in the second memory 182 to the third memory 184 in order to back up the data to be backed up (S4). Note that the address and size of data to be backed up in the second memory 182 and the address to be stored in the third memory 184 are set in advance in the register (not shown) of the access element 178 by the processor 170. It shall be.

このとき、アクセス素子178は、第2メモリ182および第3メモリ184に共通バス176を通じて接続されており、プロセッサ170から制御指令を受けたり、プロセッサ170に処理を委ねることなく、アクセス素子178単独でデータを転送する。   At this time, the access element 178 is connected to the second memory 182 and the third memory 184 through the common bus 176, and the access element 178 alone is received without receiving a control command from the processor 170 or leaving the processing to the processor 170. Transfer data.

アクセス素子178は、論理回路やその動作タイミングを任意に設定することができる。従ってアクセス素子178は、WDTエラー検知素子179が出力したエラー検知信号に基づいて、第2メモリ182や第3メモリ184への制御信号を適切なタイミングで生成することができる。第2メモリ182や第3メモリ184への制御信号は後ほど詳述する。   The access element 178 can arbitrarily set a logic circuit and its operation timing. Therefore, the access element 178 can generate a control signal to the second memory 182 and the third memory 184 at an appropriate timing based on the error detection signal output from the WDT error detection element 179. Control signals to the second memory 182 and the third memory 184 will be described in detail later.

このようにして第2メモリ182のデータは第3メモリ184に転送される。このとき、第2メモリ182から第3メモリ184へのデータ転送は、プロセッサ170が関与しておらず、アクセス素子178に組み込まれた論理回路(ハードウェアロジック)のみで実現している。従って、従来のように、バックアップ処理にプロセッサ170が関与する場合と比較して、プロセッサ170に異常が発生したとしても、確実にバックアップ処理を実行することができる。   In this way, the data in the second memory 182 is transferred to the third memory 184. At this time, the data transfer from the second memory 182 to the third memory 184 is realized only by a logic circuit (hardware logic) incorporated in the access element 178 without involving the processor 170. Therefore, as compared with the conventional case where the processor 170 is involved in the backup process, the backup process can be reliably executed even if an abnormality occurs in the processor 170.

ステップS4の処理が終了すると、アクセス素子178は、そのバックアップ処理がWDTエラー検知素子179によって検知された異常であることを第3メモリ184のエラー要因記録領域に記録する(S5)。
When the process of step S4 ends, the access element 178 records in the error factor recording area of the third memory 184 that the backup process is an abnormality detected by the WDT error detection element 179 (S5).

続いてステップS6を説明するが、ステップS6の処理は前述ステップS3の処理に応じて以下の(i)〜(iii)で実現する。
(i)ステップS3にて、アクセス素子178がWDTエラー検知素子179からエラー検知信号を受け、リセット信号をプロセッサ170、第1通信素子172および第2通信素子180に与えた場合には、ステップS5に続き、アクセス素子178は、各素子に出力したリセットを解除しリスタートさせる。
(ii)ステップS3にて、アクセス素子178が各素子のバスアクセス権を剥奪するようにバス使用権獲得のリクエスト信号を各素子に与えた場合には、ステップS5に続き、アクセス素子178はバス使用権獲得のリクエスト信号の出力を解除すると共に、各素子にリセットを一時的に与え、リスタートさせる。
(iii)ステップS3にて、アクセス素子178がバスを開放するようバス使用権獲得のリクエスト信号をプロセッサ170に与え、第1通信素子172および第2通信素子180にリセット信号を与えた場合には、ステップS5に続き、アクセス素子178はプロセッサ170に与えたバス使用権獲得のリクエスト信号の出力を解除し、リセットを一時的に与え、プロセッサ170をリスタートさせる。これと並行して、アクセス素子178は第1通信素子172および第2通信素子180へのリセット信号の出力を解除する。
(リスタート処理)
図5は、リスタートの処理の流れを示したフローチャートである。リスタートされたプロセッサ170はイニシャライズ処理の際、自身がどのようにしてリスタートされたのかを把握するため、第3メモリ184のエラー要因記録領域を参照する(S11)。参照したエラー要因がWDTエラー検知素子179によって検知された異常でなかった場合(プロセッサ170のプログラムの実行に支障をきたす異常で無かった場合)には、プロセッサ170は少なくとも異常に関わるダメージを直接負ってなく、他の部分に異常がある可能性がある。このためプロセッサ170は、主回路154全体のイニシャライズ処理を行った上で運用モードに移行し、制御を実行する(S12におけるNO)。
Subsequently, step S6 will be described. The process of step S6 is realized by the following (i) to (iii) according to the process of step S3.
(I) If the access element 178 receives an error detection signal from the WDT error detection element 179 and provides a reset signal to the processor 170, the first communication element 172, and the second communication element 180 in step S3, step S5 Subsequently to the access element 178, the reset output to each element is canceled and restarted.
(Ii) In step S3, when a request signal for acquiring the bus use right is given to each element so that the access element 178 deprives the bus access right of each element, the access element 178 follows the step S5. The output of the usage right acquisition request signal is canceled and a reset is temporarily given to each element to restart.
(Iii) When a request signal for acquiring the bus use right is given to the processor 170 so that the access element 178 releases the bus in step S3, and a reset signal is given to the first communication element 172 and the second communication element 180 Subsequently to step S5, the access element 178 cancels the output of the bus use right acquisition request signal given to the processor 170, temporarily gives a reset, and restarts the processor 170. In parallel with this, the access element 178 cancels the output of the reset signal to the first communication element 172 and the second communication element 180.
(Restart process)
FIG. 5 is a flowchart showing the flow of restart processing. The restarted processor 170 refers to the error factor recording area of the third memory 184 in order to grasp how it was restarted during the initialization process (S11). If the referenced error factor is not an abnormality detected by the WDT error detection element 179 (if it is not an abnormality that hinders the execution of the program of the processor 170), the processor 170 directly takes at least damage related to the abnormality. There may be an abnormality in other parts. For this reason, the processor 170 performs initialization processing for the entire main circuit 154, then shifts to the operation mode, and executes control (NO in S12).

一方、参照したエラー要因がWDTエラー検知素子179によって検知された異常であった場合(S12におけるYES)には、プロセッサ170は、その旨を管理装置110に通知してイニシャライズ処理に留まり、管理装置110からの指示を待つ。すなわちプロセッサ170は、運用モードには移行せず、制御処理を実行しない(待機モードともいう)。
On the other hand, if the referenced error factor is an abnormality detected by the WDT error detection element 179 (YES in S12), the processor 170 notifies the management device 110 to that effect and stays in the initialization process. Wait for instructions from 110. That is, the processor 170 does not enter the operation mode and does not execute the control process (also referred to as a standby mode).

続いて待機モードについて説明する。ステップS13では、プロセッサ170は管理装置110から何らかの指示があるか否かをチェックしており、指示が無い場合にはチェックを繰り返す(S13におけるNO)。一方、管理装置110から何らかの指示があった場合にプロセッサ170は、その指示が運用モードの移行を指示するものかチェックする(S13におけるYESおよびS14)。ステップS14においてプロセッサ170は管理装置110から受けた指示が運用モードへの移行であった場合、主回路154全体のイニシャライズ処理を行った上で運用モードに移行する。   Next, the standby mode will be described. In step S13, the processor 170 checks whether there is any instruction from the management apparatus 110. If there is no instruction, the processor 170 repeats the check (NO in S13). On the other hand, when there is any instruction from the management device 110, the processor 170 checks whether the instruction instructs to shift to the operation mode (YES in S13 and S14). In step S14, when the instruction received from the management apparatus 110 is a transition to the operation mode, the processor 170 performs the initialization process for the entire main circuit 154 and then transitions to the operation mode.

ステップS14において、管理装置110から受けた指示が運用モードへの移行を指示するものでなかった場合、プロセッサ170はステップS15に移行し(S14におけるNO)、その他の指示に応じた処理を実行する。その他の指示とは様々な指示があり、例えば、管理装置110によって、第3メモリにバックアップされたデータを再配置するよう指示(復元指示)が成されれば、プロセッサ170は、第3メモリ184にバックアップされたデータを元のメモリ(第2メモリ182)に再配置し復元する。このようにすることで、本発明は被制御機器130に係る各種データを異常発生時と略等しいときの状態に戻すことができ、異常復旧後の制御を異常発生時と略等しい状態から再開できる。   In step S14, when the instruction received from the management apparatus 110 is not an instruction to shift to the operation mode, the processor 170 moves to step S15 (NO in S14) and executes processing according to other instructions. . The other instructions include various instructions. For example, if the management apparatus 110 issues an instruction (restore instruction) to rearrange the data backed up in the third memory, the processor 170 causes the third memory 184 to be relocated. The data backed up in (1) is relocated to the original memory (second memory 182) and restored. In this way, the present invention can return the various data related to the controlled device 130 to the state when it is substantially equal to the time of occurrence of the abnormality, and can resume control after recovery from the state substantially equal to the time of occurrence of the abnormality. .

また、管理装置110によって、第3メモリ184にバックアップされたデータを管理装置110に送信するよう指示(バックアップデータ送信指示)が成されれば、プロセッサ170は第1通信素子172を介してそのデータを一括もしくは指定された領域など部を管理装置110(外部)に送信する。このようにすることで、本発明は異常発生と略等しいときのデータを管理装置に通知できるので、ユーザは異常との関連性など解析作業を効率よくできる。
In addition, when the management device 110 gives an instruction to transmit the data backed up in the third memory 184 to the management device 110 (backup data transmission instruction), the processor 170 transmits the data via the first communication element 172. and it transmits to the batch or managing apparatus part such as designated area 110 (external). By doing so, the present invention can notify the management apparatus of data that is substantially equal to the occurrence of an abnormality, so that the user can efficiently perform analysis work such as the relationship with the abnormality.

従って、このような待機モードを設けることにより、ユーザの異常要因の確認のもと適切な処置を施した上でプログラマブルコントローラを運用することができる。
要するにアクセス素子178は、プロセッサ170に関わる異常を契機に第2メモリ182に記憶されたデータを第3メモリ184にバックアップする。この際、アクセス素子178は第3メモリ184のエラー要因記録領域にバックアップの引き金となった異常の要因を記録し、プロセッサ170をリスタートさせる。リスタート(起動)されたプロセッサ170は、運用モードへの移行(制御実行)に先立って、エラー要因記録領域に記録された異常の要因を参照する。プロセッサ170は参照した異常要因が当該プロセッサ170に関わる異常(プロセッサ170のプログラムの実行に支障をきたす異常)であった場合、待機モードに留まる。
Therefore, by providing such a standby mode, it is possible to operate the programmable controller after performing appropriate measures based on the confirmation of the user's abnormality factor.
In short, the access element 178 backs up the data stored in the second memory 182 to the third memory 184 when an abnormality relating to the processor 170 occurs. At this time, the access element 178 records the cause of the abnormality that triggered the backup in the error factor recording area of the third memory 184, and restarts the processor 170. The restarted processor 170 refers to the cause of the abnormality recorded in the error factor recording area prior to shifting to the operation mode (control execution). The processor 170 remains in the standby mode if the referenced abnormality factor is an abnormality related to the processor 170 (an abnormality that hinders the execution of the program of the processor 170).

なお、上記図5のステップS14でYESとなり運用モードに移行する際、本発明は主回路154全体のイニシャライズ処理を行わず、主回路154の各種設定を維持して運用モードに移行するように構成しても良い。なぜならば、待機モードに移行したプロセッサ170は異常に関わるダメージを直接負っている可能性があるため、主回路154全体のイニシャライズ処理(メモリをクリアしての各種設定を行なうなど)を正常に実行できなく、各種設定が予期せぬデータに書き換わる可能性を否めないからである。一方で、プロセッサ170が正常にプログラムを実行できれば、本発明はイニシャライズ時間を削減して早く運用できるというメリットもある。   Note that the present invention is configured to shift to the operation mode while maintaining various settings of the main circuit 154 without performing the initialization process of the entire main circuit 154 when shifting to the operation mode in step S14 of FIG. You may do it. This is because the processor 170 that has shifted to the standby mode may have directly suffered damage related to the abnormality, so the initialization processing of the entire main circuit 154 (such as performing various settings after clearing the memory) is executed normally. This is because there is no denying the possibility that various settings will be rewritten to unexpected data. On the other hand, if the processor 170 can normally execute the program, the present invention has an advantage that the initialization time can be reduced and the program can be operated quickly.

なお、上記のような主回路154の各種設定を維持して運用モードに移行するためには、電源が起動されてスタートするコールドスタートではなく、運用モード中にプロセッサ170(のみ)をリセットして再起動するようなホットスタートのときに適用できる。つまり、本発明のプロセッサ170へのリスタート処理が相当する。   Note that in order to maintain the various settings of the main circuit 154 as described above and shift to the operation mode, the processor 170 (only) is reset during the operation mode, not the cold start that is started when the power is turned on. It can be applied during a hot start that restarts. That is, the restart process to the processor 170 of the present invention corresponds.

コールドスタートで起動されたか、ホットスタートで起動されたかを識別するには、本発明では、例えば、パワーオンリセットでクリアされるレジスタをアクセス素子178に設け、当該レジスタをプロセッサ170が起動時に参照し、「0」であればコールドスタート「1」であればホットスタートとするように構成すれば良い。このレジスタを参照することでプロセッサ170はコールドスタートで起動されたか、ホットスタートで起動されたかを識別できる。
(バックアップデータの転送処理)
アクセス素子178のバックアップデータの転送処理について説明する。アクセス素子178は第2メモリ182から第3メモリ184へデータを転送する際、第2メモリ182のデータの読み出しを行い、データが共通バス176に出力されている間に、そのデータを第3メモリ184に書き込む。すなわち、アクセス素子178は第2メモリ182と第3メモリ184とを同時にアクセスすることが可能である。
In order to identify whether it is started by a cold start or a hot start, in the present invention, for example, a register that is cleared by a power-on reset is provided in the access element 178, and the processor 170 refers to the register at the time of startup. , if it is "0" cold start, it can be configured to a hot start if it is "1". By referring to this register, the processor 170 can identify whether it has been started by a cold start or a hot start.
(Backup data transfer process)
The backup data transfer process of the access element 178 will be described. When the access element 178 transfers data from the second memory 182 to the third memory 184, the data is read from the second memory 182, and the data is output to the third memory while the data is output to the common bus 176. Write to 184. That is, the access element 178 can access the second memory 182 and the third memory 184 simultaneously.

図4は、データ転送の詳細なタイミングを示したタイミングチャートである。例えば、第2メモリ182の任意のアドレスAに格納されたデータBを、第3メモリ184に転送する例を挙げる。ここでは、第3メモリ184の記憶容量を第2メモリ182の記憶容量以上とし、第2メモリ182と第3メモリ184とのアドレス空間(メモリマップ)を等しくしている。   FIG. 4 is a timing chart showing the detailed timing of data transfer. For example, an example in which data B stored at an arbitrary address A in the second memory 182 is transferred to the third memory 184 will be described. Here, the storage capacity of the third memory 184 is set to be equal to or greater than the storage capacity of the second memory 182, and the address spaces (memory maps) of the second memory 182 and the third memory 184 are made equal.

アクセス素子178は、共通バス176のアドレス線にアドレスAを出力することで第2メモリ182および第3メモリ184の任意のアドレスAを指定し、第2メモリ182の/RD信号のみを直接制御することで、第2メモリ182のデータBを共通バス176のデータ線に読み出す。ただし、ここでは、CS(Chip Select)等の他の許可信号を省略している。   The access element 178 specifies an arbitrary address A in the second memory 182 and the third memory 184 by outputting the address A to the address line of the common bus 176, and directly controls only the / RD signal of the second memory 182. As a result, the data B of the second memory 182 is read to the data line of the common bus 176. However, other permission signals such as CS (Chip Select) are omitted here.

そして、共通バス176のアドレス線にアドレスAが出力され、かつ、共通バス176のデータ線にデータBが出力されている間に、アクセス素子178は、第3メモリ184の/WR信号のみを直接制御することで、共通バス176のデータ線に出力されているデータBを第3メモリ184に書き込む。   While the address A is output to the address line of the common bus 176 and the data B is output to the data line of the common bus 176, the access element 178 directly receives only the / WR signal of the third memory 184. By controlling, the data B output to the data line of the common bus 176 is written in the third memory 184.

データの読み出しと書き込みを、従来では、別のタイミングで行っていたところ、本実施形態では、同タイミングで行うことができるので、データ転送を高速化することができ、バックアップ処理の短縮化を図ることができる。また、短縮化に伴う時間を他のバックアップ処理に利用することも可能となる。さらに、データの転送負荷も削減できるので、バックアップ処理に費やす電力も大幅に削減することができる。   Conventionally, data reading and writing have been performed at different timings. In the present embodiment, since data can be performed at the same timings, data transfer can be speeded up and backup processing can be shortened. be able to. Also, the time required for shortening can be used for other backup processing. Furthermore, since the data transfer load can be reduced, the power consumed for backup processing can be greatly reduced.

以上に説明したように、本発明によると、プロセッサ170に異常が発生したときでもバックアップ処理を確実に実行できる高信頼なプログラマブルコントローラを提供することができる。   As described above, according to the present invention, it is possible to provide a highly reliable programmable controller that can reliably execute backup processing even when an abnormality occurs in the processor 170.

なお、本明細書のバックアップ対処方法の各工程は、必ずしもフローチャートとして記載された順序に沿って時系列に処理する必要はなく、並列的あるいはサブルーチンによる処理を含んでもよい。   Note that each step of the backup coping method of the present specification does not necessarily have to be processed in time series in the order described in the flowchart, and may include parallel or subroutine processing.

また、本発明は、異常対処方法としてウォッチドックタイマーがオーバーフローの場合の実施例を説明したが、これに限ることはない。例えば、本発明はパリティエラー、プログラムのサムチェックエラー、そしてメモリの割付がない未定義領域へのプロセッサ170のアクセスなどを対象とすることができる。すなわち本発明で扱う異常とは、プロセッサ170のプログラムの実行に支障をきたす異常全てである。   Further, although the present invention has been described with respect to an embodiment in which the watchdog timer overflows as a method for dealing with an abnormality, the present invention is not limited to this. For example, the present invention can be directed to parity errors, program sum check errors, and access of the processor 170 to undefined areas where no memory is allocated. That is, the abnormalities handled in the present invention are all abnormalities that hinder the execution of the program of the processor 170.

また、本発明は、アクセス素子178に調停機能を含ませ、プロセッサ170と第1通信素子172とを共有バス176から切り離し、両者及び第1メモリを専用バスで接続することも可能である。このとき、調停機能は共通バス176(第2メモリ182や第3メモリ18)へのアクセス権をプロセッサ170もしくは第1通信素子172のいずれか一方に与えるよう調停する。アクセス権を得たプロセッサ170もしくは第1通信素子172はアクセス素子178を介して第2メモリ182や第3メモリ18をアクセスすることになる。 In the present invention, the access element 178 may include an arbitration function, the processor 170 and the first communication element 172 may be disconnected from the shared bus 176, and both and the first memory may be connected by a dedicated bus. At this time, the arbitration function arbitrates the access right to the common bus 176 (the second memory 182 and the third memory 18 4 ) to either the processor 170 or the first communication element 172. Processor 170 or the first communication device 172 has gained access would access the second memory 182 and third memory 18 4 via the access device 178.

また、上記説明での運用モードとは、プログラマブルコントローラ120、もしくはプログラマブルコントローラシステム100がアプリケーションプログラム(シーケンスプログラム)を実行して外部機器を制御する状態を指している。   The operation mode in the above description refers to a state in which the programmable controller 120 or the programmable controller system 100 executes an application program (sequence program) to control an external device.

本発明は、記憶部を備えた情報処理装置として、被制御機器に対する制御処理をプログラミング可能なプログラマブルコントローラや、そのデータバックアップ方法、そして、プログラマブルコントローラの起動方法として利用することができる。   INDUSTRIAL APPLICABILITY The present invention can be used as an information processing apparatus including a storage unit as a programmable controller capable of programming control processing for a controlled device, a data backup method thereof, and a programmable controller activation method.

100 …プログラマブルコントローラシステム
110 …管理装置
120 …プログラマブルコントローラ(PLC)
130 …被制御機器
154 …主回路
170 …プロセッサ
172 …第1通信素子
176 …共通バス
178 …アクセス素子
179 …WDT(ウォッチドックタイマー)エラー検知部
180 …第2通信素子
182 …第2メモリ(被バックアップメモリ)
184 …第3メモリ(バックアップメモリ)
DESCRIPTION OF SYMBOLS 100 ... Programmable controller system 110 ... Management apparatus 120 ... Programmable controller (PLC)
130 ... controlled device 154 ... main circuit 170 ... processor 172 ... first communication element 176 ... common bus 178 ... access element 179 ... WDT (watchdog timer) error detection unit 180 ... second communication element 182 ... second memory (subject Backup memory)
184 ... Third memory (backup memory)

Claims (8)

被バックアップ記憶部と、
バックアップ記憶部と、
前記被バックアップ記憶部と前記バックアップ記憶部とをアクセス可能な中央処理部およびアクセス素子と、
当該中央処理部の動作の異常を検知するエラー検知部と、を有し、
前記アクセス素子は、前記エラー検知部によって前記中央処理部の動作の異常が検知されると、前記被バックアップ記憶部のデータを前記バックアップ記憶部に退避し、かつ当該検知された異常の要因を前記バックアップ記憶部の所定の領域に記録することを特徴とするプログラマブルコントローラ。
A backup storage unit;
A backup storage unit;
A central processing unit and an access element capable of accessing the backup storage unit and the backup storage unit;
An error detection unit that detects an abnormality in the operation of the central processing unit,
When an error in the operation of the central processing unit is detected by the error detection unit, the access element saves the data in the backup storage unit to the backup storage unit, and sets the detected cause of the abnormality A programmable controller, which records in a predetermined area of a backup storage unit.
前記アクセス素子は、前記被バックアップ記憶部のデータの読み出しと、前記バックアップ記憶部への書き込みを同一アクセスサイクルに実行することを特徴とする請求項1記載のプログラマブルコントローラ。   2. The programmable controller according to claim 1, wherein the access element executes reading of data from the backup storage unit and writing to the backup storage unit in the same access cycle. 前記アクセス素子は、前記エラー検知部によって前記中央処理部の動作の異常が検知されると、前記中央処理部のアクセスを止めさせることを特徴とする請求項1または請求項2に記載のプログラマブルコントローラ。   3. The programmable controller according to claim 1, wherein the access element stops access to the central processing unit when an error in the operation of the central processing unit is detected by the error detection unit. 4. . 請求項1乃至3のいずれか1項に記載のプログラマブルコントローラであって、
前記中央処理部は、起動時に、前記バックアップ記憶部の所定の領域を参照し、当該所定の領域に、前記中央処理部の動作の異常が前記エラー検知部によって検知されたことが記録されていた場合、待機モードとなって外部から所定の指示を待つことを特徴とするプログラマブルコントローラ。
The programmable controller according to any one of claims 1 to 3,
The central processing unit refers to a predetermined area of the backup storage unit at the time of startup, and it is recorded in the predetermined area that an abnormality in the operation of the central processing unit has been detected by the error detection unit. A programmable controller characterized by waiting for a predetermined instruction from the outside in a standby mode.
請求項4記載のプログラマブルコントローラであって、
前記所定の指示は、復元指示であり、
前記中央処理部は、当該復元指示を受けると、前記バックアップ記憶部に記憶されたデータを前記被バックアップ記憶部に復元することを特徴とするプログラマブルコントローラ。
A programmable controller according to claim 4, wherein
The predetermined instruction is a restoration instruction;
When receiving the restoration instruction, the central processing unit restores data stored in the backup storage unit to the backup storage unit.
請求項4記載のプログラマブルコントローラであって、
前記所定の指示は、バックアップデータ送信指示であり、
前記中央処理部は、前記バックアップデータ送信指示を受けると、前記バックアップ記憶部に記憶されたデータの全部または一部を外部に送信することを特徴とするプログラマブルコントローラ。
A programmable controller according to claim 4, wherein
The predetermined instruction is a backup data transmission instruction,
When the central processing unit receives the backup data transmission instruction, the central processing unit transmits all or a part of the data stored in the backup storage unit to the outside.
被バックアップ記憶部とバックアップ記憶部を具備したプログラマブルコントローラの前記被バックアップ記憶部に記憶されたデータをバックアップ記憶部にバックアップするデータバックアップ方法であって、
前記プログラマブルコントローラに搭載される中央処理部の異常が検知されると、当該中央処理部とは異なるアクセス素子が前記被バックアップ記憶部のデータを前記バックアップ記憶部に退避し、かつ当該検知された異常の要因を前記バックアップ記憶部の所定の領域に記録することを特徴とするプログラマブルコントローラのデータバックアップ方法。
A data backup method for backing up data stored in the backup storage unit of a programmable controller having a backup storage unit and a backup storage unit to a backup storage unit,
When an abnormality of the central processing unit mounted on the programmable controller is detected, an access element different from the central processing unit saves the data in the backup storage unit to the backup storage unit, and the detected abnormality A data backup method for a programmable controller, wherein the factor is recorded in a predetermined area of the backup storage unit.
所定の異常を契機に被バックアップ記憶部に記憶されたデータをバックアップ記憶部にバックアップすると共に前記バックアップ記憶部の所定の領域に前記所定の異常の要因を記録するプログラマブルコントローラの起動方法であって、
前記プログラマブルコントローラは、起動後の制御実行に先立ち、前記所定の異常の要因を参照し、参照した異常要因が前記プログラマブルコントローラの中央処理部に関わる異常であった場合、待機モードに留まることを特徴とするプログラマブルコントローラの起動方法。
A method for starting a programmable controller that backs up data stored in a backup storage unit in response to a predetermined abnormality to a backup storage unit and records the cause of the predetermined abnormality in a predetermined area of the backup storage unit,
The programmable controller refers to the predetermined cause of abnormality prior to control execution after startup, and remains in a standby mode when the referenced abnormality factor is an abnormality related to the central processing unit of the programmable controller. A programmable controller activation method.
JP2012227735A 2012-10-15 2012-10-15 Programmable controller, programmable controller data backup method, programmable controller activation method Active JP6145987B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012227735A JP6145987B2 (en) 2012-10-15 2012-10-15 Programmable controller, programmable controller data backup method, programmable controller activation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012227735A JP6145987B2 (en) 2012-10-15 2012-10-15 Programmable controller, programmable controller data backup method, programmable controller activation method

Publications (2)

Publication Number Publication Date
JP2014081700A JP2014081700A (en) 2014-05-08
JP6145987B2 true JP6145987B2 (en) 2017-06-14

Family

ID=50785863

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012227735A Active JP6145987B2 (en) 2012-10-15 2012-10-15 Programmable controller, programmable controller data backup method, programmable controller activation method

Country Status (1)

Country Link
JP (1) JP6145987B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6140111B2 (en) 2014-07-14 2017-05-31 ファナック株式会社 Numerical control device with automatic setting restoration function and erroneous setting prevention function
WO2017077654A1 (en) * 2015-11-06 2017-05-11 三菱電機株式会社 Programmable controller, control system, and control method
WO2017203583A1 (en) * 2016-05-23 2017-11-30 三菱電機株式会社 Programmable logic controller
JP6812737B2 (en) * 2016-10-07 2021-01-13 オムロン株式会社 Arithmetic logic unit and control unit
WO2018173105A1 (en) * 2017-03-21 2018-09-27 三菱電機株式会社 Programmable logic controller, memory module, and program
TWI657337B (en) * 2017-12-29 2019-04-21 新唐科技股份有限公司 Event recording controller and electronic device
JP6919597B2 (en) 2018-03-01 2021-08-18 オムロン株式会社 Computer and its control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0573439A (en) * 1991-09-13 1993-03-26 Sharp Corp Printed wiring board and data relief system
JPH086616A (en) * 1994-06-15 1996-01-12 Matsushita Electric Works Ltd Programmable controller
JP3308813B2 (en) * 1996-06-06 2002-07-29 株式会社東芝 Programmable controller
JP2000305610A (en) * 1999-04-26 2000-11-02 Yaskawa Electric Corp Information processing unit of programmable controller and its data storing method

Also Published As

Publication number Publication date
JP2014081700A (en) 2014-05-08

Similar Documents

Publication Publication Date Title
JP6145987B2 (en) Programmable controller, programmable controller data backup method, programmable controller activation method
CN109032822B (en) Method and device for storing crash information
US8700835B2 (en) Computer system and abnormality detection circuit
US20120254517A1 (en) Plc data log module and method for storing data in the same
JP2012069032A (en) Information processor
US9195553B2 (en) Redundant system control method
JP2011070655A (en) Information processing apparatus, memory dump system and memory dump method
JP2007011426A (en) Processor
US10691565B2 (en) Storage control device and storage control method
JP4886558B2 (en) Information processing device
JP5063212B2 (en) Multiple component system
WO2014174546A1 (en) Programmable logic controller system and programmable logic controller
US20160098218A1 (en) Plc data log module with backup function
JP5915740B2 (en) Programmable controller and power-off countermeasure method
JP6502211B2 (en) Vehicle control device
JP2016066139A (en) Vehicle control unit
JP6131688B2 (en) Safety-related equipment and program
JP6123282B2 (en) Programmable controller and power-off countermeasure method
JP5627414B2 (en) Action log collection system and program
US10768601B2 (en) Programmable controller
JP6765874B2 (en) Electronic control device
JP6079915B2 (en) Programmable controller and power-off countermeasure method
JP6787658B2 (en) Processing equipment, traffic signal equipment and information display equipment
US10983879B1 (en) System and method for managing recovery of multi-controller NVMe drives
JP2014229116A (en) Programmable controller and method for coping with power disconnection

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150914

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20151005

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20151005

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160712

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160908

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170221

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170323

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170418

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170501

R150 Certificate of patent or registration of utility model

Ref document number: 6145987

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