JP6401071B2 - Programmable controller - Google Patents

Programmable controller Download PDF

Info

Publication number
JP6401071B2
JP6401071B2 JP2015020959A JP2015020959A JP6401071B2 JP 6401071 B2 JP6401071 B2 JP 6401071B2 JP 2015020959 A JP2015020959 A JP 2015020959A JP 2015020959 A JP2015020959 A JP 2015020959A JP 6401071 B2 JP6401071 B2 JP 6401071B2
Authority
JP
Japan
Prior art keywords
internal register
ladder
ram
speed
programmable controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2015020959A
Other languages
Japanese (ja)
Other versions
JP2016143367A (en
JP2016143367A5 (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.)
Hitachi Industrial Equipment Systems Co Ltd
Original Assignee
Hitachi Industrial Equipment Systems 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 Hitachi Industrial Equipment Systems Co Ltd filed Critical Hitachi Industrial Equipment Systems Co Ltd
Priority to JP2015020959A priority Critical patent/JP6401071B2/en
Publication of JP2016143367A publication Critical patent/JP2016143367A/en
Publication of JP2016143367A5 publication Critical patent/JP2016143367A5/ja
Application granted granted Critical
Publication of JP6401071B2 publication Critical patent/JP6401071B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Programmable Controllers (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Description

本発明は、プログラマブルコントローラにおけるデータメモリアクセス方法に関する。   The present invention relates to a data memory access method in a programmable controller.

プログラマブルコントローラは、外部入出力データを扱うためのレジスタとラダー演算に使用するレジスタを有する。以後、このラダー演算用のレジスタを、単に「内部レジスタ」と称する。
通常、内部レジスタは、高速または中速でアクセス可能なStatic Random Access Memory(スタティックRAM、以後では、「S−RAM」と略称する)に配置する。マイコンは、この内部レジスタをアクセスしてラダー演算を行う。これにより、ラダー演算の処理速度の高速化を図っている。
The programmable controller has a register for handling external input / output data and a register used for ladder calculation. Hereinafter, this ladder calculation register is simply referred to as an “internal register”.
Usually, the internal register is arranged in a static random access memory (static RAM, hereinafter abbreviated as “S-RAM”) that can be accessed at high speed or medium speed. The microcomputer accesses this internal register to perform ladder calculation. As a result, the processing speed of the ladder calculation is increased.

しかし、高速でアクセス可能なS−RAMは、揮発性のメモリであるため、プログラマブルコントローラの電源がオフとなると、内部レジスタのデータ値は不定値となる。通常の動作では、次回電源をオンした後に、内部レジスタの値を0値に初期化して、ラダー演算を開始する。   However, since the S-RAM that can be accessed at high speed is a volatile memory, when the power of the programmable controller is turned off, the data value of the internal register becomes an indefinite value. In normal operation, after the power is turned on next time, the value of the internal register is initialized to 0 value, and the ladder calculation is started.

一方で、ユーザによっては、電源をオンした時に内部レジスタの値を初期化せずに、電源をオフした時の値を保持させたままラダー演算を実行させたい用途がある。その場合には、ハードウェアとしてバッテリバックアップ可能なS−RAMを有する構成とし、内部レジスタをバッテリバックアップ可能なS−RAMに配置させることで、内部レジスタのデータ値の保持を実現させている。   On the other hand, depending on the user, there is an application where it is desired to execute a ladder operation while retaining the value when the power is turned off without initializing the value of the internal register when the power is turned on. In that case, it is configured to have an S-RAM that can be backed up by battery as hardware, and the internal register is arranged in the S-RAM that can be backed up by battery, thereby realizing retention of the data value of the internal register.

また、先行技術文献として、特許文献1(特許第4143952号公報)には、プログラマブルコントローラの実行用メモリに格納されたユーザデータの変更に際してユーザデータを不揮発性のバックアップ用メモリに書き込むことでユーザデータのバックアップを行うメモリバックアップ方法において、バックアップ用メモリの記憶領域は、保存用の領域と書き込み用の領域とを有し、実行用メモリに格納されたユーザデータが変更された場合は、実行用メモリに格納されたユーザデータを上記書き込み用の領域に書き込むとともに当該書き込みをタイムスライスすることによりバックグランドで実行するバックアップ処理を行い、書き込み用の領域に対するユーザデータのバックアップ処理が完了すると、該書き込み用の領域を保存用の領域に切替えるとともに、切替え前に保存用の領域として使用していた領域を書き込み可能状態にして書き込み用の領域に切替える技術が開示されている。   Further, as a prior art document, Patent Document 1 (Japanese Patent No. 4143925) discloses user data by writing user data to a nonvolatile backup memory when changing user data stored in an execution memory of a programmable controller. In the memory backup method for performing backup, the storage area of the backup memory has a storage area and a write area, and when the user data stored in the execution memory is changed, the execution memory When the user data stored in the write area is written into the write area and the write process is time-sliced, a backup process is executed in the background. For saving space With switching on frequency, technology and enables the write state area used as an area for storage before switching switch in the area for writing is disclosed.

特許第4143952号公報Japanese Patent No. 4143952

上記背景技術で示した方式(内部レジスタの格納メモリをバッテリバックアップ可能なS−RAMに配置しているプログラマブルコントローラ)では、S−RAMの電源として電池(バッテリ)からの電源供給が必要となる。そのため、電池(バッテリ)の容量が無くなると内部レジスタのデータ値を保持できず不定値となる恐れがある。それを避けるために、ユーザは定期的に電池(バッテリ)の交換作業を実施しなくてはならない。
また、バッテリバックアップ可能なS−RAMは、一般的に中速または低速なものが多く、ラダー演算を高速に行うにはネックとなってしまう場合がある。
In the method shown in the above background art (programmable controller in which the storage memory of the internal register is arranged in an S-RAM capable of battery backup), power supply from a battery (battery) is required as the power source of the S-RAM. For this reason, when the capacity of the battery (battery) is exhausted, the data value of the internal register cannot be held and may become an indefinite value. In order to avoid this, the user must periodically replace the battery.
Also, many S-RAMs that can be backed up by battery are generally medium or low speed, which may cause a bottleneck to perform ladder calculation at high speed.

そこで、本発明の目的は、高速なラダー演算を可能につつ、電源がオフとなってもラダー演算に用いる内部レジスタのデータ値を保持できるプログラマブルコントローラを提供することである。   SUMMARY OF THE INVENTION An object of the present invention is to provide a programmable controller capable of holding a data value of an internal register used for ladder calculation even when the power is turned off while enabling high-speed ladder calculation.

また、上記特許文献1に開示の技術は、不揮発性のバックアップ用メモリに対してバックアップを取得する対象となるデータが、実行用メモリに格納されたユーザデータ(ダウンロードまたはオンラインエディットにより変更されるデータであることから、ユーザプログラムに対応するデータ)であり、ラダー演算時の内部レジスタのデータをバックアップの対象とする技術ではなく、またそれを示唆する記載もない。また、上記バックアップ処理は、タイムスライスすることによりバックグラウンドで実行するようにした手法を用いている。   In addition, the technique disclosed in Patent Document 1 discloses that data to be backed up from a non-volatile backup memory is user data stored in an execution memory (data that is changed by downloading or online editing). Therefore, it is data corresponding to the user program), and is not a technique for backing up the data of the internal register at the time of ladder calculation, and there is no description suggesting it. The backup process uses a technique that is executed in the background by time slicing.

本発明は、プログラマブルコントローラが、ラダー演算を実行する演算処理ユニットと、演算処理ユニットによるラダー演算実行時に用いる第1の内部レジスタを有するスタティックRAMと、第2の内部レジスタを有する不揮発性RAMとを少なくとも備え、演算処理ユニットが、ラダー演算を実行しラダー演算のスキャンエンド時に第1の内部レジスタのデータ値を第2の内部レジスタにコピーすることを特徴とする。
本発明は、
The present invention provides an arithmetic processing unit in which a programmable controller executes a ladder operation, a static RAM having a first internal register used when executing a ladder operation by the arithmetic processing unit, and a nonvolatile RAM having a second internal register. At least, the arithmetic processing unit executes a ladder operation and copies the data value of the first internal register to the second internal register at a scan end of the ladder operation.
The present invention

本発明により、高速なラダー演算速度を維持しつつ、電池を必要とするなくラダー演算に使用する内部レジスタのデータ値を保持することが可能なプログラマブルコントローラを提供する。   According to the present invention, there is provided a programmable controller capable of maintaining a data value of an internal register used for ladder calculation without requiring a battery while maintaining a high ladder calculation speed.

図1は、プログラマブルコントローラのCPU(マイコン)周りのハードウェア構成図である。FIG. 1 is a hardware configuration diagram around a CPU (microcomputer) of a programmable controller. 図2は、実施例1に係る、メモリ上の内部レジスタの配置およびアスセスルートを示す図である。FIG. 2 is a diagram illustrating an arrangement of internal registers on the memory and an access route according to the first embodiment. 図3は、ラダープログラムにつきラダー図表記および命令語表記の一例を示す図である。FIG. 3 is a diagram showing an example of a ladder diagram notation and an instruction word notation for a ladder program. 図4は、実施例2に係る、内部レジスタにおけるデータ保持領域の設定画面を示す図である。FIG. 4 is a diagram illustrating a data holding area setting screen in the internal register according to the second embodiment. 図5は、実施例3に係る、ラダー演算時のアクセスを不揮発性RAMのみで実行する場合のアスセスルートを示す図である。FIG. 5 is a diagram illustrating an access route when the access at the time of ladder calculation is executed only by the nonvolatile RAM according to the third embodiment.

以下、本発明の実施形態として、実施例1〜実施例3について図面を用いて順に説明する。
図1は、本発明の各実施例に係るプログラマブルコントローラの演算処理ユニット(CPUユニット)周りのハードウェア構成図である。なお図1では、演算処理ユニット(CPUユニット)を、フラッシュおよびS−RAMの各メモリを内蔵したマイクロコンピュータ(マイコン)としている。
Hereinafter, as embodiments of the present invention, Examples 1 to 3 will be described in order with reference to the drawings.
FIG. 1 is a hardware configuration diagram around an arithmetic processing unit (CPU unit) of a programmable controller according to each embodiment of the present invention. In FIG. 1, the arithmetic processing unit (CPU unit) is a microcomputer having a built-in flash and S-RAM memory.

本発明の各実施例に係るプログラマブルコントローラは、ハードウェア構成として、ラダー演算を実装するマイコン10、システムプログラムおよびラダープログラムを格納する大容量の不揮発性メモリ11(なお、図1では代表的なフラッシュメモリで示す)、マイコンによる演算処理実行時に用いるシステムワークエリアと内部レジスタ14を配置する高速S−RAM12およびミラーリングされた内部レジスタ15を配置する中速不揮発性RAM13を備える。なお、マイコンの演算処理を行わせるために高速DRAMを併用する場合もある。   The programmable controller according to each embodiment of the present invention includes, as a hardware configuration, a microcomputer 10 that implements a ladder operation, a large-capacity nonvolatile memory 11 that stores a system program and a ladder program (a typical flash memory in FIG. 1). A high-speed S-RAM 12 for disposing a system work area and an internal register 14 used for execution of arithmetic processing by a microcomputer, and a medium-speed nonvolatile RAM 13 for disposing a mirrored internal register 15. In some cases, a high-speed DRAM is also used in order to perform arithmetic processing of the microcomputer.

図2は、実施例1に係る、メモリ上の内部レジスタの配置およびアスセスルートを示した図である。実施例1は、全内部レジスタをデータ値の保持を必要とするものとして使用するケースに対応し、以下にその動作機能について説明する。なお、図2では、高速S−RAM12に配置する内部レジスタ14を「ラダー演算用」、中速不揮発性RAM13に配置する内部レジスタ15を「データ値保持用」として記している。   FIG. 2 is a diagram illustrating an arrangement of internal registers on the memory and an access route according to the first embodiment. The first embodiment corresponds to a case where all the internal registers are used as those requiring data value retention, and the operation function thereof will be described below. In FIG. 2, the internal register 14 arranged in the high-speed S-RAM 12 is described as “for ladder calculation”, and the internal register 15 arranged in the medium-speed nonvolatile RAM 13 is described as “for data value holding”.

プログラマブルコントローラが運転を開始し、マイコン10はラダー演算を実行する。例えば、図3に示すラダープログラムの演算を実行した場合を想定する。その際に、内部レジスタのR0およびR1の値を読み出して参照する必要があるため、マイコン10は、高速S−RAM12に配置した内部レジスタ14のR0およびR1の格納エリアからデータ値を読み出してラダー演算を行う。   The programmable controller starts operation, and the microcomputer 10 executes ladder calculation. For example, assume that the ladder program shown in FIG. 3 is executed. At this time, since it is necessary to read and refer to the values of R0 and R1 of the internal register, the microcomputer 10 reads the data value from the storage area of R0 and R1 of the internal register 14 arranged in the high-speed S-RAM 12, Perform the operation.

ラダー演算の結果から内部レジスタのR100に値を書き込む処理として、マイコン10は、高速S−RAM12に配置した内部レジスタ14のR100の格納エリアに演算結果の書き込みを行う。
ラダー演算時のアクセス処理21は、マイコン10と高速S−RAM12との間で行われ、アクセススピードが速いためラダー演算速度も速くなり、ラダープログラムのスキャン時間が短縮される。
As a process of writing a value to the R100 of the internal register from the result of the ladder calculation, the microcomputer 10 writes the calculation result to the storage area of R100 of the internal register 14 arranged in the high-speed S-RAM 12.
The access processing 21 at the time of ladder calculation is performed between the microcomputer 10 and the high-speed S-RAM 12, and since the access speed is high, the ladder calculation speed is also increased and the scan time of the ladder program is shortened.

上記方法にてラダー演算が実行される。ラダー演算の最後となるスキャンエンド時に、マイコン10は、高速S−RAM12上の内部レジスタ14のデータ値を、中速不揮発性RAM13上のデータ値保持用内部レジスタ15にコピーする転送処理22を実行する。
中速不揮発性RAM13上の内部レジスタ15は、プログラマブルコントローラの電源をオフにしても不揮発性であるためデータ値は保持される。
Ladder calculation is executed by the above method. At the end of the scan, which is the last of the ladder calculation, the microcomputer 10 executes a transfer process 22 for copying the data value of the internal register 14 on the high-speed S-RAM 12 to the data value holding internal register 15 on the medium-speed nonvolatile RAM 13. To do.
Since the internal register 15 on the medium-speed nonvolatile RAM 13 is nonvolatile even when the power of the programmable controller is turned off, the data value is retained.

次に、プログラマブルコントローラの電源がオフの状態から再度電源をオンにした場合の動作について説明する。
プログラマブルコントローラの電源をオンにした時のイニシャル処理として、マイコン10は、中速不揮発性RAM13上のデータ値保持用内部レジスタ15のデータ値を高速S−RAM12上の内部レジスタ15にコピーする。そのコピーの完了後に、マイコン10はラダー演算を開始する。
Next, an operation when the power supply of the programmable controller is turned on again from the off state will be described.
As an initial process when the power source of the programmable controller is turned on, the microcomputer 10 copies the data value of the data value holding internal register 15 on the medium speed nonvolatile RAM 13 to the internal register 15 on the high speed S-RAM 12. After the copying is completed, the microcomputer 10 starts ladder calculation.

実施例1は、上記のように、全内部レジスタのデータ値を保持する必要があるとしたケースである。ところで、ユーザによっては、全内部レジスタのデータ値を保持する必要がなく、むしろ、特定の内部レジスタのみのデータ値を保持させて、それ以外の内部レジスタはプログラマブルコントローラの電源オン時に初期化してラダー演算を実行する場合がある。これについては、プログラマブルコントローラのメーカによって運用方法が異なることに依存する場合もある。   In the first embodiment, as described above, it is necessary to hold the data values of all the internal registers. By the way, it is not necessary for some users to hold the data values of all the internal registers. Rather, only the data values of specific internal registers are held, and other internal registers are initialized when the programmable controller is turned on. An operation may be performed. This may depend on different operation methods depending on the manufacturer of the programmable controller.

一つには、内部レジスタに対して、データ値を保持対象とする保持領域と保持対象としない非保持領域を固定とし、ユーザが設定できない方式を採用しているケースがある。この場合は、中速不揮発性メモリ13上に非保持領域に対応する内部レジスタを配置すればデータ値の保持は可能となるが、ラダー演算の高速化に対してはデメリットとなる。   In one case, for the internal register, there is a case in which a holding area for holding a data value and a non-holding area for which a data value is not to be held are fixed and a user cannot set. In this case, if an internal register corresponding to the non-holding area is arranged on the medium-speed nonvolatile memory 13, it is possible to hold the data value, but this is disadvantageous for speeding up the ladder calculation.

実施例2に係るプログラマブルコントローラは、内部レジスタをユーザによってデータ値を保持対象とする保持領域および保持対象としない非保持領域に分けて設定することを可能にする。その設定方法の一例を図4に示す。すなわち、ユーザが設定した内部レジスタの保持領域のみのデータ値を保持し、それ以外の内部レジスタの領域(非保持領域)はプログラマブルコントローラの電源オン時に初期化してラダー演算に使用する。   The programmable controller according to the second embodiment makes it possible for the user to set the internal register separately into a holding area in which a data value is to be held and a non-holding area that is not to be held. An example of the setting method is shown in FIG. That is, the data value of only the holding area of the internal register set by the user is held, and the other internal register areas (non-holding areas) are initialized when the programmable controller is turned on and used for the ladder calculation.

実施例2は、図4に示すように、高速S−RAM12上の一部の内部レジスタ領域のみをデータ保持領域41として使用するケースに対応し、以下にその動作機能について説明する。
実施例1と同様に、ラダー演算中は、高速S−RAM12上の内部レジスタ14のデータ値を使用する。ラダー演算の最後となるスキャンエンド時に、マイコン10は、高速S−RAM12上の内部レジスタ14の領域の内、図4で設定したデータ値を保持対象とする保持領域のデータ値のみを、中速不揮発性RAM13上の内部レジスタ15にコピーする転送処理を実行する。この処理が実施例1による処理とは異なる点である。
The second embodiment corresponds to the case where only a part of the internal register area on the high-speed S-RAM 12 is used as the data holding area 41, as shown in FIG.
Similar to the first embodiment, the data value of the internal register 14 on the high-speed S-RAM 12 is used during the ladder calculation. At the end of the scan, which is the last of the ladder calculation, the microcomputer 10 outputs only the data value in the holding area for holding the data value set in FIG. 4 in the area of the internal register 14 on the high-speed S-RAM 12 to the medium speed. A transfer process for copying to the internal register 15 on the nonvolatile RAM 13 is executed. This process is different from the process according to the first embodiment.

実施例2の特徴は、内部レジスタ14においてデータ保持領域に割当てる容量が少ないと、ラダー演算の最後となるスキャンエンド時に、高速S−RAM12上の内部レジスタ14のデータ値を中速不揮発性RAM13上の内部レジスタ15にコピーするデータ量は当然少なくて済むため、コピー処理時間が速くなる点である。   The feature of the second embodiment is that if the capacity allocated to the data holding area in the internal register 14 is small, the data value of the internal register 14 on the high-speed S-RAM 12 is transferred to the medium-speed nonvolatile RAM 13 at the end of the scan that is the last of the ladder operation Since the amount of data to be copied to the internal register 15 is naturally small, the copy processing time is shortened.

実施例3は、ラダープログラム上で使用される内部レジスタが少なく、データ値を保持対象として内部レジスタに設定される領域が少ないケースにも適切に対応し、実施例1と併用して処理時間をより短縮することを目指した方式である。   The third embodiment appropriately copes with the case where the number of internal registers used in the ladder program is small and the area set in the internal register for holding data values is small. This is a method aimed at shortening.

ここにおいて、例えば、ラダープログラム上で使用される内部レジスタの割当て領域が1,024bit(M0〜M3FF)、データ値を保持するために使用される内部レジスタの割当て領域が32,768bit(M0〜M7FFF)と仮定する。また、高速S−RAMのアクセススピードを10nS,中速不揮発性RAMのアクセススピードを55nSと仮定する。   Here, for example, the allocation area of the internal register used in the ladder program is 1,024 bits (M0 to M3FF), and the allocation area of the internal register used to hold the data value is 32,768 bits (M0 to M7FFF). ). Further, it is assumed that the access speed of the high-speed S-RAM is 10 nS and the access speed of the medium-speed nonvolatile RAM is 55 nS.

