JP6798156B2 - Controller system, its controller, support device - Google Patents

Controller system, its controller, support device Download PDF

Info

Publication number
JP6798156B2
JP6798156B2 JP2016122047A JP2016122047A JP6798156B2 JP 6798156 B2 JP6798156 B2 JP 6798156B2 JP 2016122047 A JP2016122047 A JP 2016122047A JP 2016122047 A JP2016122047 A JP 2016122047A JP 6798156 B2 JP6798156 B2 JP 6798156B2
Authority
JP
Japan
Prior art keywords
controller
correction pattern
variable
value
forced
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
JP2016122047A
Other languages
Japanese (ja)
Other versions
JP2017227988A (en
Inventor
吉原 大助
大助 吉原
純郎 北村
純郎 北村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2016122047A priority Critical patent/JP6798156B2/en
Publication of JP2017227988A publication Critical patent/JP2017227988A/en
Application granted granted Critical
Publication of JP6798156B2 publication Critical patent/JP6798156B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Programmable Controllers (AREA)

Description

本発明は、プログラマブルコントローラシステムに関する。 The present invention relates to a programmable controller system.

ソフトウエア開発でデバッグを実施する時、プログラム動作の確認のため変数の値を書き換えて実施することがある。この一例として、特許文献1に示すように、内部変数とプログラムの一部を書き換える方法がある。また、プラントシステムの稼働中に一部の計器などが故障して正常な値が取り込めない状態では、システムの正常稼働に影響が発生するため、一時的に値を強制的に書き換えて、システムの稼働を継続することが求められる。 When debugging in software development, the value of variables may be rewritten to check the program operation. As an example of this, as shown in Patent Document 1, there is a method of rewriting an internal variable and a part of a program. In addition, if some instruments fail during the operation of the plant system and normal values cannot be obtained, the normal operation of the system will be affected. Therefore, the values are temporarily forcibly rewritten to temporarily rewrite the values of the system. It is required to continue operation.

このような場合、オペレータが監視画面から変数の値の書き換えを実施する必要があり、変数の値を書き換えた後、異常要因が無くなれば解除する必要があるが、強制設定を解除して通常値に直ちに戻すと、場合によっては、システムの運用に支障が発生する可能性がある。しかし、従来技術では、強制設定を解除すると直ちに通常値に戻している。 In such a case, the operator needs to rewrite the variable value from the monitoring screen, and after rewriting the variable value, it is necessary to cancel it when the abnormal factor disappears, but the forced setting is canceled and the normal value is canceled. Immediately returning to the system may interfere with the operation of the system in some cases. However, in the prior art, the value is returned to the normal value as soon as the forced setting is canceled.

尚、通常は、上記変数の値として上記通常値が書き込まれる。これは、変数に割り当てられた記憶領域に書き込まれる。そして、この記憶領域の格納データを用いて何等かの処理が行われる。通常値が例えば任意のセンサの計測値である場合、何等かの原因でセンサ計測値が異常となった場合、これを上記記憶領域に書き込むと、上記処理結果が異常となる。この為、この様な場合、上記記憶領域の格納データを強制的に所定値(強制設定値)に書き換える。 Normally, the above normal value is written as the value of the above variable. It is written to the storage allocated for the variable. Then, some processing is performed using the stored data in this storage area. When the normal value is, for example, the measured value of an arbitrary sensor, or if the sensor measured value becomes abnormal for some reason, writing this to the storage area causes the processing result to become abnormal. Therefore, in such a case, the stored data in the storage area is forcibly rewritten to a predetermined value (forced setting value).

上記のように、プラントシステムの稼働中に一部の計器などが故障して正常な値が取り込めない状態では、システムの正常稼働に影響が発生するため、一時的に値を強制的に書き換えて、システムの稼働を継続することが求められる。 As described above, if some instruments fail during the operation of the plant system and normal values cannot be obtained, the normal operation of the system will be affected. Therefore, the values are temporarily forcibly rewritten. , It is required to continue the operation of the system.

プラントシステムの稼働中に一部の計器などが故障して正常な値が取り込めない状態になったら、この値を強制的に書き換えることで対応する。例えば、システム稼動中、コントローラには各計器(センサなど)の計測値が入力され、各計器に対して予め割り当てられているメモリ領域に、計測値が格納される(データ収集する)。この様なデータ収集処理は例えば定周期で実行され、以って定周期で上記各メモリ領域の格納データが更新されることになる。 If some instruments break down during the operation of the plant system and the normal value cannot be captured, this value can be forcibly rewritten. For example, while the system is operating, the measured value of each instrument (sensor, etc.) is input to the controller, and the measured value is stored (data is collected) in the memory area allocated in advance for each instrument. Such a data collection process is executed, for example, at a fixed cycle, so that the stored data of each of the above memory areas is updated at a fixed cycle.

稼動中に任意の計器が故障等すると、故障した計器に対応する変数のメモリ領域には、異常値が格納されることになり、以ってこのメモリ領域の値を用いる何らかの処理に、悪影響が生じる可能性がある。これを避ける為に上記のように値を強制的に書き換えることで、システム稼働を継続できる。これは、例えば、故障した計器に対応するメモリ領域に、所定の設定値を書き込むものである。 If any instrument fails during operation, an abnormal value will be stored in the memory area of the variable corresponding to the failed instrument, which adversely affects some processing using the value of this memory area. It can occur. By forcibly rewriting the value as described above to avoid this, the system operation can be continued. In this method, for example, a predetermined set value is written in the memory area corresponding to the failed instrument.

しかしながら、これによってシステム稼働を継続することで、上記定周期のデータ収集処理も続行されるので、上記故障した計器に対応するメモリ領域には再び異常値が格納されてしまうことになる。 However, by continuing the system operation by this, the data collection process at the fixed cycle is also continued, so that the abnormal value is stored again in the memory area corresponding to the failed instrument.

特開2010-122824号公報JP-A-2010-122824

従来では、強制的に書き換えた値を戻す場合(異常状態が解消され、強制設定を解除する場合)、単純に直ちに通常値に戻している。これは、例えば、現在の上記センサ計測値を、上記記憶領域に書き込んでいる。異常状態が解消されているので、通常値は正常な値であるはずであり、これ自体は問題ない。 Conventionally, when the forcibly rewritten value is returned (when the abnormal state is resolved and the forcible setting is canceled), the value is simply returned to the normal value immediately. For example, the current sensor measurement value is written in the storage area. Since the abnormal condition has been resolved, the normal value should be a normal value, which is not a problem in itself.

しかし、場合によっては、強制的に書き込みした値(強制設定値)と解除した値(通常値)の差が大きい場合、システムの動作に支障をきたす可能性がある。しかし、システムに対して強制設定解除による支障発生の有無は、ユーザが定義した変数(メモリ)の役割に依存する。そのため、一律でシステムに支障が発生しない強制設定解除を実現することは困難である。 However, in some cases, if the difference between the forcibly written value (forced setting value) and the released value (normal value) is large, the operation of the system may be hindered. However, whether or not a problem occurs due to forced cancellation of the system depends on the role of the variable (memory) defined by the user. Therefore, it is difficult to uniformly release the forced setting without causing any trouble in the system.

本発明の課題は、任意の変数に対する強制設定を解除する際に、場合によってはこの変数に応じた補正パターンを用いて、システムの動作に支障が発生しないように通常値に戻すことができるコントローラシステム、その支援装置、コントローラ等を提供することである。 The subject of the present invention is a controller that can return to a normal value so as not to interfere with the operation of the system by using a correction pattern corresponding to this variable when canceling the forced setting for an arbitrary variable. It is to provide a system, its support device, a controller, and the like.

本発明のコントローラシステムは、支援装置とコントローラを有するコントローラシステムであって、前記コントローラは
・1以上の補正パターンを記憶する補正パターン記憶手段と、
・プログラム中の任意の変数と任意の前記補正パターンとの対応関係が記憶される対応関係記憶手段と、
前記コントローラによる制御対象となる機器の異常時に、該機器に対応する変数の値を強制的に書き換える強制設定が行われる場合、該変数に割り当てられたメモリアドレスに、これまで格納されていた通常値に代えて強制設定値を格納する強制設定手段と、
・前記変数への前記強制設定が解除される場合、前記プログラムの実行に伴って、前記対応関係記憶手段に該解除対象の変数に対応する前記補正パターンがある場合には、該対応する補正パターンを実行することで、前記解除対象の変数の前記メモリアドレスの格納値を、前記強制設定値から徐々に通常値に近づけていく強制設定解除手段と、
を有し、前記通常値は、前記プログラムの実行による前記変数に係わる所定の処理によって得られる値であり、前記コントローラは、通常時には、該通常値を該変数に割り当てられた前記メモリアドレスに格納する、ことを特徴とするものである。
Controller system of the present invention is a controller system having a support device and a controller, wherein the controller,
-A correction pattern storage means for storing one or more correction patterns and
And correspondence storage means program correspondence between any variable and any of the correction pattern in the are stored,
-When a forced setting is made to forcibly rewrite the value of the variable corresponding to the device when the device to be controlled by the controller is abnormal, the memory address assigned to the variable is normally stored in the memory address. A compulsory setting means that stores the compulsory setting value instead of the value, and
• If the forcing of the said variables are released, along with the execution of the program, when said correspondence relationship storage unit is the correction pattern corresponding to the release target variables the corresponding correction pattern By executing, the forced setting canceling means for gradually approaching the stored value of the memory address of the variable to be canceled from the forced setting value to the normal value, and
Have a, the normal value is a value obtained by a predetermined process relating to the variable by executing the program, the controller is in the normal, storing the normal value in the memory address assigned to the number of the modified It is characterized by doing.

本発明のコントローラシステム、その支援装置、コントローラ等によれば、任意の変数に対する強制設定を解除する際に、場合によってはこの変数に応じた補正パターンを用いて、システムの動作に支障が発生しないように通常値に戻すことができる。 According to the controller system, its support device, the controller, etc. of the present invention, when the forced setting for an arbitrary variable is canceled, in some cases, a correction pattern corresponding to this variable is used so that the operation of the system is not hindered. It can be returned to the normal value as follows.

本例のコントローラシステムの構成図である。It is a block diagram of the controller system of this example. システム構成設定画面例である。This is an example of the system configuration setting screen. (a)、(b)は機器−補正パターン対応表、(c)はアドレス−補正パターン対応表の具体例を示す。(A) and (b) show a specific example of a device-correction pattern correspondence table, and (c) show a specific example of an address-correction pattern correspondence table. 補正パターンの具体例を示す図である。It is a figure which shows the specific example of the correction pattern. 強制ONアドレス一覧のデータ構成例である。This is a data configuration example of the forced ON address list. 強制設定コマンド受信の際の処理フローチャート図である。It is a processing flowchart figure at the time of receiving a forced setting command. 強制設定の解除コマンド受信の際の処理フローチャート図である。It is a processing flowchart figure at the time of receiving a command to release a forced setting. 書込み処理に係わる処理を示すフローチャート図(その1)である。It is a flowchart (the 1) which shows the process which concerns on the writing process. 書込み処理に係わる処理を示すフローチャート図(その2)である。It is a flowchart (the 2) which shows the process which concerns on the writing process. テンプレート(機器−補正パターンDB)の具体例である。This is a specific example of a template (equipment-correction pattern DB).

以下、図面を参照して本発明の実施の形態について説明する。
図1は、本例のコントローラシステムの構成図である。
図示の例のコントローラシステムは、支援装置10、コントローラ30等を有する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a configuration diagram of the controller system of this example.
The controller system of the illustrated example includes a support device 10, a controller 30, and the like.

尚、支援装置10やコントローラ30は、ネットワーク1に接続されており、ネットワーク1を介して相互にデータ送受信可能となっている。また、尚、コントローラ30は、PLCの制御装置であってもよいし、DCS(分散制御システム;distributed control system)の制御装置であってもよい。 The support device 10 and the controller 30 are connected to the network 1 and can transmit and receive data to and from each other via the network 1. Further, the controller 30 may be a PLC control device or a DCS (distributed control system) control device.

支援装置10は、ユーザにプログラム開発環境を提供するコンピュータ装置(ローダ等)である。支援装置10は、所定のアプリケーションプログラムをコンピュータで実行することで実現される各種処理機能等を有する。これは、例えば、ユーザにコントローラ30用の任意のプログラムのソースコード13を記述させる為のユーザインターフェース機能を有する。また、ユーザが作成したソースコード13をターゲット上で動作する機械語オブジェクト15に変換するコンパイラ機能(フロントエンドコンパイラ11、バックエンドコンパイラ12)を有する。更に、生成された機械語オブジェクト15をターゲットに送信する通信機能を有する。これら各機能は基本的には既存の一般的な機能であるので、コンパイラ機能以外については特に図示せず、上記簡単な説明のみとする。 The support device 10 is a computer device (loader or the like) that provides a program development environment to the user. The support device 10 has various processing functions realized by executing a predetermined application program on a computer. It has, for example, a user interface function for allowing the user to write the source code 13 of an arbitrary program for the controller 30. It also has a compiler function (front-end compiler 11, back-end compiler 12) that converts the source code 13 created by the user into a machine language object 15 that operates on the target. Further, it has a communication function of transmitting the generated machine language object 15 to the target. Since each of these functions is basically an existing general function, the functions other than the compiler function are not shown in particular, and only the above brief explanation is given.

上記プログラム開発環境上でユーザによって記述されたソースコード13は、フロントエンドコンパイラ11によって中間コード14に変換される。バックエンドコンパイラ12は、生成された中間コード14を、ターゲット上で動作する機械語オブジェクト15に変換する。尚、ターゲットとは、例えばコントローラ30である。この機械語オブジェクト15のファイルは、上記不図示の送信機能によりターゲットに送信される。また、“中間コード”については、例えば特開2013-084112号公報などで説明されている。 The source code 13 written by the user in the above program development environment is converted into the intermediate code 14 by the front-end compiler 11. The back-end compiler 12 converts the generated intermediate code 14 into a machine language object 15 running on the target. The target is, for example, the controller 30. The file of the machine language object 15 is transmitted to the target by the transmission function (not shown). Further, the "intermediate code" is described in, for example, Japanese Patent Application Laid-Open No. 2013-084112.

また、上記コンパイラ機能(フロントエンドコンパイラ11、バックエンドコンパイラ12)は、上記変換処理に伴って、上記ソースコード13に記述されている各変数に対して任意のメモリアドレスを割り当てる。これは、例えば、コントローラ30のメモリ32内の任意の記憶領域のアドレスを割り当てるものであり、この処理も既存機能であるので、特に詳細には説明しない。そして、この様な変数へのアドレス割当て結果を、変数−アドレス対応表16に記録しておく。 Further, the compiler functions (front-end compiler 11 and back-end compiler 12) allocate arbitrary memory addresses to each variable described in the source code 13 in accordance with the conversion process. This is, for example, allocating the address of an arbitrary storage area in the memory 32 of the controller 30, and since this process is also an existing function, it will not be described in detail. Then, the result of address allocation to such a variable is recorded in the variable-address correspondence table 16.

変数−アドレス対応表16の具体例は特に図示しないが、例えば上記ソースコード13に記述されている各変数の変数名などに対応付けて、その変数に割り当てられたアドレスが格納されたテーブル等である。変数名が、上記計器や機器の名称等とされている場合もある。 A specific example of the variable-address correspondence table 16 is not particularly shown, but for example, in a table or the like in which the address assigned to the variable is stored in association with the variable name of each variable described in the above source code 13. is there. The variable name may be the name of the above-mentioned instrument or device.

更に、制御対象機器の構成を定義するために、システム構成定義設定部22の機能を使用して、ユーザがシステム構成の定義や各機器の設定を任意に実施するようにしてもよい。この機能自体も既存の機能であるので、特に詳細には説明しない。 Further, in order to define the configuration of the device to be controlled, the user may arbitrarily define the system configuration and set each device by using the function of the system configuration definition setting unit 22. Since this function itself is an existing function, it will not be described in detail.

上述したように、例えば一例として、任意の計器が故障等すると、故障した計器に対応する変数のメモリ領域には、異常値が格納されることになり、以ってこのメモリ領域の値を用いる何らかの処理に、悪影響が生じる可能性がある。この為、システムの正常稼働に影響が発生するため、一時的に変数の値(対応するメモリ領域の格納データ)を強制的に所定値に書き換えて(強制設定を行って)、システムの稼働を継続することが求められる。しかしながら、上述したように、この強制設定の解除の際に問題が生じる場合がある。 As described above, for example, when an arbitrary instrument fails, an abnormal value is stored in the memory area of the variable corresponding to the failed instrument, and therefore the value of this memory area is used. Some processing may be adversely affected. For this reason, the normal operation of the system is affected, so the value of the variable (stored data in the corresponding memory area) is temporarily rewritten to the specified value (forced setting) to operate the system. It is required to continue. However, as described above, a problem may occur when the forced setting is released.

ある変数に係わる強制設定を解除する際に単純に解除を実施するとシステムに支障が発生すると開発者等が判断した場合、開発者等は予めその変数に対して安全に解除を実施するための補正パターンを関連付ける。この補正パターンは予め作成済みのものを選択して関連付けるようにしてもよいし、ユーザがオリジナルの補正パターンを作成して関連付けるようにしてもよい。 If the developer, etc. determines that a system failure will occur if the forced setting related to a certain variable is simply canceled, the developer, etc. will make corrections to safely cancel the variable in advance. Associate patterns. This correction pattern may be selected and associated with a pre-created correction pattern, or the user may create an original correction pattern and associate it.

上記任意の変数に対する任意の補正パターンの関連付け結果は、機器−補正パターン対応表24に反映されるようにしている。機器−補正パターン対応表24は、例えばユーザが手作業で作成する。 The result of associating an arbitrary correction pattern with the above arbitrary variable is reflected in the device-correction pattern correspondence table 24. The device-correction pattern correspondence table 24 is, for example, manually created by the user.

支援装置10は、上記のようにコンパイル機能で変数に任意のメモリアドレスを割り付けるが、本手法では更に、このメモリアドレスと補正パターンとの対応情報(アドレス−補正パターン対応表25)を生成する。これは、例えば、上記機器−補正パターン対応表24などに基づいて、アドレス−補正パターン対応表25を生成するものであるが、この例に限らない。 As described above, the support device 10 allocates an arbitrary memory address to the variable by the compile function, and in this method, the correspondence information between the memory address and the correction pattern (address-correction pattern correspondence table 25) is further generated. This is for generating the address-correction pattern correspondence table 25 based on, for example, the device-correction pattern correspondence table 24, but is not limited to this example.

上記機器−補正パターン対応表24を作成させる機能やアドレス−補正パターン対応表25を生成する処理は、例えば上記コンパイラ機能が実現してもよいし、不図示の他の処理機能部が実現してもよい。何れにしても支援装置10が有する何等かの機能部が実現することになる。尚、この様な処理機能を含む上述した各種処理機能は、図示/不図示に関係なく全て、支援装置10の不図示の演算プロセッサが、不図示の記憶部に記憶されている所定のアプリケーションプログラムを実行することにより実現される。 The function of creating the device-correction pattern correspondence table 24 and the process of generating the address-correction pattern correspondence table 25 may be realized, for example, by the above compiler function or by another processing function unit (not shown). May be good. In any case, some functional unit of the support device 10 will be realized. In all of the above-mentioned various processing functions including such a processing function, the arithmetic processor (not shown) of the support device 10 is stored in a storage unit (not shown) regardless of whether it is shown or not shown. It is realized by executing.

また、支援装置10は、更に不図示の監視・指示機能を備えるものであってもよい。
この監視・指示機能は、コントローラ30の状態をモニタする既存機能に加えて、更に以下に説明する機能を有する。尚、上記既存のモニタ機能は、コントローラ30側の既存機能である異常検出機能と連動して、異常があった場合に異常個所や対応するメモリアドレスなどを画面上に表示する異常通知機能や、この異常が解消されて正常に戻ったことを画面上に表示する復旧通知機能等である。正常に戻った場合も、該当する箇所や対応するメモリアドレス等も画面上に表示する。あるいは、上記メモリアドレスだけでなく対応する変数(変数名など)も表示するようにしてもよい。変数−アドレス対応表16を参照すれば、メモリアドレスに対応する変数名が分かる。
Further, the support device 10 may further include a monitoring / instruction function (not shown).
This monitoring / instruction function has a function described below in addition to the existing function of monitoring the state of the controller 30. In addition, the above-mentioned existing monitor function is linked with the abnormality detection function which is an existing function on the controller 30 side, and when there is an abnormality, the abnormality notification function which displays the abnormality location and the corresponding memory address on the screen, and the abnormality notification function It is a recovery notification function that displays on the screen that this abnormality has been resolved and returned to normal. Even if it returns to normal, the corresponding part and the corresponding memory address are also displayed on the screen. Alternatively, not only the above memory address but also the corresponding variable (variable name, etc.) may be displayed. Variable-Address Correspondence The variable name corresponding to the memory address can be found by referring to Table 16.

そして、本例の監視・指示機能では、更に、ユーザに任意の入力操作を行わせて、それに応じて後述する強制書き込みコマンドや強制設定の解除コマンドを、コントローラ30に送信する処理機能も有する。 Further, the monitoring / instruction function of this example also has a processing function of causing the user to perform an arbitrary input operation and transmitting a forced write command and a forced setting release command, which will be described later, to the controller 30 accordingly.

この処理機能は、例えば、強制書込み対象のアドレスと、このアドレスに強制的に書き込ませる値(強制設定値)を、ユーザに任意に入力させる。ユーザは、例えば、上記異常通知機能による表示があると、表示されたアドレスを、上記強制書込み対象のアドレスとして入力する。また、強制設定値はユーザが任意に決めて入力する。これより、支援装置10は、これら入力されたアドレスと強制設定値を含む上記強制書き込みコマンドを生成してコントローラ30に送信する。 This processing function causes the user to arbitrarily input, for example, an address to be forcibly written and a value (forced setting value) forcibly written to this address. For example, when there is a display by the abnormality notification function, the user inputs the displayed address as the address to be forcibly written. In addition, the forced setting value is arbitrarily determined and input by the user. From this, the support device 10 generates the above-mentioned forced write command including these input addresses and forced setting values and transmits the forced write command to the controller 30.

また、上記処理機能は、例えば、強制設定解除対象のアドレスを、ユーザに任意に入力させる。ユーザは、例えば、上記復旧通知機能による表示があると、表示されたアドレスを、上記強制設定解除対象のアドレスとして入力する。これより、支援装置10は、入力されたアドレスを含む上記強制設定の解除コマンドを生成してコントローラ30に送信する。 Further, the processing function causes the user to arbitrarily input an address to be forcibly released, for example. For example, when there is a display by the recovery notification function, the user inputs the displayed address as the address to be forcibly canceled. From this, the support device 10 generates the above-mentioned forced setting release command including the input address and transmits it to the controller 30.

尚、支援装置10は、ハードウェア的には例えばパソコン等の汎用コンピュータであり、例えば一般的なパソコン等のハードウェア構成を有している。よって、特に図示しないが、例えばCPU等の上記演算プロセッサ、ハードディスク、メモリ等の上記記憶部、液晶ディスプレイ等の表示部、キーボード、マウス等の操作部、通信機能部等を有している。記憶部には予め上記所定のアプリケーションプログラムが記憶されている。 In terms of hardware, the support device 10 is, for example, a general-purpose computer such as a personal computer, and has a hardware configuration such as a general personal computer. Therefore, although not particularly shown, it has, for example, the arithmetic processor such as a CPU, the storage unit such as a hard disk and a memory, a display unit such as a liquid crystal display, an operation unit such as a keyboard and a mouse, and a communication function unit. The predetermined application program is stored in advance in the storage unit.

尚、同様に、コントローラ30も、特に図示しない演算プロセッサや記憶部等を有しており、記憶部には予め所定のアプリケーションプログラムが記憶されている。演算プロセッサがこのアプリケーションプログラムを実行することで、コントローラ30の後述する各種機能が実現される。 Similarly, the controller 30 also has an arithmetic processor, a storage unit, and the like (not shown), and a predetermined application program is stored in the storage unit in advance. When the arithmetic processor executes this application program, various functions described later of the controller 30 are realized.

上記生成したアドレス−補正パターン対応表25は、コントローラ30に転送して図示のアドレス−補正パターン対応表34として記憶させる。
また、図には示していないが、支援装置10は、上記各種補正パターンを記憶している。そして、例えば、アドレス−補正パターン対応表25に登録されている補正パターンは全て、上記対応表25の転送の際に一緒にコントローラ30に転送して記憶させるようにしてもよい。これより、コントローラ30も補正パターンを記憶している。
The generated address-correction pattern correspondence table 25 is transferred to the controller 30 and stored as the illustrated address-correction pattern correspondence table 34.
Further, although not shown in the figure, the support device 10 stores the various correction patterns. Then, for example, all the correction patterns registered in the address-correction pattern correspondence table 25 may be transferred to the controller 30 together with the transfer of the correspondence table 25 and stored. From this, the controller 30 also stores the correction pattern.

尚、補正パターンは後述する一例のようにプログラム部品(サブルーチン等)であり、例えばコンパイルしてコントローラ30で実行可能な形式に変換してからコントローラ30に転送する。 The correction pattern is a program component (subroutine or the like) as in an example described later. For example, it is compiled, converted into a format that can be executed by the controller 30, and then transferred to the controller 30.

上記アドレス−補正パターン対応表25は、上記変数−アドレス対応表16と機器−補正パターン対応表24に基づいて、例えばコンパイラ機能によって自動的に生成される。機器−補正パターン対応表24は、例えば開発者等が予め作成しておく。作成の際に例えばシステム構成情報23を利用するようにしてもよいが、この例に限らない。 The address-correction pattern correspondence table 25 is automatically generated by, for example, a compiler function based on the variable-address correspondence table 16 and the device-correction pattern correspondence table 24. The device-correction pattern correspondence table 24 is prepared in advance by, for example, a developer or the like. For example, the system configuration information 23 may be used at the time of creation, but the present invention is not limited to this example.

尚、上記アドレス−補正パターン対応表25、機器−補正パターン対応表24や、後述する強制ONアドレス一覧35は、後に具体例を示して説明する。
また、コントローラ30は、強制ONアドレス一覧35を保持している。支援装置10から任意のアドレスに対する任意の強制設定値の上記強制書き込み指示(コマンド)があると、このアドレスと強制設定値を強制ONアドレス一覧35に登録すると共に、メモリ32における当該アドレスに強制設定値を書き込む。その後、支援装置10から強制設定の解除コマンドが来るまでの間は、メモリ32の当該アドレスには強制設定値が格納された状態を維持する。
The address-correction pattern correspondence table 25, the device-correction pattern correspondence table 24, and the forced ON address list 35 described later will be described later with specific examples.
Further, the controller 30 holds the forced ON address list 35. When the support device 10 gives the above-mentioned forced write instruction (command) of an arbitrary forced setting value to an arbitrary address, this address and the forced setting value are registered in the forced ON address list 35, and the forced setting is set to the address in the memory 32. Write the value. After that, the state in which the forced setting value is stored is maintained at the address of the memory 32 until the command for canceling the forced setting is received from the support device 10.

そして、コントローラ30は、任意のメモリアドレスに対する上記強制設定の解除コマンドを受信した時、アドレス−補正パターン対応表34を参照して(更に強制ONアドレス一覧35も参照/更新しつつ)、該当する補正パターンがある場合にはこの補正パターンの処理を実行することで、例えば段階的な解除を実施する。段階的な解除とは、上記強制設定値が格納されているメモリアドレスの格納データを、強制設定値から通常値に直ちに戻すのではなく、強制設定値から徐々に通常値に近づけていくことを意味する。 Then, when the controller 30 receives the above-mentioned forced setting release command for an arbitrary memory address, the controller 30 refers to the address-correction pattern correspondence table 34 (while also referring / updating the forced ON address list 35), and corresponds to the corresponding memory address. If there is a correction pattern, the processing of this correction pattern is executed, for example, stepwise cancellation is performed. Gradual release means that the stored data of the memory address in which the above forced setting value is stored is not immediately returned from the forced setting value to the normal value, but gradually approaches the normal value from the forced setting value. means.

尚、通常値とは、上述したように、機械語オブジェクト33中の任意の変数に係わる処理結果として得られる値(例えば任意のセンサの計測値など)であり、通常時はこの変数に対応するメモリアドレスには通常値が書き込まれる。 As described above, the normal value is a value obtained as a result of processing related to an arbitrary variable in the machine language object 33 (for example, a measured value of an arbitrary sensor), and usually corresponds to this variable. A normal value is written to the memory address.

コントローラ30側に(その制御対象機器やセンサ等に)何等かの問題が生じた場合、上記通常値が異常値になり、対応するメモリアドレスには異常値が書き込まれ、以って制御動作に異常が生じる可能性がある。この様な事態が発生することを阻止する為に、この様な場合に該当するメモリアドレスに強制的に所定値(強制設定値)を書き込むと共に、異常状態が解消するまではその状態を維持する。 If any problem occurs on the controller 30 side (the device to be controlled, the sensor, etc.), the above normal value becomes an abnormal value, and the abnormal value is written to the corresponding memory address, so that the control operation is performed. Abnormalities may occur. In order to prevent such a situation from occurring, a predetermined value (forced setting value) is forcibly written to the corresponding memory address in such a case, and the state is maintained until the abnormal state is resolved. ..

すなわち、上記何等かの異常が生じた場合、コントローラ30は、支援装置10から該当するメモリアドレスと強制設定値が送られてくると、このメモリアドレスと強制設定値を強制ONアドレス一覧35に登録すると共に、このメモリアドレスに強制設定値を書き込む。コントローラ30は、随時、制御プログラム(機械語オブジェクト33)を実行し、この実行によりメモリ32からのデータ読出し、メモリ32へのデータ書込み等の処理を含む様々な処理を実行している。 That is, when any of the above abnormalities occur, the controller 30 registers the memory address and the forced setting value in the forced ON address list 35 when the corresponding memory address and the forced setting value are sent from the support device 10. At the same time, write the forced setting value to this memory address. The controller 30 executes a control program (machine language object 33) at any time, and by this execution, executes various processes including processing such as reading data from the memory 32 and writing data to the memory 32.

そして、任意のメモリアドレスへのデータ書込み処理が発生する毎に、書込先のアドレスが「強制ONアドレス一覧」35に存在するか否かをチェックし、存在する場合には、書き込みを実施しないことで、強制的にメモリ格納値を所定値(上記強制設定値)に維持する。この時、本来ならメモリに書き込むべき値(上記“通常値”に相当;以下、ソース値と記す場合もある)は、アキュムレータに格納されている。上記のように異常状態ではソース値は異常値となっている可能性が高いが、強制設定解除時にはソース値は正常値に戻っているはずである。しかしながら、例えばソース値と強制設定値との差が大きい場合など、直ちにソース値に戻すと問題が生じる場合があり得る。これより、本手法では、該当するメモリアドレス(これに対応する変数)に応じた補正パターンを用いて、ソース値や強制設定値等に基づいて、メモリアドレスの格納データ値を決定する。これは、例えば、強制設定値から段階的に(徐々に)ソース値に近づけるように、メモリアドレスの格納データ値を決定する。 Then, every time a data writing process to an arbitrary memory address occurs, it is checked whether or not the writing destination address exists in the "forced ON address list" 35, and if it exists, writing is not performed. By doing so, the memory storage value is forcibly maintained at a predetermined value (the above-mentioned forced setting value). At this time, the value that should be written to the memory (corresponding to the above "normal value"; hereinafter may be referred to as the source value) is stored in the accumulator. As mentioned above, there is a high possibility that the source value is an abnormal value in the abnormal state, but the source value should have returned to the normal value when the forced setting is canceled. However, if the difference between the source value and the forced setting value is large, for example, if the source value is immediately returned to the source value, a problem may occur. From this, in this method, the stored data value of the memory address is determined based on the source value, the forced setting value, etc. by using the correction pattern corresponding to the corresponding memory address (variable corresponding to the corresponding memory address). This determines, for example, the stored data value of the memory address so that it gradually (gradually) approaches the source value from the forced setting value.

尚、上述した(更に後述する)コントローラ30の各種処理は、例えばプログラム実行管理部31が行っても良いが、この例に限らず、不図示の何等かの処理機能部が行っても良い。プログラム実行管理部31は、基本的には制御プログラム(機械語オブジェクト33)を定周期で実行させる既存機能を有する。そして、更に、例えば、この制御プログラム実行に伴って生じる処理(例えば強制ONアドレス一覧35の更新など)を行うようにしてもよい。あるいは、更に、上記支援装置10からのコマンドに応じた処理を行うようにしてもよい。また、後述する図6、図7、図8、図9の処理は、プログラム実行管理部31が実行するものとしてもよいし、この例に限らず、不図示の何等かの処理機能部が行っても良い。 The various processes of the controller 30 described above (further described later) may be performed by, for example, the program execution management unit 31, but the present invention is not limited to this example, and some processing function unit (not shown) may perform the various processes. The program execution management unit 31 basically has an existing function of executing a control program (machine language object 33) at a fixed cycle. Then, for example, a process (for example, updating the forced ON address list 35) that occurs with the execution of this control program may be performed. Alternatively, further, processing may be performed according to a command from the support device 10. Further, the processes of FIGS. 6, 7, 8 and 9 described later may be executed by the program execution management unit 31, and not limited to this example, some processing function unit (not shown) performs the processing. You may.

以下、具体例を示して更に詳細に説明する。
支援装置10は、既存の機能としてシステム構成定義設定部22の機能も有しており、ユーザは、この機能を利用して、コントローラ30が制御する機器の構成の設定を、任意に行うことができる。図2には、この様な機器のシステム構成設定画面例を示す。図2の例では、コントローラが制御する機器が、サーボ1台、入力アナログ機器1台、インバータ1台の構成である。
Hereinafter, a specific example will be described in more detail.
The support device 10 also has a function of the system configuration definition setting unit 22 as an existing function, and the user can arbitrarily set the configuration of the device controlled by the controller 30 by using this function. it can. FIG. 2 shows an example of a system configuration setting screen for such a device. In the example of FIG. 2, the device controlled by the controller has a configuration of one servo, one input analog device, and one inverter.

ユーザは、例えばプログラム(ソースコード13)作成の際に任意の変数名を付ける。例えば各機器の情報にアクセスするために変数名を付ける。上記コンパイラ機能は、ソースコード13をコンパイルして機械語オブジェクト15を生成する際に、各変数に対して任意のメモリアドレスを割当てて、この割当結果を上記変数−アドレス対応表16に登録する。ここまでは既存技術であるが、本手法では更に、例えば予め開発者等が、任意の補正パターンを作成すると共に、これに応じて機器−補正パターン対応表24を作成する。 The user gives an arbitrary variable name when creating a program (source code 13), for example. For example, give a variable name to access the information of each device. When the source code 13 is compiled and the machine language object 15 is generated, the compiler function allocates an arbitrary memory address to each variable and registers the allocation result in the variable-address correspondence table 16. Up to this point, the existing technology has been used, but in this method, for example, a developer or the like creates an arbitrary correction pattern in advance, and prepares a device-correction pattern correspondence table 24 accordingly.

まず、補正パターン作成に関しては、例えば、サーボで位置制御している場合は、指令値を強制的に設定した場合、コントローラが演算した結果の指令値との差が著しい状態で強制設定を解除するとシステムの動作に支障がでる可能性がある。そこで、強制設定の解除をいきなり実施するのではなく、強制設定値をソース値に段階的に近づけていく補正パターンを、予め作成しておく。 First, regarding the correction pattern creation, for example, when the position is controlled by the servo, if the command value is forcibly set, the forced setting is canceled when the difference from the command value calculated by the controller is significant. It may interfere with the operation of the system. Therefore, instead of canceling the forced setting suddenly, a correction pattern for gradually approaching the forced setting value to the source value is created in advance.

尚、必ずしも全ての変数(機器)に関して補正パターンを作成する必要はない。例えば、水位センサの場合、センサの故障時には強制的に値を設定するが、故障が解消された後は、すぐに現在の値で制御しても問題無いと考えられるので、補正パターンを作成する必要はない。 It is not always necessary to create a correction pattern for all variables (devices). For example, in the case of a water level sensor, a value is forcibly set when the sensor fails, but after the failure is resolved, it is considered that there is no problem in controlling with the current value immediately, so create a correction pattern. There is no need.

補正パターンとは、例えば、強制設定の解除の際に、ソース値と強制設定値に基づいて、システムの動作に支障が出ないように、強制設定値から徐々にソース値に近づける処理である。この処理は、予め決められた補正パターンから選択する場合や、ユーザのプログラミングによる補正パターンを実行することも可能である。 The correction pattern is, for example, a process of gradually approaching the source value from the forced setting value based on the source value and the forced setting value so as not to interfere with the operation of the system when the forced setting is canceled. This process can be selected from a predetermined correction pattern, or a correction pattern programmed by the user can be executed.

補正パターンの設定は、図2上の機器毎の設定としてユーザに指定させるか、機器の一覧表で設定する方法がある。例えば一例としては、システム構成定義設定部22の機能により、「機器(変数名)」「属性」「機器識別情報」等をユーザに任意に設定させ、この機器(変数)に関連する補正パターンを設定させると、機器−補正パターン対応表24が生成される。勿論、この例に限るものではなく、例えば図3(a)、(b)に示す構成のテーブルを画面上に表示して、このテーブル内の任意の欄に任意のデータを、ユーザに入力させることで、機器−補正パターン対応表24をユーザに手作業で作成させるようにしてもよい。 The correction pattern can be set by the user as a setting for each device in FIG. 2, or can be set in a list of devices. For example, as an example, the function of the system configuration definition setting unit 22 allows the user to arbitrarily set "device (variable name)", "attribute", "device identification information", etc., and sets a correction pattern related to this device (variable). When set, the device-correction pattern correspondence table 24 is generated. Of course, the present invention is not limited to this example, and for example, a table having the configuration shown in FIGS. 3A and 3B is displayed on the screen, and a user is allowed to input arbitrary data in an arbitrary field in this table. As a result, the device-correction pattern correspondence table 24 may be manually created by the user.

図3(a)(b)に、機器−補正パターン対応表24の具体例を示す。
図示の例では、機器−補正パターン対応表24は、機器(変数名)41、属性42、機器識別情報43、アドレス44、補正パターン45の各データ項目より成る。
FIGS. 3A and 3B show specific examples of the device-correction pattern correspondence table 24.
In the illustrated example, the device-correction pattern correspondence table 24 includes each data item of the device (variable name) 41, the attribute 42, the device identification information 43, the address 44, and the correction pattern 45.

ソースコード13に記述されている各変数のなかで、ユーザが補正パターンを用いる必要があると判断した変数全てについて、機器−補正パターン対応表24に登録される。つまり、この様な変数それぞれについて、その変数名が機器(変数名)41に登録されると共に、少なくともその変数に対応付けられた補正パターンの識別情報(ファイル名等)が補正パターン45の欄に格納される。また、その変数に係わる所定の情報(図示の例では属性42、機器識別情報43)も更に格納されてもよいが、これらは本説明上は無くてもよいので、特に説明しない。 Among the variables described in the source code 13, all the variables that the user determines that it is necessary to use the correction pattern are registered in the device-correction pattern correspondence table 24. That is, for each of such variables, the variable name is registered in the device (variable name) 41, and at least the identification information (file name, etc.) of the correction pattern associated with the variable is entered in the correction pattern 45 column. It is stored. Further, predetermined information related to the variable (attribute 42, device identification information 43 in the illustrated example) may be further stored, but these may not be described in this description and will not be described in particular.

また、アドレス44の欄は、上記ユーザによる登録の際には空欄となっており(図3(a)はこの未完成状態を示している)、その後、ソースコード13のコンパイルの際にその変数に割り当てられたメモリアドレスが、コンパイル機能によってアドレス44の欄に自動的に格納される。これによって、機器−補正パターン対応表24は、図3(b)に示すような完成状態となる。あるいは、既に生成済みの変数−アドレス対応表16を用いて、アドレス44の欄に上記メモリアドレスを格納することで、機器−補正パターン対応表24を上記完成状態とするようにしてもよい。 Further, the field of the address 44 is blank when the user registers (FIG. 3 (a) shows this incomplete state), and then the variable is used when the source code 13 is compiled. The memory address assigned to is automatically stored in the field of address 44 by the compilation function. As a result, the device-correction pattern correspondence table 24 is in a completed state as shown in FIG. 3 (b). Alternatively, the device-correction pattern correspondence table 24 may be brought into the completed state by storing the memory address in the column of the address 44 using the variable-address correspondence table 16 that has already been generated.

尚、上記メモリアドレス割当に伴って変数−アドレス対応表16が作成され、これは上述したように各変数の変数名に対応付けて、その変数への割当メモリアドレスが登録されているものである。この変数と割当メモリアドレスとの対応関係は、上記の通り機器−補正パターン対応表24に含まれているが、対応表24に登録される変数は補正パターンが関連付けられたものであるのに対して、対応表16には基本的に全ての変数について登録されるという違いはある。 A variable-address correspondence table 16 is created in association with the above memory address allocation, and as described above, the allocated memory address for each variable is registered in association with the variable name of each variable. .. The correspondence between this variable and the allocated memory address is included in the device-correction pattern correspondence table 24 as described above, whereas the variables registered in the correspondence table 24 are those in which the correction pattern is associated. Therefore, there is a difference in the correspondence table 16 that basically all variables are registered.

また、尚、コンパイラ機能による各変数へのメモリアドレス割当て処理は、既存の処理であり、ここではアドレス決定方法については特に説明しない。
支援装置10は、例えば上記機器−補正パターン対応表24からアドレス−補正パターン対応表25を生成して、これをコントローラ30に転送する。コントローラ30は、これを図示のアドレス−補正パターン対応表34として記憶する。
In addition, the memory address allocation process for each variable by the compiler function is an existing process, and the address determination method is not particularly described here.
The support device 10 generates, for example, the address-correction pattern correspondence table 25 from the device-correction pattern correspondence table 24, and transfers this to the controller 30. The controller 30 stores this as the illustrated address-correction pattern correspondence table 34.

図3(c)にアドレス−補正パターン対応表25(34)の具体例を示す。
図示の例では、アドレス−補正パターン対応表25(34)は、アドレス51、補正パターン52、実行中フラグ53の各データ項目より成る。
FIG. 3C shows a specific example of the address-correction pattern correspondence table 25 (34).
In the illustrated example, the address-correction pattern correspondence table 25 (34) includes each data item of the address 51, the correction pattern 52, and the executing flag 53.

機器−補正パターン対応表24から上記アドレス44と補正パターン45を取得してアドレス51と補正パターン52に格納することで、アドレス−補正パターン対応表25(34)が生成される。尚、実行中フラグ53は、コントローラ30側で後述する処理中に設定/参照/更新されるものであるが、代わりに強制ONアドレス一覧35の実行中フラグ65を用いてもよいので、実行中フラグ53は必ずしも必要ない。実行中フラグ53(65)の利用方法については、詳しくは後述する。 By acquiring the address 44 and the correction pattern 45 from the device-correction pattern correspondence table 24 and storing them in the address 51 and the correction pattern 52, the address-correction pattern correspondence table 25 (34) is generated. The execution flag 53 is set / referenced / updated during the process described later on the controller 30 side, but the execution flag 65 of the forced ON address list 35 may be used instead, so that the execution flag 53 is being executed. Flag 53 is not always necessary. The method of using the executing flag 53 (65) will be described in detail later.

ここで、ユーザが補正パターンを定義する例について記載する。
上記の通り、補正パターンは、ユーザが所望の内容のものを自由に作成してよい。
図4に、補正パターンの一例を示す。補正パターンは、コントローラ30側で実行させるプログラム部品である。
Here, an example in which the user defines the correction pattern will be described.
As described above, the correction pattern may be freely created by the user as desired.
FIG. 4 shows an example of the correction pattern. The correction pattern is a program component to be executed on the controller 30 side.

図4に示す補正パターンの具体例は、強制ONアドレス一覧35を利用するものであって、強制ONアドレス一覧35が例えば図5に示す内容であることを前提としている。
これより、図4の補正パターンの説明の前に、図5について簡単に説明しておく。
A specific example of the correction pattern shown in FIG. 4 uses the forced ON address list 35, and it is premised that the forced ON address list 35 has the contents shown in FIG. 5, for example.
From this, before the explanation of the correction pattern of FIG. 4, FIG. 5 will be briefly described.

図5は、強制ONアドレス一覧35のデータ構成例である。
図5の例では、強制ONアドレス一覧35は、管理番号61、強制ONメモリアドレス62、ソース値63、補正パターン64、実行中フラグ65、強制設定値66、実行回数67、開始時刻68の各データ項目より成る。尚、管理番号61は各レコードに付されるシリアル番号等である。
FIG. 5 is a data configuration example of the forced ON address list 35.
In the example of FIG. 5, the forced ON address list 35 has a control number 61, a forced ON memory address 62, a source value 63, a correction pattern 64, an executing flag 65, a forced setting value 66, an execution number of 67, and a start time 68. Consists of data items. The control number 61 is a serial number or the like attached to each record.

任意のメモリアドレスに係わる何等かの異常が発生すると、支援装置10はコントローラ30に対して上記強制書き込みコマンド(強制設定コマンドと言う場合もあるものとする)を送信する。この強制設定コマンドには上記異常に係わるメモリアドレスと、支援装置10側でユーザが任意に設定した強制設定値が含まれている。強制設定コマンド中のこれらのデータが、強制ONアドレス一覧35の強制ONメモリアドレス62と強制設定値66の欄に格納される。更に、この強制ONメモリアドレス62に対応する補正パターンの名称などをアドレス−補正パターン対応表34から取得して、補正パターン64に格納する。対応する補正パターンが無い場合には、補正パターン64には“無し”を格納する。 When some abnormality related to an arbitrary memory address occurs, the support device 10 transmits the above-mentioned forced write command (sometimes called a forced setting command) to the controller 30. This forced setting command includes a memory address related to the above abnormality and a forced setting value arbitrarily set by the user on the support device 10 side. These data in the forced setting command are stored in the fields of the forced ON memory address 62 and the forced setting value 66 in the forced ON address list 35. Further, the name of the correction pattern corresponding to the forced ON memory address 62 is acquired from the address-correction pattern correspondence table 34 and stored in the correction pattern 64. If there is no corresponding correction pattern, "none" is stored in the correction pattern 64.

強制ONアドレス一覧35には、基本的には、強制設定を実行中の変数に関する所定の情報が格納されるのであり、強制設定が完全に解除された変数の情報は強制ONアドレス一覧35から削除される。但し、本手法では、補正パターンがある場合には、解除コマンドを受信してから強制設定が完全に解除されるまでにある程度時間が掛かる場合があり、その間、強制ONアドレス一覧35を参照/更新しながら後述する解除時の処理(図8、図9)が実行される。解除コマンドには、例えば、解除対象の変数に係わるメモリアドレスが含まれる。 The forced ON address list 35 basically stores predetermined information about the variable for which the forced setting is being executed, and the information of the variable for which the forced setting is completely canceled is deleted from the forced ON address list 35. Will be done. However, in this method, if there is a correction pattern, it may take some time from receiving the release command until the forced setting is completely canceled. During that time, refer to / update the forced ON address list 35. At the same time, the processing at the time of cancellation (FIGS. 8 and 9), which will be described later, is executed. The release command includes, for example, the memory address related to the variable to be released.

デフォルト状態では、開始時刻68は“NULL”であり、実行回数67は‘0’であり、実行中フラグ65は“FALSE”である。コントローラ30は、上記強制設定の解除コマンドを受信すると、強制ONアドレス一覧35の該当レコード(その強制ONメモリアドレス62が、上記解除対象のメモリアドレスと一致するレコード)について、その補正パターン64に何等かの補正パターンの名称等が格納されている場合には、この補正パターン64の処理を開始する。その際、開始時刻68に現在時刻を格納すると共に、実行中フラグ65を“FALSE”から“TRUE”に変更し、アキュムレータの値をソース値63に格納する。 In the default state, the start time 68 is "Null", the number of executions 67 is "0", and the execution flag 65 is "FALSE". When the controller 30 receives the forced ON address release command, the controller 30 applies the correction pattern 64 to the corresponding record in the forced ON address list 35 (the record whose forced ON memory address 62 matches the memory address to be released). When the name or the like of the correction pattern is stored, the processing of the correction pattern 64 is started. At that time, the current time is stored in the start time 68, the execution flag 65 is changed from "FALSE" to "TRUE", and the accumulator value is stored in the source value 63.

その後、補正パターン64の処理を繰り返し実行するが、仮に補正パターン64が図4の内容である場合には、処理実行後に、まず引数として、ソース値63と強制設定値66と実行回数67と経過時間を取得する。経過時間は、現在時刻−開始時刻68により求める。 After that, the process of the correction pattern 64 is repeatedly executed, but if the correction pattern 64 has the contents of FIG. 4, the source value 63, the forced setting value 66, and the number of executions 67 are first executed as arguments after the process is executed. Get the time. The elapsed time is calculated by the current time-start time 68.

そして、上記引数を用いて、図示の処理を実行することになる。すなわち、未だ実行回数67が規定値(=10)に達していないならば、新設定値の値を「強制設定値66−(強制設定値66−ソース値63)/(10−実行回数67)」によって求める。また、実行中フラグ65は“TRUE”を維持する。一方、実行回数67が規定値(=10)に達したならば、新設定値の値はソース値とし、実行中フラグ65を“FALSE”に戻す。 Then, the illustrated process is executed using the above arguments. That is, if the number of executions 67 has not yet reached the specified value (= 10), the value of the new setting value is set to "forced setting value 66- (forced setting value 66-source value 63) / (10-number of executions 67). Asked by. In addition, the running flag 65 maintains "TRUE". On the other hand, when the number of executions 67 reaches the specified value (= 10), the value of the newly set value is set as the source value, and the execution flag 65 is returned to "FALSE".

この様に、図示例は、新設定値を、10分割でソース値に近づけ、10回目でソース値になり補正パターンの実行をやめる例である。
尚、上記新設定値とは、上記解除対象のメモリアドレスに格納する値である。上記の例では、上記解除対象のメモリアドレスに格納する値を、強制設定値66から徐々にソース値63に近づけていき、最終的にはソース値63となるようにしている。
In this way, the illustrated example is an example in which the new set value is brought closer to the source value by 10 divisions, becomes the source value at the 10th time, and the execution of the correction pattern is stopped.
The new setting value is a value stored in the memory address to be released. In the above example, the value stored in the memory address to be released is gradually brought closer to the source value 63 from the forced setting value 66, and finally becomes the source value 63.

以下、図6〜図9のフローチャート図について説明する。
図6、図7、図8、図9は、何れも、コントローラ30で実行される処理である。
図6は、強制設定コマンド受信の際の処理フローチャート図である。
The flowcharts of FIGS. 6 to 9 will be described below.
6, FIG. 7, FIG. 8 and FIG. 9 are all processes executed by the controller 30.
FIG. 6 is a processing flowchart when receiving the forced setting command.

支援装置10は、上記の通り、任意の変数について何等かの異常があった場合、上記強制設定コマンドをコントローラ30へ送信する。これを受けてコントローラ30は、上記のように、このコマンド中の所定の情報を強制ONアドレス一覧35に新規登録する(ステップS11)。これについては既に説明済みであり、ここでは簡単に説明するならば、強制ONアドレス一覧35に新規レコードが追加されると共にコマンド中のアドレスと強制設定値が、新規レコードの強制ONメモリアドレス62と強制設定値66の欄に格納される。 As described above, the support device 10 transmits the above-mentioned forced setting command to the controller 30 when there is any abnormality in any variable. In response to this, the controller 30 newly registers the predetermined information in this command in the forced ON address list 35 as described above (step S11). This has already been explained, and to briefly explain here, a new record is added to the forced ON address list 35, and the address and the forced setting value in the command are the forced ON memory address 62 of the new record. It is stored in the column of the forced setting value 66.

続いて、インデックスを初期値(=1)に設定し(ステップS12)、ステップS13以降の処理を、ステップS14またはS15がYESとなるまで、インデックスを更新しつつ繰り返し実行する。尚、インデックスは、アドレス−補正パターン対応表34における現在の処理対象レコードを示すものであり、例えばインデックス=2は、アドレス−補正パターン対応表34における2番目のレコードを示す。 Subsequently, the index is set to the initial value (= 1) (step S12), and the processes after step S13 are repeatedly executed while updating the index until step S14 or S15 becomes YES. The index indicates the current processing target record in the address-correction pattern correspondence table 34, and for example, index = 2 indicates the second record in the address-correction pattern correspondence table 34.

まず、アドレス−補正パターン対応表34から、現在のインデックスが示すレコードのアドレス51を取得し(ステップS13)、このアドレス51がNULLである場合には(ステップS14,YES)、本処理を終了する。 First, the address 51 of the record indicated by the current index is acquired from the address-correction pattern correspondence table 34 (step S13), and if this address 51 is NULL (step S14, YES), this process ends. ..

尚、対応表34では、登録レコード群の次のレコード(最後のレコード)のアドレス51がNULLとなるようにしてある。これより、ステップS13でアドレス51がNULLである場合とは、対応表34の全ての登録レコードについてステップS15の判定済みであり且つ全て判定結果がNOであった場合であり、つまり、上記新規登録した変数については対応する補正パターンが無い場合である。よって、この場合には、強制ONアドレス一覧35における上記新規登録レコードの補正パターン64は“無し”となり、これより解除の際には直ちにソース値に戻される。 In the correspondence table 34, the address 51 of the next record (last record) of the registered record group is set to NULL. From this, the case where the address 51 is NULL in step S13 is the case where the determination in step S15 has been completed for all the registered records in the correspondence table 34 and all the determination results are NO, that is, the above-mentioned new registration. This is the case when there is no corresponding correction pattern for the variable. Therefore, in this case, the correction pattern 64 of the newly registered record in the forced ON address list 35 becomes "none", and when it is canceled from this, it is immediately returned to the source value.

また、上記ステップS13で取得したアドレス51が、新規登録アドレス(上記新規レコードの強制ONメモリアドレス62)と一致するか否かをチェックし(ステップS15)、一致する場合にはステップS16の処理を実行して本処理を終了する。 Further, it is checked whether or not the address 51 acquired in step S13 matches the newly registered address (forced ON memory address 62 of the new record) (step S15), and if they match, the process of step S16 is performed. Execute and end this process.

ここで、本例では上記インデックスは最初は‘1’であり、最初はアドレス−補正パターン対応表34の先頭レコードのアドレス51を取得し(ステップS13)、これが上記新規登録アドレス一致するか否かをチェックする(ステップS15)。不一致であれば(ステップS15,NO)、インデックスを+1インクリメントして処理対象を更新してステップS13に戻る。上記一例では、今度はアドレス−補正パターン対応表34の2番目のアドレス51を取得し(ステップS13)、これがNULLか否かをチェックしたり(ステップS14)、NULLでなければ上記新規登録アドレスと一致するか否かをチェックすることになる(ステップS15)。 Here, in this example, the index is initially '1', and the address 51 of the first record of the address-correction pattern correspondence table 34 is first acquired (step S13), and whether or not this matches the newly registered address. Is checked (step S15). If they do not match (steps S15, NO), the index is incremented by +1 to update the processing target, and the process returns to step S13. In the above example, this time, the second address 51 of the address-correction pattern correspondence table 34 is acquired (step S13), and it is checked whether or not this is NULL (step S14). If it is not NULL, the newly registered address is used. It will be checked whether or not they match (step S15).

この様にして、新規登録アドレスがアドレス−補正パターン対応表34に登録されているか否かをチェックし、登録されている場合にはステップS16の処理を実行する。ステップS16では、該当するアドレス(上記一致するアドレス51)に対応する補正パターン52(ファイル名等)を、ステップS11で強制ONアドレス一覧35に新規追加したレコードにおける補正パターン64の欄に格納すると共に、当該レコードの実行中フラグ65は“FALSE”に設定する。 In this way, it is checked whether or not the newly registered address is registered in the address-correction pattern correspondence table 34, and if it is registered, the process of step S16 is executed. In step S16, the correction pattern 52 (file name, etc.) corresponding to the corresponding address (matching address 51) is stored in the correction pattern 64 column of the record newly added to the forced ON address list 35 in step S11. , The running flag 65 of the record is set to "FALSE".

この様にして、強制設定コマンド受信毎に、強制ONアドレス一覧35に新規レコードを追加すると共に、この新規レコードの強制ONメモリアドレス62、補正パターン64、実行中フラグ65、強制設定値66に、上記のようにデータが設定される。 In this way, every time a forced setting command is received, a new record is added to the forced ON address list 35, and the forced ON memory address 62, the correction pattern 64, the executing flag 65, and the forced setting value 66 of this new record are added. The data is set as described above.

支援装置10のユーザが、上記強制設定を行った変数に係わる異常が解消した等と判断した場合、所定の操作を行うことで、支援装置10は強制設定の解除コマンドをコントローラ30へ送信する。この解除コマンドには解除対象の変数のメモリアドレスが含まれている。 When the user of the support device 10 determines that the abnormality related to the variable for which the forced setting has been made has been resolved, the support device 10 transmits a command for canceling the forced setting to the controller 30 by performing a predetermined operation. This release command contains the memory address of the variable to be released.

コントローラ30は、上記解除コマンドを受信すると、図7の処理を実行する。
図7は、強制設定の解除コマンド受信の際の処理フローチャート図である。
図7の処理では、まず、インデックスを初期値(=1)に設定し(ステップS21)、ステップS22以降の処理を、ステップS23またはS24がYESとなるまで、インデックスを更新しつつ繰り返し実行する。尚、本処理におけるインデックスとは、強制ONアドレス一覧35における現在の処理対象レコードを示すものとなる。
Upon receiving the release command, the controller 30 executes the process shown in FIG. 7.
FIG. 7 is a processing flowchart when receiving the forced setting release command.
In the process of FIG. 7, first, the index is set to the initial value (= 1) (step S21), and the processes after step S22 are repeatedly executed while updating the index until step S23 or S24 becomes YES. The index in this processing indicates the current processing target record in the forced ON address list 35.

まず、強制ONアドレス一覧35から、現在のインデックスが示すレコードの強制ONメモリアドレス62を取得し(ステップS22)、このアドレス62がNULLである場合には(ステップS23,YES)、本処理を終了する。 First, the forced ON memory address 62 of the record indicated by the current index is acquired from the forced ON address list 35 (step S22), and if this address 62 is NULL (step S23, YES), this process ends. To do.

このアドレス62がNULLではなく(ステップS23,NO)且つ上記解除コマンドのアドレスと一致する場合には(ステップS24,YES)、強制ONアドレス一覧35の処理対象レコードの実行中フラグ65を“TRUE”に設定する。 If this address 62 is not NULL (step S23, NO) and matches the address of the release command (step S24, YES), the execution flag 65 of the processing target record in the forced ON address list 35 is set to "TRUE". Set to.

上記アドレス62が上記解除コマンドのアドレスと不一致の場合には(ステップS24,NO)、インデックスを+1インクリメントして(ステップS26)ステップS22に戻る。解除コマンドのアドレスが、強制ONアドレス一覧35に登録されていない場合に、上記ステップS23の判定がYESとなることになる。図5の例では、処理対象が3番目のレコードとなったときに、ステップS23の判定がYESとなる。 If the address 62 does not match the address of the release command (step S24, NO), the index is incremented by +1 (step S26) and the process returns to step S22. If the address of the release command is not registered in the forced ON address list 35, the determination in step S23 is YES. In the example of FIG. 5, when the processing target becomes the third record, the determination in step S23 is YES.

上記図7の処理例では、解除対象の変数が、強制ONアドレス一覧35に登録されている場合には、該当レコードの実行中フラグ65を“TRUE”に設定する。実行中フラグ65を“TRUE”に変更することは解除処理の開始を意味する。 In the processing example of FIG. 7, when the variable to be released is registered in the forced ON address list 35, the execution flag 65 of the corresponding record is set to “TRUE”. Changing the running flag 65 to "TRUE" means the start of the release process.

コントローラ30は、機械語オブジェクト33を例えば定周期で繰り返し実行する。機械語オブジェクト33を実行することで様々な処理を行い、その中で任意のメモリアドレスへの書込み処理が発生する毎に図8、図9の処理を実行する。 The controller 30 repeatedly executes the machine language object 33, for example, at a fixed cycle. Various processes are performed by executing the machine language object 33, and the processes of FIGS. 8 and 9 are executed every time a write process to an arbitrary memory address occurs.

図8、図9は、書込み処理に係わる処理を示すフローチャート図(その1)、(その2)であり、1つの処理を2つの図面に分けて示している。よって、図8と図9を特に区別せずに纏めて図8等などと記すものとする。 8 and 9 are flowcharts (No. 1) and (No. 2) showing processes related to the writing process, and one process is divided into two drawings. Therefore, FIG. 8 and FIG. 9 are collectively referred to as FIG. 8 and the like without particular distinction.

図8等の処理では、まず、書込み先のメモリアドレスが強制ONアドレス一覧35に存在するか否かをチェックし(ステップS31)、存在しない場合には(ステップS31,NO)書込み先アドレスは強制設定中ではないことになるので、通常のメモリ書込み処理を実行して(ステップS32)本処理を終了する。通常のメモリ書込み処理とは、上記通常値を上記書込み先のメモリアドレスに格納する処理である。通常値はアキュムレータに格納されている。 In the processing of FIG. 8 and the like, first, it is checked whether or not the memory address of the writing destination exists in the forced ON address list 35 (step S31), and if it does not exist (step S31, NO), the writing destination address is forced. Since the setting is not in progress, a normal memory write process is executed (step S32) to end this process. The normal memory write process is a process of storing the normal value in the memory address of the write destination. Normal values are stored in the accumulator.

一方、書込み先のメモリアドレスが強制ONアドレス一覧35に存在する場合には(ステップS31,YES)、書込み先アドレスは強制設定中であることになる。その場合、まず、強制ONアドレス一覧35における該当レコードの実行中フラグ65が“TRUE”であるか否かをチェックする(ステップS33)。 On the other hand, when the memory address of the write destination exists in the forced ON address list 35 (step S31, YES), the write destination address is being forcibly set. In that case, first, it is checked whether or not the executing flag 65 of the corresponding record in the forced ON address list 35 is “TRUE” (step S33).

そして、上記実行中フラグ65が“FALSE”である場合には(ステップS33,NO)、メモリへの書込みを実施することなく(ステップS35)本処理を終了する。この場合は、書込み先アドレスは強制設定中であり且つ未だ解除は始まっていない状態であるからである。尚、その際、現在のアキュムレータの格納データ(通常値)を、強制ONアドレス一覧35における該当レコードのソース値63の欄に格納するようにしてもよい(ステップS34)。尚、通常の書込み処理は、現在のアキュムレータの格納データを、書込み先のメモリアドレスに書き込む処理となる。 Then, when the executing flag 65 is "FALSE" (step S33, NO), this process ends without writing to the memory (step S35). In this case, the write-destination address is being forcibly set and the release has not yet started. At that time, the stored data (normal value) of the current accumulator may be stored in the column of the source value 63 of the corresponding record in the forced ON address list 35 (step S34). The normal writing process is a process of writing the stored data of the current accumulator to the memory address of the writing destination.

尚、上記該当レコードとは、その強制ONメモリアドレス62が上記書込み先のメモリアドレスと一致するレコードである。
一方、上記該当レコードの実行中フラグ65が“TRUE”である場合には(ステップS33,YES)、まず、該当レコードの補正パターン64の欄に補正パターンがあるか否かをチェックし(ステップS36)、補正パターンが“無し”の場合には(ステップS36,NO)、該当レコードを強制ONアドレス一覧35から削除して(ステップS37)本処理を終了する。これより、その後、このメモリアドレスへの書込み処理に伴う図8等の処理が実行されると、今度はステップS31がNOとなり、通常のメモリ書込み処理が行われることになる。つまり、このケースでは従来通りの単純な強制設定解除が行われることになる。ステップS37の処理の際に、上記通常の書込み処理も行うようにしてもよい。
The corresponding record is a record whose forced ON memory address 62 matches the memory address of the writing destination.
On the other hand, when the executing flag 65 of the corresponding record is "TRUE" (step S33, YES), first, it is checked whether or not there is a correction pattern in the correction pattern 64 column of the corresponding record (step S36). ), If the correction pattern is “none” (step S36, NO), the corresponding record is deleted from the forced ON address list 35 (step S37), and this process is terminated. From this, when the process of FIG. 8 or the like accompanying the write process to the memory address is executed thereafter, step S31 becomes NO this time, and the normal memory write process is performed. In other words, in this case, a simple forced cancellation as before is performed. At the time of the process of step S37, the above-mentioned normal write process may also be performed.

