JPH07253875A - Programmable controller and its program tool - Google Patents

Programmable controller and its program tool

Info

Publication number
JPH07253875A
JPH07253875A JP6042373A JP4237394A JPH07253875A JP H07253875 A JPH07253875 A JP H07253875A JP 6042373 A JP6042373 A JP 6042373A JP 4237394 A JP4237394 A JP 4237394A JP H07253875 A JPH07253875 A JP H07253875A
Authority
JP
Japan
Prior art keywords
version
interpreter
tool
user program
program
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.)
Granted
Application number
JP6042373A
Other languages
Japanese (ja)
Other versions
JP3270238B2 (en
Inventor
Yasushi Baba
泰 馬場
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP04237394A priority Critical patent/JP3270238B2/en
Publication of JPH07253875A publication Critical patent/JPH07253875A/en
Application granted granted Critical
Publication of JP3270238B2 publication Critical patent/JP3270238B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To improve the reliability by stopping the execution of a user program when a version of the user program is dissident with a version of an interpreter. CONSTITUTION:The controller is provided with a tool version storage means 3 storing a tool version of a program tool for each user program stored in a user program storage means 2 and with an interpreter version storage means 5 storing an interpreter version of an interpreter. When a user program in the user program storage means is executed, a version comparison means 6 compares a tool version in the tool version storage means with an interpreter version in the interpreter version storage means corresponding to the user program and a program execution stop means 7 stops the execution of the user program when the comparison by the version comparison means indicates dissidence of both the versions.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、例えばプロセス制御に
利用されるプログラマブルコントローラ及びそのプログ
ラムツールに係わり、特にユーザプログラム及びインタ
プリタのバージョン不一致のときにユーザプログラムの
実行を阻止することにより、信頼性を向上し得るプログ
ラマブルコントローラ及びそのプログラムツールに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller used for process control, for example, and its programming tool, and in particular, by preventing execution of a user program when there is a version mismatch between the user program and the interpreter, reliability is improved. The present invention relates to a programmable controller and a programming tool for improving the performance.

【0002】[0002]

【従来の技術】一般に、プロセス制御の分野では、ユー
ザプログラムを実行して制御対象を制御するプログラマ
ブルコントローラ及びそのユーザプログラムを作成する
プログラムツールが広く用いられている。
2. Description of the Related Art Generally, in the field of process control, a programmable controller for executing a user program to control a controlled object and a program tool for creating the user program are widely used.

【0003】この種のプログラマブルコントローラは、
プログラムツールにより作成されたユーザプログラムが
記憶されると、このユーザプログラムを解釈及び実行し
てプロセスを制御している。
This type of programmable controller is
When the user program created by the program tool is stored, the user program is interpreted and executed to control the process.

【0004】ここで、ユーザプログラムは、前述した通
り、制御対象に対応して作成されるものであり、変更の
可能性をもっている。この可能性としては、例えば制御
対象の特性変化、試行錯誤で作成したユーザプログラム
の修正、また、新制御方式への移行などが上げられる。
Here, as described above, the user program is created corresponding to the controlled object and has a possibility of being changed. This possibility includes, for example, changes in the characteristics of the controlled object, modification of the user program created by trial and error, and transition to a new control method.

【0005】また、ユーザプログラムは、ユーザに直接
理解可能な形式ではなく、プログラマブルコントローラ
に実行可能な命令語という形式で、プログラマブルコン
トローラ内に記憶される。なお、命令語は、コンピュー
タにおける機械語に相当し、プログラマブルコントロー
ラ内のインタプリタが解釈及び実行可能な形式の情報で
ある。
Further, the user program is stored in the programmable controller in the form of command words that can be executed by the programmable controller, not in a form that the user can directly understand. An instruction word corresponds to a machine language in a computer, and is information in a format that can be interpreted and executed by an interpreter in a programmable controller.

【0006】一方、プログラムツールは、前述した通
り、ユーザプログラムを作成するためのものであり、変
更の対象となっている。例えば、新ユーザプログラムの
ための命令語の追加、命令語の仕様変更による新機能の
追加、使用方法に問題のある命令語の削除などの変更理
由を潜在的にもっている。また、ユーザプログラムは一
見して同一であっても、プログラマブルコントローラで
実行するために変形(コンパイル等)する部分の改変に
より、変更されている場合がある。なお、このような変
更はバージョンアップやバージョン番号の更新といった
ツールバージョンの変更として記録されている。
On the other hand, the program tool is, as described above, for creating a user program and is subject to change. For example, there are potential reasons for changes such as addition of a command word for a new user program, addition of a new function by changing the specification of the command word, and deletion of a command word having a problem in usage. Further, even if the user program is the same at first glance, it may be changed due to the modification of the part that is modified (compiled or the like) to be executed by the programmable controller. It should be noted that such a change is recorded as a tool version change such as a version upgrade or version number update.

【0007】このような変更があるため、同一のユーザ
プログラムを作成したつもりでも、作成されるユーザプ
ログラムはツールバージョンの変更に対応して変化して
いる。
Due to such a change, even if the same user program is intended to be created, the created user program is changing in response to the change of the tool version.

【0008】同様に、プログラマブルコントローラで
は、インタプリタに何らかの変更が施される場合があ
り、その変更毎にインタプリタバージョンを更新して管
理している。
Similarly, in the programmable controller, some changes may be made to the interpreter, and the interpreter version is updated and managed for each change.

【0009】また、ユーザプログラムを作成するための
命令語を変更する際には、プログラムツール及びプログ
ラマブルコントローラを同時に変更している。こういっ
た変更には、従来の機能に影響しない変更と、従来の機
能に矛盾する変更とがあり、バージョンが変更内容の違
いを管理するための重要な情報となっている。なお、こ
のようなプログラマブルコントローラ及びプログラムツ
ールは、使用開始時に各々バージョンが一致するように
管理されている。
Further, when changing the command word for creating the user program, the program tool and the programmable controller are changed at the same time. These changes include changes that do not affect the conventional functions and changes that conflict with the conventional functions, and the version is important information for managing the difference between the changes. It should be noted that such programmable controllers and program tools are managed so that their versions match each other at the start of use.

【0010】[0010]

【発明が解決しようとする課題】しかしながら以上のよ
うなプログラマブルコントローラ及びそのプログラムツ
ールでは、夫々を独立に管理していると、バージョンが
一致せずに整合性のない状態となってしまう。
However, in the programmable controller and the program tool thereof as described above, if they are managed independently, the versions do not match and there is an inconsistency.

【0011】また、この整合性のない状態で使用する
と、いわゆる不整合の問題が発生する。すなわち、プロ
グラムツールが新バージョンであるとき、その新バージ
ョンのプログラムツールで作成したユーザプログラムを
プログラマブルコントローラに実行させる際に、バージ
ョンの不一致によって不具合が生じる可能性がある。
Further, if it is used in this inconsistent state, a problem of so-called inconsistency occurs. That is, when the program tool is a new version, when a programmable controller executes a user program created by the new version of the program tool, a malfunction may occur due to version mismatch.

【0012】逆に、旧バージョンのユーザプログラムを
新バージョンのプログラマブルコントローラで実行させ
る場合、新バージョンに対応する互換性がなく、プログ
ラマブルコントローラの新機能を使えないという可能性
がある。
On the contrary, when the user program of the old version is executed by the programmable controller of the new version, there is a possibility that the new version has no compatibility and the new function of the programmable controller cannot be used.

【0013】このような不整合の問題は、バージョン管
理により阻止されているが、管理からもれることがあ
り、発覚が困難であることから信頼性を低下させてい
る。本発明は上記実情を考慮してなされたもので、ユー
ザプログラム及びインタプリタのバージョン不一致のと
きにユーザプログラムの実行を阻止することにより、信
頼性を向上し得るプログラマブルコントローラ及びその
プログラムツールを提供することを目的とする。
Although such a problem of inconsistency is prevented by the version management, it may be missed from the management, and it is difficult to detect it, so that the reliability is lowered. The present invention has been made in view of the above circumstances, and provides a programmable controller and a program tool thereof that can improve reliability by preventing execution of a user program when there is a version mismatch between the user program and the interpreter. With the goal.

【0014】[0014]

【課題を解決するための手段】請求項1に対応する発明
は、ユーザプログラムに基づいて処理を実行するための
インタプリタを備えたプログラマブルコントローラにお
いて、一つ以上のユーザプログラムが記憶されるユーザ
プログラム記憶手段と、このユーザプログラム記憶手段
に記憶されるユーザプログラム毎に、対応するプログラ
ムツールのツールバージョンが記憶されるツールバージ
ョン記憶手段と、前記インタプリタのインタプリタバー
ジョンが記憶されるインタプリタバージョン記憶手段
と、前記ユーザプログラム記憶手段に記憶されたユーザ
プログラムが実行されるとき、このユーザプログラムに
対応して前記ツールバージョン記憶手段に記憶されたツ
ールバージョンと前記インタプリタバージョン記憶手段
に記憶されたインタプリタバージョンとを比較するバー
ジョン比較手段と、このバージョン比較手段による比較
の結果、前記ツールバージョンと前記インタプリタバー
ジョンとが不一致のとき、該当するユーザプログラムの
実行を阻止するプログラム実行阻止手段とを備えたプロ
グラマブルコントローラである。
According to a first aspect of the present invention, in a programmable controller having an interpreter for executing a process based on a user program, one or more user programs are stored. Means, tool version storage means for storing a tool version of a corresponding program tool for each user program stored in the user program storage means, interpreter version storage means for storing an interpreter version of the interpreter, and When the user program stored in the user program storage means is executed, the tool version stored in the tool version storage means and the interpreter stored in the interpreter version storage means are associated with the user program. A version comparison means for comparing with a literal version; and a program execution blocking means for blocking execution of a corresponding user program when the tool version and the interpreter version do not match as a result of comparison by the version comparison means. It is a programmable controller.

【0015】また、請求項2に対応する発明は、ユーザ
プログラムを作成してプログラマブルコントローラに出
力するプログラムツールにおいて、ツール本体のバージ
ョンが記憶されるツールバージョン記憶手段と、前記ユ
ーザプログラムが実行されるインタプリタにおけるイン
タプリタバージョンが記憶されるインタプリタバージョ
ン記憶手段と、前記ユーザプログラムが出力されると
き、このユーザプログラムに対応して前記ツールバージ
ョン記憶手段に記憶されたツールバージョンと前記イン
タプリタバージョン記憶手段に記憶されたインタプリタ
バージョンとを比較するバージョン比較手段と、このバ
ージョン比較手段による比較の結果、前記ツールバージ
ョンと前記インタプリタバージョンとが不一致のとき、
前記ユーザプログラムの実行阻止指令を前記プログラマ
ブルコントローラに送出する阻止指令送出手段とを備え
たプログラムツールである。
According to a second aspect of the present invention, in a program tool for creating a user program and outputting it to a programmable controller, the tool version storage means for storing the version of the tool body and the user program are executed. Interpreter version storage means for storing an interpreter version in the interpreter, and when the user program is output, the tool version stored in the tool version storage means corresponding to the user program and the interpreter version storage means are stored in the interpreter version storage means. And a version comparison means for comparing the interpreted version with each other, as a result of the comparison by the version comparison means, when the tool version and the interpreter version do not match,
A program tool comprising a blocking command sending means for sending an execution blocking command of the user program to the programmable controller.

【0016】さらに、請求項3に対応する発明は、ユー
ザプログラムに基づいて処理を実行するためのインタプ
リタを備えたプログラマブルコントローラにおいて、一
つ以上のユーザプログラムが記憶されるユーザプログラ
ム記憶手段と、このユーザプログラム記憶手段に記憶さ
れるユーザプログラム毎に、対応するプログラムツール
のツールバージョンが記憶されるツールバージョン記憶
手段と、前記インタプリタのインタプリタバージョンが
記憶されるインタプリタバージョン記憶手段と、前記ユ
ーザプログラム記憶手段にユーザプログラムが書込まれ
るとき、このユーザプログラムに対応して前記ツールバ
ージョン記憶手段に記憶されたツールバージョンと前記
インタプリタバージョン記憶手段に記憶されたインタプ
リタバージョンとを比較するバージョン比較手段と、こ
のバージョン比較手段による比較の結果、前記ツールバ
ージョンと前記インタプリタバージョンとが不一致のと
き、該当するユーザプログラムの書込を阻止するプログ
ラム書込阻止手段とを備えたプログラマブルコントロー
ラである。
Further, the invention according to claim 3 is, in a programmable controller having an interpreter for executing processing based on a user program, a user program storage means for storing one or more user programs, and For each user program stored in the user program storage means, a tool version storage means for storing a tool version of a corresponding program tool, an interpreter version storage means for storing an interpreter version of the interpreter, and the user program storage means When a user program is written in, the tool version stored in the tool version storage means and the interpreter version stored in the interpreter version storage means corresponding to the user program Programmable controller including version comparing means for comparing and program write inhibiting means for inhibiting writing of a corresponding user program when the tool version and the interpreter version do not match as a result of comparison by the version comparing means Is.

【0017】また、請求項4に対応する発明は、ユーザ
プログラムを作成して出力可能なプログラムツールにお
いて、ツール本体のバージョンが記憶されるツールバー
ジョン記憶手段と、前記ユーザプログラムが実行される
インタプリタにおけるインタプリタバージョンが記憶さ
れるインタプリタバージョン記憶手段と、前記ユーザプ
ログラムが出力されるとき、このユーザプログラムに対
応して前記ツールバージョン記憶手段に記憶されたツー
ルバージョンと前記インタプリタバージョン記憶手段に
記憶されたインタプリタバージョンとを比較するバージ
ョン比較手段と、このバージョン比較手段による比較の
結果、前記ツールバージョンと前記インタプリタバージ
ョンとが不一致のとき、前記ユーザプログラムの出力を
阻止するプログラム出力阻止手段とを備えたプログラム
ツールである。
According to a fourth aspect of the invention, in a program tool capable of creating and outputting a user program, a tool version storage means for storing the version of the tool body and an interpreter for executing the user program. An interpreter version storage means for storing an interpreter version, and a tool version stored in the tool version storage means and an interpreter stored in the interpreter version storage means corresponding to the user program when the user program is output. As a result of the comparison by the version comparison means for comparing the version with the version comparison means, when the tool version and the interpreter version do not match, a program for preventing the output of the user program is blocked. It is a program tool and an output blocking means.

【0018】さらに、請求項5に対応する発明は、ユー
ザプログラムに基づいて処理を実行するプログラマブル
コントローラにおいて、一つ以上のユーザプログラムが
記憶されるユーザプログラム記憶手段と、このユーザプ
ログラム記憶手段に記憶されるユーザプログラム毎に、
対応するプログラムツールのツールバージョンが記憶さ
れるツールバージョン記憶手段と、前記ツールバージョ
ン記憶手段に記憶されたツールバージョン毎に前記ユー
ザプログラムを実行するための複数のインタプリタが記
憶されたインタプリタ記憶手段と、このインタプリタ記
憶手段に記憶された各インタプリタ毎に、対応するイン
タプリタバージョンが記憶されるインタプリタバージョ
ン記憶手段と、前記ユーザプログラム記憶手段に記憶さ
れたユーザプログラムが実行されるとき、このユーザプ
ログラムに対応して前記ツールバージョン記憶手段に記
憶されたツールバージョンと前記インタプリタバージョ
ン記憶手段に記憶されたインタプリタバージョンとを比
較するバージョン比較手段と、このバージョン比較手段
による比較の結果、前記ツールバージョンと前記インタ
プリタバージョンとが不一致のとき、この不一致とされ
たツールバージョンに基づいて前記インタプリタバージ
ョン記憶手段内の各インタプリタバージョンのうち、前
記不一致とされたツールバージョンに一致するインタプ
リタバージョンを選択し、この選択されたインタプリタ
バージョンに基づいて前記インタプリタ記憶手段内の各
インタプリタのうち、前記選択されたインタプリタバー
ジョンに対応するインタプリタを選択するインタプリタ
選択手段とを備えたプログラマブルコントローラであ
る。
Further, the invention according to claim 5 is, in a programmable controller for executing a process based on a user program, a user program storage means for storing one or more user programs, and a storage in the user program storage means. For each user program
Tool version storage means for storing a tool version of a corresponding program tool, and interpreter storage means for storing a plurality of interpreters for executing the user program for each tool version stored in the tool version storage means, For each interpreter stored in the interpreter storage means, an interpreter version storage means in which a corresponding interpreter version is stored, and when the user program stored in the user program storage means is executed, correspond to this user program. Version comparison means for comparing the tool version stored in the tool version storage means with the interpreter version stored in the interpreter version storage means, and the result of the comparison by the version comparison means. When the tool version and the interpreter version do not match, an interpreter version that matches the mismatched tool version is selected from among the interpreter versions in the interpreter version storage means based on the mismatched tool version. And a interpreter selecting means for selecting an interpreter corresponding to the selected interpreter version among the interpreters in the interpreter storing means based on the selected interpreter version.

【0019】また、請求項6に対応する発明は、ユーザ
プログラムを作成してプログラマブルコントローラに出
力するプログラムツールにおいて、ツール本体の複数の
ツールバージョンが記憶されるツールバージョン記憶手
段と、このツールバージョン記憶手段に記憶された各ツ
ールバージョン毎に前記ユーザプログラムを作成するた
めの複数の作成プログラムが記憶された作成プログラム
記憶手段と、前記ユーザプログラムが実行されるインタ
プリタにおけるインタプリタバージョンが記憶されるイ
ンタプリタバージョン記憶手段と、前記ユーザプログラ
ムが作成されるとき、このユーザプログラムに対応して
前記ツールバージョン記憶手段に記憶されたツールバー
ジョンと前記インタプリタバージョン記憶手段に記憶さ
れたインタプリタバージョンとを比較するバージョン比
較手段と、このバージョン比較手段による比較の結果、
前記ツールバージョンと前記インタプリタバージョンと
が不一致のとき、この不一致とされたインタプリタバー
ジョンに基づいて前記ツールバージョン記憶手段内の各
ツールバージョンのうち、前記不一致とされたインタプ
リタバージョンに一致するツールバージョンを選択し、
この選択されたツールバージョンに基づいて前記作成プ
ログラム記憶手段内の各作成プログラムのうち、前記選
択されたツールバージョンに対応する作成プログラムを
選択する作成プログラム選択手段とを備えたプログラム
ツールである。
According to a sixth aspect of the invention, in a program tool for creating a user program and outputting it to a programmable controller, a tool version storage means for storing a plurality of tool versions of the tool body, and the tool version storage means. Creating program storage means for storing a plurality of creating programs for creating the user program for each tool version stored in the means, and interpreter version storage for storing an interpreter version in an interpreter in which the user program is executed Means and, when the user program is created, a tool version stored in the tool version storage means corresponding to the user program and an interpreter stored in the interpreter version storage means A version comparison means for comparing the, Version, the result of the comparison by the version comparison means,
When the tool version and the interpreter version do not match, the tool version that matches the mismatched interpreter version is selected from among the tool versions in the tool version storage means based on the mismatched interpreter version. Then
It is a program tool including a creating program selecting means for selecting a creating program corresponding to the selected tool version from among the creating programs in the creating program storage means based on the selected tool version.

【0020】[0020]

【作用】従って、請求項1に対応する発明は以上のよう
な手段を講じたことにより、一つ以上のユーザプログラ
ムが記憶されるユーザプログラム記憶手段、このユーザ
プログラム記憶手段に記憶されるユーザプログラム毎
に、対応するプログラムツールのツールバージョンが記
憶されるツールバージョン記憶手段及びインタプリタの
インタプリタバージョンが記憶されるインタプリタバー
ジョン記憶手段を設け、ユーザプログラム記憶手段に記
憶されたユーザプログラムが実行されるとき、バージョ
ン比較手段がこのユーザプログラムに対応してツールバ
ージョン記憶手段に記憶されたツールバージョンとイン
タプリタバージョン記憶手段に記憶されたインタプリタ
バージョンとを比較し、プログラム実行阻止手段が、こ
のバージョン比較手段による比較の結果、ツールバージ
ョンとインタプリタバージョンとが不一致のとき、該当
するユーザプログラムの実行を阻止するので、ユーザプ
ログラム及びインタプリタのバージョン不一致のとき
に、ユーザプログラムがプログラマブルコントローラに
記憶された状態であっても、ユーザプログラムの実行を
阻止することにより、信頼性を向上させることができ
る。
Therefore, according to the invention corresponding to claim 1, by taking the above-mentioned means, the user program storage means for storing one or more user programs, and the user program stored in this user program storage means For each time, a tool version storage means for storing the tool version of the corresponding program tool and an interpreter version storage means for storing the interpreter version of the interpreter are provided, and when the user program stored in the user program storage means is executed, The version comparison means compares the tool version stored in the tool version storage means with the interpreter version stored in the interpreter version storage means in correspondence with the user program, and the program execution inhibiting means makes the version comparison means. When the tool version and the interpreter version do not match as a result of the comparison by, the execution of the corresponding user program is blocked. Therefore, when the user program and the interpreter version do not match, the user program is not stored in the programmable controller. Even if the execution of the user program is blocked, the reliability can be improved.

【0021】また、請求項2に対応する発明は、ツール
本体のバージョンが記憶されるツールバージョン記憶手
段及びユーザプログラムが実行されるインタプリタにお
けるインタプリタバージョンが記憶されるインタプリタ
バージョン記憶手段を設け、ユーザプログラムが出力さ
れるとき、バージョン比較手段がこのユーザプログラム
に対応してツールバージョン記憶手段に記憶されたツー
ルバージョンとインタプリタバージョン記憶手段に記憶
されたインタプリタバージョンとを比較し、阻止指令送
出手段がこのバージョン比較手段による比較の結果、ツ
ールバージョンとインタプリタバージョンとが不一致の
とき、ユーザプログラムの実行阻止指令をプログラマブ
ルコントローラに送出するので、ユーザプログラム及び
インタプリタのバージョン不一致のときに、ユーザプロ
グラムがプログラマブルコントローラに記憶された状態
であっても、実行阻止指令をプログラマブルコントロー
ラに与えてユーザプログラムの実行を阻止することによ
り、信頼性を向上させることができる。
The invention according to claim 2 is further provided with a tool version storage means for storing the version of the tool body and an interpreter version storage means for storing the interpreter version in the interpreter on which the user program is executed. Is output, the version comparison means compares the tool version stored in the tool version storage means with the interpreter version stored in the interpreter version storage means corresponding to this user program, and the blocking command sending means outputs this version. As a result of the comparison by the comparison means, when the tool version and the interpreter version do not match, a command to prevent execution of the user program is sent to the programmable controller. When John mismatch, even if the user program is stored in the programmable controller, by blocking the execution of the user program giving execution blocking command to the programmable controller, it is possible to improve the reliability.

【0022】さらに、請求項3に対応する発明は、一つ
以上のユーザプログラムが記憶されるユーザプログラム
記憶手段、このユーザプログラム記憶手段に記憶される
ユーザプログラム毎に、対応するプログラムツールのツ
ールバージョンが記憶されるツールバージョン記憶手段
及びインタプリタのインタプリタバージョンが記憶され
るインタプリタバージョン記憶手段を設け、ユーザプロ
グラム記憶手段にユーザプログラムが書込まれるとき、
バージョン比較手段がこのユーザプログラムに対応して
ツールバージョン記憶手段に記憶されたツールバージョ
ンとインタプリタバージョン記憶手段に記憶されたイン
タプリタバージョンとを比較し、プログラム書込阻止手
段が、このバージョン比較手段による比較の結果、ツー
ルバージョンとインタプリタバージョンとが不一致のと
き、該当するユーザプログラムの書込を阻止するので、
ユーザプログラム及びインタプリタのバージョン不一致
のときに、ユーザプログラムのプログラマブルコントロ
ーラへの書込を阻止することにより、信頼性を向上でき
ると共に、この書込阻止の動作によって操作者に異常を
通知することができる。
Further, the invention according to claim 3 is the user program storage means for storing one or more user programs, and the tool version of the corresponding program tool for each user program stored in the user program storage means. When a user program is written in the user program storage means, a tool version storage means for storing the above and an interpreter version storage means for storing the interpreter version of the interpreter are provided,
The version comparison means compares the tool version stored in the tool version storage means with the interpreter version stored in the interpreter version storage means in correspondence with the user program, and the program write blocking means compares the version by the version comparison means. As a result, when the tool version and the interpreter version do not match, writing of the corresponding user program is blocked.
By preventing the writing of the user program to the programmable controller when the versions of the user program and the interpreter do not match, the reliability can be improved and the operator can be notified of the abnormality by the operation of the writing inhibition. .

【0023】また、請求項4に対応する発明は、ツール
本体のバージョンが記憶されるツールバージョン記憶手
段及びユーザプログラムが実行されるインタプリタにお
けるインタプリタバージョンが記憶されるインタプリタ
バージョン記憶手段を設け、ユーザプログラムが出力さ
れるとき、バージョン比較手段がこのユーザプログラム
に対応してツールバージョン記憶手段に記憶されたツー
ルバージョンとインタプリタバージョン記憶手段に記憶
されたインタプリタバージョンとを比較し、プログラム
出力阻止手段が、このバージョン比較手段による比較の
結果、ツールバージョンとインタプリタバージョンとが
不一致のとき、ユーザプログラムの出力を阻止するの
で、ユーザプログラム及びインタプリタのバージョン不
一致のときに、ユーザプログラムのプログラマブルコン
トローラへの出力を阻止することにより、信頼性を向上
できると共に、異常がバージョン不一致であることを通
知することができる。
The invention according to claim 4 is further provided with a tool version storage means for storing a version of the tool body and an interpreter version storage means for storing an interpreter version in an interpreter on which the user program is executed. Is output, the version comparison means compares the tool version stored in the tool version storage means with the interpreter version stored in the interpreter version storage means corresponding to this user program, and the program output prevention means As a result of the comparison by the version comparison means, when the tool version and the interpreter version do not match, the output of the user program is blocked. Therefore, when the versions of the user program and interpreter do not match, the user program does not match. By blocking the output of the program to the programmable controller, it is possible to improve the reliability, the abnormality can be notified that the version mismatch.

【0024】さらに、請求項5に対応する発明は、一つ
以上のユーザプログラムが記憶されるユーザプログラム
記憶手段、このユーザプログラム記憶手段に記憶される
ユーザプログラム毎に、対応するプログラムツールのツ
ールバージョンが記憶されるツールバージョン記憶手
段、ツールバージョン記憶手段に記憶されたツールバー
ジョン毎にユーザプログラムを実行するための複数のイ
ンタプリタが記憶されたインタプリタ記憶手段及びこの
インタプリタ記憶手段に記憶された各インタプリタ毎
に、対応するインタプリタバージョンが記憶されるイン
タプリタバージョン記憶手段を設け、ユーザプログラム
記憶手段に記憶されたユーザプログラムが実行されると
き、バージョン比較手段がこのユーザプログラムに対応
してツールバージョン記憶手段に記憶されたツールバー
ジョンとインタプリタバージョン記憶手段に記憶された
インタプリタバージョンとを比較し、インタプリタ選択
手段が、このバージョン比較手段による比較の結果、ツ
ールバージョンとインタプリタバージョンとが不一致の
とき、この不一致とされたツールバージョンに基づいて
インタプリタバージョン記憶手段内の各インタプリタバ
ージョンのうち、不一致とされたツールバージョンに一
致するインタプリタバージョンを選択し、この選択され
たインタプリタバージョンに基づいてインタプリタ記憶
手段内の各インタプリタのうち、選択されたインタプリ
タバージョンに対応するインタプリタを選択するので、
ユーザプログラム及びインタプリタのバージョン不一致
のときに、ユーザプログラムのバージョンに一致するよ
うに選択されたインタプリタがユーザプログラムを実行
することにより、信頼性を向上できると共に、作成した
ユーザプログラムを有効に利用することができる。
Further, the invention according to claim 5 is the user program storage means for storing one or more user programs, and the tool version of the corresponding program tool for each user program stored in the user program storage means. Stored in the tool version storage means, an interpreter storage means storing a plurality of interpreters for executing a user program for each tool version stored in the tool version storage means, and each interpreter stored in the interpreter storage means. Is provided with an interpreter version storage means for storing a corresponding interpreter version, and when the user program stored in the user program storage means is executed, the version comparison means corresponds to the user program and the tool version. The tool version stored in the storage means is compared with the interpreter version stored in the interpreter version storage means, and the interpreter selection means determines that the tool version and the interpreter version do not match when the result of the comparison by the version comparison means is An interpreter version matching the mismatched tool version is selected from among the interpreter versions in the interpreter version storage means based on the mismatched tool version, and the interpreter storage means in the interpreter storage means is selected based on the selected interpreter version. Since the interpreter corresponding to the selected interpreter version is selected from each interpreter,
When the versions of the user program and the interpreter do not match, the interpreter selected so as to match the version of the user program executes the user program, thereby improving reliability and effectively using the created user program. You can

【0025】また、請求項6に対応する発明は、ツール
本体の複数のツールバージョンが記憶されるツールバー
ジョン記憶手段、このツールバージョン記憶手段に記憶
された各ツールバージョン毎にユーザプログラムを作成
するための複数の作成プログラムが記憶された作成プロ
グラム記憶手段及びユーザプログラムが実行されるイン
タプリタにおけるインタプリタバージョンが記憶される
インタプリタバージョン記憶手段を設け、ユーザプログ
ラムが作成されるとき、バージョン比較手段がこのユー
ザプログラムに対応してツールバージョン記憶手段に記
憶されたツールバージョンとインタプリタバージョン記
憶手段に記憶されたインタプリタバージョンとを比較
し、作成プログラム選択手段が、このバージョン比較手
段による比較の結果、ツールバージョンとインタプリタ
バージョンとが不一致のとき、この不一致とされたイン
タプリタバージョンに基づいてツールバージョン記憶手
段内の各ツールバージョンのうち、不一致とされたイン
タプリタバージョンに一致するツールバージョンを選択
し、この選択されたツールバージョンに基づいて作成プ
ログラム記憶手段内の各作成プログラムのうち、選択さ
れたツールバージョンに対応する作成プログラムを選択
するので、ユーザプログラム及びインタプリタのバージ
ョン不一致のときに、インタプリタのバージョンに一致
するように選択された作成プログラムに基づいてユーザ
プログラムを作成することにより、信頼性を向上できる
と共に、プログラマブルコントローラを充分に機能させ
ることができる。
In the invention according to claim 6, a tool version storage means for storing a plurality of tool versions of the tool body, and a user program for each tool version stored in the tool version storage means are created. The creating program storing means storing a plurality of creating programs and the interpreter version storing means storing an interpreter version in the interpreter on which the user program is executed are provided, and when the user program is created, the version comparing means uses the user program. Corresponding to the tool version stored in the tool version storage means and the interpreter version stored in the interpreter version storage means, and the created program selection means compares the result of the comparison by the version comparison means. When the tool version and the interpreter version do not match, based on the mismatched interpreter version, the tool version that matches the mismatched interpreter version is selected from among the tool versions in the tool version storage means, and this selection is made. The created program corresponding to the selected tool version is selected from among the created programs stored in the created program storage means based on the created tool version. Therefore, when the versions of the user program and the interpreter do not match, the version of the interpreter matches. By creating the user program based on the creation program selected to be performed, the reliability can be improved and the programmable controller can fully function.

【0026】[0026]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。図1は本発明の第1の実施例に係るプログ
ラマブルコントローラの構成を示すブロック図である。
このプログラマブルコントローラ1は、一つ以上のユー
ザプログラムが記憶されるユーザプログラム記憶部2
と、このユーザプログラム記憶部2に記憶されるユーザ
プログラム毎に、対応するプログラムツールのツールバ
ージョンが記憶されるツールバージョン記憶部3と、イ
ンタプリタが記憶されるインタプリタ記憶部4と、イン
タプリタバージョンが記憶されるインタプリタバージョ
ン記憶部5と、ユーザプログラム記憶部2内のユーザプ
ログラムが実行されるとき、このユーザプログラムに対
応してツールバージョン記憶部3内のツールバージョン
とインタプリタバージョン記憶部5内のインタプリタバ
ージョンとを比較するバージョン比較部6と、このバー
ジョン比較部6による比較の結果、ツールバージョンと
インタプリタバージョンとが不一致のとき、該当するユ
ーザプログラムの実行を阻止するプログラム実行阻止部
7とを備えている。なお、このプログラマブルコントロ
ーラ1はユーザプログラムを作成可能なプログラムツー
ル8に接続されている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a programmable controller according to the first embodiment of the present invention.
The programmable controller 1 includes a user program storage unit 2 that stores one or more user programs.
For each user program stored in the user program storage unit 2, a tool version storage unit 3 in which a tool version of a corresponding program tool is stored, an interpreter storage unit 4 in which an interpreter is stored, and an interpreter version are stored. When the interpreter version storage unit 5 and the user program in the user program storage unit 2 are executed, the tool version in the tool version storage unit 3 and the interpreter version in the interpreter version storage unit 5 are associated with this user program. And a program execution blocking unit 7 that blocks execution of the corresponding user program when the tool version and the interpreter version do not match as a result of the comparison by the version comparing unit 6. The programmable controller 1 is connected to a program tool 8 capable of creating a user program.

【0027】図2はこのようなプログラマブルコントロ
ーラのハードウエア構成を示すブロック図である。この
プログラマブルコントローラは、入力I/F11、出力
I/F12、伝送I/F13、マンマシンI/F14、
CPU15、システムROM16、システムRAM17
及びユーザRAM18が互いに内部バス19を介して接
続されている。
FIG. 2 is a block diagram showing the hardware configuration of such a programmable controller. This programmable controller includes an input I / F 11, an output I / F 12, a transmission I / F 13, a man-machine I / F 14,
CPU 15, system ROM 16, system RAM 17
And the user RAM 18 are connected to each other via the internal bus 19.

【0028】ここで、システムROM16は、図3に示
すように、システムプログラム、インタプリタ、バージ
ョン比較プログラム、ユーザプログラム管理プログラム
及びインタプリタバージョンが記憶されるメモリであ
る。
Here, the system ROM 16 is a memory for storing a system program, an interpreter, a version comparison program, a user program management program and an interpreter version, as shown in FIG.

【0029】システムプログラムは、プロセスからの入
力情報の取込み、制御演算結果のプロセスへの出力及び
ユーザプログラムの管理、マンマシンI/F14を通し
てのユーザとのデータ交換、データの読出、プログラム
の書込、変更などの手順を定義するためのものであり、
入力処理プログラム、制御演算プログラム及び出力処理
プログラムを備えている。
The system program takes in the input information from the process, outputs the control calculation result to the process and manages the user program, exchanges data with the user through the man-machine I / F 14, reads the data, writes the program. , To define procedures such as changes,
An input processing program, a control calculation program, and an output processing program are provided.

【0030】入力処理プログラムは、入力I/F11を
介して与えられる入力情報を制御演算のための形式に変
換する処理、入力情報の状態に対応してプロセスアラー
ムチェックを行う処理及びこれら処理結果をユーザRA
M18に記憶させる手順を定義している。
The input processing program converts the input information given through the input I / F 11 into a format for control calculation, performs a process alarm check according to the state of the input information, and outputs these processing results. User RA
The procedure to be stored in M18 is defined.

【0031】制御演算プログラムは、入力処理プログラ
ムにより変換された入力情報に基づいて所定の演算を実
行し、演算結果を出力値に変換する手順を定義してい
る。出力処理プログラムは、制御演算プログラムにより
変換された出力値をユーザRAM18から読出して所定
のデータ変換処理を実行し、実行結果を出力I/F12
を介してプロセスに出力する手順を定義している。
The control calculation program defines a procedure for executing a predetermined calculation based on the input information converted by the input processing program and converting the calculation result into an output value. The output processing program reads the output value converted by the control calculation program from the user RAM 18, executes a predetermined data conversion process, and outputs the execution result to the output I / F 12
Defines the procedure to output to the process via.

【0032】インタプリタは、ユーザプログラムを解釈
して実行するための手順を定義している。バージョン比
較プログラムは、システムROM16内のインタプリタ
バージョンとユーザRAM18内のツールバージョンと
を比較するための手順を定義している。ユーザプログラ
ム管理プログラムは、このバージョン比較プログラムを
用いた比較の結果が不一致を示すとき、該当するユーザ
プログラムの実行を阻止するための手順を定義してい
る。なお、インタプリタ及びCPU15はバージョン比
較部6を構成し、ユーザプログラム管理プログラム及び
CPU15はプログラム実行阻止部7を構成している。
The interpreter defines the procedure for interpreting and executing the user program. The version comparison program defines a procedure for comparing the interpreter version in the system ROM 16 and the tool version in the user RAM 18. The user program management program defines a procedure for blocking the execution of the corresponding user program when the result of the comparison using this version comparison program shows a mismatch. The interpreter and the CPU 15 compose the version comparison unit 6, and the user program management program and the CPU 15 compose the program execution blocking unit 7.

【0033】一方、システムRAM17は、システムR
OM16内のシステムプログラムの動作のための各デー
タ及びユーザプログラムを解釈・実行するための管理テ
ーブルが記憶されるメモリである。
On the other hand, the system RAM 17 has a system R
It is a memory that stores a management table for interpreting and executing each data for operating the system program in the OM 16 and a user program.

【0034】ユーザRAM18は、図4に示すように、
ユーザプログラム並びにツールバージョンが記憶される
固定情報エリア及び制御パラメータ、プロセス値データ
並びに演算ワークデータが記憶される可変情報エリアを
有するメモリである。
The user RAM 18 is, as shown in FIG.
It is a memory having a fixed information area for storing a user program and a tool version and a variable information area for storing control parameters, process value data and calculation work data.

【0035】入力I/F11は、プロセスから入力され
る物理信号をユーザプログラムで使用可能な形に変換す
るための部分である。例えば、0〜5Vの範囲のアナロ
グデータとして入力されるアナログ入力信号を0〜40
00カウントのデジタル情報にA/D変換し、このデジ
タル情報を%換算により正規化してユーザプログラムで
使用可能としている。
The input I / F 11 is a part for converting a physical signal input from the process into a form usable by a user program. For example, if the analog input signal input as analog data in the range of 0 to 5V is 0 to 40,
A / D conversion is performed on the digital information of 00 counts, and the digital information is normalized by% conversion and can be used by the user program.

【0036】出力I/F12は、ユーザプログラムで定
義されて確定された制御出力情報をプロセスに出力する
ための部分である。例えば%値で定義された制御出力情
報を4〜20mAのアナログ電流出力値としてプロセス
に出力している。
The output I / F 12 is a part for outputting the control output information defined and determined by the user program to the process. For example, the control output information defined by the% value is output to the process as an analog current output value of 4 to 20 mA.

【0037】CPU15は、システムROM16内のシ
ステムプログラム及びユーザRAM18内のユーザプロ
グラムに従って、制御動作を実行させるものである。マ
ンマシンI/F14は、ユーザとコントローラとの間の
データ交換を実行させるための部分であり、現在のプロ
セス状態を表示・確認するためのユーザRAM18の読
出機能、制御内容に介入するためのシステムプログラム
の変更機能及び制御パラメータの修正機能を有してい
る。
The CPU 15 executes control operation according to the system program in the system ROM 16 and the user program in the user RAM 18. The man-machine I / F 14 is a part for executing data exchange between the user and the controller, a reading function of the user RAM 18 for displaying / confirming the current process state, and a system for intervening in control contents. It has a program changing function and a control parameter correcting function.

【0038】次に、以上のように構成されたプログラマ
ブルコントローラの動作を図5のフローチャートを用い
て説明する。いま、ユーザプログラム記憶部2内のユー
ザプログラムが実行されるとする。バージョン比較部6
は、図5に示すように、バージョンを比較するユーザプ
ログラムの番号を“1番目”に設定し(ST1)、この
1番目のユーザプログラムの変更の有無を判定し(ST
2)、判定結果が変更無しのとき、次の番号のユーザプ
ログラムの判定に進むが、判定結果が変更有りのとき、
変更に用いたプログラムツールのツールバージョンとイ
ンタプリタバージョンとを比較する(ST3)。
Next, the operation of the programmable controller configured as described above will be described with reference to the flowchart of FIG. Now, it is assumed that the user program in the user program storage unit 2 is executed. Version comparison unit 6
5, sets the number of the user program whose version is to be compared to "first" (ST1), and determines whether or not the first user program has been changed (ST1).
2) If the judgment result is unchanged, the process proceeds to the judgment of the user program of the next number, but if the judgment result is changed,
The tool version of the program tool used for the change and the interpreter version are compared (ST3).

【0039】続いて、バージョン比較部6は、ステップ
ST3による比較結果から両バージョンの整合性の有無
を判定し(ST4)、ステップST3の比較結果が両バ
ージョンの一致を示すとき、整合性有りと判定して当該
ユーザプログラムの実行を許可し(ST5)、比較結果
が両バージョンの不一致を示すとき、整合性無しと判定
して当該ユーザプログラムの実行阻止のための実行阻止
処理を実行する(ST6)。なお、例えばここでは、実
行阻止処理として、このユーザプログラムに対応して実
行阻止情報をプログラム実行阻止部7に与えている。
Subsequently, the version comparison unit 6 determines whether or not there is a match between the two versions from the comparison result in step ST3 (ST4), and when the comparison result in step ST3 indicates that the two versions match, it is determined that there is a match. When it is determined that the execution of the user program is permitted (ST5), and the comparison result indicates that the two versions do not match, it is determined that there is no consistency and the execution prevention process for executing the execution of the user program is executed (ST6). ). Note that, for example, here, as execution prohibition processing, execution prohibition information is given to the program execution prohibition unit 7 in correspondence with this user program.

【0040】しかる後、バージョン比較部6は、ユーザ
プログラムの番号を“+1”だけ更新し(ST7)、こ
の更新したユーザプログラムの番号に基づいて全てのユ
ーザプログラムの変更の有無を確認済か否かを判定し
(ST8)、判定結果が否のとき、ステップST2に戻
り、判定結果が確認済を示すとき、処理終了通知をプロ
グラム実行阻止部7に与える。
Thereafter, the version comparison unit 6 updates the number of the user program by "+1" (ST7), and based on the updated user program number, it is confirmed whether or not all the user programs have been changed. It is determined (ST8). If the determination result is negative, the process returns to step ST2.

