JP2008293176A - Plant controller - Google Patents
Plant controller Download PDFInfo
- Publication number
- JP2008293176A JP2008293176A JP2007136480A JP2007136480A JP2008293176A JP 2008293176 A JP2008293176 A JP 2008293176A JP 2007136480 A JP2007136480 A JP 2007136480A JP 2007136480 A JP2007136480 A JP 2007136480A JP 2008293176 A JP2008293176 A JP 2008293176A
- Authority
- JP
- Japan
- Prior art keywords
- object code
- program
- plant controller
- application program
- conversion processing
- 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
Links
Images
Landscapes
- Devices For Executing Special Programs (AREA)
Abstract
Description
この発明は、プラントコントローラの新機種化による機種更新開発に関して、既存機種と新機種との機種互換性、新機種開発における効率化を図ったプラントコントローラに関するものである。 The present invention relates to a plant controller that is compatible with an existing model and a new model and is more efficient in the development of a new model with respect to model update development by making a new model of a plant controller.
新規プラントコントローラの開発時、ユーザニーズの観点から既存機種との命令語の親和性を考慮し、プログラム命令語の互換性を考慮した開発設計を実施する必要があった。 When developing a new plant controller, it was necessary to consider the compatibility of the command word with the existing model from the viewpoint of user needs and to carry out development design considering the compatibility of the program command word.
逆にプログラム命令語の互換性を考慮しなければ、既存機能・既存命令語の制約が無く新機種開発ができるが、プログラム製作時においては、新たなる命令語仕様の理解・習得をする必要があった。 Conversely, if the compatibility of program instruction words is not considered, new models can be developed without restrictions on existing functions and existing instruction words, but it is necessary to understand and acquire new instruction word specifications when creating programs. there were.
更に、機種更新時におけるプログラム設計作業時、旧新機種間で言語形態の異なる場合においては、旧機種プログラムを新機種プログラムに置き換える為の設計作業が必要となり、既存機種との命令実行に対する互換性を意識した開発設計が必要となっていた。 In addition, when the language design is different between the old and new models at the time of program design at the time of model update, design work is required to replace the old model program with the new model program, and compatibility with instruction execution with existing models is required. Development design that is conscious of this is necessary.
これら旧新機種間での言語変換については、変換作業効率の向上化等を目的に、汎用パーソナルコンピュータ等で別途、言語変換ツール等を開発する必要性があった。 Regarding language conversion between these old and new models, there was a need to develop a language conversion tool or the like separately on a general-purpose personal computer or the like for the purpose of improving conversion work efficiency.
また、新規プラントコントローラの開発時は、プラントコントローラだけでなく、コントローラに応じたプログラム編集機能、コンパイル処理にてプログラムをオブジェクトコードに変換する機能を設けたプラントコントローラ用保守ツールの開発が必要となっていた。 When developing a new plant controller, it is necessary to develop not only the plant controller but also a maintenance tool for the plant controller that has a program editing function according to the controller and a function that converts the program into an object code by compile processing. It was.
更に、オブジェクトコードを変換する際に、例えば新機種でのオブジェクト実行環境が旧機種のそれと異なる場合、旧機種のオブジェクトコードが変換できないことが発生し、変換後のオブジェクトコードが不完全であるために期待した処理が出来ず、これを作業者が認識できなかった場合には問題となる可能性があった。 Furthermore, when converting the object code, for example, if the object execution environment of the new model is different from that of the old model, the object code of the old model may not be converted, and the converted object code is incomplete. However, if the operator could not recognize the expected processing, it could be a problem.
従来、プラントコントローラの機種が更新された場合、命令語が異なる場合が多く、機種に応じた命令語によるプログラム設計を実施する必要があった。このため、プログラム設計者は、新規命令語仕様の理解/習得がその都度必要となっていた。よって、理解の為大幅な作業期間および費用を要するという問題点があった。 Conventionally, when the model of the plant controller is updated, the command word is often different, and it is necessary to design a program with the command word corresponding to the model. For this reason, the program designer is required to understand / learn new instruction word specifications each time. Therefore, there is a problem that a large work period and cost are required for understanding.
また、プラントコントローラの機種更新工事時においては、既存(従来)の命令語と新機種での命令語と双方を理解する必要がある。既存設備での設備動作を満足する為に、既存機種との命令実行に対する互換性を意識したプログラム設計、置き換え作業を行う必要があり、その為に大幅な作業期間および費用を要するという問題点があった。 In addition, it is necessary to understand both the existing (conventional) instruction word and the instruction word in the new model at the time of plant controller model update construction. In order to satisfy the equipment operation of the existing equipment, it is necessary to perform program design and replacement work with consideration for compatibility with instruction execution with existing models, which requires a large work period and cost. there were.
さらに人間により新旧機種間での命令語を手で置き換えることになる為、置き換え誤りによるプログラムバグも発生するといった問題点があった。 Furthermore, since the instruction word between the new and old models is manually replaced by humans, there is a problem that a program bug occurs due to a replacement error.
これらプログラム置き換え前後の機種間の同一性評価の為、動作確認を実施する場合、ソフトウェア等でシミュレーション回路を別途製作する必要があり、製作、試験に多大な費用と期間を要すという問題点があった。 In order to evaluate the identity between models before and after replacement of these programs, it is necessary to separately manufacture a simulation circuit with software etc. when performing operation confirmation, and there is a problem that it takes a lot of cost and time for manufacturing and testing. there were.
また、プラントコントローラを新規に開発する際に、命令語を新規開発する場合には、プラントコントローラだけでなく、プラントコントローラと会話通信する為にパーソナルコンピュータ端末上等で動作するプログラムコントローラ用保守ツールを開発する必要があった。この場合、旧機種のユーザニーズも考慮する必要がある為、新旧機種命令語の互換性を意識・考慮した開発設計を実施する必要があり、保守ツール上は既存機種の命令語で扱える様にし、プログラムコントローラ用保守ツールに具備されているコンパイル処理等にてプログラムを既存命令語から新機種命令語用オブジェクトコードに変換する機能を設けるなどといった設計が必要である。よって結果的に開発期間とコストが増大化するといった問題点がある。 When developing a new plant controller, when developing a new command word, not only a plant controller but also a maintenance tool for a program controller that runs on a personal computer terminal etc. to communicate with the plant controller. There was a need to develop. In this case, since it is necessary to consider the user needs of the old model, it is necessary to design and consider the compatibility of the old and new model command words, so that the command codes of the existing model can be handled on the maintenance tool. Therefore, it is necessary to design such that a function for converting a program from an existing instruction word to an object code for a new model instruction word is provided by a compiling process or the like provided in the program controller maintenance tool. As a result, there is a problem that the development period and cost increase.
また、上記によりプログラムコントローラ用保守ツールが新規に開発・製作された場合は、新機種用のプラントコントローラ用保守ツールの操作方法、操作性に慣れる必要があり、時間が掛かるといった問題点があった。 In addition, when a new program controller maintenance tool is developed and manufactured as described above, it is necessary to become familiar with the operation method and operability of the plant controller maintenance tool for the new model, which takes time. .
この発明は、上記のような課題を解決するためになされたもので、プラントコントローラ内部に旧機種と新機種間のオブジェクトコード変換機能を付加することにより、オブジェクトコードレベルで互換性が取れ、プラントコントローラの機種が更新され命令語が異なった場合でも、機種に応じたプログラム設計を実施する必要が無く、かつ新規命令語仕様の理解/習得を特に必要としないプラントコントローラを得ることを目的とする。 The present invention has been made to solve the above-described problems. By adding an object code conversion function between the old model and the new model inside the plant controller, compatibility can be achieved at the object code level. Even if the controller model is updated and the instruction word is different, the purpose is to obtain a plant controller that does not need to design a program according to the model and does not particularly need to understand / learn new instruction word specifications. .
この発明は、オブジェクトコード変換を通常のプログラム書換え機能の一部としてプラントコントローラの内部機能として付加することにより、旧機種から新機種へ命令語を置き換える際に、人の手に委ねること無く、命令語置き換えによる誤り/プログラムバグを発生させない、プラントコントローラを得ることを目的とする。 This invention adds an object code conversion as an internal function of the plant controller as a part of a normal program rewriting function, so that when replacing a command word from an old model to a new model, the command is not entrusted to human hands. An object of the present invention is to obtain a plant controller that does not cause an error / program bug due to word replacement.
この発明は、オブジェクトコード変換機能により旧機種から新機種へ命令語を置き換える際に、置き換えることが出来なかった旧機種のオブジェクトコードを抽出し、該当オブジェクトコードを生成した旧機種のアプリケーションプログラム箇所を検索し作業者に告知することを目的とする。 This invention extracts the object code of the old model that could not be replaced when replacing the instruction word from the old model to the new model by the object code conversion function, and the application program part of the old model that generated the corresponding object code is extracted. The purpose is to search and notify the worker.
この発明は、特に新機種のプラントコントローラ用保守ツールを開発・製作することなく、既存機種のプラントコントローラ用保守ツールが有効に使用でき、また既存機種用との操作互換性を特に意識する必要も無い、プラントコントローラを得ることを目的とする。 In the present invention, the maintenance tool for the existing model controller can be used effectively without developing or producing a maintenance tool for the new model, and the operation compatibility with the existing model needs to be particularly conscious. The purpose is to obtain a plant controller that does not exist.
この発明に係るプラントコントローラは、アプリケーションプログラムをプログラム編集処理手段にてプログラムの編集操作が可能であり、生成されたプログラムをプログラムコンパイル処理手段にてコンパイル処理し、オブジェクトコードに展開してプラントコントローラへ転送するものにおいて、オブジェクトコードを生成する際、各オブジェクトコードと、これを生成したアプリケーションプログラムとの紐付け情報となるオブジェクト紐付け情報を生成するプログラムコンパイル処理手段と、プラントコントローラ用保守ツールから転送されたオブジュクトコードを受信し、受信したオブジェクトコードを旧機種オブジェクトコードとして扱う旧機種オブジェクトコード手段と、旧機種オブジェクトコードを変換処理し、旧機種オブジェクトコードを変換できないオブジェクトコードが存在した際、そのオブジェクトコード識別子を変換不可オブジェクト情報に蓄積するオブジェクトコード変換処理手段と、オブジェクト変換処理手段で変換処理されたオブジュクトコードをプラントコントロール用保守ツールが持っているオブジェクトコードとは異なる形態の新機種オブジェクトコードへと展開する新機種オブジェクトコード手段と、オブジェクトコード変換処理手段が変換できなかった旧機種オブジェクトコード識別子を蓄積した変換不可オブジェクト情報を受信し、変換不可オブジェクト情報とオブジェクト紐付け情報により、変換できなかった旧機種オブジェクトコードを生成したプログラムをアプリケーションプログラムから抽出するアプリケーションプログラム検索手段とを備えたものである。 In the plant controller according to the present invention, an application program can be edited by a program editing processing means, and the generated program is compiled by the program compilation processing means, developed into an object code, and sent to the plant controller. When generating object code, transfer it from the program compile processing means that generates the object linking information that is the linking information between each object code and the application program that generated it, and the plant controller maintenance tool The old model object code means that treats the received object code as the old model object code and the old model object code are converted to the old model object code. When there is an object code that cannot be converted, the object code conversion processing means for storing the object code identifier in the non-convertible object information, and the object code converted by the object conversion processing means is converted into a plant control maintenance tool. New model object code means that expands to a new model object code in a form different from the object code held by the object code, and the non-convertible object information that stores the old model object code identifiers that could not be converted by the object code conversion processing means An application program that extracts from the application program the program that generated the old model object code that could not be converted based on the non-convertible object information and the object linking information. It is obtained by a search means.
また、オブジェクトコード変換処理手段及びアプリケーションプログラム検索手段は、旧機種オブジェクトコードを新機種のオブジェクトコードに変換できないオブジェクトコードが発生した際に、変換できなかったオブジェクトコードを生成したアプリケーションプログラムの部分を抽出して報知することにより、オブジェクトコード変換作業を確実に行わせるものである。 Also, the object code conversion processing means and the application program search means extract the part of the application program that generated the object code that could not be converted when an object code that could not be converted into the object code of the new model occurred. Thus, the object code conversion work is surely performed by notifying.
また、プラントコントローラの内部処理機能であるプログラムメモリ書換処理手段の一機能として、オブジェクトコード変換処理機能を設け、オブジェクトコード変換処理の為に特別なタイミングを準備することなく、プログラムメモリ書換のタイミングで併せてオブジェクトコード変換が実施できるものである。 In addition, an object code conversion processing function is provided as one function of the program memory rewrite processing means that is an internal processing function of the plant controller, and the program memory rewrite timing can be provided without preparing a special timing for the object code conversion processing. In addition, object code conversion can be performed.
この発明によれば、プラントコントローラ内部でオブジェクトコード変換処理をする機能を備えたため、プラントコントローラ機種が更新されたことにより、プラントコントローラ保守ツール側で扱うオブジェクトコード形態が異なっても、旧来の機種に応じたオブジェクトコード即ち旧来の命令語でプログラム設計が可能であるとともに、新規命令語仕様の理解/習得を改めて必要としない為、理解の為の作業期間および費用の削減を実現したプラントコントローラを得られる効果がある。 According to the present invention, since the plant controller has a function to perform object code conversion processing inside the plant controller, even if the object code form handled on the plant controller maintenance tool side differs, Program design is possible with the corresponding object code, that is, the old instruction word, and it is not necessary to understand / learn new instruction word specifications again, so a plant controller that realizes reduction of work period and cost for understanding is obtained. There is an effect.
また、プラントコントローラ内部でオブジェクトコード変換処理をする機能を備えたため、プラントコントローラ保守ツールでのアプリケーションプログラムの編集も、旧来の命令語で扱える。よって今までのアプリケーションプログラムリソースを活用できるプラントコントローラが得られる効果がある。 In addition, since it has a function to perform object code conversion processing inside the plant controller, editing of application programs with the plant controller maintenance tool can also be handled with conventional command words. Therefore, there is an effect that a plant controller that can utilize the existing application program resources can be obtained.
また、人為的な新旧機種間での命令語置き換え作業が不要となり、自動的にオブジェクトコードレベルでコード変換処理が可能となることから、命令語置換え誤りによるプログラムバグの発生が抑制されるとともに、新設プラントコントローラの制御実行結果を評価する為のシミュレーション用アプリケーションソフトウェアを必要としないプラントコントローラを得られる効果がある。 In addition, artificial word replacement between old and new models is no longer required, and code conversion processing can be automatically performed at the object code level. There is an effect that a plant controller that does not require simulation application software for evaluating the control execution result of the newly installed plant controller can be obtained.
また、オブジェクトコード変換をプログラムコントローラに搭載されているプログラム書換機能部の一部として備えたので、わざわざプログラムコントローラ外部で命令語の変換処理を準備することなく、また特別なタイミングを必要としない形で、オブジェクトコードに変換される機能を実現するとともに、命令語互換の為のツール装置や、プラントコントローラに対応したプラントコントローラ用保守ツールをを新規に開発・製作する必要が無い為、開発費用の大幅な削減が実現された、プラントコントローラを得られる効果がある。 In addition, since object code conversion is provided as part of the program rewrite function unit installed in the program controller, it does not bother to prepare for instruction word conversion processing outside the program controller and does not require special timing. In addition to realizing the function to be converted into object code, it is not necessary to develop and manufacture a tool device for command word compatibility and a plant controller maintenance tool corresponding to the plant controller. There is an effect of obtaining a plant controller in which significant reduction is realized.
また、オブジェクトコード体系の異なるオブジェクトコード同士を変換する機能を備えており、命令語コード部(オペコード)、ソースアドレス部(オペランド)それぞれの変換ができる機能も備えたものである為、プラントコントローラ内部で既存機種との命令実行に対する置き換え互換性が柔軟に取られている。従って、コード長、体系の異なるオブジェクトコードを自動的に展開することを実現したプラントコントローラが得られる効果がある。 In addition, it has a function to convert between object codes with different object code systems, and also has a function that can convert each of the instruction word code part (opcode) and source address part (operand). Therefore, replacement compatibility for instruction execution with existing models is flexibly taken. Therefore, there is an effect of obtaining a plant controller that realizes automatic development of object codes having different code lengths and systems.
また、オブジェクトコード変換機能において、新機種のオブジェクトコードに変換できないオブジェクトコードが発生した際に、変換できなかったオブジェクトコードを生成したアプリケーションプログラムの部分を抽出し作業者に告知することで、オブジェクトコード変換作業を確実に行わせることが可能となる。 Also, when an object code that cannot be converted to a new model object code occurs in the object code conversion function, the part of the application program that generated the object code that could not be converted is extracted and notified to the operator. The conversion work can be performed reliably.
実施の形態1.
以下、図面を参照しながら、この発明の実施の形態1について詳細に説明する。図1はこの発明の実施の形態1を概略的に示すプラントコントローラのブロック構成図である。
Hereinafter, the first embodiment of the present invention will be described in detail with reference to the drawings. 1 is a block diagram of a plant controller schematically showing
図1において、プラントコントローラ用保守ツール1は、以下に示すソフトウェアブロック概要となっている。プラントコントローラ用保守ツール1は汎用パーソナルコンピュータ上に実現されており、ハードディスク2に格納されたアプリケーションプログラム3は、プログラム編集処理部5にて編集が可能となっているが、プログラムコンパイル処理部6を介して、オブジェクトコード4が生成されるようになっている。また、プログラムコンパイル処理部6は、オブジェクトコード4を生成する際に、同時に各オブジェクトコードと、これを生成したアプリケーションプログラムを紐付けたオブジェクト紐付け情報25を生成する。一般にアプリケーションプログラムにはプログラムアドレスのように、他と識別できる情報を持っており、これと生成したオブジェクトコードを対にすることにより紐付けは可能である。オブジェクトコード4の情報はプログラム転送処理部7から、通信経路(イーサネット(登録商標)等)8を経由し、プラントコントローラ9と接続されるようになっている。
In FIG. 1, the plant
図1において、プラントコントローラ9は、以下に示すソフトウェアブロック概要となっている。上述のオブジェクトコード4はプラントコントローラ9の要求処理部10にある通信処理受信部11にて取り込まれようになっており、旧機種オブジェクトコード13として扱われるが、要求処理部10の内部構成としては、旧機種オブジェクトコード13を新機種オブジェクトコード15に変換するオブジェクトコード変換処理部14から構成され、制御プログラム17が格納されているプログラムメモリ16と接続されている。なお、プログラム実行部18は、このプログラムメモリ16と接続されており、それとは別にデータメモリ19とも接続されている。
In FIG. 1, the plant controller 9 has the following software block outline. The above-described object code 4 is captured by the communication
次に、図1に示したこの発明の実施の形態1による動作について説明する。まず、プラントコントローラ用保守ツール1のハードディスク2に格納されたアプリケーションプログラム3は、プログラム編集処理部5にてプログラムの追加、変更、削除などの編集操作が可能となっている。生成されたプログラムはオブジェクトコード4の体系でプラントコントローラ9へ転送する必要があり、プログラム編集処理部5のプログラムコンパイル処理部5にてコンパイル処理され、オブジェクトコード4に展開される。この時、同時にオブジェクトコード4と、これを生成したアプリケーションプログラム3との紐付け情報となるオブジェクトコード紐付け情報25も生成する。オブジェクトコード4の情報は、プラントコントローラ用保守ツール1の操作者により、プラントコントローラ9への転送処理が要求された時、プログラム転送処理部7により、通信経路(イーサネット(登録商標)等)8を経由し、プラントコントローラ9へと転送されるようになっている。
Next, the operation according to the first embodiment of the present invention shown in FIG. 1 will be described. First, the
上述にてプラントコントローラ用保守ツール1のプログラム転送処理部7にて転送されたオブジェクトコード4はプラントコントローラ9の要求処理部10にて処理されるが、通信経路(イーサネット(登録商標)等)8から受信した情報は、先ず通信処理受信部11にて受信され、プログラム書換処理部12へ展開される。
The object code 4 transferred by the program
プログラム書換処理部12では受信したオブジェクトコード4を旧機種オブジェクトコード13として扱い、オブジェクトコード変換処理部14にて新機種オブジェクトコード15へと展開されるように実現されており、プラントコントローラ用保守ツール1で持っているオブジェクトコード4とは全く異なる形態のオブジェクトコードに置き換えることができる。
The program
変換されたオブジェクトコードは新機種オブジェクトコード15としてプログラム書換え可能なタイミングにて制御プログラム17として、プログラムメモリ16の内部に展開されるが、プログラム実行部18にてこの情報を展開してプログラム実行されるようになっており、制御プログラム17の内容によりデータメモリ19が読み書きされるようになっている。
The converted object code is expanded in the
オブジェクトコード変換処理部14は旧機種オブジェクトコード13を新機種オブジェクトコード15に変換するが、その際、旧機種と新機種でのオブジェクトコード構成の差異等により変換が出来ない場合が考えられる。そこで、オブジェクトコード変換処理部14は、旧機種オブジェクトコード13を変換する際に変換できないオブジェクトコードが存在した際には、該当オブジェクトコードの識別子を変換不可オブジェクトコード情報27に蓄積する。
The object code
オブジェクトコード変換処理部14が変換できなかった旧機種オブジェクトコード識別子を蓄積した変換不可オブジェクトコード情報27は、プラントコントローラ用保守ツール1の操作者の指示により、要求処理部10の通信処理送信部28により、通信経路(イーサネット(登録商標)等)8を通して、プラントコントローラ用保守ツール1内のアプリケーションプログラム検索部26に送られる。アプリケーションプログラム検索部26は、受信した変換不可オブジェクトコード情報27とオブジェクト紐付け情報25により、変換できなかった該当旧機種オブジェクトコードを生成したプログラムをアプリケーションプログラム3から抽出し、プラントコントローラ用保守ツール1の操作者に告知する。告知方法としては、変換できなったアプリケーションプログラム部分を編集画面上で色換えする等が考えられる。変換できなかったアプリケーションプログラムについては、新機種オブジェクトコードを生成できるようにアプリケーションプログラム3の修正を行う。
The non-convertible
なお、上記実施の形態1では、プラントコントローラ9の内部に、オブジェクトコード変換処理部14の機能を備えたため、プラントコントローラ機種が更新され、プラントコントローラ保守ツール1側で扱うオブジェクトコード4の形態と新機種オブジェクトコード15との相違が発生しても、オブジェクトコード同士の変換ができる。よって、旧来の機種に応じたオブジェクトコード4に対応した旧来のアプリケーションプログラム3でプログラム設計ができるとともに、プラントコントローラ9に依存した命令語仕様の理解/習得を不要とすることができる。
In the first embodiment, since the function of the object code
また、プラントコントローラ9の内部でオブジェクトコード変換処理部14を設けたため、プラントコントローラ保守ツール1でのアプリケーションプログラムの編集も、旧来の命令語で扱えるため、今までの命令言語形態でのアプリケーションプログラムリソースを活用することができる。
In addition, since the object code
また、プラントコントローラ9の内部でオブジェクトコード変換処理部14を設けたため、人為的な新旧機種間での命令語置き換え作業が不要となり、自動的にオブジェクトコードレベルでコード変換処理が可能となることから、命令語置き換え誤りによるプログラムバグの発生が抑制されるとともに、新設プラントコントローラの制御実行結果を評価する為のシミュレーション用アプリケーションソフトウェアを不要とすることができる。
In addition, since the object code
また、オブジェクトコード変換処理部14をプラントコントローラ9のプログラム書換処理部12の一部として備えたので、わざわざプラントコントローラ9の外部で命令語の変換処理を準備することなく、また特別なタイミングを必要としない形で、旧機種オブジェクトコード13を新機種オブジェクトコード15に変換できる。
In addition, since the object code
また、プラントコントローラ9の内部でオブジェクトコード変換処理部14を設けたため、命令語互換の為のツール装置や、プラントコントローラ9に対応したプラントコントローラ用保守ツール1を新規に開発・製作ことを不要とすることができる。
In addition, since the object code
また、プラントコントローラ用保守ツール1内部でアプリケーションプログラム検索部26を設け、蓄積された変換不可オブジェクトコード情報27により、オブジェクトコード変換処理部14にて変換できなかったオブジェクトコードを認識できるようにしたため、変換不可オブジェクトコード情報27の情報が無くなるまでアプリケーションプログラム3を修正していくことにより、変換もれを防止することが出来るとともに、アプリケーションプログラム3を新機種オブジェクトコード15に確実に変換することができる。
In addition, the application
実施の形態2.
以下、図面を参照しながら、この発明の実施の形態2について詳細に説明する。図2はこの発明の実施の形態2を概略的に示すプラントコントローラ内のオブジェクトコード変換処理部のブロック構成図である。
Hereinafter,
図2において、図1で示すオブジェクトコード変換処理部14の内部構成としては、以下に示すソフトウェアブロック概要となっている。旧機種オブジェクトコード体系例20は32Bit構成となっており、実際にはオペコード(13Bit)、オペランド(19Bit)から構成されるコード体系となっている。オブジェクトコード変換処理部21はオペコード変換処理部22、オペランド変換処理部23から構成され、新機種オブジェクトコード体系例24に展開するような構成となっている。
2, the internal configuration of the object code
次に、図2に示したこの発明の実施の形態2による動作について説明する。旧機種オブジェクトコード体系例20は32Bit構成であり、内容はオペコード13Bit、オペランド19Bitのコード体系となっている。オブジェクトコード変換処理部21において、オペコード部をオペコード変換処理部22で、オペランド部をオペランド変換処理部23でそれぞれ新機種オブジェクトコード体系例24に展開する。なお、新機種オブジェクトコード体系例24は64Bit構成であり、内容はオペコード32Bit、オペランド32Bitのコード体系となっている。
Next, the operation according to the second embodiment of the present invention shown in FIG. 2 will be described. The old model object code system example 20 has a 32-bit configuration, and the content is an opcode 13-bit and operand 19-bit code system. In the object code
なお、上記実施の形態2では、32Bit構成である旧機種オブジェクトコード体系例20から、64Bit構成である新機種オブジェクトコード体系例24へと、コードの長さや体系の異なるオブジェクトコード同士を変換することができる。 In the second embodiment, object codes having different code lengths and systems are converted from the old model object code system example 20 having a 32-bit configuration to the new model object code system example 24 having a 64-bit configuration. Can do.
また、オブジェクトコード変換処理部21において、オペコード部をオペコード変換処理部22で、オペランド部をオペランド変換処理部23でそれぞれ新機種オブジェクトコード体系例24に、命令語コード部(オペコード)、ソースアドレス部(オペランド)それぞれの変換が個別に対応できる。
Further, in the object code
尚、ここでは32Bit構成のコード体系について述べたが、他のコード体系の場合でもオペコード変換処理部22及びオペランド変換処理部23を変更する事で対応可能となることは言うまでも無い。
Although a 32-bit code system has been described here, it is needless to say that other code systems can be handled by changing the operation code
上記実施の形態2では、オブジェクトコード体系の異なるオブジェクトコード同士を変換する機能を備えており、命令語コード部(オペコード)、ソースアドレス部(オペランド)それぞれの変換ができる機能も備えたものである為、プラントコントローラ内部で既存機種との命令実行に対する置き換え互換性が柔軟に取られている。従い、コード長、体系の異なるオブジェクトコードを自動的に展開することを実現したプラントコントローラが得られる効果がある。 The second embodiment has a function of converting object codes having different object code systems, and also has a function of converting an instruction word code part (opcode) and a source address part (operand). Therefore, the replacement compatibility for the instruction execution with the existing model is flexibly taken inside the plant controller. Accordingly, there is an effect of obtaining a plant controller that realizes automatic development of object codes having different code lengths and systems.
実施の形態3.
以下、図面を参照しながら、この発明の実施の形態3について詳細に説明する。図3はこの発明の実施の形態3を概略的に示す保守ツール内のプログラムコンパイル処理部およびアプリケーションプログラム検索部のブロック構成図である。
Hereinafter,
図3において、図1で示すプログラムコンパイル処理部6の内部構成としては、以下に示すソフトウェアブロック概要となっている。プログラムコンパイル処理部6はアプリケーションプログラム3内のプログラムを1つづつ読み出し、オブジェクトを生成する。各アプリケーションプログラムには、これを管理するため、通常先頭からのプログラム番地が付加されている。プログラムコンパイル処理部6はアプリケーションプログラム3内のプログラムを1つ読み出す際に、該当アプリケーションプログラムのプログラム番地も同時に読み出す。
プログラムコンパイル処理部6は、該当アプリケーションプログラムを旧機種オブジェクトコードに変換するが、この時、変換したオブジェクトコードに識別子を付加する。識別子はランニング番号等、他のオブジェクトコードと重複しないようルール付けされたものを付加する。この時、この識別子と各オブジェクトコードを生成したアプリケーションプログラムのプログラム番地を対にしてオブジェクト紐付け情報25に格納する。但し、1つのアプリケーションプログラムから複数のオブジェクトコードを生成する場合があるため、各オブジェクトコードには全て、生成元であるアプリケーションプログラムのプログラム番地を紐付ける。
In FIG. 3, the internal configuration of the program
The program
次に、プログラム書換処理部12内のオブジェクトコード変換処理部14では、旧機種オブジェクトコード13内の各オブジェクトコードを新機種オブジェクトコードに逐次変換していくが、この時変換できないオブジェクトコードが発生した場合は、該当オブジェクトコードの識別子を変換不可オブジェクトコード情報27に蓄積後、次のオブジェクトコードの変換を行う。
Next, the object code
アプリケーションプログラム検索部26は、蓄積された変換不可オブジェクトコード情報27から、変換できなかったオブジェクトコードを1つ読み出し、該当オブジェクトコードが持つ識別子から、オブジェクト紐付け情報25を参照しながら、該当オブジェクトコードを生成したアプリケーションプログラムのプログラム番地を検索する。検出されたプログラム番地により、アプリケーションプログラム3内の該当プログラムを限定する。
The application
上記実施の形態3では、オブジェクトコード変換機能において、新機種のオブジェクトコードに変換できないオブジェクトコードが発生した際に、変換できなかったオブジェクトコードを生成したアプリケーションプログラムの部分を抽出し作業者に告知することで、オブジェクトコード変換作業を確実に行わせることが可能となる。 In the third embodiment, when an object code that cannot be converted into an object code of a new model occurs in the object code conversion function, the part of the application program that generated the object code that could not be converted is extracted and notified to the operator. Thus, the object code conversion work can be surely performed.
1 プラントコントローラ用保守ツール、2 ハードディスク、3 アプリケーションプログラム、4 オブジェクトコード、5 プログラム編集処理部、6 プログラムコンパイル処理部、7 プログラム転送処理部、8 通信経路(イーサネット(登録商標)等)、9 プラントコントローラ、10 要求処理部、11 通信処理受信部、12 プログラム書換処理部、13 旧機種オブジェクトコード、14 オブジェクトコード変換処理部、15 新機種オブジェクトコード、16 プログラムメモリ、17 制御プログラム、18 プログラム実行部、19 データメモリ、20 旧機種オブジェクトコード体系例、21 オブジェクトコード変換処理部、22 オペコード変換処理部、23 オペランド変換処理部、24 新機種オブジェクトコード体系例、25 オブジェクトコード紐付け情報、26 アプリケーションプログラム検索部、27 変換不可オブジェクトコード情報、28 通信処理送信部
1 maintenance tool for plant controller, 2 hard disk, 3 application program, 4 object code, 5 program editing processing section, 6 program compilation processing section, 7 program transfer processing section, 8 communication path (Ethernet (registered trademark), etc.), 9 plant Controller, 10 Request processing unit, 11 Communication processing receiving unit, 12 Program rewrite processing unit, 13 Old model object code, 14 Object code conversion processing unit, 15 New model object code, 16 Program memory, 17 Control program, 18 Program execution unit , 19 Data memory, 20 Old model object code system example, 21 Object code conversion processing unit, 22 Opcode conversion processing unit, 23 Operand conversion processing unit, 24 New model object code De systematically example, 25 the object code corresponding information, 26 application
Claims (6)
前記オブジェクトコードを生成する際、各オブジェクトコードと、これを生成したアプリケーションプログラムとの紐付け情報となるオブジェクト紐付け情報を生成するプログラムコンパイル処理手段と、
プラントコントローラ用保守ツールから転送されたオブジュクトコードを受信し、受信したオブジェクトコードを旧機種オブジェクトコードとして扱う旧機種オブジェクトコード手段と、
前記旧機種オブジェクトコードを変換処理し、旧機種オブジェクトコードを変換できないオブジェクトコードが存在した際、そのオブジェクトコード識別子を変換不可オブジェクト情報として蓄積するオブジェクトコード変換処理手段と、
前記オブジェクト変換処理手段で変換処理されたオブジュクトコードを前記プラントコントロール用保守ツールが持っているオブジェクトコードとは異なる形態の新機種オブジェクトコードへと展開する新機種オブジェクトコード手段と、
前記オブジェクトコード変換処理手段が変換できなかった旧機種オブジェクトコード識別子を蓄積した変換不可オブジェクト情報を受信し、変換不可オブジェクト情報とオブジェクト紐付け情報により、変換できなかった旧機種オブジェクトコードを生成したプログラムをアプリケーションプログラムから抽出するアプリケーションプログラム検索手段と、
を備えたことを特徴としたプラントコントローラ。 In the plant controller that can edit the application program in the program editing processing means, compile the generated program in the program compilation processing means, expand the object code to the plant controller,
When generating the object code, a program compile processing unit that generates object linking information that is linking information between each object code and the application program that generated the object code;
Old model object code means that receives the object code transferred from the plant controller maintenance tool and handles the received object code as the old model object code;
An object code conversion processing means for storing the object code identifier as non-convertible object information when the old model object code is converted and there is an object code that cannot convert the old model object code;
A new model object code means for expanding the object code converted by the object conversion processing means into a new model object code in a form different from the object code possessed by the plant control maintenance tool;
A program that receives non-convertible object information storing the old model object code identifier that could not be converted by the object code conversion processing means, and generated an old model object code that could not be converted based on the non-convertible object information and the object association information Application program search means for extracting the application program from the application program;
A plant controller characterized by comprising
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007136480A JP5141095B2 (en) | 2007-05-23 | 2007-05-23 | Plant controller system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007136480A JP5141095B2 (en) | 2007-05-23 | 2007-05-23 | Plant controller system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008293176A true JP2008293176A (en) | 2008-12-04 |
JP5141095B2 JP5141095B2 (en) | 2013-02-13 |
Family
ID=40167851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007136480A Expired - Fee Related JP5141095B2 (en) | 2007-05-23 | 2007-05-23 | Plant controller system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5141095B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013190837A (en) * | 2012-03-12 | 2013-09-26 | Mitsubishi Electric Corp | Engineering tool |
JP5791855B1 (en) * | 2014-06-02 | 2015-10-07 | 三菱電機株式会社 | Programmable controller system, programmable controller, program display device, and program display method |
CN113279962A (en) * | 2021-07-01 | 2021-08-20 | 华能国际电力股份有限公司上安电厂 | Air compressor controller modification method |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5133944A (en) * | 1974-09-17 | 1976-03-23 | Fujitsu Ltd | Obujekuto puroguramugokanhoshiki |
JPS62281005A (en) * | 1986-05-30 | 1987-12-05 | Fuji Electric Co Ltd | Programming system for programmable controller |
JPS63249206A (en) * | 1987-04-06 | 1988-10-17 | Koyo Denshi Kogyo Kk | Programmable controller |
JPH0460805A (en) * | 1990-06-29 | 1992-02-26 | Fanuc Ltd | Sequence program generating method |
JPH0651810A (en) * | 1992-07-31 | 1994-02-25 | Toyoda Mach Works Ltd | Programming device for pc |
JPH0659929A (en) * | 1992-08-11 | 1994-03-04 | Sharp Corp | Computer device |
JPH06138911A (en) * | 1992-10-27 | 1994-05-20 | Fuji Facom Corp | Programming device |
JP2000003209A (en) * | 1998-06-15 | 2000-01-07 | Hitachi Ltd | Programmable controller |
JP2002099312A (en) * | 2000-09-22 | 2002-04-05 | Mitsubishi Electric Corp | Programmable controller and control program development supporting device |
JP2002268706A (en) * | 2001-03-07 | 2002-09-20 | Asahi Breweries Ltd | Information processing system |
JP2003005809A (en) * | 2001-06-18 | 2003-01-08 | Fuji Electric Co Ltd | Interface device for programmable controller |
JP2005038063A (en) * | 2003-07-16 | 2005-02-10 | Omron Corp | Programmable controller system, support tool, and unit for programmable controller and method for securing connection |
JP2006127069A (en) * | 2004-10-28 | 2006-05-18 | Mitsubishi Electric Corp | Plant monitoring control system |
-
2007
- 2007-05-23 JP JP2007136480A patent/JP5141095B2/en not_active Expired - Fee Related
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5133944A (en) * | 1974-09-17 | 1976-03-23 | Fujitsu Ltd | Obujekuto puroguramugokanhoshiki |
JPS62281005A (en) * | 1986-05-30 | 1987-12-05 | Fuji Electric Co Ltd | Programming system for programmable controller |
JPS63249206A (en) * | 1987-04-06 | 1988-10-17 | Koyo Denshi Kogyo Kk | Programmable controller |
JPH0460805A (en) * | 1990-06-29 | 1992-02-26 | Fanuc Ltd | Sequence program generating method |
JPH0651810A (en) * | 1992-07-31 | 1994-02-25 | Toyoda Mach Works Ltd | Programming device for pc |
JPH0659929A (en) * | 1992-08-11 | 1994-03-04 | Sharp Corp | Computer device |
JPH06138911A (en) * | 1992-10-27 | 1994-05-20 | Fuji Facom Corp | Programming device |
JP2000003209A (en) * | 1998-06-15 | 2000-01-07 | Hitachi Ltd | Programmable controller |
JP2002099312A (en) * | 2000-09-22 | 2002-04-05 | Mitsubishi Electric Corp | Programmable controller and control program development supporting device |
JP2002268706A (en) * | 2001-03-07 | 2002-09-20 | Asahi Breweries Ltd | Information processing system |
JP2003005809A (en) * | 2001-06-18 | 2003-01-08 | Fuji Electric Co Ltd | Interface device for programmable controller |
JP2005038063A (en) * | 2003-07-16 | 2005-02-10 | Omron Corp | Programmable controller system, support tool, and unit for programmable controller and method for securing connection |
JP2006127069A (en) * | 2004-10-28 | 2006-05-18 | Mitsubishi Electric Corp | Plant monitoring control system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013190837A (en) * | 2012-03-12 | 2013-09-26 | Mitsubishi Electric Corp | Engineering tool |
JP5791855B1 (en) * | 2014-06-02 | 2015-10-07 | 三菱電機株式会社 | Programmable controller system, programmable controller, program display device, and program display method |
WO2015186178A1 (en) * | 2014-06-02 | 2015-12-10 | 三菱電機株式会社 | Programmable controller system, programmable controller, program display device, and program display method |
CN105408827A (en) * | 2014-06-02 | 2016-03-16 | 三菱电机株式会社 | Programmable controller system, programmable controller, program display device, and program display method |
DE112014003082B4 (en) * | 2014-06-02 | 2017-05-18 | Mitsubishi Electric Corporation | Programmable control system, programmable control, program display device and program display method |
CN105408827B (en) * | 2014-06-02 | 2017-07-07 | 三菱电机株式会社 | Programable controller system, Programmable Logic Controller, sequence display system, the display methods of program |
US10001767B2 (en) | 2014-06-02 | 2018-06-19 | Mitsubishi Electric Corporation | Programmable controller system, programmable controller, program display device, and program display method |
CN113279962A (en) * | 2021-07-01 | 2021-08-20 | 华能国际电力股份有限公司上安电厂 | Air compressor controller modification method |
Also Published As
Publication number | Publication date |
---|---|
JP5141095B2 (en) | 2013-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4541418B2 (en) | Programmable controller peripheral device, replacement method and program | |
US8464236B2 (en) | Data consistency in data processing systems | |
JP4041248B2 (en) | COMPILER DEVICE, COMPUTER-READABLE RECORDING MEDIUM CONTAINING COMPILING PROGRAM, AND COMPILING METHOD | |
CN104156314A (en) | Code reuse method applied to test system | |
US20110126179A1 (en) | Method and System for Dynamic Patching Software Using Source Code | |
JP5141095B2 (en) | Plant controller system | |
JP2008204023A (en) | Programmable controller system and debug method for programmable controller | |
JP2008158846A (en) | Plant controller | |
JP2013190837A (en) | Engineering tool | |
JPS6022373B2 (en) | Program conversion mechanism for programmable control equipment | |
JP2006079484A (en) | Source program conversion program for system migration | |
JP2609820B2 (en) | Program management method | |
JP2007188366A (en) | Compiler | |
JP2011181114A (en) | Device and method for converting program, and recording medium | |
KR101099491B1 (en) | Method for analyzing power consumption | |
JP2009098963A (en) | Automatic module generation system | |
JP2009515243A (en) | Method for generating a simulation program executable on a host computer | |
CN110249590B (en) | Control system and path information generation method | |
US20210216309A1 (en) | Compiler device and compiling method | |
JP2006323609A (en) | Programmable controller | |
JPH11154093A (en) | Program compiler and storage medium recording compiler program | |
JP2008299763A (en) | Distributed object development tool | |
JPH0695890A (en) | Name replacement system in compiler | |
JP2006146731A (en) | Program, storage medium, assembler device, compiler device, simulator device and emulator device | |
JP2011053948A (en) | Compile error handling system and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100301 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120531 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120626 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120823 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20121023 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20121105 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20151130 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5141095 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20171124 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |