[go: up one dir, main page]

JP2005050184A - Code alteration detection device, code alteration detection program, and facility lending system using them - Google Patents

Code alteration detection device, code alteration detection program, and facility lending system using them Download PDF

Info

Publication number
JP2005050184A
JP2005050184A JP2003282481A JP2003282481A JP2005050184A JP 2005050184 A JP2005050184 A JP 2005050184A JP 2003282481 A JP2003282481 A JP 2003282481A JP 2003282481 A JP2003282481 A JP 2003282481A JP 2005050184 A JP2005050184 A JP 2005050184A
Authority
JP
Japan
Prior art keywords
code
process computer
summary value
program
calculation
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.)
Pending
Application number
JP2003282481A
Other languages
Japanese (ja)
Inventor
Shoji Suzuki
昭二 鈴木
Yasushi Harada
泰志 原田
Harumi Uchigasaki
晴美 内ヶ崎
Yasuo Sato
康生 佐藤
Masahiro Shikayama
昌宏 鹿山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2003282481A priority Critical patent/JP2005050184A/en
Publication of JP2005050184A publication Critical patent/JP2005050184A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

【課題】 プロセスコンピュータで動作するプログラムコードの改変を検出し、通知する手段を提供する。
【解決手段】 コード改変検出装置を含む基本システムは、コード改変検出装置1、プロセスコンピュータ2及び電機設備3から構成され、コード改変検出装置1及びプロセスコンピュータ2、並びに、プロセスコンピュータ2及び電機設備3がそれぞれ所定のインタフェースで接続されている。コード改変検出装置1は、プロセスコンピュータ2の制御手段22(プログラムコード)の改変を検出する装置である。コード改変装置検出装置1は、入出力制御手段11、要約値算出手段12、要約値比較手段13、算出範囲記憶手段14、基準要約値記憶手段15及び通知手段16から構成される。プロセスコンピュータ2は、入出力制御手段21、制御手段22及び制御情報23から構成される。
【選択図】 図1
PROBLEM TO BE SOLVED: To provide means for detecting and notifying modification of a program code operating on a process computer.
A basic system including a code alteration detection device includes a code alteration detection device, a process computer, and an electrical equipment, and the code alteration detection device, the process computer, and the process computer and electrical equipment. Are connected via a predetermined interface. The code alteration detection device 1 is a device that detects alteration of the control means 22 (program code) of the process computer 2. The code modification device detection device 1 includes an input / output control unit 11, a summary value calculation unit 12, a summary value comparison unit 13, a calculation range storage unit 14, a reference summary value storage unit 15, and a notification unit 16. The process computer 2 includes input / output control means 21, control means 22, and control information 23.
[Selection] Figure 1

Description

電機設備を監視、制御するプロセスコンピュータのプログラムコードの改変を検出するコード改変検出装置、コード改変検出プログラム及びそれらを利用した設備貸与システムに関する。   The present invention relates to a code modification detection device that detects modification of a program code of a process computer that monitors and controls electrical equipment, a code modification detection program, and a facility lending system using them.

素形材、半製品、製品などを製作して販売する製造業者は、工場に生産設備を導入して受注量に見合った生産、又は需要を予測した見込み生産を行うことが多い。このような生産設備は、一般に大型で高価なものであり、一旦、導入した後には購入費用が固定費となって製品の単価に大きな影響を与える。例えば、高価な生産設備を導入したのに、受注量が少なかった場合には、総売上に対する固定費の比率が大きくなり、収益を圧迫する可能性がある。
これに対応するために、生産設備を貸与することが検討されている(例えば、特許文献1参照)。ここで、貸与する生産設備としては、新しい生産ライン用の新規の生産設備や、以前の設備投資に追加の投資を行うよりも新設した方が良い場合の新規の生産設備や、生産量が突発的に増加した場合に、その増加量に見合う生産設備などがあげられる。特許文献1の例では、工作機械を製造業者の生産計画などに応じて必要な台数を貸与する方法が開示されている。生産設備の貸与に際しては、製造業者が貸与事業者に対して適切な課金料金を支払う必要があるが、その課金料金の計算は、主として、貸与した生産設備を監視、制御するプロセスコンピュータが行っている。
特開2002−123768号公報(段落[0037]、[0056]、[0067]、図6)
Manufacturers who manufacture and sell raw materials, semi-finished products, products, etc. often introduce production facilities in factories to produce production that matches the order volume or predict production that demand is predicted. Such production facilities are generally large and expensive, and once introduced, the purchase cost becomes a fixed cost and greatly affects the unit price of the product. For example, when an expensive production facility is introduced, but the order volume is small, the ratio of fixed costs to the total sales becomes large, which may squeeze profits.
In order to cope with this, it is considered to lend production equipment (for example, refer to Patent Document 1). Here, the production facilities to be rented are new production facilities for new production lines, new production facilities when it is better to make additional investment than the previous capital investment, and production volume suddenly Production facilities, etc. that match the increased amount. In the example of patent document 1, the method of lending a required number of machine tools according to a manufacturer's production plan etc. is disclosed. When lending production facilities, manufacturers need to pay appropriate lending charges to lending companies, but the calculation of these charges is mainly performed by a process computer that monitors and controls lending production facilities. Yes.
JP 2002-123768 A (paragraphs [0037], [0056], [0067], FIG. 6)

しかしながら、生産設備が稼動する環境は、鉄鋼の圧延設備などのように非常に高温になったり、又は振動や電磁波が発生するような過酷な環境であることが多い。このような環境で稼動する生産設備を監視、制御するプロセスコンピュータにおいて動作するプログラムコードは、所定の保護が施されているものの、生産設備に備えられたセンサの誤動作による異常データの入力や物理的な影響などによっては、改変する可能性があるという問題がある。また、オペレータの故意又は過失によるプログラムコードの改変もないとは言い切れない。プロセスコンピュータで動作するプログラムコードが改変した場合には、生産設備の監視、制御に支障を来たすと共に、課金料金の計算が正しく行われなくなることにより、製造業者と貸与事業者との間で結ばれた設備貸与に関する契約関係にひびが入る恐れも出て来る。   However, the environment in which the production facility operates is often a harsh environment in which the temperature is extremely high, such as a steel rolling facility, or vibration or electromagnetic waves are generated. Although the program code that operates in the process computer that monitors and controls the production equipment that operates in such an environment is given protection, abnormal data input due to malfunction of the sensor provided in the production equipment or physical There is a problem that there is a possibility of modification depending on the influence. Further, it cannot be said that there is no modification of the program code due to the operator's intention or negligence. If the program code that runs on the process computer is altered, it will interfere with the monitoring and control of the production equipment, and the billing fee will not be calculated correctly, leading to a connection between the manufacturer and the lender. There is also a risk that the contractual relationship concerning equipment lending will crack.

そこで、本発明は、前記問題に鑑み、プロセスコンピュータで動作するプログラムコードの改変を検出し、通知する手段を提供することを課題とする。   In view of the above problems, an object of the present invention is to provide means for detecting and notifying modification of a program code operating on a process computer.

前記課題を解決する本発明のうち、コード改変検出装置は、要約値を算出するプロセスコンピュータのプログラムコードの対象範囲である算出範囲を記憶する算出範囲記憶手段と、プロセスコンピュータに接続し、記憶した算出範囲のプログラムコードを入力する入出力制御手段と、入力したプログラムコードの要約値を算出する要約値算出手段と、算出した要約値を基準要約値として記憶する基準要約値記憶手段と、入出力制御手段が新たに入力したプログラムコードを元にして、前記要約値算出手段が算出した要約値及び記憶した基準要約値を比較する要約値比較手段と、比較した結果が不一致であるときに、要約値の不一致が発生したことを通知する通知手段とを備えることを特徴とする。このコード改変検出装置は、プロセスコンピュータに外部接続又は内蔵されるものとする。また、プロセスコンピュータから算出範囲のプログラムコードを入力し、その要約値を比較する一連の処理は、連続して行う必要はなく、プロセスコンピュータに対する負荷を低減するために所定の時間を置いて間欠的に行うことができる。
コード改変検出プログラムは、プロセスコンピュータ内で動作することを想定しているが、その機能は、コード改変検出装置と同様である。また、コード改変検出装置又はコード改変検出プログラムを利用した設備貸与システムは、プロセスコンピュータのプログラムコードとして課金料金算出手段の改変をチェックするものである。
なお、特許請求の範囲におけるプロセスコンピュータの「プログラムコード」は、後記する実施の形態では「制御手段」に相当する。
In the present invention that solves the above-mentioned problems, the code alteration detection device is connected to and stored in a calculation range storage unit that stores a calculation range that is a target range of program code of a process computer that calculates a summary value. Input / output control means for inputting the program code of the calculation range, summary value calculation means for calculating the summary value of the input program code, reference summary value storage means for storing the calculated summary value as a reference summary value, and input / output Based on the program code newly input by the control means, the summary value comparison means for comparing the summary value calculated by the summary value calculation means and the stored reference summary value, and when the comparison result is inconsistent, Notification means for notifying that a mismatch of values has occurred. This code alteration detection device is externally connected to or built in the process computer. In addition, a series of processes for inputting the program code of the calculation range from the process computer and comparing the summary values do not need to be performed continuously, but intermittently after a predetermined time in order to reduce the load on the process computer. Can be done.
The code modification detection program is assumed to operate in the process computer, but its function is the same as that of the code modification detection apparatus. The facility lending system using the code modification detection device or the code modification detection program checks the modification of the accounting fee calculation means as the program code of the process computer.
The “program code” of the process computer in the scope of claims corresponds to “control means” in the embodiments described later.

本発明によれば、プロセスコンピュータで動作するプログラムコードの改変をチェックし、そのチェックの結果としてプログラムコードの改変を検出したときに、任意の方法で通知することができる。また、そのチェック動作をプロセスコンピュータに負荷を与えないように行うことができる。特に、設備貸与システムにおいては、課金料金算出手段の改変がないことを確認することによって、算出された課金料金を信用することができる。   According to the present invention, when a modification of a program code operating on a process computer is checked and a modification of the program code is detected as a result of the check, notification can be made by an arbitrary method. Further, the check operation can be performed without applying a load to the process computer. In particular, in the equipment lending system, it is possible to trust the calculated charging fee by confirming that there is no modification of the charging fee calculation means.

以下、本発明の実施の形態について図面を参照して詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

≪基本システムの構成と動作≫
まず、本発明の実施の形態に係るコード改変検出装置を含む基本システムの構成とその動作について説明する。
図1に示すように、基本システムは、コード改変検出装置1、プロセスコンピュータ2及び電機設備3から構成され、コード改変検出装置1及びプロセスコンピュータ2、並びに、プロセスコンピュータ2及び電機設備3がそれぞれ所定のインタフェースで接続されている。コード改変検出装置1及びプロセスコンピュータ2の間の接続形態としては、RS−232Cに代表されるシリアルインタフェース、バックプレーンバスなどのバスインタフェース、ソフトウエアによる論理的なインタフェース(関数コールなど)があげられる。プロセスコンピュータ2及び電機設備3の間の接続形態としては、フィールドLAN(Local Area Network)などがあげられる。なお、図1において破線で示す箇所については、ここでは言及せず、別途説明する。
≪Basic system configuration and operation≫
First, the configuration and operation of a basic system including a code alteration detection device according to an embodiment of the present invention will be described.
As shown in FIG. 1, the basic system is composed of a code alteration detection device 1, a process computer 2, and an electrical equipment 3. The code alteration detection device 1, the process computer 2, and the process computer 2 and the electrical equipment 3 are respectively predetermined. It is connected with the interface. Examples of the connection form between the code alteration detection apparatus 1 and the process computer 2 include a serial interface typified by RS-232C, a bus interface such as a backplane bus, and a logical interface (such as a function call) by software. . Examples of the connection form between the process computer 2 and the electrical equipment 3 include a field LAN (Local Area Network). In addition, the part shown with a broken line in FIG. 1 is not mentioned here, but is demonstrated separately.

コード改変検出装置1は、プロセスコンピュータ2の制御手段22(プログラムコード)の改変を検出する装置である。コード改変装置検出装置1は、入出力制御手段11、要約値算出手段12、要約値比較手段13、算出範囲記憶手段14、基準要約値記憶手段15及び通知手段16から構成される。入出力制御手段11は、プロセスコンピュータ2に接続され、その接続インタフェースに応じてデータの入出力制御を行う。ここでは、特に、プロセスコンピュータ2の制御手段22を入力する。要約値算出手段12は、入出力制御手段11が入力した制御手段22から要約値を算出する。ここで、要約値とは、所定の長さ(例えば、128ビット)に圧縮されたデータであり、SHA−1(Secure Hash Algorithm 1)、MD5(Message Digest 5)などのハッシュ関数やサム値によって算出されるものである。要約値算出手段12としては、それらのデータ圧縮論理を単独で使ってもよいし、複数の論理を使ってもよい。要約値比較手段13は、予め算出されて基準要約値記憶手段15に記憶されている基準要約値と、その時点で算出した要約値とを比較する。そして、その比較結果が不一致だったときには、通知手段16に不一致通知のトリガを与える。要約値算出手段12及び要約値比較手段13は、CPU(Central Processing Unit)が所定のプログラムを実行することによって実現される。
算出範囲記憶手段14は、要約値算出手段12が要約値を算出する対象となる、制御手段22の範囲を記憶するメモリである。図2に示すように、通常、プログラムコードは、コンピュータのメモリ上に連続的に記憶されている。図3に示すように、算出範囲記憶手段14は、制御手段22の範囲を、例えば、0x0000〜0x00FFといったメモリアドレスの範囲によって指定したものを記憶している。このように、要約値の算出範囲を分割することによって、長いプログラムコードの改変チェックを小刻みに行い、1回の改変チェックあたりの処理量を少なくすることができる。その結果、プロセスコンピュータ2に対する負荷を低減することが可能になる。基準要約値記憶手段15は、要約値算出手段12が算出した要約値を基準要約値として記憶するメモリである。図3に示すように、基準要約値記憶手段15は、算出範囲記憶手段14が記憶している各算出範囲に対応して、基準要約値を記憶している。その記憶形式としては、図3に示すような表形式になっていて、算出範囲及び基準要約値がメモリアドレス上連続するように記憶されていてもよいし、算出範囲及び基準要約値が別々に記憶されていて、相互に関連付けられていてもよい。また、要約値の算出範囲は、必ずしも分割する必要はなく、制御手段22の全範囲を指定することによって、1回の改変チェックで制御手段22の全範囲をチェックするようにしてもよい。
通知手段16は、要約値比較手段13によるトリガを受けて、要約値の不一致を通知する。プロセスコンピュータの付近にいるオペレータに通知する場合には、LED(Light Emitting Diode)、ランプ、パネルなどの表示や警告音によって通知する。また、遠隔地にいる関係者に通知する場合には、その関係者が利用できるサーバやPC(Personal Computer)に対してネットワーク経由でメッセージパケットやメールを送信する。
The code alteration detection device 1 is a device that detects alteration of the control means 22 (program code) of the process computer 2. The code modification device detection device 1 includes an input / output control unit 11, a summary value calculation unit 12, a summary value comparison unit 13, a calculation range storage unit 14, a reference summary value storage unit 15, and a notification unit 16. The input / output control means 11 is connected to the process computer 2 and performs data input / output control according to the connection interface. Here, in particular, the control means 22 of the process computer 2 is input. The summary value calculation unit 12 calculates a summary value from the control unit 22 input by the input / output control unit 11. Here, the summary value is data compressed to a predetermined length (for example, 128 bits), and is based on a hash function such as SHA-1 (Secure Hash Algorithm 1) or MD5 (Message Digest 5) or a sum value. It is calculated. As the summary value calculation means 12, those data compression logics may be used alone or a plurality of logics may be used. The summary value comparison means 13 compares the reference summary value calculated in advance and stored in the reference summary value storage means 15 with the summary value calculated at that time. When the comparison result is mismatched, a trigger for mismatch notification is given to the notification means 16. The summary value calculation means 12 and the summary value comparison means 13 are realized by a CPU (Central Processing Unit) executing a predetermined program.
The calculation range storage unit 14 is a memory that stores a range of the control unit 22 that is a target for which the summary value calculation unit 12 calculates a summary value. As shown in FIG. 2, the program code is normally stored continuously in the computer memory. As shown in FIG. 3, the calculation range storage unit 14 stores the range of the control unit 22 specified by a memory address range such as 0x0000 to 0x00FF, for example. In this way, by dividing the calculation range of the summary value, it is possible to perform a long program code modification check in small increments and reduce the processing amount per modification check. As a result, the load on the process computer 2 can be reduced. The reference summary value storage unit 15 is a memory that stores the summary value calculated by the summary value calculation unit 12 as a reference summary value. As shown in FIG. 3, the reference summary value storage unit 15 stores a reference summary value corresponding to each calculation range stored in the calculation range storage unit 14. The storage format is a table format as shown in FIG. 3, and the calculation range and the reference summary value may be stored so as to be continuous on the memory address, or the calculation range and the reference summary value are separately provided. They may be stored and associated with each other. The calculation range of the summary value is not necessarily divided, and the entire range of the control unit 22 may be checked by one alteration check by designating the entire range of the control unit 22.
The notification unit 16 receives a trigger from the summary value comparison unit 13 and notifies the mismatch of the summary values. When notifying an operator in the vicinity of the process computer, the notification is made by displaying an LED (Light Emitting Diode), a lamp, a panel, or a warning sound. Further, when notifying a party at a remote location, a message packet or mail is transmitted via a network to a server or PC (Personal Computer) that can be used by the party.

プロセスコンピュータ2は、入出力制御手段21、制御手段22及び制御情報23から構成される。入出力制御手段21は、コード改変検出装置1に接続され、その接続インタフェースに応じてデータの入出力制御を行う。ここでは、特に、制御手段22をコード改変検出装置1に出力する。制御手段22は、電機設備3に接続され、その電機設備3を監視、制御する手段であり、ここでは、特に、その手段を実現する手順を記述したプログラムコードのことをいう。制御情報23は、制御手段22が動作する上で必要な情報や、制御手段22が動作した結果である出力情報などである。制御情報23は、プログラムが格納されているメモリのうち、コード領域以外のデータ領域に格納してもよいし、プログラムのメモリとは別のメモリに格納してもよい。   The process computer 2 includes input / output control means 21, control means 22, and control information 23. The input / output control means 21 is connected to the code alteration detection device 1 and performs data input / output control according to the connection interface. Here, in particular, the control means 22 is output to the code alteration detection device 1. The control means 22 is means for monitoring and controlling the electrical equipment 3 connected to the electrical equipment 3, and here, in particular, means program code describing a procedure for realizing the means. The control information 23 is information necessary for the operation of the control unit 22, output information that is a result of the operation of the control unit 22, and the like. The control information 23 may be stored in a data area other than the code area in the memory in which the program is stored, or may be stored in a memory different from the program memory.

次に、図4に示すフローチャートに沿って、基本システムの動作について説明する。ここでは、特に、コード改変検出装置1の動作を中心に説明する。
ステップS201乃至S205は、コード改変検出装置1の初期設定の一環として行われる処理である。まず、プロセスコンピュータ2の制御手段22の要約値を算出する対象範囲である算出範囲を決定して、その決定した算出範囲を算出範囲記憶手段14に記憶する(ステップS201)。その算出範囲の決定の仕方には、2通りが考えられる。一つは、オペレータが、算出範囲を決めて、その算出範囲を一つずつコード改変検出装置1に入力する仕方である。具体的には、PCを、例えば、RS−232C経由でコード改変検出装置1に接続して、PC上で指定した算出範囲を算出範囲記憶手段14に記憶させる。もう一つは、算出範囲のデフォルト値を保持しておく仕方である。一般に、プロセスコンピュータにおいては、モデルごとにプログラムコードが格納されるメモリアドレスが決まっているので、コード改変検出装置1が接続されるプロセスコンピュータ2のモデルに応じた算出範囲のデフォルト値を、算出範囲記憶手段14に記憶させる。なお、算出範囲記憶手段14に記憶した算出範囲によって、制御手段22全体を覆う必要はなく、特定のプログラムコードの範囲であってもよい。
次に、要約値算出手段12が、算出範囲記憶手段14から算出範囲を一つ読み込む(ステップS202)。このとき、論理的なポインタなどを使って、アドレスの順番に一つずつ算出範囲を読み込むものとする。そして、その読み込んだ算出範囲に対応する制御手段22を入力する(ステップS203)。具体的には、要約値算出手段12が、入出力制御手段11及び所定のインタフェースを介して、プロセスコンピュータ2の入出力制御手段21に対して算出範囲を出力する。入出力制御手段21は、入力した算出範囲の制御手段22を、所定のインタフェース及び入出力制御手段11を介して、要約値算出手段12に出力する。これによって、要約値算出手段12は、算出範囲に対応する制御手段22を入力することができる。続いて、要約値算出手段12は、その入力した制御手段22から要約値を算出して、その算出した要約値を基準要約値記憶手段15に記憶する(ステップS204)。このとき、算出範囲に対応する所定のメモリアドレスに記憶するものとする。その後、算出範囲記憶手段14に記憶した算出範囲のうち、制御手段22の要約値を算出していないものがあるか否かをチェックする(ステップS205)。要約値を算出していない範囲があれば(ステップS205のYes)、ステップS202に戻って次の算出範囲について処理を行う。要約値を算出していない範囲がなければ(ステップS205のNo)、すなわち、算出範囲記憶手段14に記憶した算出範囲の要約値を全て算出したときには、コード改変検出装置1は、要約値に関する初期設定が終了したことになるので、一旦処理を中断する。
Next, the operation of the basic system will be described along the flowchart shown in FIG. Here, the operation of the code alteration detection device 1 will be mainly described.
Steps S <b> 201 to S <b> 205 are processes performed as part of the initial setting of the code alteration detection device 1. First, the calculation range which is the target range for calculating the summary value of the control means 22 of the process computer 2 is determined, and the determined calculation range is stored in the calculation range storage means 14 (step S201). There are two ways to determine the calculation range. One is a method in which an operator determines a calculation range and inputs the calculation range to the code alteration detection apparatus 1 one by one. Specifically, for example, the PC is connected to the code alteration detection device 1 via RS-232C, and the calculation range designated on the PC is stored in the calculation range storage unit 14. The other is to keep the default value of the calculation range. In general, in a process computer, a memory address in which a program code is stored is determined for each model. Therefore, a default value of a calculation range corresponding to a model of the process computer 2 to which the code alteration detection device 1 is connected is set as a calculation range. The data is stored in the storage unit 14. The calculation range stored in the calculation range storage unit 14 does not need to cover the entire control unit 22, and may be a specific program code range.
Next, the summary value calculation unit 12 reads one calculation range from the calculation range storage unit 14 (step S202). At this time, it is assumed that the calculation ranges are read one by one in the order of addresses using a logical pointer or the like. And the control means 22 corresponding to the read calculation range is input (step S203). Specifically, the summary value calculation unit 12 outputs a calculation range to the input / output control unit 21 of the process computer 2 via the input / output control unit 11 and a predetermined interface. The input / output control unit 21 outputs the input calculation range control unit 22 to the summary value calculation unit 12 via the predetermined interface and the input / output control unit 11. Thereby, the summary value calculation means 12 can input the control means 22 corresponding to the calculation range. Subsequently, the summary value calculation unit 12 calculates a summary value from the input control unit 22, and stores the calculated summary value in the reference summary value storage unit 15 (step S204). At this time, the data is stored in a predetermined memory address corresponding to the calculation range. Thereafter, it is checked whether there is a calculation range stored in the calculation range storage unit 14 for which the summary value of the control unit 22 has not been calculated (step S205). If there is a range for which a summary value has not been calculated (Yes in step S205), the process returns to step S202 and the next calculation range is processed. If there is no range in which the summary value has not been calculated (No in step S205), that is, when all the summary values in the calculation range stored in the calculation range storage unit 14 have been calculated, the code modification detection device 1 performs initial processing regarding the summary value. Since the setting is complete, the process is temporarily interrupted.

ステップS206乃至S210は、定期的に又は随時行われる、プロセスコンピュータ2の制御手段22の改変チェック処理である。まず、要約値算出手段12が、算出範囲記憶手段14から算出範囲を一つ抽出する(ステップS206)。このとき、算出範囲を論理的なポインタなどを使ってアドレスの順番に抽出してもよいし、任意の算出範囲を抽出してもよい。次に、その抽出した算出範囲に対応する制御手段22を入力する(ステップS207)。具体的な手順は、ステップS203と同様である。そして、要約値算出手段12は、入力した制御手段22から要約値を算出する(ステップS208)。要約値比較手段13は、その算出した要約値と、ステップS204において記憶した基準要約値のうち、その算出範囲に対応する基準要約値とを比較する(ステップS209)。2つの要約値が一致すれば(ステップS209のYes)、要約値比較手段13が要約値算出手段12に次のチェックのトリガを与え、そのトリガを受けた要約値算出手段12が別の算出範囲のチェックを行う(ステップS206)。このとき、入出力制御手段21の動作によるプロセスコンピュータ2の本来の処理(電機設備3の監視、制御)に対する負荷を低減するため、所定の時間が経過するのを待ってから、別の算出範囲のチェックを行うようにすることができる。2つの要約値が一致しなければ(ステップS209のNo)、要約値比較手段13が通知手段16に不一致通知のトリガを与え、そのトリガを受けた通知手段16が要約値不一致の通知を行う(ステップS210)。   Steps S206 to S210 are modification check processing of the control means 22 of the process computer 2 that is performed periodically or as needed. First, the summary value calculation unit 12 extracts one calculation range from the calculation range storage unit 14 (step S206). At this time, the calculation range may be extracted in the order of addresses using a logical pointer or an arbitrary calculation range may be extracted. Next, the control means 22 corresponding to the extracted calculation range is input (step S207). The specific procedure is the same as step S203. Then, the summary value calculation unit 12 calculates a summary value from the input control unit 22 (step S208). The summary value comparison unit 13 compares the calculated summary value with the reference summary value corresponding to the calculation range among the reference summary values stored in step S204 (step S209). If the two summary values match (Yes in step S209), the summary value comparison unit 13 gives the summary value calculation unit 12 a trigger for the next check, and the summary value calculation unit 12 that has received the trigger has another calculation range. Is checked (step S206). At this time, in order to reduce the load on the original processing (monitoring and control of the electrical equipment 3) of the process computer 2 due to the operation of the input / output control means 21, after waiting for a predetermined time to elapse, another calculation range Can be checked. If the two summary values do not match (No in step S209), the summary value comparison unit 13 gives a trigger for mismatch notification to the notification unit 16, and the notification unit 16 that has received the trigger notifies the summary value mismatch ( Step S210).

≪第1の実施の形態≫
次に、前記基本システムを利用した本発明の第1の実施の形態について説明する。図5は、本発明の第1の実施の形態に係るプロセスコンピュータの構成を示す図である。図5に示すように、第1の実施の形態は、コード改変検出装置がプロセスコンピュータに内蔵された例である。プロセスコンピュータ2は、コード改変検出装置1、CPUモジュール28、IO(Input Output)モジュール29及びバックプレーンバス30から構成される。コード改変検出装置1、CPUモジュール28及びIOモジュール29は、バックプレーンバス30により接続されており、コード改変検出装置1及びCPUモジュール28の間、並びに、CPUモジュール28及びIOモジュール29の間において、バックプレーンバス30を介したデータの入出力が行われる。コード改変検出装置1は、図1と比較すると、マイクロプロセッサ17が追加されており、また、要約値算出手段12、要約値比較手段13、算出範囲記憶手段14及び基準要約値記憶手段15が、RTOS(Real Time Operating System)19と共にメモリ18に搭載されている。CPUモジュール28は、図1のプロセスコンピュータ2に相当するが、それと比較すると、マイクロプロセッサ25が追加されており、また、制御手段22及び制御情報23が、RTOS27と共にメモリ26に搭載されている。IOモジュール29は、電機設備3と接続され、その電機設備3とのデータの入出力を行うものである。なお、図5のコード改変検出装置1の動作は、図4のフローチャートと同様であるので、その説明は割愛する。
<< First Embodiment >>
Next, a first embodiment of the present invention using the basic system will be described. FIG. 5 is a diagram showing a configuration of the process computer according to the first embodiment of the present invention. As shown in FIG. 5, the first embodiment is an example in which a code alteration detection device is built in a process computer. The process computer 2 includes a code alteration detection device 1, a CPU module 28, an IO (Input Output) module 29, and a backplane bus 30. The code modification detection device 1, the CPU module 28 and the IO module 29 are connected by a backplane bus 30, and between the code modification detection device 1 and the CPU module 28, and between the CPU module 28 and the IO module 29, Data is input / output via the backplane bus 30. Compared with FIG. 1, the code alteration detection device 1 includes a microprocessor 17, and the summary value calculation means 12, summary value comparison means 13, calculation range storage means 14, and reference summary value storage means 15 include: It is mounted on the memory 18 together with an RTOS (Real Time Operating System) 19. The CPU module 28 corresponds to the process computer 2 of FIG. 1, but in comparison with that, a microprocessor 25 is added, and control means 22 and control information 23 are mounted in the memory 26 together with the RTOS 27. The IO module 29 is connected to the electrical equipment 3 and inputs / outputs data to / from the electrical equipment 3. Since the operation of the code alteration detection device 1 in FIG. 5 is the same as that in the flowchart in FIG. 4, description thereof is omitted.

≪第2の実施の形態≫
次に、前記基本システムを利用した本発明の第2の実施の形態について説明する。図6は、本発明の第2の実施の形態に係るプロセスコンピュータ、プログラムサーバ及びその周辺の構成を示す図である。図6に示すように、第2の実施の形態は、コード改変検出プログラムがプロセスコンピュータの内部で動作する例である。プロセスコンピュータ2及びプログラムサーバ4は、ネットワーク6を介して接続されている。プロセスコンピュータ2は、コード改変検出プログラム5、制御手段22、制御情報23及びネットワークIF(InterFace、インタフェース)31から構成される。コード改変検出プログラム5は、要約値算出手順52、要約値比較手順53、算出範囲データ54、基準要約値データ55及び通知手順56から構成される。これらの構成要素は、それぞれ図1の基本システムにおける要約値算出手段12、要約値比較手段13、算出範囲記憶手段14、基準要約値記憶手段15及び通知手段16に相当するが、プログラムの構成要素であることから、各手順はプログラムコードであり、各データはプログラムが格納されるメモリ内のデータであることを明確に示すものである。プログラムサーバ4は、コード改変検出プログラム5を保持している。なお、図6において破線で示す箇所については、ここでは言及せず、別途説明する。
<< Second Embodiment >>
Next, a second embodiment of the present invention using the basic system will be described. FIG. 6 is a diagram showing a configuration of a process computer, a program server, and the periphery thereof according to the second embodiment of the present invention. As shown in FIG. 6, the second embodiment is an example in which a code alteration detection program operates inside a process computer. The process computer 2 and the program server 4 are connected via a network 6. The process computer 2 includes a code modification detection program 5, control means 22, control information 23, and a network IF (InterFace, interface) 31. The code alteration detection program 5 includes a summary value calculation procedure 52, a summary value comparison procedure 53, calculation range data 54, reference summary value data 55, and a notification procedure 56. These components correspond to the summary value calculation means 12, summary value comparison means 13, calculation range storage means 14, reference summary value storage means 15 and notification means 16 in the basic system of FIG. Therefore, each procedure is a program code and clearly indicates that each data is data in a memory in which the program is stored. The program server 4 holds a code alteration detection program 5. Note that portions indicated by broken lines in FIG. 6 are not described here and will be described separately.

図7のフローチャートに沿って、本発明の第2の実施の形態に係るコード改変検出プログラムの動作について説明する。ステップS301乃至S303は、プログラムサーバ4に格納されているコード改変検出プログラム5の初期設定を行うものである。まず、プロセスコンピュータ2は、ネットワーク6及びネットワークIF31を介して、プログラムサーバ4からコード改変検出プログラム5をダウンロードする(ステップS301)。そして、そのダウンロードしたコード改変検出プログラム5の初期設定を行う(ステップS302)。この初期設定は、図4のステップS201乃至S205と同様に算出範囲データ54及びそれに対応する基準要約値データ55を設定するものであるので、詳細な説明を割愛する。続いて、プロセスコンピュータ2は、ネットワークIF31及びネットワーク6を介して、初期設定を行ったコード改変検出プログラム5をプログラムサーバ4にアップロードする(ステップS303)。以上により、プログラムサーバ4に、初期設定されたコード改変検出プログラム5が格納されることになる。   The operation of the code alteration detection program according to the second embodiment of the present invention will be described along the flowchart of FIG. Steps S301 to S303 are for initial setting of the code alteration detection program 5 stored in the program server 4. First, the process computer 2 downloads the code alteration detection program 5 from the program server 4 via the network 6 and the network IF 31 (step S301). Then, the downloaded code modification detection program 5 is initialized (step S302). Since this initial setting is to set the calculation range data 54 and the reference summary value data 55 corresponding to the calculation range data 54 in the same manner as steps S201 to S205 in FIG. 4, detailed description thereof will be omitted. Subsequently, the process computer 2 uploads the code modification detection program 5 that has been initialized to the program server 4 via the network IF 31 and the network 6 (step S303). As described above, the code modification detection program 5 that is initially set is stored in the program server 4.

ステップS304乃至S309は、初期設定されたコード改変検出プログラム5を使って、プロセスコンピュータ2の制御手段22の改変チェックを行うものである。最初に、プロセスコンピュータ2は、ネットワーク6及びネットワークIF31を介して、プログラムサーバ4からコード改変検出プログラム5をダウンロードし、起動する(ステップS304)。これによって、コード改変検出プログラム5は、そのチェック動作を開始する。まず、コード改変検出プログラム5では、要約値算出手順52が、算出範囲データ54の全範囲をチェックしたか否かを判断する(ステップS305)。まだ全範囲をチェックしていないので(ステップS305のNo)、算出範囲の抽出及び要約値の算出を行う(ステップS306)。この処理は、図4のステップS206乃至S208と同様であるので、詳細な説明を割愛する。ただし、算出範囲データ54から算出範囲を抽出するときは、アドレスの順番であってもよいし、任意の順番であってもよいが、算出範囲の個数と同じ回数だけ抽出を行ったときには、算出範囲データ54の全範囲が抽出されるようにする。そして、要約値比較手順53は、要約値算出手順52が算出した要約値と、それに対応する基準要約値データ55の要約値とを比較する(ステップS307)。それらの要約値が一致すれば(ステップS307のYes)、ステップS305に戻って、要約値算出手順52が、算出範囲データ54の全範囲をチェックしたか否かを再び判断する。それらの要約値が一致しなければ(ステップS307のNo)、要約値比較手順53は、通知手順56に要約値不一致の通知のトリガを与え、そのトリガを受けた通知手順56は、要約値不一致の通知を行う(ステップS308)。具体的には、図1の通知手段16と同様の通知を行うことになる。ステップS305で、算出範囲データ54の全範囲をチェックしたときには(ステップS305のYes)、コード改変検出プログラム5は、そのチェック動作を中止し、それを検出したプロセスコンピュータ2は、コード改変検出プログラム5を破棄する(ステップS309)。「破棄」の動作としては、例えば、メモリ上にダウンロードしたコード改変検出プログラム5をゼロクリアすることが考えられる。そして、プロセスコンピュータ2は、再度コード改変検出プログラム5をダウンロードし、起動する(ステップS304)。これは、同じコード改変検出プログラム5を使い続けるのではなく、算出範囲データ54の全算出範囲における制御手段22をチェックするごとに、コード改変検出プログラム5をダウンロードし直すことによって、コード改変検出プログラム5自身の改変を防ぐものである。   Steps S304 to S309 are for checking the alteration of the control means 22 of the process computer 2 by using the code alteration detection program 5 which is initialized. First, the process computer 2 downloads and starts the code alteration detection program 5 from the program server 4 via the network 6 and the network IF 31 (step S304). As a result, the code alteration detection program 5 starts its check operation. First, in the code modification detection program 5, it is determined whether the summary value calculation procedure 52 has checked the entire range of the calculation range data 54 (step S305). Since the entire range has not been checked yet (No in step S305), the calculation range is extracted and the summary value is calculated (step S306). Since this process is the same as steps S206 to S208 in FIG. 4, a detailed description is omitted. However, when the calculation range is extracted from the calculation range data 54, it may be in the order of addresses or in any order. However, when extraction is performed the same number of times as the number of calculation ranges, the calculation range is calculated. The entire range of the range data 54 is extracted. Then, the summary value comparison procedure 53 compares the summary value calculated by the summary value calculation procedure 52 with the summary value of the reference summary value data 55 corresponding to the summary value (step S307). If the summary values match (Yes in step S307), the process returns to step S305, and the summary value calculation procedure 52 determines again whether or not the entire range of the calculation range data 54 has been checked. If the summary values do not match (No in step S307), the summary value comparison procedure 53 gives the notification procedure 56 a trigger for notifying the summary value mismatch, and the notification procedure 56 that received the trigger receives the summary value mismatch. Is notified (step S308). Specifically, the notification similar to the notification means 16 of FIG. 1 is performed. When the entire range of the calculation range data 54 is checked in step S305 (Yes in step S305), the code modification detection program 5 stops the checking operation, and the process computer 2 that has detected the code modification detection program 5 Is discarded (step S309). As an operation of “discarding”, for example, it is conceivable to zero-clear the code modification detection program 5 downloaded onto the memory. Then, the process computer 2 downloads and activates the code alteration detection program 5 again (step S304). This is not to continue using the same code modification detection program 5, but to download the code modification detection program 5 every time the control means 22 in the entire calculation range of the calculation range data 54 is checked. 5 Prevents modification of itself.

≪第3の実施の形態≫
前記基本システムを利用した本発明の第3の実施の形態について説明する。図6は、本発明の第2の実施の形態に係る構成図であるが、破線で示したID57及びコード改変検出プログラム基準要約値58を含めたものを第3の実施の形態に係る構成図とする。第3の実施の形態は、ID57及びコード改変検出プログラム基準要約値58を利用することによって、コード改変検出プログラム5自身のチェックを強化するものである。ID57は、コード改変検出プログラム5をプログラムサーバ4からプロセスコンピュータ2にダウンロードするたびに、そのコード改変検出プログラム5に付加される番号であり、ダウンロードのたびに異なる番号が生成されるものとする。例えば、乱数を発生させることによって毎回異なる番号を生成して、その生成した番号をID57としてコード改変検出プログラム5に付加するようにしてもよい。コード改変検出プログラム基準要約値58は、ID57を含めたコード改変検出プログラム5を所定の圧縮論理によって算出した要約値を基準要約値として記憶するものである。ここで、プログラムサーバ4は、要約値算出手順52と同様のプログラムコードを備えていて、コード改変検出プログラム5の要約値の算出ができるものとする。
<< Third Embodiment >>
A third embodiment of the present invention using the basic system will be described. FIG. 6 is a block diagram according to the second embodiment of the present invention, but includes a block diagram including ID 57 and code modification detection program reference summary value 58 indicated by broken lines according to the third embodiment. And In the third embodiment, the check of the code modification detection program 5 itself is strengthened by using the ID 57 and the code modification detection program reference summary value 58. The ID 57 is a number added to the code modification detection program 5 every time the code modification detection program 5 is downloaded from the program server 4 to the process computer 2, and a different number is generated each time the code modification detection program 5 is downloaded. For example, a different number may be generated each time by generating a random number, and the generated number may be added to the code alteration detection program 5 as ID57. The code modification detection program reference summary value 58 stores a summary value obtained by calculating the code modification detection program 5 including the ID 57 by a predetermined compression logic as a reference summary value. Here, it is assumed that the program server 4 has the same program code as the summary value calculation procedure 52 and can calculate the summary value of the code modification detection program 5.

第3の実施の形態は、第2の実施の形態と比較すると、図7のステップS304のうち「コード改変検出プログラムのダウンロード」の前後に、ID57及びコード改変検出プログラム基準要約値58を取り扱う処理を追加したものである。図8のフローチャートに沿って、その処理について説明する。まず、プロセスコンピュータ2は、プログラムサーバ4に対して、コード改変検出プログラム5のダウンロードを要求する(ステップS401)。このとき、プログラムサーバ4は、コード改変検出プログラム5にID57を付加し(ステップS402)、その付加したID57を含めたコード改変検出プログラム5から要約値を算出し、コード改変検出プログラム基準要約値58として記憶する(ステップS403)。その後、コード改変検出プログラム5をプロセスコンピュータ2にダウンロードする(ステップS404)。プロセスコンピュータ2は、ダウンロードされたコード改変検出プログラム5から要約値を算出し(ステップS405)、その算出した要約値をプログラムサーバ4にアップロードする(ステップS406)。プログラムサーバ4は、アップロードされた要約値と、記憶しているコード改変検出プログラム基準要約値58とを比較する(ステップS407)。要約値が一致していれば(ステップS407のYes)、プログラムサーバ4におけるコード改変検出プログラム5のダウンロード処理は終了する。要約値が一致していなければ(ステップS407のNo)、プログラムサーバ4は、要約値不一致の通知を行う(ステップS408)。具体的には、図1の通知手段16と同様の通知を行うものとする。
このように、コード改変検出プログラム5を制御手段22のチェックのためにダウンロードするたびに、異なるID57を付加し、その付加したID57を含めたコード改変検出プログラム5全体の要約値について、プロセスコンピュータ2で算出した値と、プログラムサーバ4で算出した値とを比較チェックすることによって、コード改変検出プログラム5自身のコード改変のチェックを強化することができる。
Compared with the second embodiment, the third embodiment processes ID57 and code modification detection program reference summary value 58 before and after “download code modification detection program” in step S304 of FIG. Is added. The processing will be described along the flowchart of FIG. First, the process computer 2 requests the program server 4 to download the code alteration detection program 5 (step S401). At this time, the program server 4 adds ID 57 to the code alteration detection program 5 (step S402), calculates a summary value from the code alteration detection program 5 including the added ID 57, and obtains a code alteration detection program reference summary value 58. (Step S403). Thereafter, the code alteration detection program 5 is downloaded to the process computer 2 (step S404). The process computer 2 calculates a summary value from the downloaded code modification detection program 5 (step S405), and uploads the calculated summary value to the program server 4 (step S406). The program server 4 compares the uploaded summary value with the stored code modification detection program reference summary value 58 (step S407). If the summary values match (Yes in step S407), the download process of the code modification detection program 5 in the program server 4 ends. If the summary values do not match (No in step S407), the program server 4 notifies the summary value mismatch (step S408). Specifically, the same notification as that of the notification unit 16 in FIG. 1 is performed.
Thus, each time the code modification detection program 5 is downloaded for checking by the control means 22, a different ID 57 is added, and the summary value of the entire code modification detection program 5 including the added ID 57 is processed by the process computer 2 By comparing and checking the value calculated in the above and the value calculated by the program server 4, the code modification check of the code modification detection program 5 itself can be strengthened.

≪第4の実施の形態≫
前記基本システムを設備貸与システムに適用した本発明の第4の実施の形態について説明する。図9は、本発明の第4の実施の形態に係る設備貸与システムの構成を示す図である。設備貸与システムは、生産設備メーカ(サプライヤともいう)9が提供する生産設備である圧延装置72の少なくとも一部を、製造業者である鉄鋼会社7が導入し、稼動状況に応じて圧延装置72の貸与にかかる部分についての使用料(課金料金)を支払うシステムである。その貸与した圧延装置72に、プログラムコードをチェックするサービスを行うサービス会社8によって、コード改変検出装置1が付設されている。
図9に示すように、設備貸与システムは、鉄鋼会社7の製造業者サーバ71、サービス会社8のサービス会社サーバ81及び生産設備メーカ9のメーカサーバ91が、ネットワーク6を介して接続されて構成される。鉄鋼会社7では、製造業者サーバ71が、情報LAN79aを介して圧延装置72に接続される。圧延装置72は、前工程から送られて来る鋼板Wを所定の厚さに加工して、コイル状に巻き付ける装置である。その圧延装置72においては、コード改変検出装置1、プロセスコンピュータ2及び制御用計算機73が情報LAN79aを介して接続されている。
<< Fourth Embodiment >>
A fourth embodiment of the present invention in which the basic system is applied to an equipment lending system will be described. FIG. 9 is a diagram showing a configuration of an equipment lending system according to the fourth embodiment of the present invention. In the equipment lending system, a steel company 7 as a manufacturer introduces at least a part of a rolling equipment 72 that is a production equipment provided by a production equipment manufacturer (also referred to as a supplier) 9, and the rolling equipment 72 of the rolling equipment 72 is in accordance with the operation status. This is a system that pays a usage fee (billing fee) for the portion of the loan. The code modification detection device 1 is attached to the lent rolling device 72 by a service company 8 that performs a service for checking the program code.
As shown in FIG. 9, the equipment lending system is configured by connecting a manufacturer server 71 of a steel company 7, a service company server 81 of a service company 8, and a manufacturer server 91 of a production equipment manufacturer 9 via a network 6. The In the steel company 7, the manufacturer server 71 is connected to the rolling device 72 via the information LAN 79a. The rolling device 72 is a device that processes the steel sheet W sent from the previous process to a predetermined thickness and winds it in a coil shape. In the rolling device 72, the code alteration detection device 1, the process computer 2, and a control computer 73 are connected via an information LAN 79a.

コード改変検出装置1は、プロセスコンピュータ2の課金料金算出手段22aをチェックする機能を持つ。
プロセスコンピュータ2は、PIO(Process Input Output)ステーション74を介してフィールドLAN79bに接続され、鋼板Wの成形加工を行うミル75の動作を監視、制御するものであるが、ここでは、特に、板厚計76、板速計77及び板幅計78が計測したデータからミル75の稼動状況を把握し、それによって貸与した圧延装置72の課金料金を算出する機能を持つ。ミル75の稼動状況は、例えば、生産量によって把握することができるが、その生産量は、鋼板Wの板厚と、板幅と、板速と、単位時間とを掛け合わせた値として得ることができる。プロセスコンピュータ2は、情報LAN79aを介して他の装置やサーバとのデータの送受信を行う送受信手段21a、課金料金を算出する課金料金算出手段22a、及び、課金料金に必要な情報を記憶し、蓄積する課金情報蓄積手段23aから構成される。
制御用計算機73は、プロセスコンピュータ2に対して、ミル75の動作の監視、制御や課金料金の算出を指示する。なお、図9の破線で示す箇所については、ここでは言及せず、別途説明する。
The code alteration detection device 1 has a function of checking the charging fee calculation means 22a of the process computer 2.
The process computer 2 is connected to the field LAN 79b via a PIO (Process Input Output) station 74, and monitors and controls the operation of the mill 75 that forms the steel plate W. It has a function of grasping the operation status of the mill 75 from the data measured by the total 76, the plate speed meter 77, and the plate width meter 78, and thereby calculating the charging fee of the lent rolling device 72. The operation status of the mill 75 can be grasped by, for example, the production amount, and the production amount is obtained as a value obtained by multiplying the plate thickness, the plate width, the plate speed, and the unit time of the steel plate W. Can do. The process computer 2 stores and accumulates information necessary for the charging fee, a transmission / reception unit 21a for transmitting / receiving data to / from other devices and servers via the information LAN 79a, a charging fee calculation unit 22a for calculating a charging fee. Accounting information storage means 23a.
The control computer 73 instructs the process computer 2 to monitor and control the operation of the mill 75 and to calculate a charging fee. Note that portions indicated by broken lines in FIG. 9 are not described here and will be described separately.

図10のフローチャートに沿って、本発明の第4の実施の形態に係る設備貸与システムの動作について説明する。ここでは、設備貸与システムの動作を、鉄鋼会社7、サービス会社8及び生産設備メーカ9の3者が行う設備貸与ビジネスの手順として説明することにする。設備貸与ビジネスの概要としては、サービス会社8が、生産設備メーカ9にコード改変検出装置1を貸与し、生産設備メーカ9が、そのコード改変検出装置1を搭載した設備(圧延装置72)を鉄鋼会社7に貸与するものである。なお、鉄鋼会社7は、圧延装置72を用いて鋼板Wを作製し、製品購入会社に販売し、その対価を回収することで事業を営んでいるものとする。以下、図10に沿って詳細を説明する。
まず、サービス会社8と生産設備メーカ9との間で、コード改変検出装置1の貸与契約が結ばれる(ステップS501)。その貸与契約に従って、サービス会社8は、生産設備メーカ9にコード改変検出装置1を貸与し(ステップS502)、生産設備メーカ9は、サービス会社8に代金の一括払いを行う(ステップS503)。次に、鉄鋼会社7と生産設備メーカ9との間で、設備の貸与契約が結ばれる(ステップS504)。その貸与契約に従って、生産設備メーカ9は、コード改変検出装置1を搭載した設備を鉄鋼会社7に貸与し(ステップS505)、鉄鋼会社7は、生産設備メーカ9に代金の一括払いを行う(ステップS506)。これによって、鉄鋼会社7、サービス会社8及び生産設備メーカ9の3者間の貸与契約が成立したことになる。
The operation of the facility lending system according to the fourth embodiment of the present invention will be described along the flowchart of FIG. Here, the operation of the facility lending system will be described as a facility lending business procedure performed by the steel company 7, the service company 8, and the production facility manufacturer 9. As an outline of the equipment lending business, the service company 8 rents the code alteration detection device 1 to the production equipment manufacturer 9, and the production equipment manufacturer 9 installs the equipment (rolling device 72) on which the code alteration detection device 1 is installed in steel. Loans to company 7. It is assumed that the steel company 7 operates the business by producing the steel plate W using the rolling device 72, selling it to the product purchasing company, and collecting the consideration. Details will be described below with reference to FIG.
First, a loan contract for the code alteration detection device 1 is concluded between the service company 8 and the production equipment manufacturer 9 (step S501). According to the lending contract, the service company 8 lends the code modification detection device 1 to the production equipment manufacturer 9 (step S502), and the production equipment manufacturer 9 pays the service company 8 in a lump sum (step S503). Next, an equipment loan contract is concluded between the steel company 7 and the production equipment manufacturer 9 (step S504). In accordance with the loan agreement, the production equipment manufacturer 9 lends the equipment equipped with the code alteration detection device 1 to the steel company 7 (step S505), and the steel company 7 pays the production equipment manufacturer 9 in a lump sum (step S506). ). As a result, a loan agreement between the steel company 7, the service company 8, and the production equipment manufacturer 9 is established.

では、所定の期間ごと、例えば、月ごとに行われる課金料金支払いの手順について説明する。最初に、鉄鋼会社7が、プロセスコンピュータ2の課金料金算出手段22aによって算出された課金料金を生産設備メーカ9に連絡する(ステップS507)。それと同じ時期に、サービス会社8は、コード改変検出装置1から課金料金算出手段22aの改変確認結果を受信して、その受信した改変確認結果を生産設備メーカ9及び鉄鋼会社7に連絡する(ステップS508、S509)。課金料金算出手段22aの改変確認結果の連絡を受けた鉄鋼会社7及び生産設備メーカ9は、課金料金算出手段22aに改変がないことを確認し、合意する(ステップS510)。その後、生産設備メーカ9は、ステップS507で連絡を受けた課金料金に基づく請求書を鉄鋼会社7に発行する(ステップS511)。鉄鋼会社7は、発行された請求書に従って、生産設備メーカ9に支払いを行う(ステップS512)。更に、生産設備メーカ9は、鉄鋼会社7から支払われた金額の一部をサービス会社8に支払う(ステップS513)。このような手順が契約期間の満了まで繰り返される。   Now, a charging fee payment procedure performed every predetermined period, for example, every month will be described. First, the steel company 7 informs the production facility manufacturer 9 of the billing fee calculated by the billing fee calculation means 22a of the process computer 2 (step S507). At the same time, the service company 8 receives the modification confirmation result of the charging fee calculation means 22a from the code modification detection device 1, and notifies the received modification confirmation result to the production equipment manufacturer 9 and the steel company 7 (step). S508, S509). The steel company 7 and the production equipment manufacturer 9 that have received the notification of the modification confirmation result of the charging fee calculation means 22a confirm that there is no modification in the charging fee calculation means 22a and agree (step S510). Thereafter, the production equipment manufacturer 9 issues an invoice based on the billing fee notified in step S507 to the steel company 7 (step S511). The steel company 7 pays the production equipment manufacturer 9 according to the issued bill (step S512). Further, the production equipment manufacturer 9 pays a part of the amount paid from the steel company 7 to the service company 8 (step S513). Such a procedure is repeated until the contract period expires.

≪第5の実施の形態≫
前記基本システムを設備貸与システムに適用した本発明の第5の実施の形態について説明する。図9は、本発明の第4の実施の形態に係る設備貸与システムの構成図であるが、破線で示した仲介会社10及び仲介会社サーバ101を含めたものを本発明の第5の実施の形態に係る設備貸与システムの構成図とする。仲介会社10は、サービス会社8及び生産設備メーカ9と、鉄鋼会社7との間で、コード改変検出装置1及び設備(圧延装置72)の貸与、その課金料金支払いの仲介を行う。
図11のフローチャートに沿って、本発明の第5の実施の形態に係る設備貸与システムの動作について説明する。ここでは、設備貸与システムの動作を、鉄鋼会社7、仲介会社10、サービス会社8及び生産設備メーカ9の4者が行う設備貸与ビジネスの手順として説明することにする。なお、鉄鋼会社7は、圧延装置72を用いて鋼板Wを作製し、製品購入会社に販売し、その対価を回収することで事業を営んでいるものとする。以下、図11に沿って詳細を説明する。
まず、仲介会社10とサービス会社8との間で、コード改変検出装置1の貸与契約が結ばれ(ステップS601)、サービス会社8は、仲介会社10にコード改変検出装置1を貸与し(ステップS602)、仲介会社10は、サービス会社8に代金の一括払いを行う(ステップS603)。次に、鉄鋼会社7と仲介会社10との間で、コード改変検出装置1の貸与契約が結ばれ(ステップS604)、仲介会社10は、鉄鋼会社7にコード改変検出装置1を貸与する(ステップS605)。更に、鉄鋼会社7と仲介会社10との間、及び、鉄鋼会社7と生産設備メーカ9との間で設備の貸与契約が結ばれる(ステップS606)。そして、生産設備メーカ9は、鉄鋼会社7に設備を貸与し(ステップS607)、仲介会社10は、生産設備メーカ9に代金の一括払いを行う(ステップS608)。これによって、鉄鋼会社7、仲介会社10、サービス会社8及び生産設備メーカ9の4者間の貸与契約が成立したことになる。
<< Fifth Embodiment >>
A fifth embodiment of the present invention in which the basic system is applied to an equipment lending system will be described. FIG. 9 is a configuration diagram of the equipment lending system according to the fourth embodiment of the present invention. The system including the brokerage company 10 and the brokerage company server 101 indicated by the broken lines includes the fifth embodiment of the present invention. It is set as the block diagram of the equipment loan system which concerns on a form. The intermediary company 10 lends the code alteration detection device 1 and equipment (rolling device 72) and mediates payment of the charging fee between the service company 8 and the production equipment manufacturer 9 and the steel company 7.
The operation of the facility lending system according to the fifth embodiment of the present invention will be described along the flowchart of FIG. Here, the operation of the equipment lending system will be described as a procedure of equipment lending business performed by four parties of the steel company 7, the brokerage company 10, the service company 8, and the production equipment manufacturer 9. It is assumed that the steel company 7 operates the business by producing the steel plate W using the rolling device 72, selling it to the product purchasing company, and collecting the consideration. Details will be described below with reference to FIG.
First, a loan agreement for the code modification detection device 1 is concluded between the brokerage company 10 and the service company 8 (step S601), and the service company 8 lends the code modification detection device 1 to the brokerage company 10 (step S602). ) The brokerage company 10 makes a lump sum payment to the service company 8 (step S603). Next, a loan contract for the code modification detection apparatus 1 is concluded between the steel company 7 and the brokerage company 10 (step S604), and the brokerage company 10 lends the code modification detection apparatus 1 to the steel company 7 (step S604). S605). Furthermore, equipment lending contracts are concluded between the steel company 7 and the brokerage company 10, and between the steel company 7 and the production equipment manufacturer 9 (step S606). The production equipment manufacturer 9 lends the equipment to the steel company 7 (step S607), and the brokerage company 10 pays the production equipment manufacturer 9 in a lump sum (step S608). As a result, a lending contract between the steel company 7, the brokerage company 10, the service company 8, and the production equipment manufacturer 9 is established.

では、所定の期間ごと、例えば、月ごとに行われる課金料金支払いの手順について説明する。最初に、鉄鋼会社7が、プロセスコンピュータ2の課金料金算出手段22aによって算出された課金料金を仲介会社10に連絡する(ステップS609)。それと同じ時期に、サービス会社8は、コード改変検出装置1から課金料金算出手段22aの改変確認結果を受信して、その受信した改変確認結果を仲介会社10及び鉄鋼会社7に連絡する(ステップS610、S611)。課金料金算出手段22aの改変確認結果の連絡を受けた鉄鋼会社7及び仲介会社10は、課金料金算出手段22aに改変がないことを確認し、合意する(ステップS612)。その後、仲介会社10は、ステップS609で連絡を受けた課金料金に基づく請求書を鉄鋼会社7に発行する(ステップS613)。鉄鋼会社7は、発行された請求書に従って、仲介会社10に支払いを行う(ステップS614)。仲介会社10は、生産設備メーカ9に支払い報告(収支報告)及びアカウント報告(機器の稼動状況及びそれに基づく課金料金の報告)を行う(ステップS615)と共に、鉄鋼会社7から支払われた金額の一部をサービス会社8に支払う(ステップS616)。このような手順が契約期間の満了まで繰り返される。   Now, a charging fee payment procedure performed every predetermined period, for example, every month will be described. First, the steel company 7 informs the brokerage company 10 of the billing fee calculated by the billing fee calculation means 22a of the process computer 2 (step S609). At the same time, the service company 8 receives the modification confirmation result of the charging fee calculation means 22a from the code modification detection apparatus 1, and notifies the broker company 10 and the steel company 7 of the received modification confirmation result (step S610). , S611). The steel company 7 and the brokerage company 10 that have received the notification of the modification confirmation result of the charging fee calculation means 22a confirm that there is no modification in the charging fee calculation means 22a and agree (step S612). Thereafter, the brokerage company 10 issues an invoice based on the billing fee notified in step S609 to the steel company 7 (step S613). The steel company 7 pays the brokerage company 10 according to the issued bill (step S614). The brokerage company 10 makes a payment report (payment report) and account report (reports on the operation status of the equipment and the billing fee based on it) to the production equipment manufacturer 9 (step S615), and the amount of money paid by the steel company 7 Pay the department to the service company 8 (step S616). Such a procedure is repeated until the contract period expires.

≪第6の実施の形態≫
本発明の第6の実施の形態に係る妥当性チェック手段について説明する。今まで、基本システム及び第1乃至第5の実施の形態について説明したが、それらはいずれもプロセスコンピュータ2の制御手段22の要約値によってその改変チェックを行うものである。それに対して、妥当性チェック手段は、計測データやそれに基づいて計算された数値の妥当性をチェックし、その結果がNG(No Good)であるときに、制御手段22の改変の可能性を示唆するものである。
図1は、本発明の実施の形態に係る基本システムの構成図であるが、破線で示した妥当性チェック手段110及び計測データを含めたものを本発明の第6の実施の形態に係る基本システムの構成図とする。妥当性チェック手段110は、コード改変検出装置1に内蔵されると共に、コード改変検出装置1の入出力制御手段11及びプロセスコンピュータ2の入出力制御手段21を介して、制御情報23内の計測データを入力する。入力した計測データの妥当性をチェックを行い、その結果がNGであるときに、通知手段16に計測データ異常を通知するトリガを与える。妥当性チェックの方法としては、計測データが所定の上限値及び下限値の範囲内にあるか否かをチェックすることが考えられる。計測データの上限値及び下限値は、電機設備3の物理的な制約や取り扱う材料の性質などによって導出される値である。例えば、電機設備3が圧延装置であれば、板速、板厚などの物理量には、ミルの仕様や特性から求められる上限値や下限値が存在する。更に、これらの物理量から算出した数値にも同様に上限値や下限値が存在する。例えば、貸与した圧延装置の課金料金は、次の式1によって計算できる。ここで、Σは、課金料金の対象期間(例えば、1ヶ月)分の(板厚×板速×板幅×単位時間)を合計することを意味する。
<< Sixth Embodiment >>
A validity checking unit according to the sixth embodiment of the present invention will be described. Up to now, the basic system and the first to fifth embodiments have been described. Both of them check the alteration according to the summary value of the control means 22 of the process computer 2. On the other hand, the validity checking means checks the validity of the measurement data and the numerical value calculated based on the measurement data, and suggests the possibility of modification of the control means 22 when the result is NG (No Good). To do.
FIG. 1 is a configuration diagram of the basic system according to the embodiment of the present invention. The basic system according to the sixth embodiment of the present invention includes validity checking means 110 and measurement data indicated by broken lines. The system configuration diagram. The validity check means 110 is built in the code alteration detection device 1 and is measured data in the control information 23 via the input / output control means 11 of the code alteration detection device 1 and the input / output control means 21 of the process computer 2. Enter. The validity of the input measurement data is checked, and when the result is NG, a trigger for notifying measurement data abnormality is given to the notification means 16. As a method of validity check, it can be considered to check whether or not the measurement data is within a predetermined upper limit value and lower limit value range. The upper limit value and the lower limit value of the measurement data are values derived from the physical restrictions of the electrical equipment 3 and the properties of the material to be handled. For example, if the electrical equipment 3 is a rolling device, there are an upper limit value and a lower limit value obtained from the specifications and characteristics of the mill in physical quantities such as plate speed and plate thickness. Further, numerical values calculated from these physical quantities also have upper and lower limits. For example, the charging fee of the lent rolling apparatus can be calculated by the following equation 1. Here, Σ means summing (plate thickness × plate speed × plate width × unit time) for a target period (for example, one month) of the billing fee.

課金料金 = α×Σ(板厚×板速×板幅×単位時間) (α:課金係数) ・・・式1     Billing fee = α x Σ (plate thickness x plate speed x plate width x unit time) (α: billing coefficient)

このとき、板厚、板速及び板幅の上限値、下限値によって、課金料金の上限値、下限値が決まる。なお、計測データは、電機設備3から入力されるデータ自身であってもよいし、その入力データを累積しておいて、前回の累積データと今回の累積データとの差を利用するようにしてもよい。   At this time, the upper limit value and the lower limit value of the charging fee are determined by the upper limit value and the lower limit value of the plate thickness, the plate speed, and the plate width. The measurement data may be the data itself input from the electrical equipment 3, or the input data is accumulated and the difference between the previous accumulated data and the current accumulated data is used. Also good.

次に、妥当性チェック手段の応用例について説明する。図9は、本発明の第4の実施の形態に係る設備貸与システムの構成図であるが、破線で示した妥当性チェック手段110及び電力計111を含めたものを本発明の第6の実施の形態に係る設備貸与システムの構成図とする。電力計111は、ミル75に付設され、ミル75が消費する電力量を計測し、その電力量データをフィールドLAN79b及びPIOステーション74を介して、プロセスコンピュータ2に出力する。プロセスコンピュータ2は、入力した電力量データを課金料金算出手段22a経由で課金情報蓄積手段23aに記憶、蓄積する。妥当性チェック手段110は、所定の期間、例えば、月ごとに、情報LAN79a及び送受信手段21aを介して、課金料金算出手段22aが算出した課金料金及び課金情報蓄積手段23aに蓄積されたミル75の消費電力量を入力し、課金料金の妥当性チェックを行う。例えば、次の式2が成り立つか否かをチェックする。   Next, an application example of validity checking means will be described. FIG. 9 is a block diagram of the equipment lending system according to the fourth embodiment of the present invention. The system including the validity checking means 110 and the wattmeter 111 indicated by broken lines is the sixth embodiment of the present invention. It is set as the block diagram of the equipment lending system which concerns on a form. The wattmeter 111 is attached to the mill 75, measures the amount of power consumed by the mill 75, and outputs the power amount data to the process computer 2 via the field LAN 79b and the PIO station 74. The process computer 2 stores and stores the input electric energy data in the charging information storage unit 23a via the charging fee calculation unit 22a. The validity checking unit 110 is configured to store the bill 75 calculated by the billing fee calculation unit 22a and the bill 75 stored in the billing information storage unit 23a via the information LAN 79a and the transmission / reception unit 21a for a predetermined period, for example, every month. Enter the power consumption and check the validity of the billing fee. For example, it is checked whether or not the following expression 2 holds.

β×課金対象期間の消費電力量−ε ≦ 課金料金 ≦ β×課金対象期間の消費電力量+ε (β:電力量・課金料金変換係数、ε:許容偏差) ・・・式2     β × power consumption amount during billing target period−ε ≦ billing fee ≦ β × power consumption amount during billing target period + ε (β: power amount / billing fee conversion coefficient, ε: allowable deviation) Equation 2

式2は、課金料金が、β×課金対象期間の消費電力量を中心にして±εの範囲に入っていることを示すものであるが、換言すれば、課金料金とβ×課金対象期間の消費電力量との差がε以内であることを示すものである。このチェックは、課金料金算出手段22aが算出した課金料金を、ミル75の消費電力量から推定した課金料金と比較することによって、算出した課金料金の妥当性をチェックするものである。チェック結果がNGであれば、妥当性チェック手段110は、図示しない通知手段に対して、「課金料金異常」の通知を行うようにトリガを与える。なお、課金料金を推定するためのデータとしては、ミル75の消費電力量以外に、ミル75の稼働率や母材使用量などであってもよい。   Equation 2 shows that the billing fee is in the range of ± ε centering on the power consumption of β × chargeable period, in other words, the charge rate and β × chargeable period This indicates that the difference from the power consumption is within ε. This check is to check the validity of the calculated charging fee by comparing the charging fee calculated by the charging fee calculating means 22a with the charging fee estimated from the power consumption of the mill 75. If the check result is NG, the validity checking unit 110 gives a trigger to notify the notifying unit (not shown) of “abnormal charging fee”. In addition to the power consumption of the mill 75, the data for estimating the charging fee may be the operation rate of the mill 75, the amount of base material used, and the like.

≪その他の実施の形態≫
以上本発明について好適な実施の形態について一例を示したが、本発明は前記実施の形態に限定されず、本発明の趣旨を逸脱しない範囲で適宜変更が可能である。以下のような実施の形態が考えられる。
(1)前記実施の形態で記載した以外のコード改変通知方法として、通常は信号を常時出力しておいて、コードの改変を検出したときはその信号の出力レベルを変化させたり、0にすることが考えられる。具体的には、その信号の制御によって電機設備3を停止したり、起動不可とすることが考えられる。
(2)前記実施の形態では妥当性チェック手段110をコード改変検出装置1に内蔵するように記載したが、例えば、プロセスコンピュータ2に内蔵してもよい。そのとき、コード改変検出プログラム5上で動作する妥当性チェック手順(プログラムコード)として実現してもよい。
(3)前記実施の形態ではコード改変検出装置1による制御手段22のチェックと妥当性チェック手段110によるチェックとを独立して記載したが、例えば、妥当性チェック手段110によるチェック結果がNGのときに、コード改変検出装置1による制御手段22のチェック動作を起動するようにしてもよい。
<< Other embodiments >>
An example of the preferred embodiment of the present invention has been described above, but the present invention is not limited to the above-described embodiment, and can be appropriately changed without departing from the spirit of the present invention. The following embodiments are conceivable.
(1) As a code modification notification method other than that described in the above embodiment, normally a signal is always output, and when a code modification is detected, the output level of the signal is changed or set to 0 It is possible. Specifically, it is conceivable that the electrical equipment 3 is stopped or cannot be activated by controlling the signal.
(2) Although the validity checking means 110 is described as being built in the code alteration detection device 1 in the above embodiment, for example, it may be built in the process computer 2. At that time, it may be realized as a validity check procedure (program code) operating on the code alteration detection program 5.
(3) In the above embodiment, the check by the control means 22 by the code alteration detection device 1 and the check by the validity check means 110 are described independently. For example, when the check result by the validity check means 110 is NG In addition, the check operation of the control means 22 by the code alteration detection device 1 may be activated.

本発明の実施の形態に係るコード改変検出装置を含む基本システムの構成を示す図である。ただし、第6の実施の形態を含む。It is a figure which shows the structure of the basic system containing the code | cord modification detection apparatus which concerns on embodiment of this invention. However, the sixth embodiment is included. 本発明の実施の形態に係る算出範囲記憶手段により分割された制御手段(プログラムコード)のメモリ構成例の図である。It is a figure of the memory structural example of the control means (program code) divided | segmented by the calculation range memory | storage means which concerns on embodiment of this invention. 本発明の実施の形態に係る算出範囲記憶手段及び基準要約値記憶手段の構成図である。It is a block diagram of the calculation range storage means and reference | standard summary value storage means which concern on embodiment of this invention. 本発明の実施の形態に係るコード改変検出装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the code | cord | chord modification detection apparatus which concerns on embodiment of this invention. 本発明の第1の実施の形態に係るプロセスコンピュータの構成を示す図である。It is a figure which shows the structure of the process computer which concerns on the 1st Embodiment of this invention. 本発明の第2の実施の形態に係るプロセスコンピュータ、プログラムサーバ及びその周辺の構成を示す図である。ただし、第3の実施の形態を含む。It is a figure which shows the structure of the process computer which concerns on the 2nd Embodiment of this invention, a program server, and its periphery. However, the third embodiment is included. 本発明の第2の実施の形態に係るコード改変検出プログラムの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the code | cord modification detection program which concerns on the 2nd Embodiment of this invention. 本発明の第3の実施の形態に係るコード改変検出プログラムの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the code | cord modification detection program which concerns on the 3rd Embodiment of this invention. 本発明の第4の実施の形態に係る課金料金算出手段の改変を検出・通知する設備貸与システムの構成図である。ただし、第5及び第6の実施の形態を含む。It is a block diagram of the equipment lending system which detects and notifies the modification of the accounting fee calculation means according to the fourth embodiment of the present invention. However, the fifth and sixth embodiments are included. 本発明の第4の実施の形態に係る設備貸与システムの全体処理を示すフローチャートである。It is a flowchart which shows the whole process of the equipment loan system which concerns on the 4th Embodiment of this invention. 本発明の第5の実施の形態に係る設備貸与システムの全体処理を示すフローチャートである。It is a flowchart which shows the whole process of the equipment loan system which concerns on the 5th Embodiment of this invention.

符号の説明Explanation of symbols

1 コード改変検出装置
2 プロセスコンピュータ
3 電機設備
11 入出力制御手段
12 要約値算出手段
13 要約値比較手段
14 算出範囲記憶手段
15 基準要約値記憶手段
16 通知手段
21 入出力制御手段
22 制御手段
23 制御情報
DESCRIPTION OF SYMBOLS 1 Code alteration detection apparatus 2 Process computer 3 Electric equipment 11 Input / output control means 12 Summary value calculation means 13 Summary value comparison means 14 Calculation range storage means 15 Reference summary value storage means 16 Notification means 21 Input / output control means 22 Control means 23 Control information

Claims (8)

電機設備の監視及び制御を行うプロセスコンピュータに接続又は内蔵され、そのプロセスコンピュータのプログラムコードの改変を検出するコード改変検出装置であって、
要約値を算出する前記プログラムコードの対象範囲である算出範囲を記憶する算出範囲記憶手段と、
前記プロセスコンピュータに接続し、前記記憶した算出範囲のプログラムコードを入力する入出力制御手段と、
前記入力したプログラムコードの要約値を算出する要約値算出手段と、
前記算出した要約値を基準要約値として記憶する基準要約値記憶手段と、
前記入出力制御手段が新たに入力したプログラムコードを元にして、前記要約値算出手段が算出した要約値及び前記記憶した基準要約値を比較する要約値比較手段と、
前記比較した結果が不一致であるときに、前記要約値の不一致が発生したことを通知する通知手段と、
を備えることを特徴とするコード改変検出装置。
A code alteration detection device that is connected to or built in a process computer that monitors and controls electrical equipment, and detects alterations in the program code of the process computer,
Calculation range storage means for storing a calculation range that is a target range of the program code for calculating a summary value;
Input / output control means for connecting to the process computer and inputting the program code of the stored calculation range;
Summary value calculation means for calculating a summary value of the input program code;
Reference summary value storage means for storing the calculated summary value as a reference summary value;
Summary value comparison means for comparing the summary value calculated by the summary value calculation means and the stored reference summary value based on the program code newly input by the input / output control means;
A notification means for notifying that a mismatch of the summary values has occurred when the comparison result is a mismatch;
A code alteration detection device comprising:
前記入出力手段を介して、前記電機設備が計測したデータ又は前記プロセスコンピュータがそのデータから算出した数値を入力し、その入力したデータ又は数値が所定の上限値及び下限値の範囲内にあるか否かをチェックし、その範囲外にあるときに、前記通知手段に前記データ又は数値の異常を通知するトリガを与える妥当性チェック手段を備えることを特徴とする請求項1に記載のコード改変検出装置。   Via the input / output means, input data measured by the electrical equipment or numerical values calculated from the data by the process computer, and whether the input data or numerical values are within a predetermined upper limit value and lower limit value range The code alteration detection according to claim 1, further comprising validity checking means for checking whether or not the data or numerical value abnormality is triggered when the notification means is out of the range. apparatus. 電機設備の監視及び制御を行うプロセスコンピュータに、そのプロセスコンピュータのプログラムコードの改変を検出させるコード改変検出プログラムであって、
前記プロセスコンピュータに、
要約値を算出する前記プログラムコードの対象範囲である算出範囲を記憶する算出範囲データと、
前記記憶した算出範囲のプログラムコードを入力し、その入力したプログラムコードの要約値を算出する要約値算出手順と、
前記算出した要約値を基準要約値として記憶する基準要約値データと、
前記要約値算出手順が、新たにプログラムコードを入力し、その入力したプログラムコードを元にして算出した要約値及び前記記憶した基準要約値を比較する要約値比較手順と、
前記比較した結果が不一致であるときに、前記要約値の不一致が発生したことを通知する通知手順と、
を備えさせることを特徴とするコード改変検出プログラム。
A code modification detection program for causing a process computer that monitors and controls electrical equipment to detect modification of a program code of the process computer,
In the process computer,
Calculation range data for storing a calculation range that is a target range of the program code for calculating a summary value;
A summary value calculation procedure for inputting a program code of the stored calculation range and calculating a summary value of the input program code;
Reference summary value data for storing the calculated summary value as a reference summary value;
The summary value calculation procedure includes a newly entered program code, a summary value comparison procedure for comparing the summary value calculated based on the input program code and the stored reference summary value;
A notification procedure for notifying that a mismatch of the summary values has occurred when the comparison result is a mismatch;
A code alteration detection program characterized by comprising:
前記プロセスコンピュータに、
前記電機設備が計測したデータ又は前記プロセスコンピュータがそのデータから算出した数値を入力し、その入力したデータ又は数値が所定の上限値及び下限値の範囲内にあるか否かをチェックし、その範囲外にあるときに、前記通知手順に前記データ又は数値の異常を通知するトリガを与える妥当性チェック手順を備えさせることを特徴とする請求項3に記載のコード改変検出プログラム。
In the process computer,
Input the data measured by the electrical equipment or the numerical value calculated from the data by the process computer, check whether the input data or numerical value is within a predetermined upper limit value and lower limit value range, the range 4. The code alteration detection program according to claim 3, further comprising a validity check procedure for giving a trigger for notifying the abnormality of the data or the numerical value to the notification procedure when it is outside.
前記コード改変検出プログラムは、
前記算出範囲データに記憶した全算出範囲のプログラムコードの要約値を比較するごとに、所定のサーバから前記プロセスコンピュータに再度ダウンロードし直されることを特徴とする請求項3又は請求項4に記載のコード改変検出プログラム。
The code modification detection program is
5. The method according to claim 3, wherein each time a summary value of program codes of all calculation ranges stored in the calculation range data is compared, the program code is downloaded again from the predetermined server to the process computer. Code modification detection program.
前記コード改変検出プログラムは、
前記ダウンロードし直される場合に、
前記所定のサーバにおいて、所定のIDを付加された状態で要約値を算出されると共に、その要約値及び前記プロセスコンピュータにおいて算出された要約値を比較され、その比較結果が不一致であるときに、要約値不一致が通知されることを特徴とする請求項5に記載のコード改変検出プログラム。
The code modification detection program is
When re-downloading,
In the predetermined server, a summary value is calculated with a predetermined ID added, and the summary value and the summary value calculated in the process computer are compared, and when the comparison result is inconsistent, 6. The code modification detection program according to claim 5, wherein a summary value mismatch is notified.
請求項1又は請求項2に記載のコード改変検出装置を利用して、貸与した設備の課金料金の妥当性を確認することを可能とする設備貸与システムであって、
前記設備貸与システムは、少なくとも、
メーカ又は貸与事業者が顧客に貸与する生産設備と、
その生産設備を監視、制御するプロセスコンピュータと、
そのプロセスコンピュータのプログラムコードの改変を検出する前記コード改変検出装置と、
を含んで構成され、
前記プロセスコンピュータは、前記生産設備からその稼動状況を示すデータを入力し、その入力したデータから貸与した生産設備の課金料金を算出する課金料金算出手段を備え、
前記コード改変検出装置は、前記プロセスコンピュータのプログラムコードとして前記課金料金算出手段を入力し、その入力した課金料金算出手段の改変を検出する
ことを特徴とする設備貸与システム。
A facility lending system that makes it possible to confirm the validity of the billing fee of the lending facility using the code modification detection device according to claim 1 or 2,
The equipment lending system is at least:
Production facilities that a manufacturer or lender lends to customers;
A process computer that monitors and controls the production facility;
The code alteration detection apparatus for detecting alteration of the program code of the process computer;
Comprising
The process computer is provided with charging fee calculation means for inputting data indicating the operation status from the production facility and calculating a charging fee for the production facility lent from the input data.
The equipment modification system, wherein the code alteration detection device inputs the accounting fee calculation means as a program code of the process computer and detects an alteration of the inputted accounting fee calculation means.
請求項3乃至請求項6のいずれか一項に記載のコード改変検出プログラムを利用して、貸与した設備の課金料金の妥当性を確認することを可能とする設備貸与システムであって、
前記設備貸与システムは、少なくとも、
メーカ又は貸与事業者が顧客に貸与する生産設備と、
その生産設備を監視、制御するプロセスコンピュータと、
そのプロセスコンピュータに、そのプロセスコンピュータのプログラムコードの改変を検出させる前記コード改変検出プログラムと、
を含んで構成され、
前記プロセスコンピュータは、前記生産設備からその稼動状況を示すデータを入力し、その入力したデータから貸与した生産設備の課金料金を算出する課金料金算出手段を備え、
前記コード改変検出プログラムは、前記プロセスコンピュータに、前記プロセスコンピュータのプログラムコードとして前記課金料金算出手段を入力させ、その入力した課金料金算出手段の改変を検出させる
ことを特徴とする設備貸与システム。
A facility lending system that makes it possible to confirm the validity of the billing fee of the lent facility using the code modification detection program according to any one of claims 3 to 6.
The equipment lending system is at least:
Production facilities that a manufacturer or lender lends to customers;
A process computer that monitors and controls the production facility;
The code alteration detection program for causing the process computer to detect alteration of the program code of the process computer;
Comprising
The process computer is provided with charging fee calculation means for inputting data indicating the operation status from the production facility and calculating a charging fee for the production facility lent from the input data.
The facility modification system, wherein the code alteration detection program causes the process computer to input the accounting fee calculation means as a program code of the process computer and detect an alteration of the inputted accounting fee calculation means.
JP2003282481A 2003-07-30 2003-07-30 Code alteration detection device, code alteration detection program, and facility lending system using them Pending JP2005050184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003282481A JP2005050184A (en) 2003-07-30 2003-07-30 Code alteration detection device, code alteration detection program, and facility lending system using them

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003282481A JP2005050184A (en) 2003-07-30 2003-07-30 Code alteration detection device, code alteration detection program, and facility lending system using them

Publications (1)

Publication Number Publication Date
JP2005050184A true JP2005050184A (en) 2005-02-24

Family

ID=34267681

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003282481A Pending JP2005050184A (en) 2003-07-30 2003-07-30 Code alteration detection device, code alteration detection program, and facility lending system using them

Country Status (1)

Country Link
JP (1) JP2005050184A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007004255A (en) * 2005-06-21 2007-01-11 Fujitsu Ltd Debugging support program
CN111104669A (en) * 2018-10-29 2020-05-05 中兴通讯股份有限公司 Cracking detection method, device, system, server, terminal and storage medium
CN114648255A (en) * 2022-05-18 2022-06-21 国网浙江省电力有限公司 Inspection method and platform based on marketing business risk digital internal control system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0742609A (en) * 1993-07-28 1995-02-10 Nippondenso Co Ltd Memory checker for vehicle controller
JPH0863352A (en) * 1994-08-25 1996-03-08 Hitachi Software Eng Co Ltd Virus check system
JPH10190737A (en) * 1996-12-27 1998-07-21 Nippon Telegr & Teleph Corp <Ntt> Billing method and device
JP2001154840A (en) * 1999-11-26 2001-06-08 Adores Inc System and method for recognizing change of program
JP2002047998A (en) * 2000-08-04 2002-02-15 Suzuki Motor Corp Controller for vehicle
JP2002057740A (en) * 2001-06-12 2002-02-22 Digital Electronics Corp Control system
JP2002092668A (en) * 2000-09-14 2002-03-29 Denso Corp On-vehicle device and service providing system
JP2002251298A (en) * 2001-02-23 2002-09-06 Yokogawa Electric Corp Alarm information processing system
JP2002334024A (en) * 2001-05-11 2002-11-22 Denso Corp Electronic control unit
JP2003108253A (en) * 2001-09-28 2003-04-11 Hitachi Software Eng Co Ltd Method and program for monitoring application
JP2003164635A (en) * 2001-11-30 2003-06-10 Aruze Corp Memory cartridge device for gaming machine and gaming machine

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0742609A (en) * 1993-07-28 1995-02-10 Nippondenso Co Ltd Memory checker for vehicle controller
JPH0863352A (en) * 1994-08-25 1996-03-08 Hitachi Software Eng Co Ltd Virus check system
JPH10190737A (en) * 1996-12-27 1998-07-21 Nippon Telegr & Teleph Corp <Ntt> Billing method and device
JP2001154840A (en) * 1999-11-26 2001-06-08 Adores Inc System and method for recognizing change of program
JP2002047998A (en) * 2000-08-04 2002-02-15 Suzuki Motor Corp Controller for vehicle
JP2002092668A (en) * 2000-09-14 2002-03-29 Denso Corp On-vehicle device and service providing system
JP2002251298A (en) * 2001-02-23 2002-09-06 Yokogawa Electric Corp Alarm information processing system
JP2002334024A (en) * 2001-05-11 2002-11-22 Denso Corp Electronic control unit
JP2002057740A (en) * 2001-06-12 2002-02-22 Digital Electronics Corp Control system
JP2003108253A (en) * 2001-09-28 2003-04-11 Hitachi Software Eng Co Ltd Method and program for monitoring application
JP2003164635A (en) * 2001-11-30 2003-06-10 Aruze Corp Memory cartridge device for gaming machine and gaming machine

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007004255A (en) * 2005-06-21 2007-01-11 Fujitsu Ltd Debugging support program
CN111104669A (en) * 2018-10-29 2020-05-05 中兴通讯股份有限公司 Cracking detection method, device, system, server, terminal and storage medium
CN114648255A (en) * 2022-05-18 2022-06-21 国网浙江省电力有限公司 Inspection method and platform based on marketing business risk digital internal control system

Similar Documents

Publication Publication Date Title
CN111861208B (en) Automatic calculation method, system and medium for MRP material demand in production management
US20190197473A1 (en) Refrigerant Exchange, Recycling and Banking System and Computer Program Product
MXPA06003104A (en) Wide-area electrical demand and supply management.
JP2002123578A (en) Electric power retail system
KR20230041621A (en) System and method for managing incentive to worker for preventing safety accident in construction site
EP2743790A2 (en) Information processing device, information processing method, and storage medium
Ulstein et al. Elkem uses optimization in redesigning its supply chain
JP2011204045A (en) Electrical energy information transmission system and carbon dioxide reduction aggregation system
CN108960379B (en) A mobile terminal and system for processing metering asset distribution business
JP2005050184A (en) Code alteration detection device, code alteration detection program, and facility lending system using them
KR100929844B1 (en) Audit information system based on the enterprise resource management system, method of operating audit information using the same, and recording media recording the program
CN112507686B (en) User electricity price archive management method and system, computer equipment and storage medium
JP5322868B2 (en) Power supply facility introduction support device
CN117993985A (en) Invoice issuing method and device, electronic equipment and storage medium
JP2002297803A (en) Machinery maintenance fee setting system and machinery insurance fee setting system
JP2016031597A (en) Electric energy notification device, control program, data management device, data management system, control method of electric energy notification device, and medium
JP2004133710A (en) System for supporting risk management of power generation business
CN100350407C (en) Lease of appts. and machine and requirement method of fee, choosing device and analg tool
KR20190072216A (en) Total cost management method using standard cost management system and a computer readable recording medium recording total cost management method
KR102047277B1 (en) Thing as a service based asset procurement management apparatus
KR20060086619A (en) ERP system-based audit information system, method of operating audit information using the same, and recording media recording the program
JP2005293235A (en) Market quality problem handling support system
JP7638464B1 (en) Maintenance service system and maintenance service processing method
JP7708986B1 (en) Maintenance service system and maintenance service processing method
JP2002288435A (en) System for setting maintenance charge of machine equipment and system for setting insurance premium of machine equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071220

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080129

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080331

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080930

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081201

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090331