以下では説明を簡略化するため、ラダープログラム上で使用される内部レジスタおよびデータ値コピーを受け入れる内部レジスタへの各アスセスに関する時間のみを簡易的に算出する。   In the following, in order to simplify the description, only the time relating to each access to the internal register used in the ladder program and the internal register that accepts the data value copy is simply calculated.

例えば、実施例1による処理モードでは、
(1)ラダー演算中の高速S−RAM12へのアクセス時間は、
1,024bit×10nS=10,240nS
(2)スキャンエンド時に実行する高速S−RAM12から中速不揮発性RAM13へのコピー時間は、
32,768bit/16bit×55nS=112,640nS
すなわち、処理時間としては、(1)と(2)の合計タイムである、
10,240nS+112,640nS=122,880nS
のアクセス時間がかかることになる。
For example, in the processing mode according to the first embodiment,
(1) The access time to the high-speed S-RAM 12 during the ladder calculation is
1,024 bits × 10 nS = 10,240 nS
(2) Copy time from the high-speed S-RAM 12 to the medium-speed non-volatile RAM 13 executed at the scan end is as follows:
32,768 bits / 16 bits × 55 nS = 112,640 nS
That is, the processing time is the total time of (1) and (2).
10,240nS + 112,640nS = 122,880nS
Will take longer to access.

実施例3は、図5に示すように、ラダー演算時にアクセスする内部レジスタとして高速S−RAM12を使用せずに、中速不揮発性RAM13上の内部レジスタ15をラダー演算兼データ値保持用としてそれのみを使用して演算を実行する処理モードを設け、実施例1の処理モードと併用する方式である。
そのため、図5に示す処理モードでは、ラダー演算の最後となるスキャンエンド時に、高速S−RAM12上の内部レジスタ14のデータ値を中速不揮発性RAM13上の内部レジスタ15にコピーする転送処理は必要なく実行されない。
As shown in FIG. 5, the third embodiment does not use the high-speed S-RAM 12 as an internal register to be accessed at the time of ladder calculation, but uses the internal register 15 on the medium-speed nonvolatile RAM 13 for ladder calculation and data value holding. This is a method of providing a processing mode for executing computation using only the processing mode and using it together with the processing mode of the first embodiment.
Therefore, in the processing mode shown in FIG. 5, a transfer process for copying the data value of the internal register 14 on the high-speed S-RAM 12 to the internal register 15 on the medium-speed nonvolatile RAM 13 is necessary at the end of the scan of the ladder operation. Will not be executed.

図5に示す処理モードでは、
(3)ラダー演算中の中速不揮発性RAM13へのアクセス時間は、
1,024bit×55nS=56,320nS
(4)スキャンエンド時に実行する高速S−RAM12から中速不揮発性RAM13へのコピー時間は、コピー処理を行わないことから、
0nS
すなわち、処理時間としては、(3)と(4)の合計タイムである、
56,320nS+0nS=56,320nS
のアクセス時間がかかることになる。
In the processing mode shown in FIG.
(3) The access time to the medium-speed nonvolatile RAM 13 during the ladder calculation is
1,024 bits × 55nS = 56,320nS
(4) Since the copy time from the high-speed S-RAM 12 to the medium-speed nonvolatile RAM 13 executed at the end of the scan does not perform the copy process,
0nS
That is, the processing time is the total time of (3) and (4).
56,320 nS + 0 nS = 56,320 nS
Will take longer to access.

以上のように、使用するメモリ(すなわち、高速S−RAMおよび中速不揮発性RAM)の仕様(スペック)、ラダープログラム上で使用する内部レジスタの数量およびデータ値保持に使用する内部レジスタの容量によっては、図5に示す方式の方が実施例1よりアクセス時間を短くでき、有効となる場合がある。   As described above, depending on the specifications of the memory to be used (that is, the high-speed S-RAM and the medium-speed non-volatile RAM), the number of internal registers used in the ladder program, and the capacity of the internal registers used for holding the data value The method shown in FIG. 5 can be effective because the access time can be shortened compared to the first embodiment.

要するに、実施例3は、使用するメモリ(すなわち、高速S−RAMおよび中速不揮発性RAM)の仕様(スペック)、ラダープログラム上で使用する内部レジスタの数量およびデータ値保持に使用する内部レジスタの容量に基づいて、実施例1による処理モードの処理時間と図5に示す処理モードの処理時間とを比較して、処理時間の短い方を選択して処理を実行する方式である。この選択は、演算処理ユニット(CPUユニット)により自動的に行うか、またはユーザの判断により手動で行うことができる。   In short, in the third embodiment, the specifications of the memory to be used (that is, the high-speed S-RAM and the medium-speed nonvolatile RAM), the number of internal registers used in the ladder program, and the internal register used for holding the data value are described. In this method, the processing time in the processing mode according to the first embodiment is compared with the processing time in the processing mode shown in FIG. 5 based on the capacity, and the processing with the shorter processing time is selected. This selection can be performed automatically by an arithmetic processing unit (CPU unit) or manually by user judgment.

以上では、実施例3を、実施例1と図5に示す処理モードとを併用する方式として説明したが、実施例2と図5に示す処理モードとを併用する方式とすることも勿論可能である。   In the above, the third embodiment has been described as a method in which the first embodiment and the processing mode shown in FIG. 5 are used together. However, it is needless to say that a method in which the second embodiment and the processing mode shown in FIG. is there.

なお、本発明は、上記した実施例に限定されるものではなく、様々な変形例を含むものである。例えば、上記した実施例は、本発明を分かりやすく説明するために詳細に説明したものであり、必ずしも説明した全ての構成を備えるものに限定されるものではない。また、ある実施例の構成の一部を他の実施例の構成に置き換えることが可能である。また、ある実施例の構成に他の実施例の構成を加えることも可能である。そしてまた、各実施例の構成の一部について、他の構成の追加、削除および置換をすることが可能である。   In addition, this invention is not limited to an above-described Example, Various modifications are included. For example, the above-described embodiments have been described in detail for easy understanding of the present invention, and are not necessarily limited to those having all the configurations described. In addition, a part of the configuration of a certain embodiment can be replaced with the configuration of another embodiment. It is also possible to add the configuration of another embodiment to the configuration of one embodiment. Further, it is possible to add, delete, and replace other configurations for a part of the configuration of each embodiment.