一方で、該当レコードに補正パターンが登録されている場合には(ステップS36,YES)、ステップS38〜ステップS46の処理を実行したうえで、もしステップS46の判定がNOであれば上記ステップS37の処理が行われて、解除処理が完了することになる。換言すれば、ステップS46がNOとなるまでの間は、本手法による段階的な解除処理の途中の状態であると言える。 On the other hand, when the correction pattern is registered in the corresponding record (step S36, YES), the processes of steps S38 to S46 are executed, and if the determination in step S46 is NO, the step S37 is performed. The process is performed and the release process is completed. In other words, until step S46 becomes NO, it can be said that the state is in the middle of the stepwise release process by this method.

まず、ステップS38で、現在時刻を取得する。そして、強制ONアドレス一覧35の該当レコードの開始時刻68がNULLである場合すなわち未だ段階的な解除処理が開始されていない場合には(ステップS39,YES)、現在時刻を開始時刻68に格納し(ステップS40)、以って段階的な解除処理の開始とする。一方、開始時刻68がNULLではない場合には(ステップS39,NO)、「現在時刻−開始時刻68」によって開始からの経過時間を求める(ステップS41)。尚、ステップS41の処理はステップS40を実行する場合にも行うが、当然、この場合は経過時間は‘0’となる。 First, in step S38, the current time is acquired. Then, when the start time 68 of the corresponding record in the forced ON address list 35 is NULL, that is, when the stepwise release process has not been started yet (steps S39, YES), the current time is stored in the start time 68. (Step S40) Therefore, the stepwise release process is started. On the other hand, when the start time 68 is not NULL (step S39, NO), the elapsed time from the start is obtained by "current time-start time 68" (step S41). The process of step S41 is also performed when step S40 is executed, but of course, in this case, the elapsed time is '0'.

そして、上記該当レコードの補正パターン64(ファイル名など)に基づいて、該当する補正パターン(そのプログラムファイル等)を獲得し(ステップS42)、また、現在のアキュムレータの格納データを上記該当レコードのソース値63の欄に上書き格納する(ステップS43)。尚、ステップS43の処理は段階的な解除処理の開始時(ステップS40の処理が行われたとき)のみ実行するようにしてもよい。 Then, based on the correction pattern 64 (file name, etc.) of the corresponding record, the corresponding correction pattern (the program file, etc.) is acquired (step S42), and the stored data of the current accumulator is used as the source of the corresponding record. The value 63 is overwritten and stored (step S43). The process of step S43 may be executed only at the start of the stepwise release process (when the process of step S40 is performed).

そして、上記ステップS42で獲得した補正パターンを実行する(ステップS44)。補正パターンが上記図4の例の場合、上記強制ONアドレス一覧35の上記該当レコードのソース値63、強制設定値66、実行回数67、及びステップS41で求めた経過時間を、引数として、図4に示す処理を実行する。この処理については説明済みである。 Then, the correction pattern acquired in step S42 is executed (step S44). When the correction pattern is the example of FIG. 4, FIG. 4 takes as arguments the source value 63, the forced setting value 66, the number of executions 67, and the elapsed time obtained in step S41 of the corresponding record in the forced ON address list 35. Execute the process shown in. This process has already been described.

そして、補正パターンを実行したら、所定の後処理を実行する(ステップS45)。後処理は、例えば、実行回数67の更新(+1インクリメント)、実行中フラグ65の更新などである。このうち、実行中フラグ65の更新に関しては、図4の例の場合、実行回数が未だ規定値(=10)に達していない場合には現状(=“TRUE”)を維持し、実行回数が規定値に達したら“FALSE”とする。 Then, after executing the correction pattern, a predetermined post-processing is executed (step S45). The post-processing includes, for example, updating the number of executions 67 (+1 increment), updating the running flag 65, and the like. Of these, regarding the update of the executing flag 65, in the case of the example of FIG. 4, if the number of executions has not yet reached the specified value (= 10), the current state (= “TRUE”) is maintained and the number of executions is increased. When the specified value is reached, it is set to "FALSE".

これより、ステップS45に続くステップS46の「実行中フラグ65は“TRUEか?”」の判定は、実行回数が未だ規定値(=10)に達していない場合にはYESとなってそのまま本処理を終了することになり、実行回数が規定値に達したらNOとなって上記ステップS37の処理を実行することになる。ステップS37では、上記の通り、上記該当レコードを強制ONアドレス一覧35から削除することになり、以って段階的な解除処理が完了することになる。 From this, "Is the running flag 65" TRUE? "In step S46 following step S45. If the number of executions has not reached the specified value (= 10), the judgment of "" is YES and the process is terminated as it is, and if the number of executions reaches the specified value, it becomes NO and the above. The process of step S37 will be executed. In step S37, as described above, the corresponding record is deleted from the forced ON address list 35, and thus the stepwise release process is completed.

尚、上述した処理は一例を示すものであり、この例に限らない。例えば、上述した一例では処理の終了判定に“実行回数”を用いた。つまり、実行回数67が規定値(=10)に達したら実行中フラグ65を“FALSE”とすることで、ステップS46の判定がNOとなるようにしていたが、“実行回数”の代わりに上記“経過時間”を用いるようにしてもよい。つまり、経過時間が、予め設定される所定時間Tを越えたら(経過時間>T)、実行中フラグ65を“FALSE”とするようにしてもよい。勿論、これも一例であり、この例に限らず、例えば“実行回数”と“経過時間”の両方を用いて何等かの終了判定を行うようにしてもよい。 The above-mentioned process is an example, and is not limited to this example. For example, in the above-mentioned example, "execution count" was used to determine the end of processing. That is, when the number of executions 67 reaches the specified value (= 10), the execution flag 65 is set to "FALSE" so that the determination in step S46 becomes NO, but instead of the "number of executions", the above The "elapsed time" may be used. That is, when the elapsed time exceeds the preset predetermined time T (elapsed time> T), the execution flag 65 may be set to "FALSE". Of course, this is also an example, and the present invention is not limited to this example, and for example, some end determination may be made using both the "execution count" and the "elapsed time".

また、上記補正パターンは、上述した一例では、解除対象の変数に係わるメモリアドレスの格納値を、強制設定値から徐々に(段階的に)通常値に近づけていき、最終的には通常値に戻す処理としたが、この例に限らない。補正パターンは、様々な処理であってよいが、少なくとも、補正パターンを実行することで、上記メモリアドレスの格納値を、強制設定値から直ちに通常値に戻すことは行わないようにする。補正パターンの処理は、システムの動作に支障が発生しないように通常値に戻すことができるものであれば何でも良い。 Further, in the above-mentioned example, the correction pattern gradually (stepwise) approaches the normal value of the stored value of the memory address related to the variable to be released from the forced setting value, and finally becomes the normal value. The process is to return, but it is not limited to this example. The correction pattern may be various processes, but at least, by executing the correction pattern, the stored value of the memory address is not immediately returned to the normal value from the forced setting value. The processing of the correction pattern may be any processing as long as it can be returned to the normal value so as not to interfere with the operation of the system.

尚、ユーザが機器の構成情報を定義する時、機器によっては補正パターンのテンプレートが定義できるものもあり、機器に対応した補正パターンのテンプレートを用意し、ユーザがシステム構成定義設定部22で任意の機器を設定する際に、テンプレート(機器−補正パターンDB21)の補正パターンを設定するようにしてもよい。尚、システム構成定義設定部22は、ユーザに任意のシステム構成情報23を入力させる機能部であり、特に詳細には説明しない。上記図2がシステム構成情報23の具体例を表示したものと見做してよく、上記の通り、ユーザは例えばシステム構成情報23を参照(表示)して上記機器−補正パターン対応表24を作成するようにしてもよい。 When the user defines the device configuration information, the correction pattern template may be defined depending on the device. A correction pattern template corresponding to the device is prepared, and the user can arbitrarily define the correction pattern template in the system configuration definition setting unit 22. When setting the device, the correction pattern of the template (device-correction pattern DB21) may be set. The system configuration definition setting unit 22 is a functional unit that allows the user to input arbitrary system configuration information 23, and will not be described in detail. It can be regarded that FIG. 2 shows a specific example of the system configuration information 23, and as described above, the user refers (displays), for example, the system configuration information 23 to create the device-correction pattern correspondence table 24. You may try to do it.

図10は、上記テンプレート(機器−補正パターンDB21)の具体例である。
図示の例のテンプレート21は、機器(型式)71、属性72、オフセット73、補正パターン74の各データ項目より成る。機器(型式)71には任意に機器の識別情報(例えば型式など)が格納され、任意の機器71の各属性72(指令値、現在値、加速値など)に応じた補正パターンの識別情報(ファイル名など)が、補正パターン74の欄に登録されている。
FIG. 10 is a specific example of the above template (equipment-correction pattern DB21).
The template 21 of the illustrated example includes each data item of the device (model) 71, the attribute 72, the offset 73, and the correction pattern 74. The device (model) 71 arbitrarily stores device identification information (for example, model), and the correction pattern identification information (command value, current value, acceleration value, etc.) according to each attribute 72 (command value, current value, acceleration value, etc.) of the arbitrary device 71. (File name, etc.) is registered in the correction pattern 74 column.

機器によっては、補正パターンが予めある程度決定できるものがあるので、機器毎に補正パターンのテンプレートを登録したDB(データベース)を用意する。この一例が上記機器−補正パターンDB21である。 Depending on the device, the correction pattern can be determined to some extent in advance, so a DB (database) in which the correction pattern template is registered is prepared for each device. An example of this is the device-correction pattern DB 21.

上記機器(型式)71には、機器を識別するための情報を格納する。例えば、製品の型番などであり、補正パターンが予め決定できる機器の型番などが、機器(型式)71に登録される。属性72は、各機器が持っている属性を示す。機器毎に所有する属性が異なるが、機器毎に固定の情報である。 Information for identifying the device is stored in the device (model) 71. For example, the model number of the device whose correction pattern can be determined in advance, such as the model number of the product, is registered in the device (model) 71. Attribute 72 indicates an attribute possessed by each device. The attributes possessed by each device are different, but the information is fixed for each device.

オフセット73は、その属性の情報が割り付けられている相対位置情報であり、メモリのアドレスを算出する時に必要な情報である。例えば、RYT-VE を%IW1.0 に割り付けた場合、アドレスは、その機器を割り付けた先頭アドレスからオフセットを足したアドレス(%IW1.2)になる。 The offset 73 is relative position information to which the information of the attribute is assigned, and is necessary information when calculating the memory address. For example, when RYT-VE is assigned to% IW1.0, the address will be the address (% IW1.2) obtained by adding the offset from the start address to which the device is assigned.

補正パターン74については上述してある通りである。
この機器-補正パターンDB21(テンプレート)からユーザがシステム構成機能で機器を挿入した時、機器で検索し、該当する補正パターンのテンプレートを設定する。ユーザは、必要に応じて補正パターンを変更することが可能である。
The correction pattern 74 is as described above.
When a user inserts a device from this device-correction pattern DB 21 (template) by the system configuration function, the device searches the device and sets a template of the corresponding correction pattern. The user can change the correction pattern as needed.

尚、テンプレート21は必須の構成ではなく、上記テンプレート21を用いる処理も必須ではない。上記のように機器−補正パターン対応表24や補正パターンの作成方法は様々であってよく、ユーザが一から手作業で作成してもよい。 The template 21 is not an essential configuration, and the process using the template 21 is not essential. As described above, the device-correction pattern correspondence table 24 and the method of creating the correction pattern may be various, and the user may manually create the correction pattern from scratch.

また、上述したことから、本例のコントローラシステムは、特に図示しないが、下記の各種処理機能部を有するものと言うこともできる。
まず、コントローラ30は、不図示の補正パターン記憶部、不図示の対応関係記憶部、不図示の強制設定部、不図示の強制設定解除部等を有する。
Further, from the above, it can be said that the controller system of this example has the following various processing function units, although not particularly shown.
First, the controller 30 has a correction pattern storage unit (not shown), a correspondence storage unit (not shown), a forced setting unit (not shown), a forced setting release unit (not shown), and the like.

補正パターン記憶部は、1以上の上記補正パターンを記憶する。
対応関係記憶部は、プログラム中の任意の変数と任意の補正パターンとの対応関係が記憶される。対応関係記憶部の一例が上記アドレス−補正パターン対応表34である。
The correction pattern storage unit stores one or more of the above correction patterns.
The correspondence storage unit stores the correspondence between any variable in the program and an arbitrary correction pattern. An example of the correspondence storage unit is the address-correction pattern correspondence table 34.

強制設定部は、任意の変数に対する強制設定が行われる場合、該変数に割り当てられたメモリアドレスに強制設定値を格納する。
強制設定解除部は、上記変数への上記強制設定が解除される場合、上記プログラムの実行に伴って、上記対応関係記憶手段に該解除対象の変数に対応する補正パターンがある場合には、該補正パターンを実行する。
When a compulsory setting is performed for an arbitrary variable, the compulsory setting unit stores the compulsory setting value in the memory address assigned to the variable.
When the forced setting to the variable is canceled, the compulsory setting canceling unit may perform the correction pattern corresponding to the variable to be canceled when the corresponding relation storage means has the correction pattern corresponding to the variable to be released. Execute the correction pattern.

また、例えば、上記強制設定解除部は、補正パターンを実行することで、上記メモリアドレスの格納値を、上記強制設定値から直ちに通常値に戻すことは行わないようにする。その一例として、強制設定解除部は、補正パターンを実行することで、上記メモリアドレスの格納値を上記強制設定値から徐々に通常値に近づけていき、最終的には通常値に戻すようにする。例えばこの様にすることで、任意の変数に対する強制設定を解除する際に、システムの動作に支障が発生しないように通常値に戻すことができる。 Further, for example, the forced setting release unit does not immediately return the stored value of the memory address from the forced setting value to the normal value by executing the correction pattern. As an example, the forced setting release unit executes a correction pattern to gradually bring the stored value of the memory address closer to the normal value from the forced setting value, and finally returns it to the normal value. .. For example, by doing so, when the forced setting for an arbitrary variable is canceled, the normal value can be returned so as not to interfere with the operation of the system.

ここで、上記通常値は、上記プログラムの実行による上記変数に係わる所定の処理によって得られる値であり、コントローラ30は、通常時は、該通常値を該変数に割り当てられたメモリアドレスに格納するが、強制設定時には上記強制設定値を当該メモリアドレスに格納するようにしている。 Here, the normal value is a value obtained by a predetermined process related to the variable by executing the program, and the controller 30 normally stores the normal value in the memory address assigned to the variable. However, at the time of forced setting, the above forced setting value is stored in the memory address.

また、例えば、上記対応関係記憶部に記憶される上記対応関係は、任意の補正パターンが割り当てられた変数それぞれについて、該変数に割り当てられたメモリアドレスに関連付けて、該割り当てられた補正パターンが登録されたものである。その一例が上記アドレス−補正パターン対応表34である。 Further, for example, in the correspondence stored in the correspondence storage unit, the assigned correction pattern is registered in association with the memory address assigned to the variable for each variable to which an arbitrary correction pattern is assigned. It was done. An example thereof is the address-correction pattern correspondence table 34.

また、例えば、支援装置10は、上記補正パターンを任意に作成させて該補正パターンをコントローラ30に転送して上記補正パターン記憶部に記憶させる補正パターン管理部(不図示)を更に有するものであってもよい。 Further, for example, the support device 10 further has a correction pattern management unit (not shown) that arbitrarily creates the correction pattern, transfers the correction pattern to the controller 30, and stores the correction pattern in the correction pattern storage unit. You may.

あるいは、例えば、支援装置10は、任意の変数に対して任意の補正パターンを関連付けさせ(例えばユーザが手作業で行う)、該関連付け結果と、プログラムのコンパイルの際の各変数への任意のメモリアドレス割当結果とに基づいて上記対応関係を生成して、該対応関係をコントローラ30に転送して上記対応関係記憶部に記憶させる対応関係管理部(不図示)を更に有するものであってもよい。 Alternatively, for example, the support device 10 associates an arbitrary correction pattern with an arbitrary variable (for example, manually performed by the user), and the association result and an arbitrary memory for each variable when compiling the program. It may further have a correspondence management unit (not shown) that generates the correspondence based on the address allocation result, transfers the correspondence to the controller 30, and stores the correspondence in the correspondence storage unit. ..

また、例えば、支援装置10は、任意の変数に応じた強制設定値を任意に設定させて、該変数のメモリアドレスと該強制設定値を強制設定の指示と共にコントローラ30に通知する第1の指示部(不図示)を更に有しても良い。 Further, for example, the support device 10 arbitrarily sets a forced setting value according to an arbitrary variable, and notifies the controller 30 of the memory address of the variable and the forced setting value together with the forced setting instruction. A portion (not shown) may be further provided.

この場合、コントローラ30において、任意の変数に対する強制設定が行われる場合は、該第1の指示部による通知を受信した場合である。
また、例えば、支援装置10は、任意の指示に応じて強制設定の解除コマンドをコントローラ30に通知する第2の指示部(不図示)を更に有しても良い。
In this case, when the controller 30 performs the forced setting for an arbitrary variable, it is the case where the notification by the first indicating unit is received.
Further, for example, the support device 10 may further have a second instruction unit (not shown) for notifying the controller 30 of a forced setting release command in response to an arbitrary instruction.

この場合、コントローラ30において、変数への強制設定が解除されるときは、該解除コマンドを受信した場合である。
また、例えば、コントローラ30は、強制設定中の変数に関する所定情報を記憶する強制設定管理情報記憶部(不図示)を更に有してもよい。その一例が上記強制ONアドレス一覧35である。
In this case, when the forced setting to the variable is canceled in the controller 30, it is the case where the release command is received.
Further, for example, the controller 30 may further have a compulsory setting management information storage unit (not shown) for storing predetermined information regarding the variable being forcibly set. An example thereof is the forced ON address list 35.

この場合、上記強制設定部は、上記第1の指示部による通知を受信すると、該通知されたメモリアドレスと強制設定値を、上記強制設定管理情報記憶部に新規登録する。
また、この場合、上記強制設定解除部は、メモリアドレスの格納値を通常値に戻し終えたら、上記強制設定管理情報記憶部から該当する情報を削除するようにしてもよい。
In this case, when the compulsory setting unit receives the notification from the first instruction unit, the compulsory setting management information storage unit newly registers the notified memory address and the compulsory setting value.
Further, in this case, the forced setting release unit may delete the corresponding information from the forced setting management information storage unit after returning the stored value of the memory address to the normal value.

上述した支援装置10の各種処理機能は、支援装置10の上記不図示の演算プロセッサが、上記不図示の記憶部に記憶されている所定のアプリケーションプログラムを実行することにより実現される。同様に、上述したコントローラ30の各種処理機能は、コントローラ30の上記不図示の演算プロセッサが、上記不図示の記憶部に記憶されている所定のアプリケーションプログラムを実行することにより実現される。 The various processing functions of the support device 10 described above are realized by the arithmetic processor (not shown) of the support device 10 executing a predetermined application program stored in the storage unit (not shown). Similarly, the various processing functions of the controller 30 described above are realized by the arithmetic processor (not shown) of the controller 30 executing a predetermined application program stored in the storage unit (not shown).

上記のように、本例のコントローラシステムでは、支援装置10は、コントローラ30上で動作する処理を記述したソースコード13を、コンパイラ機能によって、コントローラ30で実行可能な形態(機械語オブジェクト15)に変換すると共に、変数−アドレス対応表16を生成する。変数−アドレス対応表16は、ソースコード13の各変数と、その変数に割り付けられたメモリアドレスとの対応情報を有する。メモリアドレスは、コントローラ30内のメモリ32のアドレスである。 As described above, in the controller system of this example, the support device 10 puts the source code 13 describing the processing operating on the controller 30 into a form (machine language object 15) that can be executed by the controller 30 by the compiler function. Along with the conversion, the variable-address correspondence table 16 is generated. The variable-address correspondence table 16 has correspondence information between each variable of the source code 13 and the memory address assigned to the variable. The memory address is the address of the memory 32 in the controller 30.

支援装置10において、ユーザによって、上記ソースコード13の各変数(機器)と、強制設定を解除した時の補正パターンとの関連付け情報(機器−補正パターン対応表24)を生成する。この機器−補正パターン対応表24と、上記変数−アドレス対応表16から、アドレス−補正パターン対応表25を生成しコントローラ30に送信する。 In the support device 10, the user generates association information (device-correction pattern correspondence table 24) between each variable (device) of the source code 13 and the correction pattern when the forced setting is canceled. The address-correction pattern correspondence table 25 is generated from the device-correction pattern correspondence table 24 and the variable-address correspondence table 16 and transmitted to the controller 30.

補正パターンは、予め作成されたプログラム、あるいは、ユーザが任意に記述したプログラム等である。ユーザは、例えば、任意の変数に関して、これら各補正パターンのなかから任意の補正パターンを選択して、対応付ける作業を行う。 The correction pattern is a program created in advance, a program arbitrarily described by the user, or the like. For example, the user selects an arbitrary correction pattern from each of these correction patterns for an arbitrary variable and associates it with the arbitrary variable.

更に補正パターンを機器毎に関連付けしたテンプレート情報を利用し、ユーザがシステム構成定義を実施する時、選択した機器に合った補正パターンを関連付けすることができる。 Further, by using the template information in which the correction pattern is associated with each device, the correction pattern suitable for the selected device can be associated when the user executes the system configuration definition.

上記本例のコントローラシステムにおいては、ユーザのソフトウエア開発作業中、又はシステムが運用中でコントローラ30が稼働中に、機械語オブジェクトの変更無しに、変数の値を強制的に変更した後、その状態を解除する時、補正パターンを実施しながら段階的に(徐々に)にソース値に戻す。
[発明の効果]
例えば、システムのセンサが故障した場合に、システムを安定的に動作させるために強制的に値を書き換えることがある。これは、故障したセンサに対応する変数に割り当てられたメモリアドレスの格納データを、強制的に、所定値(強制設定値)に書き換えるものである。
In the controller system of the above example, after the value of the variable is forcibly changed without changing the machine language object while the user's software development work or the system is in operation and the controller 30 is in operation, the variable value is changed. When the state is released, the source value is gradually (gradually) returned while performing the correction pattern.
[Effect of the invention]
For example, when a sensor of a system fails, the value may be forcibly rewritten in order to operate the system stably. This is to forcibly rewrite the stored data of the memory address assigned to the variable corresponding to the failed sensor to a predetermined value (forced setting value).

その後、故障が直った場合は、上記強制設定を解除するが、センサの値がシステムに対する役割や、通常値と強制設定値に乖離がある場合、単純に強制設定を解除するだけではシステムが不安定になる可能性がある。尚、単純に強制設定を解除するとは、例えば、上記メモリアドレスの格納データを、強制設定値から直ちに通常値に変更することである。 After that, if the failure is corrected, the above forced setting is canceled, but if the sensor value has a role for the system or there is a discrepancy between the normal value and the forced setting value, simply canceling the forced setting is not enough for the system. May be stable. To simply cancel the forced setting, for example, the stored data of the memory address is immediately changed from the forced setting value to the normal value.

この為、この様な事態が想定し得るセンサに関しては、予めその変数に上記補正パターンを対応付けておき、強制設定解除の際に、この補正パターンを用いて、この変数の値(メモリアドレスの格納データ)を、強制設定値から段階的に(徐々に)通常値に近づけていく。 Therefore, for a sensor that can assume such a situation, the above correction pattern is associated with the variable in advance, and when the forced setting is canceled, this correction pattern is used to obtain the value of this variable (memory address). The stored data) is gradually (gradually) approached from the forced setting value to the normal value.

本手法によれば、コントローラ30が自動で補正しながら解除を実施するので、解除時の調整が不要であり、更に、システムに詳しくないユーザでも単に解除するだけでシステムに支障をきたさないで強制設定の解除が実施できる効果がある。 According to this method, since the controller 30 automatically corrects and cancels the system, adjustment at the time of release is not required, and even a user who is not familiar with the system can force the system by simply canceling the system. There is an effect that the setting can be canceled.

また、解除時の効果だけでなく、上記一例の場合には、システム稼働中にコントローラの任意のメモリ領域の値を強制的に書き換えると共に、この強制設定されたメモリ領域へのその後の書込みを(通常値の書込みを)、上記解除が行われるまでの間は禁止でき、以ってシステム稼働を安定して継続できる
本手法では、変数(メモリ)に対して強制設定解除の補正パターンを関連付け、強制設定を解除する時、変数に関連付けた補正パターンを用いて、システムの動作に支障が発生しないように値を戻すようにする。
In addition to the effect at the time of cancellation, in the case of the above example, the value of an arbitrary memory area of the controller is forcibly rewritten during system operation, and subsequent writing to this forcibly set memory area is performed ( Writing of normal value) can be prohibited until the above cancellation is performed, so that the system operation can be continued stably. In this method, the correction pattern of forced setting cancellation is associated with the variable (memory). When canceling the forced setting, the correction pattern associated with the variable is used to return the value so as not to interfere with the operation of the system.

更に、ユーザがシステム構成を定義する時、機器毎に強制設定解除の際の補正パターンと関連付けを実施し、コンパイラ機能により“機器に割りついた補正パターン”をメモリに自動で関連付け、メモリに対して強制設定の解除を実施した時、関連付いた補正パターンを用いて安全に強制設定解除を実施する。 Furthermore, when the user defines the system configuration, each device is associated with the correction pattern when the forced setting is canceled, and the "correction pattern assigned to the device" is automatically associated with the memory by the compiler function. When the forced setting is canceled, the forced setting is safely canceled using the associated correction pattern.

1 ネットワーク
2 支援装置
11 フロントエンドコンパイラ
12 バックエンドコンパイラ
13 ソースコード
14 中間コード
15 機械語オブジェクト
16 変数−アドレス対応表
21 機器−補正パターンDB(テンプレート)
22 システム構成定義
23 システム構成情報
24 機器−補正パターン対応表
25 アドレス−補正パターン対応表
30 コントローラ
31 プログラム実行管理部
32 メモリ
33 機械語オブジェクト
34 アドレス−補正パターン対応表
35 強制ONアドレス一覧
36 補正パターン
41 機器(変数名)
42 属性
43 機器識別情報
44 アドレス
45 補正パターン
51 アドレス
52 補正パターン
53 実行中フラグ
61 管理番号
62 強制ONメモリアドレス
63 ソース値
64 補正パターン
65 実行中フラグ
66 強制設定値
67 実行回数
68 開始時刻
1 Network 2 Support device 11 Front-end compiler 12 Back-end compiler 13 Source code 14 Intermediate code 15 Machine language object 16 Variable-address correspondence Table 21 Device-correction pattern DB (template)
22 System configuration definition 23 System configuration information 24 Device-correction pattern correspondence table 25 Address-correction pattern correspondence table 30 Controller 31 Program execution management unit 32 Memory 33 Machine language object 34 Address-correction pattern correspondence table 35 Forced ON address list 36 Correction pattern 41 Device (variable name)
42 Attribute 43 Device identification information 44 Address 45 Correction pattern 51 Address 52 Correction pattern 53 Executing flag 61 Control number 62 Forced ON memory address 63 Source value 64 Correction pattern 65 Executing flag 66 Forced setting value 67 Number of executions 68 Start time

Claims (10)

支援装置とコントローラを有するコントローラシステムであって、
前記コントローラは、
1以上の補正パターンを記憶する補正パターン記憶手段と、
プログラム中の任意の変数と任意の前記補正パターンとの対応関係が記憶される対応関係記憶手段と、
前記コントローラによる制御対象となる機器の異常時に、該機器に対応する変数の値を強制的に書き換える強制設定が行われる場合、該変数に割り当てられたメモリアドレスに、これまで格納されていた通常値に代えて強制設定値を格納する強制設定手段と、
前記変数への前記強制設定が解除される場合、前記プログラムの実行に伴って、前記対応関係記憶手段に該解除対象の変数に対応する前記補正パターンがある場合には、該対応する補正パターンを実行することで、前記解除対象の変数の前記メモリアドレスの格納値を、前記強制設定値から徐々に通常値に近づけていく強制設定解除手段と、
を有し、
前記通常値は、前記プログラムの実行による前記変数に係わる所定の処理によって得られる値であり、前記コントローラは、通常時には、該通常値を該変数に割り当てられた前記メモリアドレスに格納する、
ことを特徴とするコントローラシステム。
A controller system comprising a support device and a controller,
The controller
A correction pattern storage means for storing one or more correction patterns,
Correspondence relationship storage means for storing the correspondence relationship between an arbitrary variable in the program and the arbitrary correction pattern, and
When a forced setting is made to forcibly rewrite the value of the variable corresponding to the device when the device to be controlled by the controller is abnormal, the normal value previously stored in the memory address assigned to the variable is set. A compulsory setting means that stores the compulsory setting value instead of
If the forcing of the said variables are released, along with the execution of the program, when said correspondence relationship storage unit is the correction pattern corresponding to the release target variables, the corresponding correction pattern By executing the forced setting canceling means, the stored value of the memory address of the variable to be released is gradually brought closer to the normal value from the forced setting value .
Have a,
The normal value is a value obtained by a predetermined process related to the variable by executing the program, and the controller normally stores the normal value in the memory address assigned to the variable.
A controller system that features that.
前記対応関係記憶手段に記憶される前記対応関係は、任意の前記補正パターンが対応付けられた変数それぞれについて、該変数に割り当てられたメモリアドレスに関連付けて、該対応付けられた補正パターンが登録されたものであることを特徴とする請求項記載のコントローラシステム。 In the correspondence relationship stored in the correspondence relationship storage means, the associated correction pattern is registered in association with the memory address assigned to the variable for each variable to which the arbitrary correction pattern is associated. The controller system according to claim 1 , wherein the controller system is characterized by being 前記支援装置は、
ユーザに前記補正パターンを任意に作成させ該補正パターンを前記コントローラに転送して前記補正パターン記憶手段に記憶させる補正パターン管理手段を有することを特徴とする請求項1又は2に記載のコントローラシステム。
The support device is
User arbitrarily to create the correction pattern, the controller according to claim 1 or 2, characterized in that the correction pattern to have a correction pattern managing means to be stored in the correction pattern storage means is transferred to said controller system.
前記支援装置は、
任意の前記変数に対して任意の前記補正パターンを関連付けさせ、該関連付け結果と前記プログラムのコンパイルの際の各変数への任意のメモリアドレス割当結果とに基づいて前記対応関係を生成して、該対応関係を前記コントローラに転送して前記対応関係記憶手段に記憶させる対応関係管理手段を有することを特徴とする請求項記載のコントローラシステム。
The support device is
An arbitrary correction pattern is associated with an arbitrary variable, and the correspondence is generated based on the association result and an arbitrary memory address allocation result for each variable when compiling the program. controller system according to claim 2, characterized in that have a correspondence relation management means for storing in said correlation storage means by transferring relationship to said controller.
前記支援装置は、
任意の変数に応じた前記強制設定値を任意に設定させて、該変数のメモリアドレスと該強制設定値を、強制設定の指示と共に前記コントローラに通知する第1の指示手段を有し、
前記コントローラにおいて、
前記任意の変数に対する強制設定が行われる場合は、該第1の指示手段による通知を受信した場合であることを特徴とする請求項記載のコントローラシステム。
The support device is
Arbitrarily by setting the forcing value corresponding to the desired variable, a memory address and forcible setting value of the number of the modified, have a first indication means for notifying the controller along with an indication of forcing,
In the controller
To force setting for the given variable is performed, the controller system of claim 1, wherein it is a case of receiving a notification instruction means first.
前記支援装置は、
任意の指示に応じて、強制設定の解除コマンドを前記コントローラに通知する第2の指示手段を更に有し、
前記コントローラにおいて、
前記変数への前記強制設定が解除される場合は、該解除コマンドを受信した場合であることを特徴とする請求項記載のコントローラシステム。
The support device is
It further has a second instruction means for notifying the controller of the forced setting release command in response to an arbitrary instruction.
In the controller
When said forcing is released, the controller system of claim 1, wherein it is a case of receiving the releasing command to the variable.
前記コントローラは、
強制設定中の変数に関する所定情報を記憶する強制設定管理情報記憶手段を更に有し、
前記強制設定手段は、前記第1の指示手段による通知を受信すると、該通知されたメモリアドレスと強制設定値を、前記強制設定管理情報記憶手段に新規登録することを特徴とする請求項記載のコントローラシステム。
The controller
It also has a compulsory setting management information storage means for storing predetermined information about variables being forcibly set.
The fifth aspect of claim 5 , wherein when the compulsory setting means receives the notification by the first instruction means, the notified memory address and the compulsory setting value are newly registered in the compulsory setting management information storage means. Controller system.
前記強制設定解除手段は、前記メモリアドレスの格納値を前記通常値に戻し終えたら、前記強制設定管理情報記憶手段から該当する情報を削除することを特徴とする請求項記載のコントローラシステム。 The controller system according to claim 7, wherein the forced setting canceling means deletes the corresponding information from the forced setting management information storage means after returning the stored value of the memory address to the normal value. 支援装置とコントローラとを有するコントローラシステムにおける前記コントローラであって、
1以上の補正パターンを記憶する補正パターン記憶手段と、
プログラム中の任意の変数と任意の前記補正パターンとの対応関係が記憶される対応関係記憶手段と、
前記コントローラによる制御対象となる機器の異常時に、該機器に対応する変数の値を強制的に書き換える強制設定が行われる場合、該変数に割り当てられたメモリアドレスに、これまで格納されていた通常値に代えて強制設定値を格納する強制設定手段と、
前記変数への前記強制設定が解除される場合、前記プログラムの実行に伴って、前記対応関係記憶手段に該解除対象の変数に対応する前記補正パターンがある場合には、該対応する補正パターンを実行することで、前記解除対象の変数の前記メモリアドレスの格納値を、前記強制設定値から徐々に通常値に近づけていく強制設定解除手段と、
を有し、
前記通常値は、前記プログラムの実行による前記変数に係わる所定の処理によって得られる値であり、前記コントローラは、通常時には、該通常値を該変数に割り当てられた前記メモリアドレスに格納する、
ことを特徴とするコントローラ。
The controller in a controller system having a support device and a controller.
A correction pattern storage means for storing one or more correction patterns,
Correspondence relationship storage means for storing the correspondence relationship between an arbitrary variable in the program and the arbitrary correction pattern, and
When a forced setting is made to forcibly rewrite the value of the variable corresponding to the device when the device to be controlled by the controller is abnormal, the normal value previously stored in the memory address assigned to the variable is set. A compulsory setting means that stores the compulsory setting value instead of
If the forcing of the said variables are released, along with the execution of the program, when said correspondence relationship storage unit is the correction pattern corresponding to the release target variables, the corresponding correction pattern By executing the forced setting canceling means, the stored value of the memory address of the variable to be released is gradually brought closer to the normal value from the forced setting value .
Have a,
The normal value is a value obtained by a predetermined process related to the variable by executing the program, and the controller normally stores the normal value in the memory address assigned to the variable.
A controller that features that.
支援装置とコントローラとを有するコントローラシステムにおける前記支援装置であって、
ユーザに1以上の補正パターンを任意に作成させると共に、前記コントローラで実行させる任意のプログラムにおける任意の変数に対して任意の前記補正パターンを関連付けさせ、該関連付け結果と前記1以上の補正パターンを前記コントローラに記憶させることで、前記コントローラによる制御対象となる機器の異常時における該機器に対応する変数の値を強制的に書き換える強制設定が解除される際に解除の対象となる変数に関連付けられた前記補正パターンを前記コントローラに実行させる解除支援手段を有し、
前記通常値は、前記プログラムの実行による前記変数に係わる所定の処理によって得られる値であり、通常時には、前記通常値は、前記変数に割り当てられた前記コントローラの前記メモリアドレスに格納され、
前記補正パターンは、前記コントローラによって実行されることで、前記解除の対象となる前記変数の前記メモリアドレスの格納値を、前記強制設定値から徐々に通常値に近づけていく処理である、
ことを特徴とする支援装置。
The support device in a controller system having a support device and a controller.
Wherein optionally together to create one or more correction pattern to the user, let associate any of the correction pattern for any variable in any program to be executed by the controller, the association result to the one correction pattern by storing in the controller, when forcibly rewrites forcing the value of the corresponding variable to the instrument at the time of abnormality of the apparatus to be controlled by the controller is released, associated with the variable to be the release the correction pattern that is have a release support means to be executed by the controller,
The normal value is a value obtained by a predetermined process related to the variable by executing the program, and normally, the normal value is stored in the memory address of the controller assigned to the variable.
The correction pattern is a process of gradually approaching the stored value of the memory address of the variable to be released from the forced setting value to a normal value by being executed by the controller.
A support device characterized by that.
JP2016122047A 2016-06-20 2016-06-20 Controller system, its controller, support device Active JP6798156B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016122047A JP6798156B2 (en) 2016-06-20 2016-06-20 Controller system, its controller, support device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016122047A JP6798156B2 (en) 2016-06-20 2016-06-20 Controller system, its controller, support device

Publications (2)

Publication Number Publication Date
JP2017227988A JP2017227988A (en) 2017-12-28
JP6798156B2 true JP6798156B2 (en) 2020-12-09

Family

ID=60889261

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016122047A Active JP6798156B2 (en) 2016-06-20 2016-06-20 Controller system, its controller, support device

Country Status (1)

Country Link
JP (1) JP6798156B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552172B (en) * 2020-04-27 2023-12-15 浙江中控技术股份有限公司 Data processing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
JP2017227988A (en) 2017-12-28

Similar Documents

Publication Publication Date Title
RU2295752C1 (en) Method for controlling synchronization of software updates
US8762971B2 (en) Servicing a production program in an integrated development environment
JP6866663B2 (en) Programmable controller system, programmable controller, support device, HCI device, redundant programmable controller system
US10295976B2 (en) System development device, system development method, and system development program
JP2014241021A (en) Software evaluation device and method
JP2008021111A (en) Method of changing business system configuration, management computer, and program for method of changing business system configuration
CN109933326B (en) Compiling method and device for rewriting codes and corresponding terminal
EP3314409B1 (en) Tracing dependencies between development artifacts in a software development project
US7765535B2 (en) Software development tool program
JP6798156B2 (en) Controller system, its controller, support device
CN101685420A (en) Multithreading debugging method and device
CN107902507B (en) Control software field debugging system and debugging method
JP5849592B2 (en) Programmable controller system, programming device thereof, programmable controller, program, and debugging method
Steimann From well-formedness to meaning preservation: model refactoring for almost free
JP2015125713A (en) Programmable controller and system, support device thereof, programmable controller, and program
JP6292096B2 (en) Programmable controller system and its support device
JP6717140B2 (en) Analysis program, analysis method, and analysis device
WO2021044654A1 (en) Information processing system, programmable display device, and information processing device
CN109019217B (en) Elevator control software field debugging system
JP2014041390A (en) Design and development support system
JP4490084B2 (en) Program creation method in program development system
CN104106015A (en) Programmable controller system, programmable display therefor, assistance device, and program
JP6869428B2 (en) Data creator, data transfer method and data transfer program
CN100512275C (en) Service debugging device and method faced to service system structure
JP2005107996A (en) Development management system and development management program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190514

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200605

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200630

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200730

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20200730

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201102

R150 Certificate of patent or registration of utility model

Ref document number: 6798156

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250