Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6992264B2 - Programmable logic controller memory management method - Google Patents
[go: Go Back, main page]

JP6992264B2 - Programmable logic controller memory management method - Google Patents

Programmable logic controller memory management method Download PDF

Info

Publication number
JP6992264B2
JP6992264B2 JP2017054082A JP2017054082A JP6992264B2 JP 6992264 B2 JP6992264 B2 JP 6992264B2 JP 2017054082 A JP2017054082 A JP 2017054082A JP 2017054082 A JP2017054082 A JP 2017054082A JP 6992264 B2 JP6992264 B2 JP 6992264B2
Authority
JP
Japan
Prior art keywords
pou
change
programmable logic
logic controller
master
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
JP2017054082A
Other languages
Japanese (ja)
Other versions
JP2018156511A (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.)
Meidensha Corp
Original Assignee
Meidensha 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 Meidensha Corp filed Critical Meidensha Corp
Priority to JP2017054082A priority Critical patent/JP6992264B2/en
Publication of JP2018156511A publication Critical patent/JP2018156511A/en
Application granted granted Critical
Publication of JP6992264B2 publication Critical patent/JP6992264B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

本発明は、プログラマブルロジックコントローラ(programmable logic controller:以下、PLCとする。)のメモリ管理方法に関する。 The present invention relates to a memory management method for a programmable logic controller (hereinafter referred to as PLC).

現在、コントローラの動作は、専用のプログラムによって制御されることが一般的となっている。このプログラムの記述言語としては、例えばIEC(International Electrotechnical Commission)611131-3規格(JISB3503)に準拠した言語などが使用されている。 Currently, the operation of the controller is generally controlled by a dedicated program. As the description language of this program, for example, a language compliant with the IEC (International Electrotechnical Commission) 611131-3 standard (JISB3503) is used.

このIEC611131-3規格に準拠した言語によって作成されるプログラミングは、特許文献1のプログラム作成支援装置などを使用して作成され、次のような特徴を有している。 The programming created by the language conforming to the IEC611131-3 standard is created by using the program creation support device of Patent Document 1 and has the following features.

(1)POU定義,パラメータの設定
IEC61131-3規格では、ユーザが作成するプログラムをPOU(Program Organization Unit)という型として定義し、これらをタスクや他のPOUに登録することでインスタンス化する。また、汎用のプログラムとは別に数値表示、数値演算、フィードバック制御などの機能を限定したPOUも用意されている。これらのプログラムを効率よく、運用後もなるべくPLCを停止しないように作成することが求められている。なお、PLCは、一般的にシーケンサという商品名も用いられている。
(1) POU definition and parameter setting In the IEC61131-3 standard, a program created by a user is defined as a type called POU (Program Organization Unit), and these are instantiated by registering them in a task or another POU. In addition to general-purpose programs, POUs with limited functions such as numerical display, numerical calculation, and feedback control are also available. It is required to create these programs efficiently and not to stop PLC as much as possible even after operation. As for PLC, a trade name of sequencer is also generally used.

(2)POU,変数定義,変数パラメータのオンライン変更
PLCの運転開始後は、PLCを停止せずにPOUなどを入れ替えるオンライン変更が行われるため、インスタンスとしてのサイズやアドレス、POU内部の変数がプログラム変更前後で変わらないようにプログラミングツールで管理されている。この状態の入れ替えは、オンライン変更と呼ばれている。
(2) Online change of POU, variable definition, variable parameter After the operation of PLC is started, online change is performed to replace POU etc. without stopping PLC, so the size and address as an instance and variables inside POU are programmed. It is managed by a programming tool so that it does not change before and after the change. Swapping this state is called an online change.

(3)二重化されたPLCでのプログラムのオンライン変更
PLCは、冗長化機能(障害発生時のバックアップ等)としてマスター・スレーブの二重化構成を組むことが少なくない。この二重化構成によれば、プログラムの入れ替えはマスター側で行われ、スレーブ側には入れ替えられたプログラムがコピーされる。
(3) Online program change in a redundant PLC In many cases, a PLC has a master / slave redundant configuration as a redundant function (backup in the event of a failure, etc.). According to this duplication configuration, the replacement of the program is performed on the master side, and the replaced program is copied to the slave side.

特開2008-204237Japanese Patent Application Laid-Open No. 2008-204237

7に示すように、POUは、大きく分けると、変数定義の部分とロジックの定義部分との2つに分かれ、この両者をアプリケーションファイルとして転送する。この変数定義の部分には現場機器から計測値などがコピーされ、ロジックの定義部分には該計測値を参照しながら演算を行う。 As shown in FIG. 7, the POU is roughly divided into a variable definition part and a logic definition part, and both of them are transferred as an application file. Measured values and the like are copied from field equipment to this variable definition part, and operations are performed while referring to the measured values in the logic definition part.

このとき二重化されたPLCでは、マスターからスレーブにデータをコピーすることでマスターに異常があった場合にスレーブが瞬時にマスターに切り替わることを可能としている。ところが、スレーブにはスレーブ固有の情報があり、そのデータをマスターからデータをコピーすることはできない。 At this time, the duplicated PLC makes it possible to instantly switch the slave to the master when there is an abnormality in the master by copying the data from the master to the slave. However, the slave has slave-specific information, and that data cannot be copied from the master.

また、積算などのPOUについても、積算の計算途中でマスターからスレーブへとデータコピーしてよい部分と、よくない部分が存在し、その内容はPOUごとに異なっている。 Further, regarding POU such as integration, there are a part where data can be copied from the master to the slave during the calculation of integration and a part where it is not good, and the content is different for each POU.

本発明は、このような従来の問題を解決するためになされ、マスター・スレーブに二重化されたPLCにおいてPOUのオンライン変更を安全・確実に実行することを解決課題としている。 The present invention has been made to solve such a conventional problem, and an object of the present invention is to safely and surely execute an online change of a POU in a PLC duplicated in a master / slave .

本発明は、POU(Program Organization Unit)によって構成されたタスクを制御するプログラマブルロジックコントローラのメモリを管理する方法に関する。この方法は、前記POUを用途ごとにグループに分割し、該分割されたグループ単位で前記POUをメモリ内に配置して管理する分割管理ステップと、前記分割管理ステップで分割されたグループのうち、POUが一定値よりも大きい場合には専用グループに分類するグループ分類ステップと、を有する。 The present invention relates to a method of managing the memory of a programmable logic controller that controls a task configured by a POU (Program Organization Unit). In this method, the POU is divided into groups for each purpose, and the POU is arranged and managed in the memory in the divided group units, and the group is divided in the division management step. It has a group classification step of classifying into a dedicated group when the POU is larger than a certain value.

本発明の一態様は、プログラマブルロジックコントローラの動作中において、前記POUや変数について追加または変更するオンライン変更があれば、該POUに応じたインスタンス領域における変数定義の追加・変更・初期化情報に印を付与する印付与ステップをさらに有している。 In one aspect of the present invention, if there is an online change to add or change the POU or variable during the operation of the programmable logic controller, the addition / change / initialization information of the variable definition in the instance area corresponding to the POU is marked. It also has a marking step to give.

この場合、前記印付与ステップにおいて、前記オンライン変更時の情報が予め定められた大きさを越えていれば、前記変数定義の変更・等化マップに印を付与することもできる。 In this case, if the information at the time of the online change exceeds a predetermined size in the mark addition step, the mark can be added to the change / equalization map of the variable definition.

また、前記プログラマブルロジックコントローラが、マスター/スレーブに二重化されていれば、マスターからスレーブにコピーされない部分を、前記変数定義において定義するオンライン変更時等化フィルタステップを有していてもよい。 Further, if the programmable logic controller is duplicated in the master / slave, the portion not copied from the master to the slave may have an online change equalization filter step defined in the variable definition.

なお、前記印付与ステップにおいて、プログラマブルロジックコントローラが、追加/変更された部分のデータを取得すれば、前記各印を消去することもできる。 In the mark addition step, if the programmable logic controller acquires the data of the added / changed portion, each mark can be erased.