【0041】プログラム実行阻止部7は、この処理終了
通知を受けると、全てのユーザプログラムのうち、ステ
ップST6において実行阻止情報を受けたユーザプログ
ラムの実行を阻止する。
Upon receiving this processing end notification, the program execution blocking unit 7 blocks the execution of the user program that has received the execution blocking information in step ST6 among all the user programs.

【0042】このように、ユーザプログラムがプログラ
マブルコントローラに記憶された状態であっても、イン
タプリタのバージョンに不一致のユーザプログラムの実
行をを阻止するので、信頼性を向上させることができ
る。
As described above, even when the user program is stored in the programmable controller, the execution of the user program that does not match the version of the interpreter is prevented, so that the reliability can be improved.

【0043】上述したように第1の実施例によれば、ユ
ーザプログラム記憶部2に記憶されたユーザプログラム
が実行されるとき、バージョン比較部6がこのユーザプ
ログラムに対応してツールバージョン記憶部3に記憶さ
れたツールバージョンとインタプリタバージョン記憶部
5に記憶されたインタプリタバージョンとを比較し、プ
ログラム実行阻止部7が、このバージョン比較部6によ
る比較の結果、ツールバージョンとインタプリタバージ
ョンとが不一致のとき、該当するユーザプログラムの実
行を阻止するので、ユーザプログラム及びインタプリタ
のバージョン不一致のときに、ユーザプログラムがプロ
グラマブルコントローラに記憶された状態であっても、
ユーザプログラムの実行を阻止することにより、信頼性
を向上させることができる。
As described above, according to the first embodiment, when the user program stored in the user program storage unit 2 is executed, the version comparison unit 6 corresponds to this user program and the tool version storage unit 3 When the tool version and the interpreter version do not match as a result of the comparison by the version comparing section 6, the program execution blocking section 7 compares the tool version stored in the interpreter version stored in the interpreter version storage section 5 with the interpreter version stored in the interpreter version storage section 5. , Since the execution of the corresponding user program is blocked, even when the user program is stored in the programmable controller when the version mismatch between the user program and the interpreter,
The reliability can be improved by blocking the execution of the user program.

【0044】すなわち、第1の実施例によれば、バージ
ョンの整合性のないユーザプログラムが既にダウンロー
ドされている状態でも、個別のユーザプログラム一つづ
つについてバージョンの整合性を判定するので、アプリ
ケーションの予想しない制御動作を行わないことを保証
することができ、もって、制御の安全性の向上を期待す
ることができる。
That is, according to the first embodiment, the consistency of the version is determined for each individual user program even if the user program having the inconsistent version is already downloaded. It is possible to guarantee that an unexpected control operation is not performed, and thus improvement in control safety can be expected.

【0045】次に、本発明の第2の実施例に係るプログ
ラムツールについて説明する。図6はこのプログラムツ
ールの構成を示すブロック図である。このプログラムツ
ール21は、ツール本体のバージョンが記憶されるツー
ルバージョン記憶部22と、このツールバージョン記憶
部22に記憶されたツールバージョンに対応してユーザ
プログラムを作成するための作成プログラムが記憶さ
れ、且つこの作成プログラム並びにユーザI/F23を
介して受ける各種の指令に基づいてユーザプログラムを
作成するユーザプログラム作成部24と、ユーザプログ
ラムが実行されるインタプリタにおけるインタプリタバ
ージョンが記憶されるインタプリタバージョン記憶部2
5と、ユーザプログラムがプログラマブルコントローラ
26に出力されるとき、このユーザプログラムに対応し
てツールバージョン記憶部22に記憶されたツールバー
ジョンとインタプリタバージョン記憶部25に記憶され
たインタプリタバージョンとを比較するバージョン比較
部27と、このバージョン比較部27による比較の結
果、ツールバージョンとインタプリタバージョンとが不
一致のとき、ユーザプログラムの実行阻止指令をプログ
ラマブルコントローラ26に送出する阻止指令送出部2
8とを備えている。
Next, a program tool according to the second embodiment of the present invention will be described. FIG. 6 is a block diagram showing the structure of this program tool. The program tool 21 stores a tool version storage unit 22 in which the version of the tool body is stored, and a creation program for creating a user program corresponding to the tool version stored in the tool version storage unit 22, Also, a user program creating unit 24 that creates a user program based on this creating program and various commands received via the user I / F 23, and an interpreter version storage unit 2 that stores an interpreter version in an interpreter in which the user program is executed.
5 and a version for comparing the tool version stored in the tool version storage unit 22 with the interpreter version stored in the interpreter version storage unit 25 when the user program is output to the programmable controller 26. As a result of the comparison by the comparison unit 27 and the version comparison unit 27, when the tool version and the interpreter version do not match, the execution instruction instruction of the user program is transmitted to the programmable controller 26.
8 and.

【0046】次に、このようなプログラムツールの動作
を図7のフローチャートを用いて説明する。いま、図7
に示すように、ユーザプログラム作成部24により、ユ
ーザプログラムが変更又は作成されるとする(ST1
1)。
Next, the operation of such a program tool will be described with reference to the flowchart of FIG. Now, Fig. 7
As shown in, the user program creating unit 24 modifies or creates the user program (ST1
1).

【0047】バージョン比較部27は、ステップST1
1で変更又は作成されたユーザプログラムがプログラマ
ブルコントローラ26に出力されるとき、このユーザプ
ログラムの変更又は作成に用いた作成プログラムに対応
するプログラムツールのツールバージョンとインタプリ
タバージョンとを比較する(ST12)。
The version comparison unit 27 determines in step ST1.
When the user program changed or created in 1 is output to the programmable controller 26, the tool version and the interpreter version of the program tool corresponding to the created program used to change or create this user program are compared (ST12).

【0048】続いて、バージョン比較部27は、ステッ
プST12による比較結果から両バージョンの整合性の
有無を判定し(ST13)、ステップST12の比較結
果が両バージョンの一致を示すとき、整合性有りと判定
して当該ユーザプログラムの実行を許可し(ST1
4)、比較結果が両バージョンの不一致を示すとき、整
合性無しと判定して当該ユーザプログラムの実行を阻止
するため、阻止指令送出部28を起動する。
Next, the version comparison unit 27 determines whether or not the two versions are consistent from the comparison result in step ST12 (ST13). When the comparison result in step ST12 indicates that the two versions are in agreement, it is determined that there is consistency. Judges and permits execution of the user program (ST1
4) When the comparison result indicates that the two versions do not match, it is determined that there is no consistency, and the blocking command sending unit 28 is activated to block the execution of the user program.

【0049】阻止指令送出部28は、起動されると、当
該ユーザプログラムに対する実行阻止指令をプログラマ
ブルコントローラ26に送出する(ST15)。一方、
プログラマブルコントローラ26は、この実行阻止指令
を受けると、プログラムツールに書込まれた該当するユ
ーザプログラムの実行を阻止する。
When activated, the blocking command sending unit 28 sends an execution blocking command for the user program to the programmable controller 26 (ST15). on the other hand,
When the programmable controller 26 receives this execution blocking instruction, it blocks the execution of the corresponding user program written in the program tool.

【0050】上述したように第2の実施例によれば、ユ
ーザプログラムが出力されるとき、バージョン比較部2
7がこのユーザプログラムに対応してツールバージョン
記憶部22に記憶されたツールバージョンとインタプリ
タバージョン記憶部25に記憶されたインタプリタバー
ジョンとを比較し、阻止指令送出部28がこのバージョ
ン比較部27による比較の結果、ツールバージョンとイ
ンタプリタバージョンとが不一致のとき、ユーザプログ
ラムの実行阻止指令をプログラマブルコントローラ26
に送出するので、ユーザプログラム及びインタプリタの
バージョン不一致のときに、ユーザプログラムがプログ
ラマブルコントローラ26に記憶された状態であって
も、実行阻止指令をプログラマブルコントローラ26に
与えてユーザプログラムの実行を阻止することにより、
信頼性を向上させることができる。
As described above, according to the second embodiment, when the user program is output, the version comparison unit 2
7 compares the tool version stored in the tool version storage unit 22 with the interpreter version stored in the interpreter version storage unit 25 corresponding to this user program, and the blocking command transmission unit 28 compares the version by the version comparison unit 27. As a result, when the tool version and the interpreter version do not match, an instruction to block execution of the user program is issued by the programmable controller 26.
When the version mismatch between the user program and the interpreter, even if the user program is stored in the programmable controller 26, an execution blocking command is given to the programmable controller 26 to block the execution of the user program. Due to
The reliability can be improved.

【0051】すなわち、第2の実施例によれば、バージ
ョンの整合性のないユーザプログラムが既にダウンロー
ドされた状態であっても、ダウンロードしたユーザプロ
グラムの実行をプログラムツール側から阻止できるの
で、バージョン不整合によるプロセス制御への悪影響を
防止することができる。
That is, according to the second embodiment, even if a user program having an inconsistent version is already downloaded, the execution of the downloaded user program can be blocked from the program tool side, so that the version is not It is possible to prevent an adverse effect on the process control due to the matching.

【0052】次に、本発明の第3の実施例に係るプログ
ラマブルコントローラについて説明する。図8はこのプ
ログラマブルコントローラの構成を示すブロック図であ
り、図1と同一部分には同一符号を付し、ほぼ同一部分
にはaの添字を付してその詳しい説明は省略し、ここで
は異なる部分についてのみ述べる。
Next, a programmable controller according to the third embodiment of the present invention will be described. FIG. 8 is a block diagram showing the configuration of this programmable controller. The same parts as those in FIG. 1 are designated by the same reference numerals, and substantially the same parts are designated by a subscript a, and detailed description thereof is omitted. Only the part will be described.

【0053】すなわち、本実施例装置は、ユーザプログ
ラム及びインタプリタのバージョン不一致のときに、プ
ログラマブルコントローラ側でユーザプログラムの書込
を阻止するものであって、具体的には図1に示す装置に
比べ、伝送I/F13、システムRAM17又はユーザ
RAM18のもつバッファ機能に相当するバッファ部3
1を用い、且つバージョン比較部6及びプログラム実行
阻止部7に代えて、バージョン比較部6a及びプログラ
ム書込阻止部32を備えた構成となっている。
That is, the device of this embodiment prevents writing of the user program on the programmable controller side when the versions of the user program and the interpreter do not match. Specifically, compared to the device shown in FIG. , The transmission I / F 13, the system RAM 17, or the buffer unit 3 corresponding to the buffer function of the user RAM 18
1, and instead of the version comparison unit 6 and the program execution prevention unit 7, a version comparison unit 6a and a program write prevention unit 32 are provided.

【0054】このバージョン比較部6aは、ユーザプロ
グラム記憶部2にユーザプログラムが書込まれるとき、
このユーザプログラムに対応してツールバージョン記憶
部3に記憶されたツールバージョンとインタプリタバー
ジョン記憶部5に記憶されたインタプリタバージョンと
を比較する機能をもっている。
The version comparing section 6a is provided when the user program is written in the user program storage section 2.
It has a function of comparing the tool version stored in the tool version storage unit 3 and the interpreter version stored in the interpreter version storage unit 5 in correspondence with this user program.

【0055】プログラム書込阻止部32は、バージョン
比較部6aによる比較の結果、ツールバージョンとイン
タプリタバージョンとが不一致のとき、該当するユーザ
プログラムの書込を阻止する機能をもっている。
The program write blocking unit 32 has a function of blocking writing of the corresponding user program when the tool version and the interpreter version do not match as a result of the comparison by the version comparing unit 6a.

【0056】ここで、プログラマブルコントローラ1a
は、図9のフローチャートに示すように、プログラムツ
ール8からユーザプログラム及びその書込要求を受ける
と(ST21)、ユーザプログラムをバッファ部31に
記憶させる一方、バージョン比較部6aを起動させる。
Here, the programmable controller 1a
As shown in the flowchart of FIG. 9, when receiving a user program and its write request from the program tool 8 (ST21), the user program is stored in the buffer unit 31 and the version comparison unit 6a is activated.

【0057】バージョン比較部6aは、バッファ部31
に記憶されたユーザプログラムに対応してツールバージ
ョン記憶部3からツールバージョンを読出すと共に(S
T22)、インタプリタバージョン記憶部5からインタ
プリタバージョンを読出し、これら両バージョンを比較
する(ST23)。
The version comparison unit 6a includes a buffer unit 31.
The tool version is read from the tool version storage unit 3 corresponding to the user program stored in
(T22), the interpreter version is read from the interpreter version storage unit 5, and these two versions are compared (ST23).

【0058】続いて、バージョン比較部6aは、ステッ
プST23による比較結果から両バージョンの整合性の
有無を判定し(ST24)、ステップST23の比較結
果が両バージョンの一致を示すとき、整合性有りと判定
して当該ユーザプログラムの書込処理を実行し(ST2
5)、比較結果が両バージョンの不一致を示すとき、整
合性無しと判定して当該ユーザプログラムの書込を阻止
するための書込阻止指令をプログラム書込阻止部32に
与える(ST26)。
Next, the version comparison unit 6a determines whether or not there is a match between the two versions from the comparison result in step ST23 (ST24), and when the comparison result in step ST23 indicates a match between the two versions, it is determined that there is a match. It is determined and the writing process of the user program is executed (ST2
5) When the comparison result indicates that the two versions do not match, it is determined that there is no consistency and a write-blocking instruction for blocking the writing of the user program is given to the program write-blocking section 32 (ST26).

【0059】一方、プログラム書込阻止部32は、この
書込阻止指令を受けると、バッファ部31に記憶された
ユーザプログラムに対するユーザプログラム記憶部2へ
の書込を阻止する。
On the other hand, when the program write blocking unit 32 receives this write blocking command, it blocks the writing of the user program stored in the buffer unit 31 into the user program storage unit 2.

【0060】上述したように第3の実施例によれば、ユ
ーザプログラム記憶部2にユーザプログラムが書込まれ
るとき、バージョン比較部6aがこのユーザプログラム
に対応してツールバージョン記憶部3に記憶されたツー
ルバージョンとインタプリタバージョン記憶部5に記憶
されたインタプリタバージョンとを比較し、プログラム
書込阻止部32が、このバージョン比較部6aによる比
較の結果、ツールバージョンとインタプリタバージョン
とが不一致のとき、該当するユーザプログラムの書込を
阻止するので、ユーザプログラム及びインタプリタのバ
ージョン不一致のときに、ユーザプログラムのプログラ
マブルコントローラへの書込を阻止することにより、信
頼性を向上できると共に、この書込阻止の動作によって
操作者に異常を通知することができる。
As described above, according to the third embodiment, when the user program is written in the user program storage unit 2, the version comparison unit 6a is stored in the tool version storage unit 3 corresponding to this user program. The tool version and the interpreter version stored in the interpreter version storage unit 5 are compared, and the program write blocking unit 32 determines that the tool version and the interpreter version do not match as a result of the comparison by the version comparing unit 6a. Since the writing of the user program to be executed is prevented, the reliability can be improved by preventing the writing of the user program to the programmable controller when the version mismatch between the user program and the interpreter, and at the same time, the operation of the write inhibition can be prevented. To inform the operator It can be.

【0061】すなわち、第3の実施例によれば、バージ
ョンの整合性のないユーザプログラムがダウンロードさ
れようとしたとき、このダウンロードを阻止する動作を
実行するので、ダウンロード実行をしてあるのに新ユー
ザプログラムによる制御動作を実行しないという操作者
の誤判断を防止でき、且つダウンロードの阻止動作によ
って、バージョン不整合を操作者に示唆することができ
る。
In other words, according to the third embodiment, when a user program having an inconsistent version is about to be downloaded, the operation of blocking the download is executed, so that the new execution is performed even though the download is being executed. The operator's erroneous judgment that the control operation by the user program is not executed can be prevented, and the version inconsistency can be suggested to the operator by the download blocking operation.

【0062】次に、本発明の第4の実施例に係るプログ
ラムツールについて説明する。図10はこのプログラム
ツールの構成を示すブロック図であり、図6と同一部分
には同一符号を付し、ほぼ同一部分にはbの添字を付し
てその詳しい説明は省略し、ここでは異なる部分につい
てのみ述べる。
Next, a program tool according to the fourth embodiment of the present invention will be described. FIG. 10 is a block diagram showing the configuration of this program tool. The same parts as those in FIG. 6 are designated by the same reference numerals, and substantially the same parts are designated by the subscript b, and detailed description thereof is omitted. Only the part will be described.

【0063】すなわち、本実施例装置は、ユーザプログ
ラム及びインタプリタのバージョン不一致のときに、プ
ログラムツール側でユーザプログラムのプログラマブル
コントローラ26への書込を阻止するものであって、具
体的には図1に示す装置に比べ、バージョン比較部27
及び阻止指令送出部28に代えて、バージョン比較部2
7b及びプログラム出力阻止部33を備えている。
That is, the apparatus of the present embodiment prevents writing of the user program to the programmable controller 26 on the program tool side when the versions of the user program and the interpreter do not match. Specifically, FIG. Compared with the device shown in FIG.
And the version comparison unit 2 instead of the blocking command transmission unit 28.
7b and a program output blocking unit 33.

【0064】このバージョン比較部27bは、ユーザプ
ログラムが出力されるとき、このユーザプログラムに対
応してツールバージョン記憶部22に記憶されたツール
バージョンとインタプリタバージョン記憶部25に記憶
されたインタプリタバージョンとを比較する機能をもっ
ている。
When the user program is output, the version comparison unit 27b compares the tool version stored in the tool version storage unit 22 and the interpreter version stored in the interpreter version storage unit 25 in correspondence with the user program. It has a function to compare.

【0065】また、バージョン比較部27bは、ユーザ
プログラムがプログラマブルコントローラ26に出力さ
れるとき、このプログラマブルコントローラ26からイ
ンタプリタバージョンを読出すと共に、読出したインタ
プリタバージョンをインタプリタバージョン記憶部25
に書込む機能をもっている。
When the user program is output to the programmable controller 26, the version comparison unit 27b reads the interpreter version from the programmable controller 26, and the read interpreter version is stored in the interpreter version storage unit 25.
It has a function to write to.

【0066】プログラム出力阻止部33は、このバージ
ョン比較部27bによる比較の結果、ツールバージョン
とインタプリタバージョンとが不一致のとき、ユーザプ
ログラムの出力を阻止する機能をもっている。
The program output blocking unit 33 has a function of blocking the output of the user program when the tool version and the interpreter version do not match as a result of the comparison by the version comparing unit 27b.

【0067】ここで、プログラムツール21bは、図1
1のフローチャートに示すように、ユーザプログラムの
作成を完了し(ST31)、このユーザプログラムをプ
ログラマブルコントローラ26に出力するとき、バージ
ョン比較部27bを起動させる。
Here, the program tool 21b is as shown in FIG.
As shown in the flowchart of FIG. 1, when the creation of the user program is completed (ST31) and the user program is output to the programmable controller 26, the version comparison unit 27b is activated.

【0068】バージョン比較部27bは、プログラマブ
ルコントローラ26からインタプリタバージョンを読出
すと共に(ST32)、読出したインタプリタバージョ
ンをインタプリタバージョン記憶部25に書込む。
The version comparison unit 27b reads the interpreter version from the programmable controller 26 (ST32), and writes the read interpreter version in the interpreter version storage unit 25.

【0069】続いて、バージョン比較部27bは、この
書込んだインタプリタバージョンを読出すと共に、ツー
ルバージョン記憶部22からツールバージョンを読出
し、これら両バージョンを互いに比較する(ST3
3)。
Subsequently, the version comparison unit 27b reads the written interpreter version, reads the tool version from the tool version storage unit 22, and compares the two versions with each other (ST3).
3).

【0070】バージョン比較部27bは、ステップST
23による比較結果から両バージョンの整合性の有無を
判定し(ST34)、ステップST33の比較結果が両
バージョンの一致を示すとき、整合性有りと判定して当
該ユーザプログラムのプログラマブルコントローラ26
への書込処理を実行し(ST35)、比較結果が両バー
ジョンの不一致を示すとき、整合性無しと判定して当該
ユーザプログラムの書込を阻止するための書込阻止指令
をプログラム出力阻止部33に与える(ST36)。
The version comparison unit 27b proceeds to step ST.
It is determined from the comparison result of step 23 whether or not there is a match between the two versions (ST34), and when the comparison result of step ST33 indicates a match between the two versions, it is determined that there is a match and the programmable controller 26 of the user program concerned.
Is executed (ST35), and when the comparison result indicates that the two versions do not match, it is determined that there is no consistency and a write-blocking command for blocking writing of the user program is issued to the program output blocker. 33 (ST36).

【0071】プログラム出力阻止部33は、この書込阻
止指令を受けると、ステップST31で作成完了したユ
ーザプログラムの出力を阻止する。上述したように第4
の実施例によれば、ユーザプログラムが出力されると
き、バージョン比較部27bがこのユーザプログラムに
対応してツールバージョン記憶部22に記憶されたツー
ルバージョンとインタプリタバージョン記憶部25に記
憶されたインタプリタバージョンとを比較し、プログラ
ム出力阻止部33が、このバージョン比較部による比較
の結果、ツールバージョンとインタプリタバージョンと
が不一致のとき、ユーザプログラムの出力を阻止するの
で、ユーザプログラム及びインタプリタのバージョン不
一致のときに、ユーザプログラムのプログラマブルコン
トローラへの出力を阻止することにより、信頼性を向上
できると共に、異常がバージョン不一致であることを通
知することができる。
When the program output blocking unit 33 receives this write blocking command, it blocks the output of the user program completed in step ST31. Fourth as mentioned above
According to the embodiment of the present invention, when the user program is output, the version comparison unit 27b stores the tool version stored in the tool version storage unit 22 and the interpreter version stored in the interpreter version storage unit 25 corresponding to the user program. When the tool version and the interpreter version do not match as a result of the comparison by the version comparing section, the program output blocking unit 33 blocks the output of the user program. Therefore, when the user program and the interpreter version do not match. In addition, by preventing the output of the user program to the programmable controller, it is possible to improve the reliability and notify that the abnormality is the version mismatch.

【0072】すなわち、第4の実施例によれば、バージ
ョンの整合性のないプログラムがダウンロードされよう
としたときに、ダウンロードの実行を阻止するように動
作するので、バージョン不整合の有ることを操作者に通
知することができる。
That is, according to the fourth embodiment, when a program whose version is inconsistent is about to be downloaded, it operates so as to prevent the execution of the download. Can be notified.

【0073】次に、本発明の第5の実施例に係るプログ
ラマブルコントローラについて説明する。図12はこの
プログラマブルコントローラの構成を示すブロック図で
あり、図1と同一部分には同一符号を付し、ほぼ同一部
分にはほぼcの添字を付してその詳しい説明は省略し、
ここでは異なる部分についてのみ述べる。
Next explained is a programmable controller according to the fifth embodiment of the invention. FIG. 12 is a block diagram showing the configuration of this programmable controller. The same portions as those in FIG. 1 are designated by the same reference numerals, almost the same portions are designated by the subscript c, and their detailed description is omitted.
Here, only different parts will be described.

【0074】すなわち、本実施例装置は、ユーザプログ
ラム及びインタプリタのバージョン不一致のときに、ユ
ーザプログラムのバージョンに一致するようにインタプ
リタを選択してユーザプログラムを実行するものであっ
て、具体的には図1に示す装置に比べ、バージョン比較
部6及びプログラム実行阻止部7に代えて、バージョン
比較部6c及びインタプリタ選択部34を備えている。
That is, the apparatus of the present embodiment selects the interpreter so as to match the version of the user program and executes the user program when the versions of the user program and the interpreter do not match. Compared to the device shown in FIG. 1, a version comparison unit 6c and an interpreter selection unit 34 are provided instead of the version comparison unit 6 and the program execution blocking unit 7.

【0075】このバージョン比較部6cは、ユーザプロ
グラム記憶部2に記憶されたユーザプログラムが実行さ
れるとき、このユーザプログラムに対応してツールバー
ジョン記憶部3に記憶されたツールバージョンとインタ
プリタバージョン記憶部4に記憶されたインタプリタバ
ージョンとを比較する機能をもっている。
When the user program stored in the user program storage unit 2 is executed, the version comparison unit 6c stores the tool version stored in the tool version storage unit 3 and the interpreter version storage unit corresponding to the user program. 4 has the function of comparing with the interpreter version stored.

【0076】インタプリタ選択部34は、このバージョ
ン比較部6cによる比較の結果、ツールバージョンとイ
ンタプリタバージョンとが不一致のとき、この不一致と
されたツールバージョンに基づいてインタプリタバージ
ョン記憶部5内の各インタプリタバージョンのうち、不
一致とされたツールバージョンに一致するインタプリタ
バージョンを選択し、この選択されたインタプリタバー
ジョンに基づいてインタプリタ記憶部4内の各インタプ
リタのうち、当該選択されたインタプリタバージョンに
対応するインタプリタを選択する機能をもっている。
When the tool version and the interpreter version do not match as a result of the comparison by the version comparing section 6c, the interpreter selecting section 34 determines each interpreter version in the interpreter version storage section 5 based on the mismatched tool version. Among them, an interpreter version that matches the mismatched tool version is selected, and an interpreter corresponding to the selected interpreter version is selected from among the interpreters in the interpreter storage unit 4 based on the selected interpreter version. It has a function to do.