上記各実施例の機能を実現するためのメモリとしては、ハードディスク、USBメモリ、SSD(Solid State Drive)等を使用してもよい。また、演算処理ユニット(CPUユニット)としては、マイコンに替えてFPGAを使用してもよい。   A hard disk, USB memory, SSD (Solid State Drive) or the like may be used as a memory for realizing the functions of the above embodiments. Further, as the arithmetic processing unit (CPU unit), an FPGA may be used instead of the microcomputer.

10 マイコン、11 大容量不揮発性(フラッシュ)メモリ、12高速S-RAM、 13 中速不揮発性RAM、14 内部レジスタ(ラダー演算用)、15 内部レジスタ(データ値保持用またはラダー演算兼データ値保持用) 10 microcomputer, 11 large capacity non-volatile (flash) memory, 12 high-speed S-RAM, 13 medium-speed non-volatile RAM, 14 internal register (for ladder calculation), 15 internal register (for data value holding or ladder calculation and data value holding) for)

Claims (3)

ラダー演算を実行する演算処理ユニットと、
スタティックRAMに配置する第1の内部レジスタと、
不揮発性RAMに配置する第2の内部レジスタと
を少なくとも備え、
前記演算処理ユニットラダー演算を実行し当該ラダー演算のスキャンエンド時に前記第1の内部レジスタのデータ値を前記第2の内部レジスタにコピーする処理を第1の処理モードとし、
前記演算処理ユニットが前記第2の内部レジスタのみを用いてラダー演算を実行する処理を第2の処理モードとし、
前記スタティックRAMおよび前記不揮発性RAMの各仕様、前記第1の内部レジスタの数量および前記第2の内部レジスタの容量に基づいて、前記第1の処理モードによる処理時間と前記第2の処理モードによる処理時間とを比較し短い処理時間の処理モードを選択する
ことを特徴とするプログラマブルコントローラ。
An arithmetic processing unit that executes ladder arithmetic;
A first internal register located in the static RAM;
At least a second internal register disposed in the non-volatile RAM ;
The process of the arithmetic processing unit to copy the data value of said first internal register when the scan end executed the ladder calculation ladder operation on said second internal register to the first processing mode,
The processing unit executes a ladder operation using only the second internal register as a second processing mode,
Based on the specifications of the static RAM and the nonvolatile RAM, the number of the first internal registers, and the capacity of the second internal registers, the processing time according to the first processing mode and the second processing mode A programmable controller, characterized by comparing a processing time and selecting a processing mode with a short processing time .
請求項1に記載のプログラマブルコントローラであって、
前記第1の内部レジスタをデータ値の保持を必要とする保持領域および必要としない非保持領域に分けて設定し、
前記第1の処理モードで前記第2の内部レジスタにコピーするデータ値は、前記第1の内部レジスタの前記保持領域のデータ値のみとする
ことを特徴とするプログラマブルコントローラ。
The programmable controller according to claim 1,
The first internal register is divided into a holding area that requires holding a data value and a non-holding area that does not need to be set,
The programmable controller according to claim 1, wherein the data value copied to the second internal register in the first processing mode is only the data value of the holding area of the first internal register .
請求項1または2に記載のプログラマブルコントローラであって、
前記第1または前記第2の処理モードの選択は、前記演算処理ユニットにより自動的に行われるかまたはユーザの判断により手動で行われる
ことを特徴とするプログラマブルコントローラ。
The programmable controller according to claim 1 or 2,
The programmable controller according to claim 1, wherein the selection of the first or second processing mode is automatically performed by the arithmetic processing unit or manually by a user's judgment .
JP2015020959A 2015-02-05 2015-02-05 Programmable controller Expired - Fee Related JP6401071B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015020959A JP6401071B2 (en) 2015-02-05 2015-02-05 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015020959A JP6401071B2 (en) 2015-02-05 2015-02-05 Programmable controller

Publications (3)

Publication Number Publication Date
JP2016143367A JP2016143367A (en) 2016-08-08
JP2016143367A5 JP2016143367A5 (en) 2017-07-06
JP6401071B2 true JP6401071B2 (en) 2018-10-03

Family

ID=56570619

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015020959A Expired - Fee Related JP6401071B2 (en) 2015-02-05 2015-02-05 Programmable controller

Country Status (1)

Country Link
JP (1) JP6401071B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6874814B2 (en) * 2019-10-30 2021-05-19 株式会社安川電機 Industrial equipment control device, industrial equipment control device setting system, industrial equipment control device setting method, and program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05204750A (en) * 1992-01-28 1993-08-13 Matsushita Electric Works Ltd Data holding system for program controller
JP2000112836A (en) * 1998-10-01 2000-04-21 Canon Inc Information processor, information storing method, and storage medium
JP3835508B2 (en) * 1999-03-15 2006-10-18 オムロン株式会社 SEQUENCE CONTROL DEVICE, HOLDING AREA MAINTENANCE METHOD IN THE DEVICE, AND RECORDING MEDIUM CONTAINING COMPUTER PROGRAM FOR EXECUTING THE METHOD
JP2006252535A (en) * 2005-02-09 2006-09-21 Hitachi Ulsi Systems Co Ltd Storage apparatus
WO2012111069A1 (en) * 2011-02-14 2012-08-23 三菱電機株式会社 Programmable controller

Also Published As

Publication number Publication date
JP2016143367A (en) 2016-08-08

Similar Documents

Publication Publication Date Title
US10296231B2 (en) Data-storage device and data maintenance method thereof
JP3892851B2 (en) Memory card and semiconductor device
KR101562973B1 (en) Memory apparatus and method for operating thereof
JP4713867B2 (en) Memory controller, memory device, and memory controller control method
JP5783809B2 (en) Information processing apparatus, activation method, and program
JP2008198310A (en) Method for repairing bit error and information processing system
JP2006120082A (en) Memory card, semiconductor device, and control method for memory card
JP2009064263A (en) Memory device
JP4843222B2 (en) Semiconductor memory device control method, memory card, and host device
JP6347055B2 (en) Nonvolatile memory device
JP2017174387A (en) Remote controller, nonvolatile storage device, nonvolatile storage system, and memory control method
US9948809B2 (en) Image forming apparatus, memory management method for image forming apparatus, and program, using discretely arranged blocks in prioritizing information
JP4177360B2 (en) Memory controller, flash memory system, and flash memory control method
JP4966418B1 (en) Information processing apparatus and write control method
JP6401071B2 (en) Programmable controller
JP2008225576A (en) Control device of nand flash memory
JPWO2016038765A1 (en) Memory device and memory device control method
JP6471012B2 (en) Semiconductor memory, storage device, host device, data processing system, data writing device, data writing program, control program, and data writing method
JP2005182538A (en) Data transfer device
JP2011081641A (en) Memory controller
JP6289883B2 (en) Storage device
JP2013109404A (en) Information processing device
JP2005339438A (en) Memory controller, flash memory system and control method of flash memory
JP6429196B2 (en) Storage device using NAND flash memory and method of using NAND flash memory
JP6157158B2 (en) Information processing apparatus, control method thereof, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170529

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170529

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180403

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180330

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180516

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180906

R150 Certificate of patent or registration of utility model

Ref document number: 6401071

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees