JP6351882B1 - Programmable logic controller and program - Google Patents

Programmable logic controller and program Download PDF

Info

Publication number
JP6351882B1
JP6351882B1 JP2017561993A JP2017561993A JP6351882B1 JP 6351882 B1 JP6351882 B1 JP 6351882B1 JP 2017561993 A JP2017561993 A JP 2017561993A JP 2017561993 A JP2017561993 A JP 2017561993A JP 6351882 B1 JP6351882 B1 JP 6351882B1
Authority
JP
Japan
Prior art keywords
storage device
memory
unit
control
data
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
JP2017561993A
Other languages
Japanese (ja)
Other versions
JPWO2018173105A1 (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 JP6351882B1 publication Critical patent/JP6351882B1/en
Publication of JPWO2018173105A1 publication Critical patent/JPWO2018173105A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

本発明にかかるプログラマブルロジックコントローラは、不揮発性の記憶装置が接続されているか否かを判別する接続判定部(124)、を備え、不揮発性の記憶装置が接続されている場合は不揮発性の記憶装置に格納されているデータをデバイス値またはパラメータ値として使用して制御対象機器の制御を開始する。The programmable logic controller according to the present invention includes a connection determination unit (124) that determines whether or not a nonvolatile storage device is connected, and when the nonvolatile storage device is connected, the nonvolatile storage device The control of the control target device is started using the data stored in the apparatus as the device value or parameter value.

Description

本発明は、プログラマブルロジックコントローラ(PLC:Programmable Logic Controller)、メモリモジュールおよびプログラムに関する。   The present invention relates to a programmable logic controller (PLC), a memory module, and a program.

産業用機械などの制御装置として用いられているプログラマブルロジックコントローラ(以下、PLCと記載する)は、ベースユニットと、ベースユニット上に配置される各種ユニットとで構成される。具体的には、他のユニットに対して電源を供給する電源ユニット、PLCに接続された制御対象機器を制御するCPU(Central Processing Unit)ユニット、生産装置および設備装置に取り付けたセンサなどからの信号を入力する入力ユニット、アクチュエータなどに制御出力を出力する出力ユニット、通信ネットワークに接続するためのネットワークユニットなどの各種ユニットがベースユニットに取り付けられ、PLCが構成される。   A programmable logic controller (hereinafter referred to as “PLC”) used as a control device for an industrial machine or the like includes a base unit and various units arranged on the base unit. Specifically, a signal from a power supply unit that supplies power to other units, a CPU (Central Processing Unit) unit that controls a device to be controlled connected to the PLC, a production device, a sensor attached to a facility device, or the like Various units, such as an input unit that inputs a control signal, an output unit that outputs a control output to an actuator, and a network unit for connecting to a communication network, are attached to the base unit to constitute a PLC.

PLCを構成する上記の各種ユニットのうち、CPUユニットは、メモリで保持されている、機器の制御で使用するデバイス値およびパラメータ値(以下、これらをまとめてデータと記載する)を適宜更新しながら機器の制御を行う。デバイス値とは、制御対象機器の状態を示す物理量である。これまでのPLCは、メモリへのアクセス速度、すなわちメモリへのデータの書き込み速度およびメモリからのデータの読み出し速度の関係より、制御動作中に更新されるデータを高速なメモリアクセスが可能な揮発性メモリで保持し、突然の電源断などによるデータの消失を防止するためのバックアップ用のバッテリを備えた構成が一般的であった。また、揮発性メモリと比較してメモリアクセス速度が遅い不揮発性メモリは揮発性メモリが保持しているデータのバックアップ用として使用するのが一般的であった(例えば、特許文献1)。   Among the above-mentioned various units constituting the PLC, the CPU unit appropriately updates device values and parameter values (hereinafter collectively referred to as data) used in device control, which are held in the memory. Control the equipment. The device value is a physical quantity indicating the state of the control target device. Conventional PLCs are volatile that allows high-speed memory access to data updated during control operations based on the relationship between the memory access speed, that is, the data write speed to the memory and the data read speed from the memory. A general configuration is provided with a backup battery that is held in a memory and prevents data loss due to a sudden power interruption. In addition, a nonvolatile memory having a slower memory access speed than a volatile memory is generally used for backup of data held in the volatile memory (for example, Patent Document 1).

特開平8−185208号公報JP-A-8-185208

バックアップ用のバッテリを備えた構成の場合、バッテリの消耗および劣化を定期的に確認し、必要に応じて新しいバッテリに交換する必要があり、バッテリの費用および保守作業が必要である。また、バッテリに不具合が発生した場合にはデータを消失してしまう。そのため、バッテリレス化、すなわちバックアップ用のバッテリを必要としない構成を実現しつつデータの消失も防止できるCPUユニットの実現が望まれている。CPUユニットのメモリは、書き込み速度、容量、信頼性等を考慮する必要がある。不揮発性メモリを使用することによりCPUユニットのバッテリレス化を実現することは可能であるが、CPUユニットで使用可能な不揮発性メモリ、すなわちCPUユニットのメモリに要求されるスペックを満たす不揮発性メモリは現時点では高価である。そのため、バッテリレスユニット自体が高価であり、コストの面からバッテリレスでないユニットを使っているユーザが多い。ところで、部品の価格は、市場に流通すればするほど安価となるため、現時点では高価な不揮発性メモリが将来的には安価となり、バッテリレス構成のCPUユニットを低価格化で実現可能になると予想される。すなわち、将来的には、CPUユニットで使用可能な不揮発性メモリのコストが、揮発性メモリとデータバックアップ用のバッテリを組み合わせて使用する場合のコストよりも低くなることが予想される。   In the case of a configuration including a backup battery, it is necessary to periodically check the consumption and deterioration of the battery, and replace the battery with a new battery as necessary, which requires battery cost and maintenance work. In addition, data is lost when a failure occurs in the battery. Therefore, it is desired to realize a CPU unit that can eliminate the loss of data while realizing a battery-less configuration, that is, a configuration that does not require a backup battery. The memory of the CPU unit needs to consider the writing speed, capacity, reliability, and the like. Although it is possible to realize a battery-less CPU unit by using a non-volatile memory, a non-volatile memory that can be used in the CPU unit, that is, a non-volatile memory that satisfies the specifications required for the memory of the CPU unit Currently expensive. Therefore, the batteryless unit itself is expensive, and there are many users who use a unit that is not batteryless in terms of cost. By the way, the price of parts will become cheaper as it is distributed in the market, so it is expected that currently expensive non-volatile memory will become cheaper in the future, and a CPU unit with a battery-less configuration can be realized at a lower price. Is done. That is, in the future, it is expected that the cost of the nonvolatile memory that can be used in the CPU unit will be lower than the cost in the case of using a combination of a volatile memory and a data backup battery.

本発明は、上記に鑑みてなされたものであって、将来的にバッテリレス構成に変更することが可能なプログラマブルロジックコントローラを得ることを目的とする。   The present invention has been made in view of the above, and an object thereof is to obtain a programmable logic controller that can be changed to a battery-less configuration in the future.

上述した課題を解決し、目的を達成するために、本発明にかかるプログラマブルロジックコントローラは、揮発性の記憶装置が保持しているデータのバックアップ用のバッテリを接続するためのバッテリ接続部を有する。また、プログラマブルロジックコントローラは、前記揮発性の記憶装置もしくは不揮発性の記憶装置のうちいずれか一方、または、前記揮発性の記憶装置および前記不揮発性の記憶装置の両方が接続されているか否かを判別し、不揮発性の記憶装置と前記揮発性の記憶装置のうち接続された記憶装置に応じて、制御対象機器を制御するためのデバイス値またはパラメータ値を読み出す記憶装置を変更する。また、プログラマブルロジックコントローラは、変更後の記憶装置で記憶されている前記デバイス値または前記パラメータ値を使用して制御対象機器を制御する。 In order to solve the above-described problems and achieve the object, a programmable logic controller according to the present invention includes a battery connection unit for connecting a backup battery for data held in a volatile storage device. The programmable logic controller determines whether one of the volatile storage device and the nonvolatile storage device, or both the volatile storage device and the nonvolatile storage device are connected. The storage device that reads the device value or parameter value for controlling the device to be controlled is changed in accordance with the storage device connected between the nonvolatile storage device and the volatile storage device. The programmable logic controller controls the control target device using the device value or the parameter value stored in the changed storage device.

本発明にかかるプログラマブルロジックコントローラは、データのバックアップ用のバッテリを備えた構成からバッテリレスの構成に変更することができる、という効果を奏する。   The programmable logic controller according to the present invention is advantageous in that it can be changed from a configuration including a data backup battery to a battery-less configuration.

本発明の実施の形態1にかかるユニットを備えたPLCの構成例を示す図The figure which shows the structural example of PLC provided with the unit concerning Embodiment 1 of this invention. 実施の形態1にかかるCPUユニットの構成例を示す図1 is a diagram illustrating a configuration example of a CPU unit according to a first embodiment. 実施の形態1にかかるCPUユニットの動作例を示すフローチャート3 is a flowchart showing an operation example of the CPU unit according to the first embodiment. 実施の形態1にかかるCPUユニットに揮発性メモリおよび不揮発性メモリが搭載されている場合の動作例を示すフローチャート6 is a flowchart showing an operation example when a volatile memory and a nonvolatile memory are mounted on the CPU unit according to the first embodiment. 実施の形態2にかかるCPUユニットの構成例を示す図The figure which shows the structural example of the CPU unit concerning Embodiment 2. FIG.

以下に、本発明の実施の形態にかかるプログラマブルロジックコントローラ、メモリモジュールおよびプログラムを図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Below, a programmable logic controller, a memory module, and a program 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にかかるユニットを備えたPLCの構成例を示す図である。PLC1は、生産設備において要求される機能を実現するための各種ユニットを電気的に接続するベースユニット10と、ベースユニット10に接続された各種ユニットである電源ユニット11、CPUユニット12、入力ユニット13、出力ユニット14およびネットワークユニット15とを備える。1つのベースユニットに対して同じ種類のユニットが複数接続される場合もある。なお、図1に示した各種ユニットは一例である。
Embodiment 1 FIG.
FIG. 1 is a diagram illustrating a configuration example of a PLC including a unit according to the first embodiment of the present invention. The PLC 1 includes a base unit 10 that electrically connects various units for realizing functions required in production facilities, and a power supply unit 11, a CPU unit 12, and an input unit 13 that are various units connected to the base unit 10. The output unit 14 and the network unit 15 are provided. There may be a case where a plurality of units of the same type are connected to one base unit. The various units shown in FIG. 1 are examples.

図2は、実施の形態1にかかるCPUユニット12の構成例を示す図である。CPUユニット12は、制御ユニットとも称され、メモリ接続部120と、出力ユニット14に接続されたアクチュエータなどの制御対象機器を制御する制御部121と、制御対象機器の制御動作中に制御部121により更新されるデータを保持するメモリ122と、バッテリ接続部123とを備える。CPUユニット12が本発明にかかるユニットである。なお、メモリ122が保持するデータはデバイス値およびパラメータ値である。   FIG. 2 is a diagram illustrating a configuration example of the CPU unit 12 according to the first embodiment. The CPU unit 12 is also referred to as a control unit, and includes a memory connection unit 120, a control unit 121 that controls a control target device such as an actuator connected to the output unit 14, and a control unit 121 during a control operation of the control target device. A memory 122 that holds data to be updated and a battery connection unit 123 are provided. The CPU unit 12 is a unit according to the present invention. The data held in the memory 122 is a device value and a parameter value.

メモリ接続部120は、メモリ122とは異なるメモリをCPUユニット12に搭載するために設けられている。メモリ接続部120としては、基板上に設けられたランドが例示できる。制御部121は、小容量の演算用内部メモリを備えたプロセッサである情報処理装置がPLCのシーケンスプログラムを実行することにより実現される。メモリ122は、揮発性メモリであり、制御部121が制御対象機器の制御動作で使用するデータを保持する。ただし、将来的には、メモリ122で保持しているデバイス値およびパラメータといったデータをメモリ接続部120に接続された不揮発性メモリが保持する構成とすることを想定している。すなわち、メモリ接続部120を介して制御部121に接続された不揮発性メモリがデバイス値およびパラメータといったデータを保持するようにして、メモリ122のバックアップ用のバッテリを必要としないバッテリレス構成とすることを想定している。メモリ接続部120に不揮発性メモリが接続されている場合、メモリ122のバックアップ用のバッテリに加えて、メモリ122も取り外した構成のCPUユニット12としてもよい。揮発性メモリは揮発性の記憶装置であり不揮発性メモリは不揮発性の記憶装置である。 The memory connection unit 120 is provided to mount a memory different from the memory 122 in the CPU unit 12. An example of the memory connection unit 120 is a land provided on a substrate. The control unit 121 is realized by an information processing apparatus, which is a processor having a small-capacity internal memory, executing a PLC sequence program. The memory 122 is a volatile memory, and holds data used by the control unit 121 in the control operation of the control target device. However, in the future, it is assumed that the nonvolatile memory connected to the memory connection unit 120 holds data such as device values and parameter values held in the memory 122. That is, the non-volatile memory connected to the control unit 121 via the memory connection unit 120 holds data such as device values and parameter values, so that a battery for backup of the memory 122 is not required. Assumes that. When a non-volatile memory is connected to the memory connection unit 120, the CPU 122 may be configured such that the memory 122 is removed in addition to the backup battery of the memory 122. The volatile memory is a volatile storage device, and the nonvolatile memory is a nonvolatile storage device.

バッテリ接続部123は、メモリ122が保持しているデータのバックアップ用のバッテリを接続するための機構でありコネクタなどで構成される。なお、データバックアップ用のバッテリと同様にメモリ122についてもCPUユニット12から着脱可能な構成としてもよい。すなわち、制御部121およびメモリ122がそれぞれ異なる基板に実装され、コネクタ等の接続機構を介して制御部121とメモリ122とが接続される構成としてもよい。   The battery connection unit 123 is a mechanism for connecting a backup battery for data stored in the memory 122, and includes a connector or the like. Note that the memory 122 may be configured to be detachable from the CPU unit 12 in the same manner as the data backup battery. That is, the control unit 121 and the memory 122 may be mounted on different substrates, and the control unit 121 and the memory 122 may be connected via a connection mechanism such as a connector.

制御部121は、接続されているメモリの種別、すなわちCPUユニット12に実装されているメモリの種別を判別する接続判定部124を含む。接続判定部124は、揮発性メモリであるメモリ122が接続されているか否か、および、メモリ接続部120を介して不揮発性メモリが接続されているか否かを判別する。   The control unit 121 includes a connection determination unit 124 that determines the type of memory that is connected, that is, the type of memory that is mounted on the CPU unit 12. The connection determination unit 124 determines whether or not the memory 122 that is a volatile memory is connected, and whether or not the nonvolatile memory is connected via the memory connection unit 120.

図3は、実施の形態1にかかるCPUユニット12の動作例を示すフローチャートであり、具体的には、制御部121が制御対象機器のシーケンス制御を開始する際に実行する動作の動作例を示している。以下の説明において、制御動作とは、シーケンス制御により制御対象機器を制御する動作をいう。   FIG. 3 is a flowchart showing an operation example of the CPU unit 12 according to the first embodiment, and specifically shows an operation example of the operation executed when the control unit 121 starts sequence control of the control target device. ing. In the following description, the control operation refers to an operation of controlling a control target device by sequence control.

CPUユニット12の制御部121は、図2では記載を省略している操作スイッチ等の操作を作業者が行うことにより制御動作の開始が指示されると図3に示した処理を実行する。   The control unit 121 of the CPU unit 12 executes the process shown in FIG. 3 when an operator instructs the start of the control operation by performing an operation of an operation switch or the like not shown in FIG.

制御部121は、制御動作の開始指示を検出すると、メモリ接続部120へのメモリの接続を確認し(ステップS11)、不揮発性メモリが接続され、かつ揮発性メモリが接続されていない場合(ステップS12:Yes、ステップS15:No)、不揮発性メモリで保持されているデータを使用したシーケンス制御を開始する(ステップS17)。不揮発性メモリが接続されている場合とは、メモリ接続部120に不揮発性メモリが接続されている場合をいう。揮発性メモリが接続されている状態とは、メモリ122が搭載されている状態をいう。また、制御部121は、不揮発性メモリが接続され、かつ揮発性メモリも接続されている場合(ステップS12:Yes、ステップS15:Yes)、揮発性メモリで保持されているデータを破棄するクリア処理を実行する(ステップS16)。具体的には、制御部121は、揮発性メモリであるメモリ122をゼロクリアすることにより、保持されているデータを破棄する。制御部121は、揮発性メモリで保持されているデータの破棄が終了すると、不揮発性メモリで保持されているデータを使用したシーケンス制御を開始する(ステップS17)。   When the control unit 121 detects the start instruction of the control operation, the control unit 121 confirms the connection of the memory to the memory connection unit 120 (step S11), and when the nonvolatile memory is connected and the volatile memory is not connected (step S11). S12: Yes, Step S15: No), sequence control using data held in the nonvolatile memory is started (Step S17). The case where the nonvolatile memory is connected refers to the case where the nonvolatile memory is connected to the memory connection unit 120. The state where the volatile memory is connected refers to a state where the memory 122 is mounted. In addition, when the non-volatile memory is connected and the volatile memory is also connected (Step S12: Yes, Step S15: Yes), the control unit 121 clears the data held in the volatile memory. Is executed (step S16). Specifically, the control unit 121 discards the stored data by clearing the memory 122, which is a volatile memory, to zero. When the discard of the data held in the volatile memory is completed, the control unit 121 starts sequence control using the data held in the nonvolatile memory (step S17).

なお、制御部121は、揮発性メモリおよび不揮発性メモリの双方が接続されている場合、シーケンス制御の開始時は不揮発性メモリで保持されているデータを使用するが、その後に更新した後のデータについては揮発性メモリおよび不揮発性メモリの双方に格納する。すなわち、制御部121は、シーケンス制御を開始するとき、まず、不揮発性メモリから、機器の制御で使用するデバイス値およびパラメータ値といったデータを読み出し、読み出したデータを揮発性メモリに書き込む。次に、制御部121は、揮発性メモリが保持しているデータを使用してシーケンス制御を行い、揮発性メモリが保持しているデータを適宜更新する。揮発性メモリおよび不揮発性メモリの双方が接続されている場合の制御部121の動作については別途説明する。   When both the volatile memory and the non-volatile memory are connected, the control unit 121 uses the data held in the non-volatile memory at the start of sequence control. Is stored in both a volatile memory and a nonvolatile memory. That is, when starting the sequence control, the control unit 121 first reads data such as device values and parameter values used for device control from the nonvolatile memory, and writes the read data to the volatile memory. Next, the control unit 121 performs sequence control using data held in the volatile memory, and appropriately updates the data held in the volatile memory. The operation of the control unit 121 when both the volatile memory and the nonvolatile memory are connected will be described separately.

制御部121は、不揮発性メモリが接続されておらず、かつ揮発性メモリが接続されている場合(ステップS12:No、ステップS13:Yes)、揮発性メモリで保持されているデータまたは初期値を使用したシーケンス制御を開始する(ステップS14)。初期値を使用する場合としては、揮発性メモリ内にデータが保持されていない場合が考えられる。デバイス値およびパラメータ値の初期値は、例えば制御部121の動作プログラムに記述しておく。   When the non-volatile memory is not connected and the volatile memory is connected (step S12: No, step S13: Yes), the control unit 121 displays the data or initial value held in the volatile memory. The used sequence control is started (step S14). A case where the initial value is used may be a case where data is not held in the volatile memory. The initial values of the device value and parameter value are described in the operation program of the control unit 121, for example.

また、制御部121は、不揮発性メモリが接続されておらず、かつ揮発性メモリも接続されていない場合(ステップS12:No、ステップS13:No)、シーケンス制御を開始せずに動作を終了する。   Further, when the non-volatile memory is not connected and the volatile memory is not connected (Step S12: No, Step S13: No), the control unit 121 ends the operation without starting the sequence control. .

図3に示した処理のうち、ステップS11からS13およびS15の処理は接続判定部124が実行する。接続されているメモリの種類を接続判定部124が判断する方法としては、メモリに印加される電圧から判断する方法が考えられる。不揮発性メモリと揮発性メモリの動作電圧が異なる場合、電圧に基づいてメモリの種別を判別することが可能である。動作電圧が同一の場合にはプルアップ抵抗またはプルダウン抵抗を従来の回路に追加し、抵抗分割によって電圧値を変更する構成とする事でメモリの種別を判別できるようにする。また、メモリの特定の領域に種別を示す情報を書き込んでおき、その情報を読み出すことにより判断する方法も考えられる。   Of the processes shown in FIG. 3, the connection determination unit 124 executes the processes of steps S11 to S13 and S15. As a method for the connection determination unit 124 to determine the type of the connected memory, a method of determining from the voltage applied to the memory can be considered. When the operating voltages of the nonvolatile memory and the volatile memory are different, it is possible to determine the type of the memory based on the voltage. When the operating voltage is the same, a pull-up resistor or a pull-down resistor is added to the conventional circuit, and the voltage value is changed by resistance division so that the type of memory can be determined. Another possible method is to write information indicating the type in a specific area of the memory and read the information.

図3に示した動作は、CPUユニット12が起動した後、すなわち、PLC1の電源が投入され、CPUユニット12への電源供給が開始された後の最初のシーケンス制御開始時に行うようにしてもよいし、CPUユニット12が起動した後の最初のシーケンス制御開始時に限定することなく、シーケンス制御を開始する際には必ず行うようにしてもよい。また、図3に示した動作をCPUユニット12が起動した後の最初のシーケンス制御開始時に限定して行う構成とする場合、制御部121は、CPUユニット12が起動してから最初のシーケンス制御を開始するまでの間にステップS11からS13,S15,S16を予め実行してメモリの接続状態を確認しておくようにしてもよい。すなわち、制御部121は、CPUユニット12が起動すると自動的にステップS11からS13,S15,S16を実行するようにしてもよい。   The operation shown in FIG. 3 may be performed after the CPU unit 12 is started, that is, at the start of the first sequence control after the power of the PLC 1 is turned on and the power supply to the CPU unit 12 is started. However, this is not limited to the time when the first sequence control is started after the CPU unit 12 is activated, and may be always performed when starting the sequence control. 3 is performed only when the first sequence control after the CPU unit 12 is started, the control unit 121 performs the first sequence control after the CPU unit 12 is started. Before starting, steps S11 to S13, S15, and S16 may be executed in advance to check the memory connection state. That is, the control unit 121 may automatically execute steps S11 to S13, S15, and S16 when the CPU unit 12 is activated.

近年、不揮発性メモリの性能向上に伴いアクセス速度も高速化してきており、これまでは揮発性メモリが使用されていた、生産設備等のシーケンス制御において、不揮発性メモリを使用してデータを保持することも検討されてきている。磁気抵抗メモリとも呼ばれるMRAM(Magnetoresistive Random Access Memory)は、DRAM(Dynamic Random Access Memory)およびSRAM(Static Random Access Memory)といった揮発性メモリと同等のメモリアクセス性能を有する不揮発性メモリである。MRAMまたはこれと同等の性能を有する不揮発性メモリをメモリ接続部120に接続する場合、揮発性メモリであるメモリ122およびデータバックアップ用のバッテリは不要となる。また、仮に、MRAMまたはこれと同等の性能を有する不揮発性メモリをメモリ接続部120に接続し、かつメモリ122をそのまま残しておいた場合、すなわち、MRAMおよびメモリ122の双方が搭載された状態になったとしても、メモリ122のデータバックアップ用のバッテリは不要となる。すなわち、MRAMまたはこれと同等の性能を有する不揮発性メモリがメモリ接続部120に接続されている場合、制御部121は制御対象機器の制御で使用するデータを不揮発性メモリに書き込むため、データバックアップ用のバッテリをCPUユニット12から取り外してバッテリレス構成とすることができる。また、MRAMと同等のメモリアクセス性能を有する不揮発性メモリとして、抵抗変化型メモリ(ReRAM:Resistive Random Access Memory)および強誘電体メモリ(FeRAM:Ferroelectric Random Access Memory)が存在する。これらをメモリ接続部120に接続する不揮発性メモリとして使用してもよい。   In recent years, the access speed has been increased with the improvement of the performance of the non-volatile memory, and the data is retained using the non-volatile memory in the sequence control of the production facility or the like where the volatile memory has been used until now. It has also been considered. MRAM (Magnetoresistive Random Access Memory), also called magnetoresistive memory, is a non-volatile memory having memory access performance equivalent to volatile memory such as DRAM (Dynamic Random Access Memory) and SRAM (Static Random Access Memory). When an MRAM or a non-volatile memory having equivalent performance is connected to the memory connection unit 120, the memory 122 that is a volatile memory and the battery for data backup are not necessary. Also, if MRAM or a non-volatile memory having equivalent performance is connected to the memory connection unit 120 and the memory 122 is left as it is, that is, both the MRAM and the memory 122 are mounted. Even if it becomes, the battery for data backup of the memory 122 becomes unnecessary. That is, when MRAM or a non-volatile memory having equivalent performance is connected to the memory connection unit 120, the control unit 121 writes data used for control of the control target device to the non-volatile memory. The battery can be removed from the CPU unit 12 to form a battery-less configuration. Further, as a nonvolatile memory having a memory access performance equivalent to that of the MRAM, there are a resistance change type memory (ReRAM: Resistive Random Access Memory) and a ferroelectric memory (FeRAM: Ferroelectric Random Access Memory). You may use these as a non-volatile memory connected to the memory connection part 120. FIG.

なお、メモリ接続部120に不揮発性メモリを取り付ける前に、揮発性メモリであるメモリ122に加え「容量の少ない不揮発性メモリ」を搭載していてもよい。すなわち、図3のステップS17では、「容量の少ない不揮発性メモリ」が保持しているデータおよび取り付けた不揮発性メモリが保持しているデータの両方をパラメータまたはデバイス値として使用して制御を開始してもよい。 In addition, before attaching a non-volatile memory to the memory connection unit 120, a “non-volatile memory with a small capacity” may be mounted in addition to the memory 122 which is a volatile memory . That is, in step S17 of FIG. 3, the control is started using both the data held in the “nonvolatile memory having a small capacity” and the data held in the attached nonvolatile memory as parameter values or device values. May be.

図4は、実施の形態1にかかるCPUユニット12の動作例を示すフローチャートであり、具体的には、CPUユニット12に揮発性メモリおよび不揮発性メモリの双方が搭載されている場合、すなわち図3のステップS15でYesとなった場合、の制御部121の動作例を示している。ここで、制御部121は、揮発性メモリおよび不揮発性メモリの双方が接続されている場合、シーケンス制御を開始する際には不揮発性メモリで保持されているデータを使用し、シーケンス制御を開始後はデータを揮発性メモリに格納する。揮発性メモリに格納されたデータは制御部121が制御対象機器を制御するごとに更新される。図4に示した動作は、シーケンス制御を開始する際に使用する不揮発性メモリ内のデータを最新の状態に更新し、シーケンス制御の開始時に最新のデータを使用できるようにすることを目的として実行する動作である。   FIG. 4 is a flowchart showing an operation example of the CPU unit 12 according to the first embodiment. Specifically, when both the volatile memory and the nonvolatile memory are mounted on the CPU unit 12, that is, FIG. The example of operation | movement of the control part 121 when it becomes Yes by step S15 of is shown. Here, when both the volatile memory and the non-volatile memory are connected, the control unit 121 uses the data held in the non-volatile memory when starting the sequence control, and after starting the sequence control. Stores data in volatile memory. The data stored in the volatile memory is updated each time the control unit 121 controls the control target device. The operation shown in FIG. 4 is executed for the purpose of updating the data in the non-volatile memory used at the start of sequence control to the latest state and using the latest data at the start of sequence control. It is an operation to do.

CPUユニット12の制御部121は、図3に示した動作を実行して揮発性メモリおよび不揮発性メモリの双方が接続されていると判断して制御動作すなわちシーケンス制御を開始した後、不揮発性メモリが保持しているデータの更新タイミングか否かを確認する(ステップS21)。制御部121は、データの更新タイミングか否かを、シーケンスプログラムを解析することにより判断する。すなわち、制御部121は、実行しているシーケンスプログラム中に不揮発性メモリ内のデータの更新を指示する指令が記述されているか否かを確認し、データの更新指令を検出した場合はデータの更新タイミングと判断する。制御部121は、不揮発性メモリ内のデータの更新タイミングと判断した場合(ステップS21:Yes)、不揮発性メモリ内のデータを更新する(ステップS24)。具体的には、制御部121は、揮発性メモリが保持しているデータを読み出し、読み出したデータを不揮発性メモリに書き込む。これ以降の不揮発性メモリ内のデータの更新でも同様に、制御部121は、揮発性メモリが保持しているデータを読み出し、読み出したデータを不揮発性メモリに書き込む。ステップS24の処理を実行した後はステップS21に戻って処理を継続する。また、不揮発性メモリ内のデータの更新が、シーケンス制御の開始前、或いは終了後に行うよう指示されている場合にも、指示に従ってデータを更新する。   The control unit 121 of the CPU unit 12 executes the operation shown in FIG. 3 to determine that both the volatile memory and the nonvolatile memory are connected, and starts the control operation, that is, the sequence control. It is confirmed whether or not it is the update timing of the data held in (step S21). The control unit 121 determines whether or not it is a data update timing by analyzing the sequence program. That is, the control unit 121 checks whether or not a command for instructing the update of data in the nonvolatile memory is described in the sequence program being executed, and updates the data if a data update command is detected. Judgment is timing. When it is determined that the update timing of the data in the nonvolatile memory is reached (step S21: Yes), the control unit 121 updates the data in the nonvolatile memory (step S24). Specifically, the control unit 121 reads data held in the volatile memory and writes the read data to the nonvolatile memory. Similarly, in the subsequent update of data in the nonvolatile memory, the control unit 121 reads the data held in the volatile memory and writes the read data to the nonvolatile memory. After performing the process of step S24, it returns to step S21 and continues the process. In addition, when an instruction is given to update the data in the nonvolatile memory before or after the start of sequence control, the data is updated according to the instruction.

制御部121は、不揮発性メモリ内のデータの更新タイミングではないと判断した場合(ステップS21:No)、制御動作の停止操作が行われたか否か、すなわち、作業者がスイッチ等を使用してシーケンス制御を停止させる操作を行ったか否かを確認する(ステップS22)。制御部121は、入力ユニット13から受け取った入力信号を解析することにより該当する操作が行われたか否かを確認する。制御動作の停止操作が行われた場合(ステップS22:Yes)、制御部121は、不揮発性メモリ内のデータを更新し(ステップS25)、制御動作を停止する(ステップS26)。なお、生産設備に取り付けられたセンサ等が危険を検知して緊急停止する場合も、制御部121はステップS25およびS26処理を実行する。すなわち、制御部121は、不揮発性メモリ内のデータの更新および制御動作の緊急停止を実施する。   When the control unit 121 determines that it is not the update timing of the data in the nonvolatile memory (step S21: No), whether or not the control operation has been stopped, that is, the operator uses a switch or the like. It is confirmed whether or not an operation for stopping the sequence control has been performed (step S22). The control unit 121 confirms whether or not the corresponding operation has been performed by analyzing the input signal received from the input unit 13. When the control operation stop operation is performed (step S22: Yes), the control unit 121 updates the data in the nonvolatile memory (step S25) and stops the control operation (step S26). In addition, also when the sensor etc. which were attached to production equipment detect danger, and stop suddenly, the control part 121 performs step S25 and S26 process. That is, the control unit 121 updates data in the nonvolatile memory and performs an emergency stop of the control operation.

制御部121は、ステップS26を実行して制御動作を停止した後、制御動作の開始操作が行われたか否か、すなわち、作業者がスイッチ等を使用してシーケンス制御を開始させる操作を行ったか否かを確認する(ステップS27)。制御動作の開始操作が行われた場合(ステップS27:Yes)、制御部121は、シーケンス制御を開始するとともに、ステップS21に戻って処理を継続する。このとき、制御部121は、図3に示した動作を実行してメモリの接続状態を確認してからシーケンス制御を開始するようにしてもよい。制御動作の開始操作が行われていない場合(ステップS27:No)、制御部121は、電源遮断操作が行われたか否か、すなわち、作業者がスイッチ等を使用して電源ユニット11から他のユニットへの電源供給を停止させる操作を行ったか否かを確認する(ステップS28)。電源遮断操作が行われていない場合(ステップS28:No)、制御部121は、ステップS27に戻って処理を継続する。電源遮断操作が行われた場合(ステップS28:Yes)、制御部121は、電源を遮断して処理を終了する(ステップS30)。   After executing the step S26 and stopping the control operation, the control unit 121 determines whether or not a control operation start operation has been performed, that is, whether the operator has performed an operation to start sequence control using a switch or the like. It is confirmed whether or not (step S27). When the start operation of the control operation is performed (step S27: Yes), the control unit 121 starts the sequence control and returns to step S21 to continue the process. At this time, the control unit 121 may start the sequence control after confirming the connection state of the memory by executing the operation shown in FIG. When the control operation start operation has not been performed (step S27: No), the control unit 121 determines whether or not the power shut-off operation has been performed, that is, the operator uses a switch or the like from the power supply unit 11 to perform another operation. It is confirmed whether or not an operation for stopping power supply to the unit has been performed (step S28). When the power shutdown operation is not performed (step S28: No), the control unit 121 returns to step S27 and continues the process. When the power shutdown operation is performed (step S28: Yes), the control unit 121 shuts off the power and ends the process (step S30).

また、制御動作の停止操作が行われていない場合(ステップS22:No)、制御部121は、電源遮断操作が行われたか否かを確認する(ステップS23)。電源遮断操作が行われていない場合(ステップS23:No)、制御部121は、ステップS21に戻って処理を継続する。電源遮断操作が行われた場合(ステップS23:Yes)、制御部121は、不揮発性メモリ内のデータを更新し(ステップS29)、電源を遮断して処理を終了する(ステップS30)。   Further, when the control operation stop operation is not performed (step S22: No), the control unit 121 confirms whether or not the power shut-off operation is performed (step S23). When the power shutdown operation is not performed (step S23: No), the control unit 121 returns to step S21 and continues the process. When the power shutdown operation is performed (step S23: Yes), the control unit 121 updates the data in the nonvolatile memory (step S29), shuts off the power, and ends the process (step S30).

図4に示したように、制御部121は、シーケンス制御を行っている状態では、不揮発性メモリ内のデータの更新タイミングとなった場合、制御動作の停止を指示する操作が行われた場合、および電源を遮断する操作が行われた場合、不揮発性メモリ内のデータを更新する。これにより、揮発性メモリおよび不揮発性メモリの双方が最新のデータを保持した状態とすることができ、制御部121は、不揮発性メモリで保持されている最新のデータを使用して制御動作を開始することができる。したがって、揮発性メモリが保持しているデータをバックアップするためのバッテリが不要となる。   As shown in FIG. 4, in the state in which the sequence control is performed, the control unit 121, when it is time to update data in the nonvolatile memory, when an operation to instruct the stop of the control operation is performed, When an operation for shutting off the power is performed, the data in the nonvolatile memory is updated. As a result, both the volatile memory and the nonvolatile memory can hold the latest data, and the control unit 121 starts the control operation using the latest data held in the nonvolatile memory. can do. Therefore, a battery for backing up data held in the volatile memory becomes unnecessary.

以上のように、本実施の形態にかかるCPUユニット12の制御部121は、不揮発性メモリが接続されているか否かを判断する接続判定部124を備え、不揮発性メモリが接続されている場合には不揮発性メモリが保持しているデータを使用して制御動作を行うこととした。また、制御部121は、不揮発性メモリおよび揮発性メモリの双方が接続されている場合、制御動作の開始時には不揮発性メモリが保持しているデータを使用し、制御動作を開始した後は、揮発性メモリが保持しているデータと不揮発性メモリが保持しているデータが同じとなるように、不揮発性メモリ内のデータを更新する。さらに、制御部121は、制御動作の停止時および電源遮断時にも不揮発性メモリ内のデータを更新する。これにより、制御部121は、不揮発性メモリに格納されている最新のデータを使用したシーケンス制御が可能となり、揮発性メモリを備えていたとしてもデータバックアップ用のバッテリを搭載する必要が無くなる。そのため、データバックアップ用のバッテリを削減した構成のPLCを実現することが可能となる。   As described above, the control unit 121 of the CPU unit 12 according to this embodiment includes the connection determination unit 124 that determines whether or not the nonvolatile memory is connected, and when the nonvolatile memory is connected. Decided to use the data held in the non-volatile memory to perform the control operation. In addition, when both the nonvolatile memory and the volatile memory are connected, the control unit 121 uses the data held in the nonvolatile memory at the start of the control operation, and after starting the control operation, The data in the nonvolatile memory is updated so that the data held in the nonvolatile memory is the same as the data held in the nonvolatile memory. Furthermore, the control unit 121 updates the data in the nonvolatile memory even when the control operation is stopped and the power is shut off. As a result, the control unit 121 can perform sequence control using the latest data stored in the non-volatile memory, and even if a volatile memory is provided, it is not necessary to mount a data backup battery. Therefore, it is possible to realize a PLC having a configuration in which the battery for data backup is reduced.

また、本実施の形態にかかるCPUユニット12によれば、メモリのコスト変動に合わせて使用するメモリの種別を変更することができる。例えば、ある時点では高速なメモリアクセスが実現された不揮発性メモリを使用する構成とした場合のコストが、揮発性メモリを使用しかつデータバックアップ用のバッテリを使用する構成とした場合のコストよりも大きい場合でも、時間の経過とともに両者のコストが逆転することが考えられる。このような場合に、まず、揮発性メモリとバッテリを組み合わせてCPUユニット12を実現し、その後、不揮発性メモリの低価格化が進んだ時点で、揮発性メモリとバッテリを不揮発性メモリに置き換えることが可能である。メモリ接続部120に不揮発性メモリを接続するだけでよく、制御部121として動作するためのプログラムを修正する必要はない。したがって、初期状態ではバッテリレス構成のCPUユニットを導入していないユーザでも、CPUユニットの実現に必要なスペックの不揮発性メモリ低価格化が進んだ時点で不揮発性メモリの使用に切り替え、バッテリレス構成のCPUユニットを低コストで実現できる。別の表現を用いれば、PLCを導入する時点では高価なためバッテリレス構成のCPUユニットの導入を見送っているユーザが、将来的にコストが下がってきたときに、低コストでバッテリレス構成のCPUユニットに変更することが可能となる。   Further, according to the CPU unit 12 according to the present embodiment, the type of memory to be used can be changed in accordance with memory cost fluctuations. For example, the cost of using a non-volatile memory with high-speed memory access at a certain point in time is higher than the cost of using a volatile memory and a data backup battery. Even if it is large, it is conceivable that the costs of both are reversed over time. In such a case, first, the CPU unit 12 is realized by combining the volatile memory and the battery, and then the volatile memory and the battery are replaced with the nonvolatile memory when the price of the nonvolatile memory is reduced. Is possible. It is only necessary to connect a non-volatile memory to the memory connection unit 120, and it is not necessary to modify a program for operating as the control unit 121. Therefore, even users who have not introduced a CPU unit with a battery-less configuration in the initial state will switch to using a non-volatile memory when the price of the nonvolatile memory with the specifications necessary for realizing the CPU unit has been reduced. CPU unit can be realized at low cost. In other words, when a user who has forgotten to introduce a CPU unit with a batteryless configuration because it is expensive at the time of introducing a PLC, when the cost is lowered in the future, a CPU with a batteryless configuration at a low cost It becomes possible to change to a unit.

なお、本実施の形態では、CPUユニット12がメモリ接続部120および接続判定部124を備えている構成のPLC1について説明を行ったが、メモリ接続部120および接続判定部124の一方、または両方をCPUユニット12の外部に備えるようにしてもよい。「CPUユニットの外部」としては、PLC1を構成している、CPUユニット12以外のユニットおよびベースユニット10が該当する。   In the present embodiment, the PLC 1 having the configuration in which the CPU unit 12 includes the memory connection unit 120 and the connection determination unit 124 has been described. It may be provided outside the CPU unit 12. The “outside of the CPU unit” corresponds to a unit other than the CPU unit 12 and the base unit 10 constituting the PLC 1.

実施の形態2.
実施の形態1では、CPUユニット12の制御部121が接続判定部124を予め有している構成について説明したが、CPUユニット12をこの構成に限定するものではない。メモリ接続部120に不揮発性メモリを接続する前の状態では制御部121が接続判定部124を有していなくてもよい。
Embodiment 2. FIG.
In the first embodiment, the configuration in which the control unit 121 of the CPU unit 12 has the connection determination unit 124 in advance has been described, but the CPU unit 12 is not limited to this configuration. In a state before the nonvolatile memory is connected to the memory connection unit 120, the control unit 121 may not have the connection determination unit 124.

実施の形態1で説明したように、制御部121は、プロセッサがPLCのシーケンスプログラムを実行することにより実現される。そのため、初期状態では、接続判定部124として動作するためのプログラムを含まない構成のシーケンスプログラムをプロセッサが実行するようにして、メモリ接続部120に不揮発性メモリを接続する必要性が生じた場合にシーケンスプログラムを更新するようにしてもよい。すなわち、メモリ接続部120に不揮発性メモリを接続してCPUユニット12のバッテリレス化を実現する際に、CPUユニット12の図示を省略したプロセッサが実行するシーケンスプログラムを接続判定部124として動作するためのプログラムを含んだ構成のシーケンスプログラムに書き換えるようにしてもよい。   As described in the first embodiment, the control unit 121 is realized by a processor executing a PLC sequence program. Therefore, in the initial state, when it becomes necessary to connect the non-volatile memory to the memory connection unit 120 by causing the processor to execute a sequence program that does not include a program for operating as the connection determination unit 124. The sequence program may be updated. That is, when a non-volatile memory is connected to the memory connection unit 120 to realize the battery-less CPU unit 12, a sequence program executed by a processor (not shown) of the CPU unit 12 operates as the connection determination unit 124. The program may be rewritten to a sequence program including the above program.

このように、制御部121を実現するためのシーケンスプログラムを必要なタイミング、すなわち、メモリ接続部120に不揮発性メモリを接続してバッテリレス化を実現するタイミングで書き換え、接続判定部124を有する制御部121を実現するようにしてもよい。   In this way, the sequence program for realizing the control unit 121 is rewritten at a necessary timing, that is, at a timing for realizing a battery-less connection by connecting a non-volatile memory to the memory connection unit 120, and a control having the connection determination unit 124 The unit 121 may be realized.

実施の形態3.
図5は、実施の形態3にかかるCPUユニットの構成例を示す図である。実施の形態1,2で説明したCPUユニット12は、メモリ接続部120を有し、CPUユニット12に不揮発性メモリを搭載することによりバッテリレス化を実現する構成とした。これに対して、本実施の形態にかかるCPUユニット12aは、不揮発性メモリが搭載されたメモリモジュールを接続可能な構成としている。図5に示したように、CPUユニット12aは、制御部121、メモリ122、バッテリ接続部123およびメモリモジュール接続部125を備える。制御部121、メモリ122およびバッテリ接続部123は、上述した実施の形態1にかかるCPUユニット12の制御部121、メモリ122およびバッテリ接続部123と同じものである。すなわち、CPUユニット12aは、実施の形態1にかかるCPUユニット12のメモリ接続部120をメモリモジュール接続部125に置き換えたものである。メモリモジュール接続部125には、メモリモジュール20が接続される。
Embodiment 3 FIG.
FIG. 5 is a diagram illustrating a configuration example of a CPU unit according to the third embodiment. The CPU unit 12 described in the first and second embodiments has a memory connection unit 120 and is configured to be battery-less by mounting a nonvolatile memory in the CPU unit 12. On the other hand, the CPU unit 12a according to the present embodiment has a configuration in which a memory module in which a nonvolatile memory is mounted can be connected. As shown in FIG. 5, the CPU unit 12 a includes a control unit 121, a memory 122, a battery connection unit 123, and a memory module connection unit 125. The control unit 121, the memory 122, and the battery connection unit 123 are the same as the control unit 121, the memory 122, and the battery connection unit 123 of the CPU unit 12 according to the first embodiment. That is, the CPU unit 12a is obtained by replacing the memory connection unit 120 of the CPU unit 12 according to the first embodiment with the memory module connection unit 125. The memory module 20 is connected to the memory module connection unit 125.

メモリモジュール20は、CPUユニット12aを接続するためのCPUユニット接続部126と、不揮発性メモリであるメモリ127とを備える。CPUユニット12aのメモリモジュール接続部125およびメモリモジュール20のCPUユニット接続部126は、CPUユニット12aに搭載されている制御部121とメモリモジュール20に搭載されているメモリ127とを電気的に接続するためのコネクタである。   The memory module 20 includes a CPU unit connection unit 126 for connecting the CPU unit 12a and a memory 127 that is a nonvolatile memory. The memory module connection unit 125 of the CPU unit 12 a and the CPU unit connection unit 126 of the memory module 20 electrically connect the control unit 121 mounted on the CPU unit 12 a and the memory 127 mounted on the memory module 20. It is a connector for.

本実施の形態にかかるCPUユニット12aは、メモリモジュール20を接続することによりバッテリレス化を実現できる。また。CPUユニット12aのバッテリレス化を実現するための不揮発性メモリであるメモリ127の取り付けが容易となり作業性が向上する。   The CPU unit 12a according to the present embodiment can realize battery-less operation by connecting the memory module 20. Also. The memory 127, which is a non-volatile memory for realizing the battery-less CPU unit 12a, can be easily attached and the workability is improved.

実施の形態4.
実施の形態3では、CPUユニット12aの制御部121が接続判定部124を予め有している構成について説明したが、CPUユニット12aをこの構成に限定するものではない。メモリモジュール接続部125にメモリモジュール20を接続する前の状態では制御部121が接続判定部124を有していなくてもよい。
Embodiment 4 FIG.
In the third embodiment, the configuration in which the control unit 121 of the CPU unit 12a has the connection determination unit 124 in advance has been described. However, the CPU unit 12a is not limited to this configuration. In a state before the memory module 20 is connected to the memory module connection unit 125, the control unit 121 may not have the connection determination unit 124.

すなわち、上述した実施の形態2と同様に、初期状態では、接続判定部124として動作するためのプログラムを含まない構成のシーケンスプログラムをプロセッサが実行するようにして、メモリモジュール接続部125にメモリモジュール20を接続する必要性が生じた場合にシーケンスプログラムを更新するようにしてもよい。この場合、メモリモジュール接続部125にメモリモジュール20を接続してCPUユニット12aのバッテリレス化を実現する際に、CPUユニット12aの図示を省略したプロセッサが実行するシーケンスプログラムを接続判定部124として動作するためのプログラムを含んだ構成のシーケンスプログラムに書き換えればよい。   That is, as in the second embodiment described above, in the initial state, the processor executes a sequence program having a configuration that does not include a program for operating as the connection determination unit 124, and the memory module connection unit 125 includes the memory module. The sequence program may be updated when it becomes necessary to connect 20. In this case, when the memory module 20 is connected to the memory module connection unit 125 to realize battery-less CPU unit 12a, a sequence program executed by a processor (not shown) of the CPU unit 12a operates as the connection determination unit 124. May be rewritten to a sequence program having a configuration including a program for performing the above.

このように、制御部121を実現するためのシーケンスプログラムを必要なタイミング、すなわち、メモリモジュール接続部12メモリモジュール20を接続してバッテリレス化を実現するタイミングで書き換え、接続判定部124を有する制御部121を実現するようにしてもよい。 Thus, required timing sequence program for implementing the control unit 121, i.e., rewriting the timing to achieve a battery-less and connect the memory module 20 to the memory module connection part 12 5, the connection determination section 124 You may make it implement | achieve the control part 121 which has.

実施の形態1から4では、CPUユニット12,12aの制御部121が、接続されているメモリの種類を判別することとしたが、制御部121に接続されているメモリの種類を判別する構成要素を別途設けるようにしてもよい。制御部121に接続されているメモリの種類を判別する構成要素はCPUユニット12,12a以外のユニットに設けられていてもよい。   In the first to fourth embodiments, the control unit 121 of the CPU units 12 and 12a determines the type of memory connected to the CPU unit 12 or 12a. However, the constituent elements determine the type of memory connected to the control unit 121. May be provided separately. A component for determining the type of memory connected to the control unit 121 may be provided in a unit other than the CPU units 12 and 12a.

以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。   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 プログラマブルロジックコントローラ(PLC)、10 ベースユニット、11 電源ユニット、12,12a CPUユニット、13 入力ユニット、14 出力ユニット、15 ネットワークユニット、20 メモリモジュール、120 メモリ接続部、121 制御部、122,127 メモリ、123 バッテリ接続部、124 接続判定部、125 メモリモジュール接続部、126 CPUユニット接続部。   DESCRIPTION OF SYMBOLS 1 Programmable logic controller (PLC), 10 Base unit, 11 Power supply unit, 12, 12a CPU unit, 13 Input unit, 14 Output unit, 15 Network unit, 20 Memory module, 120 Memory connection part, 121 Control part, 122, 127 Memory, 123 Battery connection unit, 124 Connection determination unit, 125 Memory module connection unit, 126 CPU unit connection unit

Claims (7)

揮発性の記憶装置が保持しているデータのバックアップ用のバッテリを接続するためのバッテリ接続部と、
前記揮発性の記憶装置もしくは不揮発性の記憶装置のうちいずれか一方、または、前記揮発性の記憶装置および前記不揮発性の記憶装置の両方が接続されているかを判別する接続判定部と、
前記不揮発性の記憶装置と前記揮発性の記憶装置のうち接続された記憶装置に応じて、制御対象機器を制御するためのデバイス値またはパラメータ値を読み出す記憶装置を変更し、変更後の記憶装置で記憶されている前記デバイス値または前記パラメータ値を使用して前記制御対象機器を制御する制御部と、
を備えることを特徴とするプログラマブルロジックコントローラ。
A battery connection for connecting a backup battery for data held in the volatile storage device;
Said either one of the volatile storage or non-volatile storage device, or connecting determining unit both the volatile memory and the nonvolatile storage device to determine whether it is connected,
A storage device that reads a device value or a parameter value for controlling a device to be controlled is changed according to a connected storage device among the nonvolatile storage device and the volatile storage device, and the changed storage device A control unit for controlling the device to be controlled using the device value or the parameter value stored in
A programmable logic controller comprising:
前記揮発性の記憶装置および前記不揮発性の記憶装置の両方が接続されている場合、前記制御部は、前記制御対象機器の制御を開始する前に前記揮発性の記憶装置が保持しているデータをクリア処理する、
ことを特徴とする請求項1に記載のプログラマブルロジックコントローラ。
When both the volatile storage device and the nonvolatile storage device are connected, the control unit stores data held by the volatile storage device before starting control of the control target device. Clear process,
The programmable logic controller according to claim 1.
前記クリア処理を実行後、さらに、前記不揮発性の記憶装置が保持しているデータを前記揮発性の記憶装置に書き込み、前記揮発性の記憶装置が保持している前記データを更新しながら前記制御対象機器の制御を行う、
ことを特徴とする請求項2に記載のプログラマブルロジックコントローラ。
After executing the clear process, the control further writes the data held in the nonvolatile storage device to the volatile storage device and updates the data held in the volatile storage device. Control the target device,
The programmable logic controller according to claim 2.
前記制御を実行している場合、予め決められたタイミングになると前記揮発性の記憶装置が保持している前記データを前記不揮発性の記憶装置に書き込む処理、または、前記制御の停止を指示する操作が行われると前記揮発性の記憶装置が保持している前記データを前記不揮発性の記憶装置に書き込む処理、または、電源を遮断する操作が行われると前記揮発性の記憶装置が保持している前記データを前記不揮発性の記憶装置に書き込む処理の少なくともいずれか一つを行う、
ことを特徴とする請求項3に記載のプログラマブルロジックコントローラ。
When executing the control, a process of writing the data held in the volatile storage device to the nonvolatile storage device at a predetermined timing, or an operation for instructing to stop the control Is performed, the volatile storage device retains the data stored in the volatile storage device when the process of writing the data to the nonvolatile storage device or the operation of shutting off the power is performed. Performing at least one of the processes of writing the data into the nonvolatile storage device;
The programmable logic controller according to claim 3.
前記不揮発性の記憶装置を含んで構成されたメモリモジュールを着脱可能なメモリモジュール接続部、
を備えることを特徴とする請求項1から4のいずれか一つに記載のプログラマブルロジックコントローラ。
A memory module connection section to which a memory module configured to include the nonvolatile storage device can be attached and detached;
The programmable logic controller according to any one of claims 1 to 4, further comprising:
前記不揮発性の記憶装置を磁気抵抗メモリ、抵抗変化型メモリまたは強誘電体メモリとする、
ことを特徴とする請求項1から5のいずれか一つに記載のプログラマブルロジックコントローラ。
The nonvolatile memory device is a magnetoresistive memory, a resistance change memory, or a ferroelectric memory.
The programmable logic controller according to any one of claims 1 to 5, wherein:
プログラマブルロジックコントローラを構成かつ揮発性の記憶装置が保持しているデータのバックアップ用のバッテリを接続するためのバッテリ接続部を有し、制御対象機器の制御を行うユニットで実行されるプログラムであって、
前記揮発性の記憶装置もしくは不揮発性の記憶装置のうちいずれか一方、または、前記揮発性の記憶装置および前記不揮発性の記憶装置の両方が接続されているかを判別する処理と、前記不揮発性の記憶装置と前記揮発性の記憶装置のうち接続された記憶装置に応じて、制御対象機器を制御するためのデバイス値またはパラメータ値を読み出す記憶装置を変更する処理と、変更後の記憶装置で記憶されている前記デバイス値または前記パラメータ値を使用して前記制御対象機器を制御する処理と、を情報処理装置に実行させる、
ことを特徴とするプログラム。
A program executed by a unit that configures a programmable logic controller and has a battery connection unit for connecting a backup battery for data stored in a volatile storage device , and that controls a device to be controlled There,
One of the volatile storage device and the nonvolatile storage device, or a process for determining whether both the volatile storage device and the nonvolatile storage device are connected, and the nonvolatile storage device Processing for changing a storage device for reading a device value or parameter value for controlling a control target device according to a connected storage device among the storage device and the volatile storage device, and storing in the storage device after the change A process for controlling the device to be controlled using the device value or the parameter value being executed, and causing the information processing apparatus to execute the process .
A program characterized by that.
JP2017561993A 2017-03-21 2017-03-21 Programmable logic controller and program Active JP6351882B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2017/011133 WO2018173105A1 (en) 2017-03-21 2017-03-21 Programmable logic controller, memory module, and program

Publications (2)

Publication Number Publication Date
JP6351882B1 true JP6351882B1 (en) 2018-07-04
JPWO2018173105A1 JPWO2018173105A1 (en) 2019-04-04

Family

ID=62779787

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017561993A Active JP6351882B1 (en) 2017-03-21 2017-03-21 Programmable logic controller and program

Country Status (3)

Country Link
JP (1) JP6351882B1 (en)
CN (1) CN109313425B (en)
WO (1) WO2018173105A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114026544B (en) * 2019-07-01 2023-03-24 三菱电机株式会社 Data processing device, data processing system, data unloading method and recording medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0535366A (en) * 1991-02-08 1993-02-12 Oki Electric Ind Co Ltd Information processor
JPH08124668A (en) * 1994-10-26 1996-05-17 Sanyo Electric Co Ltd Heating device, and method for setting heating procedure
JPH08185208A (en) * 1994-12-28 1996-07-16 Toshiba Syst Technol Kk Plant 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
JP2015005062A (en) * 2013-06-19 2015-01-08 三菱電機株式会社 Manufacturing execution system and programmable logic controller

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699413B (en) * 2013-12-09 2019-02-22 群联电子股份有限公司 Data managing method, memory storage apparatus and memorizer control circuit unit
KR102174818B1 (en) * 2014-04-07 2020-11-06 에스케이하이닉스 주식회사 Volatile memory, memory module including the same and operation method of the memory module
CN104077246A (en) * 2014-07-02 2014-10-01 浪潮(北京)电子信息产业有限公司 Device for realizing volatile memory backup

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0535366A (en) * 1991-02-08 1993-02-12 Oki Electric Ind Co Ltd Information processor
JPH08124668A (en) * 1994-10-26 1996-05-17 Sanyo Electric Co Ltd Heating device, and method for setting heating procedure
JPH08185208A (en) * 1994-12-28 1996-07-16 Toshiba Syst Technol Kk Plant 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
JP2015005062A (en) * 2013-06-19 2015-01-08 三菱電機株式会社 Manufacturing execution system and programmable logic controller

Also Published As

Publication number Publication date
JPWO2018173105A1 (en) 2019-04-04
CN109313425B (en) 2020-11-03
CN109313425A (en) 2019-02-05
WO2018173105A1 (en) 2018-09-27

Similar Documents

Publication Publication Date Title
JP6227794B2 (en) Vehicle control device, reprogramming system
JP4925301B2 (en) Semiconductor memory system
JP2006178403A (en) Display unit
JP5581577B2 (en) Data processing device
JP6351882B1 (en) Programmable logic controller and program
JP4097649B2 (en) Numerical controller
US10146200B2 (en) Apparatus and method for updating operating system in programmable logic controller
JP5880862B2 (en) Control system
JP2010015316A (en) Numerical control apparatus
JP6001962B2 (en) Inverter device
JP6575157B2 (en) Firmware download method and firmware embedded device
JP4826557B2 (en) Duplex PLC
JP2007279826A (en) Configuration data updating device and method therefor
JP2014089497A (en) Information processing device
JP5996228B2 (en) Robot controller
JP6091334B2 (en) Plant control system and manufacturing method of plant control device
JP2019160080A (en) Controller and abnormality detection method
JP5413809B2 (en) Data processing apparatus and data processing method
JP4442762B2 (en) NC machine tool controller
JP2002268955A (en) Method and device of memory backup
JP2009238071A (en) Built-in system
JP4877942B2 (en) Sequencer system, sequencer and peripheral device
JP4592280B2 (en) Data storage
JP5305076B2 (en) Microcomputer
JP2022184308A (en) Robot control device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171128

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171128

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20171128

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20180124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180130

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180319

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180605

R150 Certificate of patent or registration of utility model

Ref document number: 6351882

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