【0077】ここで、ユーザプログラム記憶部2内のユ
ーザプログラムが実行されるとする。バージョン比較部
6cは、図13に示すように、バージョンを比較するユ
ーザプログラムの番号を“1番目”に設定し(ST4
1)、この1番目のユーザプログラムの変更の有無を判
定し(ST42)、判定結果が変更無しのとき、次の番
号のユーザプログラムの判定に進むが、判定結果が変更
有りのとき、変更に用いたプログラムツールのツールバ
ージョンとインタプリタバージョンとを比較する(ST
43)。
Here, it is assumed that the user program in the user program storage unit 2 is executed. As shown in FIG. 13, the version comparison unit 6c sets the number of the user program for version comparison to "first" (ST4
1) It is determined whether or not the first user program is changed (ST42). When the determination result is no change, the process proceeds to the determination of the user program of the next number. Compare the tool version and the interpreter version of the programming tool used (ST
43).

【0078】続いて、バージョン比較部6cは、ステッ
プST43による比較結果から両バージョンの整合性の
有無を判定し(ST44)、ステップST43の比較結
果が両バージョンの一致を示すとき、整合性有りと判定
してインタプリタを現在のバージョンで動作させて当該
ユーザプログラムを実行させ(ST45)、比較結果が
両バージョンの不一致を示すとき、整合性無しと判定し
て当該両バージョンを一致させるためのインタプリタ選
択処理を実行する(ST46)。なお、例えばここで
は、インタプリタ選択処理として、このユーザプログラ
ムに対応してインタプリタ選択有情報をインタプリタ選
択部34に与えている。
Subsequently, the version comparison unit 6c determines whether or not there is a match between the two versions from the comparison result in step ST43 (ST44), and when the result of the comparison in step ST43 indicates a match between the two versions, there is a match. If it is determined that the interpreter is operating in the current version and the user program is executed (ST45), and the comparison result indicates that the two versions do not match, it is determined that there is no inconsistency, and the interpreter is selected to match the two versions. The process is executed (ST46). In this case, for example, as interpreter selection processing, interpreter selection presence information is given to the interpreter selection unit 34 corresponding to this user program.

【0079】しかる後、バージョン比較部6cは、ユー
ザプログラムの番号を“+1”だけ更新し(ST4
7)、この更新したユーザプログラムの番号に基づいて
全てのユーザプログラムの変更の有無を確認したか否か
を判定し(ST48)、判定結果が否のとき、ステップ
ST42に戻り、判定結果が確認済を示すとき、処理終
了通知をインタプリタ選択部34に与える。
Thereafter, the version comparison unit 6c updates the number of the user program by "+1" (ST4
7) Based on this updated user program number, it is determined whether or not all user programs have been changed (ST48). When the determination result is negative, the process returns to step ST42 and the determination result is confirmed. When it indicates that the process has been completed, a process end notification is given to the interpreter selection unit 34.

【0080】インタプリタ選択部34は、この処理終了
通知を受けると、全てのユーザプログラムのうち、ステ
ップST46においてインタプリタ選択有情報を受けた
ユーザプログラムのツールバージョンに基づいて、この
ツールバージョンに一致するインタプリタバージョンを
もったインタプリタを選択する。
When the interpreter selection unit 34 receives this processing end notification, based on the tool version of the user program that has received the interpreter selection existence information in step ST46 among all the user programs, the interpreter that matches this tool version. Select an interpreter with a version.

【0081】これにより、ユーザプログラム及びインタ
プリタのバージョン不一致のときに、ユーザプログラム
のバージョンに一致するように選択されたインタプリタ
がユーザプログラムを実行するので、作成したユーザプ
ログラムを有効に利用することができる。
As a result, when the versions of the user program and the interpreter do not match, the interpreter selected so as to match the version of the user program executes the user program, so that the created user program can be effectively used. .

【0082】上述したように第5の実施例によれば、ユ
ーザプログラム記憶部2に記憶されたユーザプログラム
が実行されるとき、バージョン比較部6cがこのユーザ
プログラムに対応してツールバージョン記憶部3に記憶
されたツールバージョンとインタプリタバージョン記憶
部5に記憶されたインタプリタバージョンとを比較し、
インタプリタ選択部34が、このバージョン比較部6c
による比較の結果、ツールバージョンとインタプリタバ
ージョンとが不一致のとき、この不一致とされたツール
バージョンに基づいてインタプリタバージョン記憶部5
内の各インタプリタバージョンのうち、不一致とされた
ツールバージョンに一致するインタプリタバージョンを
選択し、この選択されたインタプリタバージョンに基づ
いてインタプリタ記憶部4内の各インタプリタのうち、
選択されたインタプリタバージョンに対応するインタプ
リタを選択するので、ユーザプログラム及びインタプリ
タのバージョン不一致のときに、ユーザプログラムのバ
ージョンに一致するように選択されたインタプリタがユ
ーザプログラムを実行することにより、信頼性を向上で
きると共に、作成したユーザプログラムを有効に利用す
ることができる。
As described above, according to the fifth embodiment, when the user program stored in the user program storage unit 2 is executed, the version comparison unit 6c causes the tool version storage unit 3 to correspond to the user program. Comparing the tool version stored in and the interpreter version stored in the interpreter version storage unit 5,
The interpreter selection unit 34 uses the version comparison unit 6c.
When the tool version and the interpreter version do not match as a result of the comparison by, the interpreter version storage unit 5 is based on the mismatched tool version.
Among the interpreter versions in the above, an interpreter version that matches the mismatched tool version is selected, and among the interpreters in the interpreter storage unit 4 based on the selected interpreter version,
Since the interpreter corresponding to the selected interpreter version is selected, when the version mismatch between the user program and the interpreter, the interpreter selected so as to match the version of the user program executes the user program to improve reliability. The user program can be improved and the created user program can be effectively used.

【0083】すなわち、第5の実施例によれば、バージ
ョンの整合性のないユーザプログラムをダウンロードし
ても、このユーザプログラムの適当な範囲で実行できる
ので、少なくとも新ユーザプログラムの一部が実行可能
となり、新ユーザプログラムにより定義された新機能を
全て捨て去るということが無くなる。
That is, according to the fifth embodiment, even if a user program having an inconsistent version is downloaded, it can be executed within an appropriate range of this user program, so that at least a part of the new user program can be executed. Therefore, it is not necessary to discard all the new functions defined by the new user program.

【0084】また、旧バージョンのユーザプログラムを
実行するとき、このユーザプログラムの本来の意図に従
った制御動作の実行を期待することができる。次に、本
発明の第6の実施例に係るプログラムツールについて説
明する。
Further, when the user program of the old version is executed, it is possible to expect the execution of the control operation according to the original intention of this user program. Next, a programming tool according to the sixth embodiment of the present invention will be described.

【0085】図14はこのプログラムツールの構成を示
すブロック図であり、図6と同一部分には同一符号を付
し、ほぼ同一部分にはdの添字を付してその詳しい説明
は省略し、ここでは異なる部分についてのみ述べる。
FIG. 14 is a block diagram showing the structure of this program tool. The same parts as those in FIG. 6 are designated by the same reference numerals, and substantially the same parts are designated by a subscript d, and their detailed description is omitted. Here, only different parts will be described.

【0086】すなわち、本実施例装置は、ユーザプログ
ラム及びインタプリタのバージョン不一致のときに、イ
ンタプリタのバージョンに一致するように選択された作
成プログラムに基づいてユーザプログラムを作成するも
のであって、具体的には図6に示す装置に比べ、ツール
バージョン記憶部22に記憶された各ツールバージョン
毎にユーザプログラムを作成するための複数の作成プロ
グラムが記憶された作成プログラム記憶部を有するユー
ザプログラム作成部24dを設け、且つバージョン比較
部27及び阻止指令送出部28に代えて、バージョン比
較部27d及び作成プログラム選択部35を備えてい
る。
That is, the apparatus of this embodiment creates a user program based on a creation program selected so as to match the version of the interpreter when the versions of the user program and the interpreter do not match. In comparison with the device shown in FIG. 6, a user program creation unit 24d having a creation program storage unit that stores a plurality of creation programs for creating user programs for each tool version stored in the tool version storage unit 22. And a version comparison unit 27d and a created program selection unit 35 in place of the version comparison unit 27 and the blocking command transmission unit 28.

【0087】このバージョン比較部27dは、ユーザプ
ログラムが作成されるとき、このユーザプログラムに対
応してツールバージョン記憶部22に記憶されたツール
バージョンとインタプリタバージョン記憶部25に記憶
されたインタプリタバージョンとを比較する機能をもっ
ている。
When the user program is created, the version comparison unit 27d compares the tool version stored in the tool version storage unit 22 and the interpreter version stored in the interpreter version storage unit 25 in correspondence with the user program. It has a function to compare.

【0088】また、バージョン比較部27dは、ユーザ
プログラムが作成されるとき、プログラマブルコントロ
ーラ26からインタプリタバージョンを読出すと共に、
読出したインタプリタバージョンをインタプリタバージ
ョン記憶部25に書込む機能をもっている。
The version comparing section 27d reads the interpreter version from the programmable controller 26 when the user program is created, and
It has a function of writing the read interpreter version in the interpreter version storage unit 25.

【0089】作成プログラム選択部35は、このバージ
ョン比較部27dによる比較の結果、ツールバージョン
とインタプリタバージョンとが不一致のとき、この不一
致とされたインタプリタバージョンに基づいてツールバ
ージョン記憶部22内の各ツールバージョンのうち、不
一致とされたインタプリタバージョンに一致するツール
バージョンを選択し、この選択されたツールバージョン
に基づいて作成プログラム記憶部内の各作成プログラム
のうち、当該選択されたツールバージョンに対応する作
成プログラムを選択する機能をもっている。
When the tool version and the interpreter version do not match as a result of the comparison by the version comparing section 27d, the created program selecting section 35 determines each tool in the tool version storing section 22 based on the mismatched interpreter version. Among the versions, a tool version that matches the interpreter version that is determined to be inconsistent is selected, and the creation program corresponding to the selected tool version among the creation programs in the creation program storage unit based on the selected tool version. Has the function of selecting.

【0090】ここで、プログラムツール21dは、ユー
ザプログラムの作成を開始するとき、バージョン比較部
27dを起動させる。バージョン比較部27dは、図1
5のフローチャートに示すように、プログラマブルコン
トローラ26からインタプリタバージョンを読出すと共
に(ST51)、読出したインタプリタバージョンをイ
ンタプリタバージョン記憶部25に書込む。
Here, the program tool 21d activates the version comparison unit 27d when starting the creation of the user program. The version comparison unit 27d is shown in FIG.
As shown in the flowchart of FIG. 5, the interpreter version is read from the programmable controller 26 (ST51), and the read interpreter version is written in the interpreter version storage unit 25.

【0091】続いて、バージョン比較部27dは、この
書込んだインタプリタバージョンを読出すと共に、ツー
ルバージョン記憶部22からツールバージョンを読出
し、これら両バージョンを互いに比較する(ST5
2)。
Then, the version comparison unit 27d reads the written interpreter version, reads the tool version from the tool version storage unit 22, and compares the both versions with each other (ST5).
2).

【0092】バージョン比較部27dは、ステップST
52による比較結果から両バージョンの整合性の有無を
判定し(ST53)、ステップST52の比較結果が両
バージョンの一致を示すとき、整合性有りと判定して作
成プログラムを現在のバージョンで動作させて当該ユー
ザプログラムの作成を開始させ(ST54)、比較結果
が両バージョンの不一致を示すとき、整合性無しと判定
して当該両バージョンの新旧関係をバージョン番号の大
小関係から判定し(ST55)、この判定の結果、ツー
ルバージョンがインタプリタバージョンよりも古いと
き、作成開始を許可してステップST54に行き、ステ
ップST55による判定の結果、ツールバージョンがイ
ンタプリタバージョンよりも新しいとき、両バージョン
を一致させるための作成プログラム選択処理を実行する
(ST56)。なお、例えばここでは、作成プログラム
選択処理として、このユーザプログラムに対応して作成
プログラム選択指令を作成プログラム選択部35に与え
ている。
The version comparison unit 27d proceeds to step ST
It is determined from the comparison result of 52 that both versions are consistent (ST53), and when the comparison result of step ST52 indicates that both versions match, it is determined that there is consistency and the creation program is run with the current version. The creation of the user program is started (ST54), and when the comparison result indicates that the two versions do not match, it is determined that there is no consistency, and the old / new relationship between the two versions is determined from the size relationship of the version numbers (ST55). As a result of the determination, when the tool version is older than the interpreter version, the creation start is permitted and the process goes to step ST54. When the result of the determination in step ST55 is that the tool version is newer than the interpreter version, the creation is made to match both versions. Program selection processing is executed (ST56). It should be noted that, for example, here, as a creation program selection process, a creation program selection command is given to the creation program selection unit 35 corresponding to this user program.

【0093】作成プログラム選択部35は、この作成プ
ログラム選択指令を受けると、ステップST53におい
て不一致とされたツールバージョンに基づいて、前述し
た通り、このツールバージョンに一致する作成プログラ
ムを選択する。
Upon receipt of this creation program selection command, the creation program selection unit 35 selects the creation program that matches this tool version, as described above, based on the tool version that has been made inconsistent in step ST53.

【0094】これにより、ユーザプログラム作成部24
dは、ユーザプログラム及びインタプリタのバージョン
不一致のときであっても、インタプリタのバージョンに
一致するように選択された作成プログラムに基づいてユ
ーザプログラムを作成する(ST57)。
As a result, the user program creating section 24
Even when the versions of the user program and the interpreter do not match, d creates the user program based on the creating program selected so as to match the version of the interpreter (ST57).