本発明によれば、マスター・スレーブに二重化されたPLCにおいてPOUのオンライン変更を安全・確実に実行することができる。 According to the present invention, online change of POU can be safely and surely executed in the PLC duplicated in the master / slave .

本発明の実施形態に係るメモリ管理方法におけるメモリ配置の概念図。The conceptual diagram of the memory arrangement in the memory management method which concerns on embodiment of this invention. 同 変数定義の詳細図。Detailed diagram of the variable definition. (a)は同メモリ管理方法を実行するシステムの構成図、(b)は(a)に示すPLCの構成図。(A) is a block diagram of a system that executes the memory management method, and (b) is a block diagram of PLC shown in (a). 図3のシステムに基づきプログラミングの作業フロー図。The programming work flow diagram based on the system of FIG. 自動生成されたプログラムPOUの一例を示す図。The figure which shows an example of the program POU which was automatically generated. 個別パラメータ調整画面図。Individual parameter adjustment screen diagram. 従来例のメモリ配置の概念図。Conceptual diagram of the memory arrangement of the conventional example.

以下、本発明の実施形態に係るメモリ管理方法を説明する。このメモリ管理方法は、PLCの記憶装置内にPOUのインスタンス格納領域をタスクごとに確保し、該インスタンス格納領域内にPOUのインスタンス領域を置いてPLCのメモリを管理する。 Hereinafter, the memory management method according to the embodiment of the present invention will be described. In this memory management method, a POU instance storage area is secured for each task in the PLC storage device, and a POU instance area is placed in the instance storage area to manage the PLC memory.

≪実行システム≫
図3に基づき前記メモリ管理方法を実行するシステム1の構成を説明する。図3(a)中のPLC2は、主にJISB3503規格に沿った計装用のアプリケーション作成に使用されている。
≪Execution system≫
The configuration of the system 1 that executes the memory management method will be described with reference to FIG. PLC2 in FIG. 3A is mainly used for creating an application for instrumentation in accordance with the JISB3503 standard.

このPLC2は、計装用の様々な機能ごとにPOUが用意され、PADT(Programing And Debug Tool)4からの指示にしたがってプログラムの作成・編集(変更)・デバッグなどの処理を実行する。このPADT4は、PLC2とイーサネット(登録商標)7で接続されたコンピュータ3に実装され、該コンピュータ3には計器作成支援ツール5が実装されている。 In this PLC2, POUs are prepared for various functions for instrumentation, and processes such as program creation / editing (change) / debugging are executed according to instructions from PADT (Programming And Debugger) 4. The PADT 4 is mounted on a computer 3 connected to the PLC 2 via Ethernet (registered trademark) 7, and an instrument creation support tool 5 is mounted on the computer 3.

また、PLC2は、図3(b)に示すように、各種演算制御を実行する管理CPU(Central Processing Unit)11aと、POUを格納して管理するプログラムメモリ11bと、各POUに対応するインスタンス格納領域に配置されたデータメモリ11cとを備えている。この図3(b)中では、POU(1)に対応してインスタンス格納領域i1が配置され、POU(2)に対応してインスタンス格納領域i2が配置され、POU(n)に対応してインスタンス格納領域inが配置されている。 Further, as shown in FIG. 3B, the PLC 2 includes a management CPU (Central Processing Unit) 11a that executes various arithmetic controls, a program memory 11b that stores and manages POUs, and an instance storage corresponding to each POU. It is provided with a data memory 11c arranged in an area. In FIG. 3 (b), the instance storage area i 1 is arranged corresponding to POU (1), the instance storage area i 2 is arranged corresponding to POU (2), and the instance storage area i 2 corresponds to POU (n). The instance storage area in is arranged.

この各インスタンス格納領域i1~inには、図2に示すタスク単位のインスタンス領域(以下、インスタンス領域と省略する。)12が置かれ、インスタンス領域12には、POUの変数定義13が記憶されている。具体的には一般変数定義11aの場合は、型情報13c,初期値13d,現在値13e,追加・変更・初期化情報13f,等化フィルタ情報13gが格納される。また、一定サイズ以上の大きさの変数定義13bでは、さらに変更・等化マップ13hが追加されている。なお、前記変数定義13bに該当するか否かは、予め定められた閾値との対比により決定してもよい。 A task-based instance area (hereinafter abbreviated as an instance area) 12 shown in FIG. 2 is placed in each of the instance storage areas i1 to inn, and a POU variable definition 13 is stored in the instance area 12. Has been done. Specifically, in the case of the general variable definition 11a, the type information 13c, the initial value 13d, the current value 13e, the addition / change / initialization information 13f, and the equalization filter information 13g are stored. Further, in the variable definition 13b having a size larger than a certain size, a change / equalization map 13h is further added. Whether or not the variable definition 13b is applicable may be determined by comparison with a predetermined threshold value.

管理CPU11aは、図示省略の二枚のベースボード間がケーブルによって接続され、それぞれに管理CPUモジュールが実装され、各管理CPUモジュールの電源断・故障や動作モード、即ちマスター(常用)モード/スレーブ(待機)モードを通知し、マルチCPUによるPLC二重化システムを実現させる。このPLC二重化システムによれば、各管理CPUモジュールは、同じメモリ構成であり、かつ同じアプリケーションプログラムを動作させる。なお、前記各管理CPUモジュールは、図1中では、CPU(1)(2)として示され、CPU(1)はマスター側に実装され、CPU(2)はスレーブ側に実装されている。 In the management CPU 11a, two baseboards (not shown) are connected by a cable, and a management CPU module is mounted on each of them. Notifies the standby mode and realizes a PLC duplication system with multiple CPUs. According to this PLC duplication system, each management CPU module has the same memory configuration and operates the same application program. Each management CPU module is shown as CPUs (1) and (2) in FIG. 1, the CPU (1) is mounted on the master side, and the CPU (2) is mounted on the slave side.

≪作業手順≫
(1)入力支援
前記システム1を用いた作業手順(ステップ)を説明する。従来は、図4に示すように、計装項目表Dを元に数値表示や数値積算などの機能をつくりこんだPOU(以下、機能POUとする。)を配置してパラメータを設定する単純作業の繰り返しにより、プログラミングできるように工夫されてきた。
≪Work procedure≫
(1) Input support A work procedure (step) using the system 1 will be described. Conventionally, as shown in FIG. 4, a simple operation of arranging a POU (hereinafter referred to as a function POU) having functions such as numerical display and numerical integration based on the instrumentation item table D and setting parameters is performed. It has been devised so that it can be programmed by repeating.

しかしながら、計測項目表Dを見ながらユーザ(人間)がパラメータをプログラミングするため、入力ミスが多く見受けられた。そこで、前記システム1では、計器作成支援ツール5を用いることで自動生成する部分を増加させ、ユーザの入力の手間を省いている。 However, since the user (human) programs the parameters while looking at the measurement item table D, many input errors are seen. Therefore, in the system 1, the portion automatically generated by using the instrument creation support tool 5 is increased, and the trouble of inputting by the user is saved.

詳細を説明すれば、ユーザは、従来のS01,S02と同じく、作成するプロラムの計数項目表Dを作成し、手入力によりシステム構成を定義する(S01,S02)。ただし、S03,S04に示すグローバル変数の定義と機能POUの定義に計器作成支援ツール5が用いられている点で従来と相違する。 To explain in detail, the user creates a counting item table D of the program to be created and manually defines the system configuration (S01, S02), as in the conventional S01 and S02. However, it differs from the conventional one in that the instrument creation support tool 5 is used for the definition of the global variable and the definition of the function POU shown in S03 and S04.

すなわち、計器作成支援ツール5にて計装項目表Dと計装初期値ファイルF1からデータを読み込み、作成する機能POU数や名前のルールを計器作成支援ツール5で設定する。ここでは機能POUに入力するグローバル変数を構造体として定義し、登録された機能POUの部品ごとにパラメータ設定ダイアログを用意し、入力を容易化させることができる。 That is, data is read from the instrumentation item table D and the instrumentation initial value file F1 by the instrumentation creation support tool 5, and the number of function POUs to be created and the rule of the name are set by the instrumentation creation support tool 5. Here, a global variable to be input to the function POU can be defined as a structure, and a parameter setting dialog can be prepared for each registered function POU component to facilitate input.

そして、計器作成支援ツール5にて、計装項目表Dおよび計装初期値ファイルF1から機能POUのグローバル変数用CSVファイルF2と、機能POUを配置したプログラムPOU用XMLファイルF3とをPADT4に出力する。 Then, the instrument creation support tool 5 outputs the CSV file F2 for global variables of the function POU and the XML file F3 for the program POU in which the function POU is arranged from the instrument item table D and the instrument initial value file F1 to PADT4. do.

また、PADA4は、前記CSVファイルF2および前記XMLファイルF3を読み込み、グローバル変数と機能POUを自動プログラミングする。ここで計装項目表Dと計装初期値ファイルF1と違うパラメータを設定する場合にはPADT4にて設定する。なお、図5は、計器作成支援ツール5から出力された前記XMLファイルF3を取り込んで自動生成された機能POUの画面表示G1を示し、表1は、計器作成支援ツール5から出力されたCSVファイルF2を取り込んで自動生成されたグローバル変数を示している。 Further, PADA4 reads the CSV file F2 and the XML file F3, and automatically programs global variables and function POUs. Here, when setting parameters different from the instrumentation item table D and the instrumentation initial value file F1, set them in PADT4. Note that FIG. 5 shows the screen display G1 of the function POU automatically generated by importing the XML file F3 output from the instrument creation support tool 5, and Table 1 shows the CSV file output from the instrument creation support tool 5. It shows a global variable that is automatically generated by taking in F2.

Figure 0006992264000001
Figure 0006992264000001

このとき計装項目表と計装初期値ファイルF1とは違うパラメータを設定する場合はプログラミングツールで設定する。ここでは図6の矢印G1に示すように、前記自動生成後に表1中のパラメータ(変数名称)をダブルクリックすることで各計装部品用の画面G2が表示され、パラメータを変更することができる。 At this time, if you want to set a parameter different from the instrumentation item table and the instrumentation initial value file F1, set it with a programming tool. Here, as shown by the arrow G1 in FIG. 6, the screen G2 for each instrumentation component is displayed by double-clicking the parameter (variable name) in Table 1 after the automatic generation, and the parameter can be changed. ..

(2)オンライン変更等
PADT4でコンパイルを実行し(S05)、アプリケーション6のファイルを生成する。このとき作成されたアプリケーション6は、図1(a)に示すように、用途ごとにグループに分されている。すなわち、ユーザが作成するアプリケーションは、機能ごとに目的の異なるグループに分することができる。ここではユーザが行う作業は、グループ単位に集中して行うことが多いため、機能POUをグループ単位に管理する。
(2) Online change, etc. Compile with PADT4 (S05) and generate the file of application 6. As shown in FIG. 1A, the applications 6 created at this time are classified into groups according to their uses. That is, the applications created by the user can be classified into groups having different purposes for each function. Here, since the work performed by the user is often concentrated in the group unit, the function POU is managed in the group unit.

例えば図1(a)のアプリケーションプログラム6においては、グループ1でPOU1(ロジック最大設定)が管理され、グループ2(変数最大設定)で機能POU2,3が管理されている。ここでは分されたグループのうち機能POUが、予め定められた閾値よりも大きいものついては、機能POU毎の専用グループとして分類する。例えば図1(a)中の機能POU3のサイズが閾値よりも大きければ、機能POU2とは別の専用グループとして分類することができる。 For example, in the application program 6 of FIG. 1A, POU1 (logic maximum setting) is managed by group 1, and functions POU2 and 3 are managed by group 2 (variable maximum setting). Here, among the classified groups, those having a functional POU larger than a predetermined threshold value are classified as a dedicated group for each functional POU. For example, if the size of the functional POU3 in FIG. 1A is larger than the threshold value, it can be classified as a dedicated group different from the functional POU2.

そして、生成されたアプリケーションプログラム6は、イーサネット6経由でPLC2に転送され(S06)、運転が開始される(S07)。このときPLC2は、二重化されているため、マスターからスレーブにコピーされ、マスターに異常があればスレーブが瞬時にマスター側に切り替わる。 Then, the generated application program 6 is transferred to the PLC 2 via the Ethernet 6 (S06), and the operation is started (S07). At this time, since the PLC2 is duplicated, it is copied from the master to the slave, and if there is an abnormality in the master, the slave is instantly switched to the master side.

ただし、マスター側のアプリケーションファイル6aからスレーブ側のアプリケーションプログラム6bにコピーされない部分を定義するオンライン変更時等化フィルタ14が用意されている。このオンライン変更時等化フィルタ14は、マスターからスレーブへとデータコピーしてよい部分と、コピーしてよくない部分とを区別し、後者の部分を定義する。ここで定義された情報が等化フィルタ情報13gに記述される。なお、オンライン変更時等化フィルタ14に定義される部分の内容は機能POU毎に異なるものとする。 However, an online change equalization filter 14 that defines a portion that is not copied from the application file 6a on the master side to the application program 6b on the slave side is prepared. The online change equalization filter 14 distinguishes between a part where data can be copied from the master to the slave and a part where the data cannot be copied, and defines the latter part. The information defined here is described in the equalization filter information 13g. The content of the part defined in the online change equalization filter 14 is different for each function POU.

また、PADT4がオンライン変更モード(S08,S09)での動作中は、修正・追加した機能POUおよび変数の追加・変更・初期化情報13fに印を付与する。このときサイズの大きい構造体などの変数定義については、追加・変更・初期化情報13fも大きくなるおそれがある。そこで、処理高速の観点から修正や追加などの箇所をビット単位で分かるように変更・等化マップ13hに印を付与する。例えば2バイト単位のビットインデックスを用いることができる。 Further, while the PADT 4 is operating in the online change mode (S08, S09), a mark is added to the modified / added function POU and the variable addition / change / initialization information 13f. At this time, for the variable definition such as a structure having a large size, the addition / change / initialization information 13f may also be large. Therefore, from the viewpoint of processing speed, a mark is added to the change / equalization map 13h so that the parts such as corrections and additions can be understood in bit units. For example, a bit index in units of 2 bytes can be used.

このように追加変更初期化情報13fや変更・等化マップ13hに印を付与した場合にPLC2に追加・修正部分などのダウンロード(S10)が完了すれば、前記各印を消去するものとする。なお、前記ダウンロードを実行していなくても、PADT4の通常モードでビルドを行った場合も同様に前記各印は消去される。 When the addition / change initialization information 13f and the change / equalization map 13h are marked in this way and the download (S10) of the addition / correction portion to the PLC2 is completed, the marks are deleted. Even if the download is not executed, the marks are similarly erased even when the build is performed in the normal mode of PADT4.

≪作用効果≫
(1)ユーザのアプリケーションに既存の数Kバイトの大きな機能POUを張り付けても、オンラインで変更することが可能となる。
≪Action effect≫
(1) Even if an existing large function POU of several Kbytes is attached to the user's application, it can be changed online.

従来、ラダーなどの軽微な変更や設定値などの変更については、オンライン変更が可能なものの、入れ替えたいプログラムが元のプログラムの大きさの何倍にもなる場合には入れ替えができなかった。
すなわち、従来の技術でもオンライン変更は可能ではあるが、予めメモリ上に空き領域を持っておかなければならないため、全体が肥大化してしまうため、変更できるPOUのメモリ上の大きさが数十バイトまでに制限されていた。
これに対して機能POUをグループに分し、グループ単位,POU単位,変数単位に変更を管理できるようにし、かつ予め数Kバイト安易の追加変更を行うグループを全体が最大サイズの固定長で作成できるようにしたことで大きな部品についてもオンライン変更が可能となった。
In the past, minor changes such as ladders and changes in setting values could be changed online, but if the program to be replaced was many times the size of the original program, it could not be replaced.
That is, although online change is possible even with the conventional technology, since it is necessary to have a free area in the memory in advance, the whole becomes bloated, so the size of the POU that can be changed is several tens of bytes. Was limited to.
On the other hand, the function POU is classified into groups so that changes can be managed in group units, POU units, and variable units, and the group that makes additional changes easily by several Kbytes in advance has a fixed length of the maximum size as a whole. By making it possible to create, it is possible to change online even for large parts.

(2)オンライン変更時等化フィルタ14と変更・等化マップ13hとによりデータ等化処理が制限され、二重化運転中のオンライン変更も安全・高速に行える。また、機能POUのパラメータ部分をグローバル変数にすることで、変数のアドレスが固定化され、安全にオンライン変更することができる。 (2) Data equalization processing is restricted by the online change equalization filter 14 and the change / equalization map 13h, and online changes during redundant operation can be performed safely and at high speed. Also, by making the parameter part of the function POU a global variable, the address of the variable is fixed and can be safely changed online.

(3)なお、機能POUのパラメータ部分をグローバル変数にすることで、プログラミングの手間は増えるものの、計器作成支援ツール5で自動生成される部分が増加するため、トータルではプログラミングのコストを低く抑えることができる。 (3) By making the parameter part of the function POU a global variable, although the programming effort increases, the part automatically generated by the instrument creation support tool 5 increases, so the total programming cost should be kept low. Can be done.

1…システム
2…PLC
3…コンピュータ
4…PADT
5…計器作成支援ツール
6…アプリケーション
7…イーサネット
11a…管理CPU
11b…プログラムメモリ
11c…データメモリ
12…タスク単位 インスタンス領域
13…変数定義
13a…一般変数定義
13b…一定サイズ以上の大きな変数定義
13c…型情報
13d…初期値
13e…現在値
13f…追加・変更・初期化情報
13g…等化フィルタ情報
13h…変更・等化マップ
14…オンライン変更時等化フィルタ
1 ... System 2 ... PLC
3 ... Computer 4 ... PADT
5 ... Instrument creation support tool 6 ... Application 7 ... Ethernet 11a ... Management CPU
11b ... Program memory 11c ... Data memory 12 ... Task unit Instance area 13 ... Variable definition 13a ... General variable definition 13b ... Large variable definition over a certain size 13c ... Type information 13d ... Initial value 13e ... Current value 13f ... Addition / change / Initialization information 13g ... Equalization filter information 13h ... Change / equalization map 14 ... Online change equalization filter

Claims (2)

POU(Program Organization Unit)によって構成されたタスクを制御するプログラマブルロジックコントローラのメモリを管理する方法であって、
前記POUを用途ごとにグループに分類し、該分類されたグループ単位で管理する分類管理ステップと、
前記分類管理ステップで分類されたグループのうち、POUのサイズが予め定められた閾値のサイズよりも大きい場合には専用グループに分類するグループ分類ステップと、
プログラマブルロジックコントローラの動作中において前記POUや変数について追加または変更するオンライン変更があれば、該POUに応じたインスタンス領域における変数定義の追加・変更・初期化情報に印を付与する印付与ステップと、
前記プログラマブルロジックコントローラがマスター/スレーブに二重化されていれば、マスターからスレーブにコピーされない部分を前記変数定義において定義するオンライン変更時等化フィルタステップと、
を有することを特徴とするプログラマブルロジックコントローラのメモリ管理方法。
It is a method of managing the memory of a programmable logic controller that controls a task configured by a POU (Program Organization Unit).
A classification management step in which the POUs are classified into groups according to usage and managed in units of the classified groups.
Among the groups classified in the classification management step, if the size of the POU is larger than the size of the predetermined threshold value, the group classification step of classifying into a dedicated group and the group classification step.
If there is an online change to add or change the POU or variable during the operation of the programmable logic controller, a marking step to mark the addition / change / initialization information of the variable definition in the instance area corresponding to the POU, and the marking step.
If the programmable logic controller is duplicated to the master / slave, the online change equalization filter step that defines the part that is not copied from the master to the slave in the variable definition, and
A memory management method for a programmable logic controller, characterized by having.
前記印付与ステップにおいて、
プログラマブルコントローラが、追加/変更された部分のデータを取得すれば前記各印を消去することを特徴とする請求項1記載のプログラマブルロジックコントローラのメモリ管理方法。
In the marking step,
The memory management method for a programmable logic controller according to claim 1, wherein the programmable controller erases each mark when the data of the added / changed portion is acquired.
JP2017054082A 2017-03-21 2017-03-21 Programmable logic controller memory management method Active JP6992264B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017054082A JP6992264B2 (en) 2017-03-21 2017-03-21 Programmable logic controller memory management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017054082A JP6992264B2 (en) 2017-03-21 2017-03-21 Programmable logic controller memory management method

Publications (2)

Publication Number Publication Date
JP2018156511A JP2018156511A (en) 2018-10-04
JP6992264B2 true JP6992264B2 (en) 2022-01-13

Family

ID=63717391

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017054082A Active JP6992264B2 (en) 2017-03-21 2017-03-21 Programmable logic controller memory management method

Country Status (1)

Country Link
JP (1) JP6992264B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113189961B (en) * 2021-04-21 2022-09-02 西安热工研究院有限公司 Forced state searching processing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001142510A (en) 1999-11-11 2001-05-25 Omron Corp Controller system and programming tool and controller
JP2010072892A (en) 2008-09-18 2010-04-02 Meidensha Corp Mounting system for pou
JP2012118715A (en) 2010-11-30 2012-06-21 Fuji Electric Co Ltd Plc system, development support device for the same, and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3317601B2 (en) * 1994-11-25 2002-08-26 株式会社東芝 Programmable controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001142510A (en) 1999-11-11 2001-05-25 Omron Corp Controller system and programming tool and controller
JP2010072892A (en) 2008-09-18 2010-04-02 Meidensha Corp Mounting system for pou
JP2012118715A (en) 2010-11-30 2012-06-21 Fuji Electric Co Ltd Plc system, development support device for the same, and program

Also Published As

Publication number Publication date
JP2018156511A (en) 2018-10-04

Similar Documents

Publication Publication Date Title
JP6442843B2 (en) Control device
DE102011005209B4 (en) Program instruction-controlled instruction flow control
CN104503896B (en) System and method for batch device commissioning and decommissioning
CN104049579A (en) Background collection of diagnostic data from field instrumentation devices
DE112011103308T5 (en) Procedure, system and program
CN108427383B (en) Engineering device, engineering method, and storage medium
JP7047700B2 (en) Control systems, controls, terminals, and programs
CN108527403A (en) The data setting system and method for robot, computer-readable recording medium
JP6312648B2 (en) Numerical control system linked with tool catalog database
JP2018200731A (en) Support device and support program
JP6992264B2 (en) Programmable logic controller memory management method
CN102339025A (en) Method for operating machines or machines in a machine series and planning system
US10162827B2 (en) Method and system for distributed control system (DCS) process data cloning and migration through secured file system
CN108459569B (en) Operation method and control program of engineering design system of industrial process automation system
US20220398355A1 (en) Design support device and storage medium
JP7404748B2 (en) Program development device and program for realizing the program development device
US20190049934A1 (en) Control system
CN110456741B (en) Process control systems, engineering systems and operator systems
US20220405866A1 (en) Information processing method, information processing apparatus, and recording medium
JP6455096B2 (en) Control system, its support device, programmable control device
JP6483507B2 (en) Control program creating apparatus and control program debugging method
KR101918430B1 (en) System design assistance tool
CN112805637B (en) Design, configuration and maintenance of drive equipment
US7840388B2 (en) Engineering device
WO2023012959A1 (en) Programmable controller, programmable controller system, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20201021

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201027

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210615

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210721

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211122

R150 Certificate of patent or registration of utility model

Ref document number: 6992264

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150