【0095】上述したように第6の実施例によれば、ユ
ーザプログラムが作成されるとき、バージョン比較部2
7dがこのユーザプログラムに対応してツールバージョ
ン記憶部22に記憶されたツールバージョンとインタプ
リタバージョン記憶部25に記憶されたインタプリタバ
ージョンとを比較し、作成プログラム選択部35が、こ
のバージョン比較部27dによる比較の結果、ツールバ
ージョンとインタプリタバージョンとが不一致のとき、
この不一致とされたインタプリタバージョンに基づいて
ツールバージョン記憶部22内の各ツールバージョンの
うち、不一致とされたインタプリタバージョンに一致す
るツールバージョンを選択し、この選択されたツールバ
ージョンに基づいて作成プログラム記憶部内の各作成プ
ログラムのうち、選択されたツールバージョンに対応す
る作成プログラムを選択するので、ユーザプログラム及
びインタプリタのバージョン不一致のときに、インタプ
リタのバージョンに一致するように選択された作成プロ
グラムに基づいてユーザプログラムを作成することによ
り、信頼性を向上できると共に、プログラマブルコント
ローラの本来の動作に従ったユーザプログラムを作成で
き、プログラマブルコントローラを充分に機能させるこ
とができる。
As described above, according to the sixth embodiment, when the user program is created, the version comparison unit 2
7d compares the tool version stored in the tool version storage unit 22 with the interpreter version stored in the interpreter version storage unit 25 corresponding to this user program, and the creation program selection unit 35 uses the version comparison unit 27d. As a result of comparison, when the tool version and the interpreter version do not match,
Based on this mismatched interpreter version, a tool version that matches the mismatched interpreter version is selected from among the tool versions in the tool version storage unit 22, and the created program memory is stored based on this selected tool version. Since the creation program corresponding to the selected tool version is selected from among the creation programs in the department, based on the creation program selected to match the version of the interpreter when the versions of the user program and interpreter do not match. By creating the user program, the reliability can be improved, and the user program that complies with the original operation of the programmable controller can be created, so that the programmable controller can fully function.

【0096】なお、上記第1の実施例では、ユーザプロ
グラムを実行させるときにバージョン比較部6を動作さ
せる場合について説明したが、これに限らず、ユーザプ
ログラムが書込又は変更されたときにバージョン比較部
6を動作させる構成としても、本発明と同様の効果を得
ることができる。
In the first embodiment, the case where the version comparison unit 6 is operated when the user program is executed has been described. However, the present invention is not limited to this, and the version is updated when the user program is written or changed. Even if the comparison unit 6 is operated, the same effect as the present invention can be obtained.

【0097】また、上記第2の実施例では、ユーザプロ
グラムが出力されるときにバージョン比較部27を動作
させる場合について説明したが、これに限らず、ユーザ
プログラムを書込又は変更するときにバージョン比較部
27を動作させる構成としても、本発明と同様の効果を
得ることができる。
Further, in the second embodiment described above, the case where the version comparison unit 27 is operated when the user program is output has been described, but the present invention is not limited to this, and when the user program is written or changed, the version Even if the comparison unit 27 is operated, the same effect as that of the present invention can be obtained.

【0098】さらに、上記第3の実施例では、ユーザプ
ログラムが書込まれるときにバージョン比較部6aを動
作させる場合について説明したが、これに限らず、ユー
ザプログラムが変更され又は新規に作成されて書込まれ
るときにバージョン比較部6aを動作させる構成として
も、本発明を同様に実施して同様の効果を得ることがで
きる。
Furthermore, in the third embodiment described above, the case where the version comparison unit 6a is operated when the user program is written has been described, but the present invention is not limited to this, and the user program may be changed or newly created. Even if the version comparing section 6a is made to operate at the time of writing, the present invention can be similarly implemented and the same effect can be obtained.

【0099】また、上記第4の実施例では、ユーザプロ
グラムが出力されるときにバージョン比較部27bを動
作させる場合について説明したが、これに限らず、ユー
ザプログラムを変更し又は新規に作成してプログラマブ
ルコントローラに出力(書込み)するときにバージョン
比較部27bを動作させる構成としても、本発明を同様
に実施して同様の効果を得ることができる。
In the fourth embodiment, the case where the version comparison unit 27b is operated when the user program is output has been described, but the present invention is not limited to this, and the user program may be changed or newly created. Even when the version comparison unit 27b is operated when outputting (writing) to the programmable controller, the present invention can be similarly implemented and the same effect can be obtained.

【0100】さらに、上記第5の実施例では、ユーザプ
ログラムを実行させるときにバージョン比較部6cを動
作させる場合について説明したが、これに限らず、ユー
ザプログラムが書込又は変更されたときにバージョン比
較部6cを動作させる構成としても、本発明と同様の効
果を得ることができる。
Further, in the fifth embodiment described above, the case where the version comparison unit 6c is operated when the user program is executed has been described, but the present invention is not limited to this, and the version is updated when the user program is written or changed. Even if the comparison unit 6c is operated, the same effect as the present invention can be obtained.

【0101】また、上記第6の実施例では、ユーザプロ
グラムが作成されるときにバージョン比較部27dを動
作させる場合について説明したが、これに限らず、ユー
ザプログラムを変更するときにバージョン比較部27d
を動作させる構成としても、本発明と同様の効果を得る
ことができる。その他、本発明はその要旨を逸脱しない
範囲で種々変形して実施できる。
In the sixth embodiment, the case where the version comparison unit 27d is operated when the user program is created has been described, but the present invention is not limited to this, and the version comparison unit 27d is changed when the user program is changed.
The same effect as that of the present invention can be obtained even when the configuration is operated. In addition, the present invention can be modified in various ways without departing from the scope of the invention.

【0102】[0102]

【発明の効果】以上説明したように請求項1の発明によ
れば、ユーザプログラム及びインタプリタのバージョン
不一致のときに、ユーザプログラムがプログラマブルコ
ントローラに記憶された状態であっても、ユーザプログ
ラムの実行を阻止することにより、信頼性を向上できる
プログラマブルコントローラを提供できる。
As described above, according to the first aspect of the invention, when the versions of the user program and the interpreter do not match, the user program is executed even if the user program is stored in the programmable controller. By blocking, the programmable controller which can improve reliability can be provided.

【0103】また、請求項2の発明によれば、ユーザプ
ログラム及びインタプリタのバージョン不一致のとき
に、ユーザプログラムがプログラマブルコントローラに
記憶された状態であっても、実行阻止指令をプログラマ
ブルコントローラに与えてユーザプログラムの実行を阻
止することにより、信頼性を向上できるプログラムツー
ルを提供できる。
According to the second aspect of the present invention, when the versions of the user program and the interpreter do not match, even if the user program is stored in the programmable controller, the execution inhibiting command is given to the programmable controller to allow the user to do so. By blocking the execution of the program, it is possible to provide a program tool that can improve reliability.

【0104】さらに、請求項3の発明によれば、ユーザ
プログラム及びインタプリタのバージョン不一致のとき
に、ユーザプログラムのプログラマブルコントローラへ
の書込を阻止することにより、信頼性を向上できると共
に、この書込阻止の動作によって操作者に異常を通知で
きるプログラマブルコントローラを提供できる。
Further, according to the third aspect of the present invention, when the versions of the user program and the interpreter do not match, the writing of the user program to the programmable controller is prevented, so that the reliability can be improved and the writing can be performed. It is possible to provide a programmable controller capable of notifying an operator of an abnormality by a blocking operation.

【0105】また、請求項4の発明によれば、ユーザプ
ログラム及びインタプリタのバージョン不一致のとき
に、ユーザプログラムのプログラマブルコントローラへ
の出力を阻止することにより、信頼性を向上できると共
に、異常がバージョン不一致であることを通知できるプ
ログラムツールを提供できる。
According to the fourth aspect of the invention, when the versions of the user program and the interpreter do not match, the output of the user program to the programmable controller is blocked, so that the reliability can be improved, and the abnormality causes the version mismatch. It is possible to provide a program tool that can notify that

【0106】さらに、請求項5の発明によれば、ユーザ
プログラム及びインタプリタのバージョン不一致のとき
に、ユーザプログラムのバージョンに一致するように選
択されたインタプリタがユーザプログラムを実行するこ
とにより、信頼性を向上できると共に、作成したユーザ
プログラムを有効に利用できるプログラマブルコントロ
ーラを提供できる。
Further, according to the invention of claim 5, when the versions of the user program and the interpreter do not match, the interpreter selected so as to match the version of the user program executes the user program, thereby improving reliability. It is possible to provide a programmable controller that can be improved and can effectively use the created user program.

【0107】また、請求項6の発明によれば、ユーザプ
ログラム及びインタプリタのバージョン不一致のとき
に、インタプリタのバージョンに一致するように選択さ
れた作成プログラムに基づいてユーザプログラムを作成
することにより、信頼性を向上できると共に、プログラ
マブルコントローラを充分に機能させ得るプログラムツ
ールを提供できる。
According to the sixth aspect of the invention, when the versions of the user program and the interpreter do not match, the user program is created based on the creating program selected so as to match the version of the interpreter. It is possible to provide a programming tool that can improve the performance and allow the programmable controller to fully function.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1の実施例に係るプログラマブルコ
ントローラの構成を示すブロック図
FIG. 1 is a block diagram showing a configuration of a programmable controller according to a first embodiment of the present invention.

【図2】同実施例におけるプログラマブルコントローラ
のハードウエア構成を示す図
FIG. 2 is a diagram showing a hardware configuration of a programmable controller in the embodiment.

【図3】同実施例におけるシステムROMの構成を示す
FIG. 3 is a diagram showing a configuration of a system ROM in the embodiment.

【図4】同実施例におけるユーザRAMの構成を示す図FIG. 4 is a diagram showing a configuration of a user RAM in the embodiment.

【図5】同実施例における動作を説明するためのフロー
チャート
FIG. 5 is a flowchart for explaining the operation in the embodiment.

【図6】本発明の第2の実施例に係るプログラムツール
の構成を示すブロック図
FIG. 6 is a block diagram showing a configuration of a program tool according to a second embodiment of the present invention.

【図7】同実施例における動作を説明するためのフロー
チャート
FIG. 7 is a flowchart for explaining the operation in the same embodiment.

【図8】本発明の第3の実施例に係るプログラマブルコ
ントローラの構成を示すブロック図
FIG. 8 is a block diagram showing a configuration of a programmable controller according to a third embodiment of the present invention.

【図9】同実施例における動作を説明するためのフロー
チャート
FIG. 9 is a flowchart for explaining the operation in the embodiment.

【図10】本発明の第4の実施例に係るプログラムツー
ルの構成を示すブロック図
FIG. 10 is a block diagram showing a configuration of a program tool according to a fourth embodiment of the present invention.

【図11】同実施例における動作を説明するためのフロ
ーチャート
FIG. 11 is a flowchart for explaining the operation in the embodiment.

【図12】本発明の第5の実施例に係るプログラマブル
コントローラの構成を示すブロック図
FIG. 12 is a block diagram showing the configuration of a programmable controller according to a fifth embodiment of the present invention.

【図13】同実施例における動作を説明するためのフロ
ーチャート
FIG. 13 is a flowchart for explaining the operation in the same embodiment.

【図14】本発明の第6の実施例に係るプログラムツー
ルの構成を示すブロック図
FIG. 14 is a block diagram showing the configuration of a program tool according to a sixth embodiment of the present invention.

【図15】同実施例における動作を説明するためのフロ
ーチャート
FIG. 15 is a flowchart for explaining the operation in the embodiment.

【符号の説明】[Explanation of symbols]

1,1a,1c,26…プログラマブルコントローラ、
2…ユーザプログラム記憶部、3,22…ツールバージ
ョン記憶部、4…インタプリタ記憶部、5,25…イン
タプリタバージョン記憶部、6,6a,6c,27,2
7b,27d…バージョン比較部、7…プログラム実行
阻止部、8,21,21b,21d…プログラムツー
ル、24,24d…ユーザプログラム作成部、28…阻
止指令送出部、31…バッファ部、32…プログラム書
込阻止部、33…プログラム出力阻止部、34…インタ
プリタ選択部、35…作成プログラム選択部。
1, 1a, 1c, 26 ... Programmable controller,
2 ... User program storage unit, 3, 22 ... Tool version storage unit, 4 ... Interpreter storage unit, 5, 25 ... Interpreter version storage unit, 6, 6a, 6c, 27, 2
7b, 27d ... Version comparison section, 7 ... Program execution blocking section, 8, 21, 21, 21b, 21d ... Program tool, 24, 24d ... User program creating section, 28 ... Blocking command sending section, 31 ... Buffer section, 32 ... Program Write blocking unit 33 ... Program output blocking unit 34 ... Interpreter selection unit 35 ... Creation program selection unit.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 ユーザプログラムに基づいて処理を実行
するためのインタプリタを備えたプログラマブルコント
ローラにおいて、 一つ以上のユーザプログラムが記憶されるユーザプログ
ラム記憶手段と、 このユーザプログラム記憶手段に記憶されるユーザプロ
グラム毎に、対応するプログラムツールのツールバージ
ョンが記憶されるツールバージョン記憶手段と、 前記インタプリタのインタプリタバージョンが記憶され
るインタプリタバージョン記憶手段と、 前記ユーザプログラム記憶手段に記憶されたユーザプロ
グラムが実行されるとき、このユーザプログラムに対応
して前記ツールバージョン記憶手段に記憶されたツール
バージョンと前記インタプリタバージョン記憶手段に記
憶されたインタプリタバージョンとを比較するバージョ
ン比較手段と、 このバージョン比較手段による比較の結果、前記ツール
バージョンと前記インタプリタバージョンとが不一致の
とき、該当するユーザプログラムの実行を阻止するプロ
グラム実行阻止手段とを備えたことを特徴とするプログ
ラマブルコントローラ。
1. A programmable controller having an interpreter for executing a process based on a user program, wherein the user program storage means stores one or more user programs, and the user stored in the user program storage means. For each program, a tool version storage means for storing a tool version of a corresponding program tool, an interpreter version storage means for storing an interpreter version of the interpreter, and a user program stored in the user program storage means are executed. When comparing the user version, the tool version stored in the tool version storage means and the interpreter version stored in the interpreter version storage means are compared. A programmable controller comprising: comparing means; and program execution inhibiting means for inhibiting execution of a corresponding user program when the tool version and the interpreter version do not match as a result of comparison by the version comparing means. .
【請求項2】 ユーザプログラムを作成してプログラマ
ブルコントローラに出力するプログラムツールにおい
て、 ツール本体のバージョンが記憶されるツールバージョン
記憶手段と、 前記ユーザプログラムが実行されるインタプリタにおけ
るインタプリタバージョンが記憶されるインタプリタバ
ージョン記憶手段と、 前記ユーザプログラムが出力されるとき、このユーザプ
ログラムに対応して前記ツールバージョン記憶手段に記
憶されたツールバージョンと前記インタプリタバージョ
ン記憶手段に記憶されたインタプリタバージョンとを比
較するバージョン比較手段と、 このバージョン比較手段による比較の結果、前記ツール
バージョンと前記インタプリタバージョンとが不一致の
とき、前記ユーザプログラムの実行阻止指令を前記プロ
グラマブルコントローラに送出する阻止指令送出手段と
を備えたことを特徴とするプログラムツール。
2. In a program tool for creating a user program and outputting it to a programmable controller, a tool version storage means for storing a version of a tool body and an interpreter for storing an interpreter version in an interpreter for executing the user program. Version comparison means for comparing the tool version stored in the tool version storage means with the interpreter version stored in the interpreter version storage means when the user program is output And the result of the comparison by the version comparison means, when the tool version and the interpreter version do not match, the execution prohibiting instruction of the user program is issued. Programming Tools, characterized in that a blocking command sending means for sending to Ma logic controllers.
【請求項3】 ユーザプログラムに基づいて処理を実行
するためのインタプリタを備えたプログラマブルコント
ローラにおいて、 一つ以上のユーザプログラムが記憶されるユーザプログ
ラム記憶手段と、 このユーザプログラム記憶手段に記憶されるユーザプロ
グラム毎に、対応するプログラムツールのツールバージ
ョンが記憶されるツールバージョン記憶手段と、 前記インタプリタのインタプリタバージョンが記憶され
るインタプリタバージョン記憶手段と、 前記ユーザプログラム記憶手段にユーザプログラムが書
込まれるとき、このユーザプログラムに対応して前記ツ
ールバージョン記憶手段に記憶されたツールバージョン
と前記インタプリタバージョン記憶手段に記憶されたイ
ンタプリタバージョンとを比較するバージョン比較手段
と、 このバージョン比較手段による比較の結果、前記ツール
バージョンと前記インタプリタバージョンとが不一致の
とき、該当するユーザプログラムの書込を阻止するプロ
グラム書込阻止手段とを備えたことを特徴とするプログ
ラマブルコントローラ。
3. A programmable controller having an interpreter for executing a process based on a user program, a user program storing means for storing one or more user programs, and a user stored in the user program storing means. For each program, a tool version storage means for storing a tool version of a corresponding program tool, an interpreter version storage means for storing an interpreter version of the interpreter, and a user program written in the user program storage means, Version comparison means for comparing the tool version stored in the tool version storage means with the interpreter version stored in the interpreter version storage means in correspondence with the user program. The version comparison means compares the results of the case Tool version and said interpreter version mismatch, programmable controller, characterized in that a program writing inhibiting means for inhibiting the writing of the corresponding user program.
【請求項4】 ユーザプログラムを作成して出力可能な
プログラムツールにおいて、 ツール本体のバージョンが記憶されるツールバージョン
記憶手段と、 前記ユーザプログラムが実行されるインタプリタにおけ
るインタプリタバージョンが記憶されるインタプリタバ
ージョン記憶手段と、 前記ユーザプログラムが出力されるとき、このユーザプ
ログラムに対応して前記ツールバージョン記憶手段に記
憶されたツールバージョンと前記インタプリタバージョ
ン記憶手段に記憶されたインタプリタバージョンとを比
較するバージョン比較手段と、 このバージョン比較手段による比較の結果、前記ツール
バージョンと前記インタプリタバージョンとが不一致の
とき、前記ユーザプログラムの出力を阻止するプログラ
ム出力阻止手段とを備えたことを特徴とするプログラム
ツール。
4. In a program tool capable of creating and outputting a user program, a tool version storage means for storing a version of a tool body, and an interpreter version storage for storing an interpreter version in an interpreter on which the user program is executed. Means for comparing the tool version stored in the tool version storage means with the interpreter version stored in the interpreter version storage means when the user program is output, A program output blocking means for blocking the output of the user program when the tool version and the interpreter version do not match as a result of the comparison by the version comparing means. Program tools and features.
【請求項5】 ユーザプログラムに基づいて処理を実行
するプログラマブルコントローラにおいて、 一つ以上のユーザプログラムが記憶されるユーザプログ
ラム記憶手段と、 このユーザプログラム記憶手段に記憶されるユーザプロ
グラム毎に、対応するプログラムツールのツールバージ
ョンが記憶されるツールバージョン記憶手段と、 前記ツールバージョン記憶手段に記憶されたツールバー
ジョン毎に前記ユーザプログラムを実行するための複数
のインタプリタが記憶されたインタプリタ記憶手段と、 このインタプリタ記憶手段に記憶された各インタプリタ
毎に、対応するインタプリタバージョンが記憶されるイ
ンタプリタバージョン記憶手段と、 前記ユーザプログラム記憶手段に記憶されたユーザプロ
グラムが実行されるとき、このユーザプログラムに対応
して前記ツールバージョン記憶手段に記憶されたツール
バージョンと前記インタプリタバージョン記憶手段に記
憶されたインタプリタバージョンとを比較するバージョ
ン比較手段と、 このバージョン比較手段による比較の結果、前記ツール
バージョンと前記インタプリタバージョンとが不一致の
とき、この不一致とされたツールバージョンに基づいて
前記インタプリタバージョン記憶手段内の各インタプリ
タバージョンのうち、前記不一致とされたツールバージ
ョンに一致するインタプリタバージョンを選択し、この
選択されたインタプリタバージョンに基づいて前記イン
タプリタ記憶手段内の各インタプリタのうち、前記選択
されたインタプリタバージョンに対応するインタプリタ
を選択するインタプリタ選択手段とを備えたことを特徴
とするプログラマブルコントローラ。
5. A programmable controller for executing a process based on a user program, wherein user program storage means for storing one or more user programs, and each user program stored in the user program storage means are provided. Tool version storage means for storing a tool version of a program tool; interpreter storage means for storing a plurality of interpreters for executing the user program for each tool version stored in the tool version storage means; An interpreter version storage means for storing a corresponding interpreter version for each interpreter stored in the storage means, and a user program stored in the user program storage means when the user program is executed. Version comparison means for comparing the tool version stored in the tool version storage means with the interpreter version stored in the interpreter version storage means corresponding to the program, and the result of the comparison by the version comparison means, the tool version When the interpreter version does not match, the interpreter version matching each of the mismatched tool versions is selected from among the interpreter versions in the interpreter version storage means based on the mismatched tool version, and this selection is made. Interpreter selecting means for selecting an interpreter corresponding to the selected interpreter version from among the interpreters in the interpreter storage means based on the interpreted version. Programmable controller, characterized in that was example.
【請求項6】 ユーザプログラムを作成してプログラマ
ブルコントローラに出力するプログラムツールにおい
て、 ツール本体の複数のツールバージョンが記憶されるツー
ルバージョン記憶手段と、 このツールバージョン記憶手段に記憶された各ツールバ
ージョン毎に前記ユーザプログラムを作成するための複
数の作成プログラムが記憶された作成プログラム記憶手
段と、 前記ユーザプログラムが実行されるインタプリタにおけ
るインタプリタバージョンが記憶されるインタプリタバ
ージョン記憶手段と、 前記ユーザプログラムが作成されるとき、このユーザプ
ログラムに対応して前記ツールバージョン記憶手段に記
憶されたツールバージョンと前記インタプリタバージョ
ン記憶手段に記憶されたインタプリタバージョンとを比
較するバージョン比較手段と、 このバージョン比較手段による比較の結果、前記ツール
バージョンと前記インタプリタバージョンとが不一致の
とき、この不一致とされたインタプリタバージョンに基
づいて前記ツールバージョン記憶手段内の各ツールバー
ジョンのうち、前記不一致とされたインタプリタバージ
ョンに一致するツールバージョンを選択し、この選択さ
れたツールバージョンに基づいて前記作成プログラム記
憶手段内の各作成プログラムのうち、前記選択されたツ
ールバージョンに対応する作成プログラムを選択する作
成プログラム選択手段とを備えたことを特徴とするプロ
グラムツール。
6. In a program tool for creating a user program and outputting it to a programmable controller, tool version storage means for storing a plurality of tool versions of the tool body, and each tool version stored in the tool version storage means. A creation program storage means for storing a plurality of creation programs for creating the user program, an interpreter version storage means for storing an interpreter version in an interpreter in which the user program is executed, and the user program And a bar code for comparing the tool version stored in the tool version storage means with the interpreter version stored in the interpreter version storage means in correspondence with the user program. When the tool version and the interpreter version do not match as a result of comparison by the version comparing means, the tool version storing means based on the mismatched interpreter version among the tool versions in the tool version storing means. A tool version that matches the interpreted version that is not matched is selected, and a creation program corresponding to the selected tool version is selected from among the creation programs in the creation program storage means based on the selected tool version. A programming tool comprising a creating program selecting means for selecting.
JP04237394A 1994-03-14 1994-03-14 Programmable controller and program tool therefor Expired - Fee Related JP3270238B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04237394A JP3270238B2 (en) 1994-03-14 1994-03-14 Programmable controller and program tool therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04237394A JP3270238B2 (en) 1994-03-14 1994-03-14 Programmable controller and program tool therefor

Publications (2)

Publication Number Publication Date
JPH07253875A true JPH07253875A (en) 1995-10-03
JP3270238B2 JP3270238B2 (en) 2002-04-02

Family

ID=12634250

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04237394A Expired - Fee Related JP3270238B2 (en) 1994-03-14 1994-03-14 Programmable controller and program tool therefor

Country Status (1)

Country Link
JP (1) JP3270238B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004088513A1 (en) * 2003-03-31 2004-10-14 Riken Method and computer system for supporting user using simulation tool
JP2006268485A (en) * 2005-03-24 2006-10-05 Fuji Electric Fa Components & Systems Co Ltd Programmable controller, program preparation support device for programmable controller and program preparation support method
JP2007249748A (en) * 2006-03-17 2007-09-27 Fujitsu Access Ltd Network equipment with version management function
JP2014225284A (en) * 1999-10-18 2014-12-04 フィッシャー−ローズマウント システムズ,インコーポレイテッド Process control system and method
JP2018055211A (en) * 2016-09-27 2018-04-05 ブラザー工業株式会社 Numerical control device
JP2018128722A (en) * 2017-02-06 2018-08-16 株式会社日立産機システム Programmable logic controller
WO2020179581A1 (en) 2019-03-06 2020-09-10 オムロン株式会社 Control device and software deployment method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014225284A (en) * 1999-10-18 2014-12-04 フィッシャー−ローズマウント システムズ,インコーポレイテッド Process control system and method
WO2004088513A1 (en) * 2003-03-31 2004-10-14 Riken Method and computer system for supporting user using simulation tool
JP2006268485A (en) * 2005-03-24 2006-10-05 Fuji Electric Fa Components & Systems Co Ltd Programmable controller, program preparation support device for programmable controller and program preparation support method
JP2007249748A (en) * 2006-03-17 2007-09-27 Fujitsu Access Ltd Network equipment with version management function
JP2018055211A (en) * 2016-09-27 2018-04-05 ブラザー工業株式会社 Numerical control device
JP2018128722A (en) * 2017-02-06 2018-08-16 株式会社日立産機システム Programmable logic controller
WO2020179581A1 (en) 2019-03-06 2020-09-10 オムロン株式会社 Control device and software deployment method
US11907735B2 (en) 2019-03-06 2024-02-20 Omron Corporation Control device and method for deployment of software

Also Published As

Publication number Publication date
JP3270238B2 (en) 2002-04-02

Similar Documents

Publication Publication Date Title
KR100642529B1 (en) External storage apparatus and data processing method
US7178141B2 (en) Method and system for identifying compatibility between firmware images
EP3915792B1 (en) Consumable chip, and consumable chip communication method
KR20100014107A (en) Software updating device and computer-redable storage medium storing software updating program
KR20070039563A (en) Program creating device for programmable controller, program creating method for programmable controller, and recording medium having recorded program of the method
JPH07253875A (en) Programmable controller and its program tool
JP5135979B2 (en) Program management system
CN102103632B (en) In the situation that carrying out, structural transaction protects the method for the integrality of relational database
JPH0348322A (en) Information storage device
US5555410A (en) Generation management system and method for managing resource generation using pre-edit and post-edit line renumbering
JP3145936B2 (en) How to install
US7647127B2 (en) Component data managing method
JP7170679B2 (en) engineering tools
JP3514173B2 (en) Control device
KR950005094B1 (en) Method of compressing files
US6988191B1 (en) Method for the synchronized start-up of a numerical control
JP3579220B2 (en) Programming device, interrupt processing description method, programmable controller, and recording medium
JPH08249215A (en) Method for managing program operation information
JP3458421B2 (en) Document processing system
JP3207333B2 (en) Programmable controller
JP2000181696A (en) Program controller and program controlling method
JPS62168229A (en) Automatic recognizing system for system constitution
JP2011022682A (en) Automatic program generation device and automatic program generation method
CN1331047C (en) Method for synchronous updating basic input/output system and operation system
CN116166285A (en) bootloader software updating method and device, embedded controller and computer readable storage medium

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees