JPWO2015173912A1 - Control device - Google Patents

Control device Download PDF

Info

Publication number
JPWO2015173912A1
JPWO2015173912A1 JP2016519038A JP2016519038A JPWO2015173912A1 JP WO2015173912 A1 JPWO2015173912 A1 JP WO2015173912A1 JP 2016519038 A JP2016519038 A JP 2016519038A JP 2016519038 A JP2016519038 A JP 2016519038A JP WO2015173912 A1 JPWO2015173912 A1 JP WO2015173912A1
Authority
JP
Japan
Prior art keywords
external data
external
storage medium
data
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2016519038A
Other languages
Japanese (ja)
Other versions
JP6150943B2 (en
Inventor
直紀 川本
直紀 川本
信夫 菊地
信夫 菊地
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Publication of JPWO2015173912A1 publication Critical patent/JPWO2015173912A1/en
Application granted granted Critical
Publication of JP6150943B2 publication Critical patent/JP6150943B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules

Abstract

内部記憶部と、内部記憶部に記憶されたプログラムまたはパラメータを用いて演算を行い、接続される制御対象に対する制御処理を行う制御処理部24と、を備える制御装置10において、当該制御装置10に外部記憶媒体が装着されると、パスワードを設定するパスワード設定部17と、外部記憶媒体に記憶されている外部データを保存する外部データ保存領域を内部記憶部に設定する外部データ保存領域設定部15と、外部データを外部データ保存領域に記憶し、外部データの保存位置とパスワードとをパスワード−外部データ対応情報に対応付ける外部データ保存処理部18と、外部データが外部データ保存領域に保存されると、外部記憶媒体内の外部データを消去する外部データ消去部20と、を備える。In a control device 10 that includes an internal storage unit and a control processing unit 24 that performs a calculation process using a program or parameter stored in the internal storage unit and performs control processing on a connected control target, the control device 10 includes When an external storage medium is attached, a password setting unit 17 for setting a password and an external data storage area setting unit 15 for setting an external data storage area for storing external data stored in the external storage medium in the internal storage unit. The external data is stored in the external data storage area, the external data storage processing unit 18 associates the storage position and password of the external data with the password-external data correspondence information, and the external data is stored in the external data storage area. An external data erasing unit 20 for erasing external data in the external storage medium.

Description

この発明は、制御装置に関するものである。   The present invention relates to a control device.

近年、データをメモリカードなどの外部記憶媒体に入れて持ち運び、制御機器本体に接続して使用するケースが増えている。外部記憶媒体内のデータを、制御機器本体の内部記憶部にコピーして使用したり、外部記憶媒体内のデータをそのまま制御機器で実行したりする場合がある。しかし、どちらの場合も、外部記憶媒体内のデータの管理に関しては、意識が薄くなりがちである。そのため、外部記憶媒体を本体に挿入したままの状態が継続されることが多くなり、外部記憶媒体内のデータのセキュリティの確保が必要になってきている。   In recent years, there are increasing cases in which data is carried in an external storage medium such as a memory card and connected to a control device body for use. In some cases, data in the external storage medium is copied to the internal storage unit of the control device main body and used, or data in the external storage medium is directly executed by the control device. However, in either case, the consciousness tends to be reduced regarding the management of data in the external storage medium. For this reason, the state where the external storage medium is inserted into the main body is often continued, and it is necessary to ensure the security of data in the external storage medium.

そこで、外部記憶媒体を不正に抜き取られた時に外部記憶媒体内のデータを保護する機能として、外部記憶媒体を接続して一定期間アクセスがないと、外部記憶媒体内のデータを機器本体内の記憶媒体に退避して、外部記憶媒体内のデータを削除することでデータを保護する機能が知られている(たとえば、特許文献1参照)。   Therefore, as a function to protect the data in the external storage medium when the external storage medium is illegally extracted, the data in the external storage medium is stored in the device main body when the external storage medium is connected and there is no access for a certain period of time. A function of protecting data by saving to a medium and deleting data in an external storage medium is known (see, for example, Patent Document 1).

特許文献1では、情報処理装置は、パスワードファイルとファイルを格納したメモリカードが情報処理装置に挿入され、パスワードファイルが存在する場合に、内蔵ハードディスクに保存できるか判断する。そして、一定期間メモリカードへのアクセスがない場合に、情報処理装置は、メモリカード中のパスワードファイルとファイルとをハードディスクにコピーし、メモリカードのファイル(パスワードファイル以外)を削除する。また情報処理装置は、入力されたパスワードがメモリカード中のパスワードと一致した場合に、削除されたファイルをメモリカードに戻すとともに、ハードディスクのファイルを削除する。   In Patent Document 1, the information processing apparatus determines whether a password file and a memory card storing the file are inserted into the information processing apparatus and the password file exists and can be stored in the built-in hard disk. Then, when there is no access to the memory card for a certain period, the information processing apparatus copies the password file and the file in the memory card to the hard disk, and deletes the memory card file (other than the password file). Further, when the input password matches the password in the memory card, the information processing apparatus returns the deleted file to the memory card and deletes the file on the hard disk.

特開2011−43881号公報JP 2011-43881 A

しかしながら、特許文献1に記載の技術では、パスワードファイルを予めメモリカード内に準備しておく必要がある。また、メモリカード内にパスワードを保管するため、メモリカードが不正に抜き取られた場合、パスワードが読み取られ、それを基にファイルが書戻されて、第3者に流出してしまう可能性がある。さらに、情報処理装置にメモリカードが挿されて一定時間経過後にデータを退避するため、データを退避するまでの期間にメモリカードが不正に抜き取られた場合にも、データが流出してしまうという問題点があった。   However, in the technique described in Patent Document 1, it is necessary to prepare a password file in the memory card in advance. Further, since the password is stored in the memory card, if the memory card is illegally extracted, the password is read, and the file is written back based on the password, which may be leaked to a third party. . Furthermore, since data is saved after a certain time has elapsed after the memory card is inserted into the information processing device, data is leaked even if the memory card is illegally extracted before the data is saved. There was a point.

この発明は上記に鑑みてなされたもので、持ち運び可能な記憶媒体を制御装置に装着したままの状態が生じ、第3者に不正に持ち運び可能な記憶媒体が抜き取られてしまった場合でもデータ流出を防ぐことができる制御装置を得ることを目的とする。   The present invention has been made in view of the above, and even when a portable storage medium is left attached to the control device, even if a third party illegally removes the portable storage medium, data leakage occurs. It is an object of the present invention to obtain a control device that can prevent the above.

上記目的を達成するため、この発明にかかる制御装置は、内部記憶部と、前記内部記憶部に記憶されたプログラムまたはパラメータを用いて演算を行い、接続される制御対象に対する制御処理を行う制御処理部と、を備える制御装置において、当該制御装置に外部記憶媒体が装着されると、パスワードを設定するパスワード設定部と、前記外部記憶媒体に記憶されている外部データを保存する外部データ保存領域を前記内部記憶部に設定する外部データ保存領域設定部と、前記外部データを前記外部データ保存領域に記憶し、前記外部データの保存位置と前記パスワードとをパスワード−外部データ対応情報に対応付ける外部データ保存処理部と、前記外部データが前記外部データ保存領域に保存されると、前記外部記憶媒体内の前記外部データを消去する外部データ消去部と、を備えることを特徴とする。   In order to achieve the above object, a control device according to the present invention performs control processing on an internal storage unit and a program or parameter stored in the internal storage unit, and performs control processing on a connected control target. A password setting unit that sets a password and an external data storage area that stores external data stored in the external storage medium when an external storage medium is attached to the control device. External data storage area setting section to be set in the internal storage section, external data storage that stores the external data in the external data storage area, and associates the storage position of the external data and the password with password-external data correspondence information When the processing unit and the external data are stored in the external data storage area, the external data in the external storage medium is stored. Characterized in that it comprises an external data erasing unit for erasing the data, the.

この発明によれば、外部記憶媒体が装着されるとパスワードを設定し、外部記憶媒体内の外部データを外部データ保存領域に記憶し、パスワードと外部データの保存位置とをパスワード−外部データ対応情報に対応付け、外部記憶媒体内の外部データを消去するようにしたので、制御装置に装着状態の外部記憶媒体中には外部データが存在せず、外部記憶媒体が制御装置から抜き取られてしまった場合でも、データが第三者に流出する虞がないという効果を有する。   According to the present invention, when an external storage medium is attached, a password is set, the external data in the external storage medium is stored in the external data storage area, and the password and the storage position of the external data are set as password-external data correspondence information. Since the external data in the external storage medium is deleted, the external data does not exist in the external storage medium attached to the control device, and the external storage medium has been removed from the control device. Even in this case, there is an effect that there is no possibility of data leaking to a third party.

図1は、実施の形態1による制御装置の機能構成の一例を模式的に示すブロック図である。FIG. 1 is a block diagram schematically illustrating an example of a functional configuration of the control device according to the first embodiment. 図2は、パスワード−外部データ対応情報の一例を示す図である。FIG. 2 is a diagram illustrating an example of password-external data correspondence information. 図3は、実施の形態1による制御装置の構成の一例を模式的に示すブロック図である。FIG. 3 is a block diagram schematically illustrating an example of the configuration of the control device according to the first embodiment. 図4は、実施の形態1による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。FIG. 4 is a flowchart illustrating an example of a processing procedure when an external storage medium is mounted on the control device according to the first embodiment. 図5は、実施の形態1による制御装置に外部記憶媒体が装着された場合の処理手順の具体例を示す図である(その1)。FIG. 5 is a diagram showing a specific example of a processing procedure when an external storage medium is mounted on the control device according to the first embodiment (part 1). 図6は、実施の形態1による制御装置に外部記憶媒体が装着された場合の処理手順の具体例を示す図である(その2)。FIG. 6 is a diagram showing a specific example of a processing procedure when an external storage medium is mounted on the control device according to the first embodiment (part 2). 図7は、実施の形態1による外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の一例を示すフローチャートである。FIG. 7 is a flowchart illustrating an example of an external storage medium extraction process from the control apparatus that involves the external data write-back process according to the first embodiment. 図8は、実施の形態1による制御装置から外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の具体例を示す図である(その1)。FIG. 8 is a diagram illustrating a specific example of the external storage medium extraction process from the control apparatus that involves the external data write-back process from the control apparatus according to the first embodiment (part 1). 図9は、実施の形態1による制御装置から外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の具体例を示す図である(その2)。FIG. 9 is a diagram illustrating a specific example of an external storage medium extraction process from the control apparatus that accompanies the external data write-back process from the control apparatus according to the first embodiment (part 2). 図10は、実施の形態2による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。FIG. 10 is a flowchart illustrating an example of a processing procedure when an external storage medium is attached to the control device according to the second embodiment. 図11は、実施の形態2による外部データの選択処理の様子を示す図である。FIG. 11 is a diagram illustrating the external data selection process according to the second embodiment. 図12は、実施の形態3による制御装置の機能構成を模式的に示すブロック図である。FIG. 12 is a block diagram schematically illustrating a functional configuration of the control device according to the third embodiment. 図13は、実施の形態3による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。FIG. 13 is a flowchart illustrating an example of a processing procedure when an external storage medium is mounted on the control device according to the third embodiment. 図14は、実施の形態3による制御装置に外部記憶媒体が装着された場合の処理手順の具体例を示す図である(その1)。FIG. 14 is a diagram showing a specific example of a processing procedure when an external storage medium is mounted on the control device according to the third embodiment (part 1). 図15は、実施の形態3による制御装置に外部記憶媒体が装着された場合の処理手順の具体例を示す図である(その2)。FIG. 15 is a diagram illustrating a specific example of a processing procedure when an external storage medium is mounted on the control device according to the third embodiment (part 2). 図16は、外部記憶媒体に複数の外部データがある場合の分割の方法を模式的に示す図である。FIG. 16 is a diagram schematically showing a dividing method when there are a plurality of external data in the external storage medium. 図17は、実施の形態3による外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の一例を示すフローチャートである。FIG. 17 is a flowchart illustrating an example of an external storage medium extraction process from the control apparatus that involves an external data write-back process according to the third embodiment. 図18は、実施の形態3による分割されたデータの実行処理の手順の一例を示すフローチャートである。FIG. 18 is a flowchart illustrating an example of a procedure for executing divided data according to the third embodiment. 図19は、実施の形態4によるパスワード−外部データ対応情報の一例を示す図である。FIG. 19 is a diagram illustrating an example of password-external data correspondence information according to the fourth embodiment. 図20は、実施の形態4による外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の一例を示すフローチャートである。FIG. 20 is a flowchart illustrating an example of processing for extracting an external storage medium from a control apparatus that involves external data write-back processing according to the fourth embodiment. 図21は、実施の形態4による書戻し処理の一例を模式的に示す図である(その1)。FIG. 21 is a diagram schematically showing an example of a write-back process according to the fourth embodiment (part 1). 図22は、実施の形態4による書戻し処理の一例を模式的に示す図である(その2)。FIG. 22 is a diagram schematically showing an example of a write-back process according to the fourth embodiment (part 2). 図23は、実施の形態5による制御装置の機能構成を模式的に示すブロック図である。FIG. 23 is a block diagram schematically showing a functional configuration of the control device according to the fifth embodiment. 図24は、設定情報の一例を示す図である。FIG. 24 is a diagram illustrating an example of setting information. 図25は、実施の形態5による外部記憶媒体装着時の動作処理手順の一例を示すフローチャートである。FIG. 25 is a flowchart illustrating an example of an operation processing procedure when the external storage medium is mounted according to the fifth embodiment. 図26は、実施の形態5による外部記憶媒体の取り外し処理手順の一例を示すフローチャートである。FIG. 26 is a flowchart illustrating an example of an external storage medium removal processing procedure according to the fifth embodiment. 図27は、実施の形態5によるデータの書戻し処理の手順の概要を模式的に示す図である。FIG. 27 is a diagram schematically illustrating an outline of a procedure of data write-back processing according to the fifth embodiment. 図28は、外部記憶媒体を個体ごとに管理する場合のパスワード−外部データ対応情報の一例を示す図である。FIG. 28 is a diagram showing an example of password-external data correspondence information when managing external storage media for each individual. 図29は、複数種類の外部記憶媒体と着脱可能な制御装置でのパスワード−外部データ対応情報と設定情報の関係を模式的に示す図である。FIG. 29 is a diagram schematically showing the relationship between password-external data correspondence information and setting information in a plurality of types of external storage media and removable control devices. 図30は、設定情報の内容を含むパスワード−外部データ対応情報の一例を示す図である。FIG. 30 is a diagram illustrating an example of password-external data correspondence information including the contents of setting information. 図31は、実施の形態6による制御装置の機能構成を模式的に示すブロック図である。FIG. 31 is a block diagram schematically showing a functional configuration of the control device according to the sixth embodiment. 図32は、実施の形態6による設定情報の構成の一例を示す図である。FIG. 32 is a diagram illustrating an example of a configuration of setting information according to the sixth embodiment. 図33は、実施の形態6による外部データの実行処理の手順の一例を示すフローチャートである。FIG. 33 is a flowchart illustrating an example of a procedure of external data execution processing according to the sixth embodiment. 図34は、実施の形態6による外部データの実行処理の状態の一例を模式的に示す図である(その1)。FIG. 34 is a diagram schematically showing an example of a state of external data execution processing according to the sixth embodiment (part 1). 図35は、実施の形態6による外部データの実行処理の状態の一例を模式的に示す図である(その2)。FIG. 35 is a diagram schematically illustrating an example of a state of external data execution processing according to the sixth embodiment (part 2). 図36は、実施の形態7による外部データの書戻し処理の手順の一例を模式的に示す図である(その1)。FIG. 36 is a diagram schematically illustrating an example of a procedure of external data write-back processing according to the seventh embodiment (part 1). 図37は、実施の形態7による外部データの書戻し処理の手順の一例を模式的に示す図である(その2)。FIG. 37 is a diagram schematically illustrating an example of a procedure of external data write-back processing according to the seventh embodiment (part 2). 図38は、実施の形態8による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。FIG. 38 is a flowchart illustrating an example of a processing procedure when an external storage medium is mounted on the control device according to the eighth embodiment. 図39は、実施の形態8による外部データが処理される様子を模式的に示す図である。FIG. 39 is a diagram schematically illustrating how external data according to the eighth embodiment is processed. 図40は、実施の形態9による制御装置の機能構成を模式的に示すブロック図である。FIG. 40 is a block diagram schematically showing a functional configuration of the control device according to the ninth embodiment. 図41は、実施の形態9による外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。FIG. 41 is a flowchart illustrating an example of a processing procedure when an external storage medium according to the ninth embodiment is loaded. 図42は、実施の形態9による外部記憶媒体が装着された場合の制御装置の処理状態を模式的に示す図である。FIG. 42 is a diagram schematically illustrating a processing state of the control device when the external storage medium according to the ninth embodiment is loaded. 図43は、実施の形態10による制御装置の機能構成を模式的に示すブロック図である。FIG. 43 is a block diagram schematically showing a functional configuration of the control device according to the tenth embodiment. 図44は、実施の形態10による制御装置の処理手順の一例を示すフローチャートである。FIG. 44 is a flowchart illustrating an example of a processing procedure of the control device according to the tenth embodiment. 図45は、実施の形態10による外部記憶媒体の暗号化の様子を模式的に示す図である。FIG. 45 is a diagram schematically showing the state of encryption of the external storage medium according to the tenth embodiment.

以下に添付図面を参照して、この発明の実施の形態にかかる制御装置を詳細に説明する。なお、これらの実施の形態によりこの発明が限定されるものではない。   Hereinafter, a control device according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to these embodiments.

実施の形態1.
図1は、実施の形態1による制御装置の機能構成の一例を模式的に示すブロック図である。以下の実施の形態で説明される制御装置は、データを用いて演算を行い、その演算結果に基づいて制御対象を制御する装置であり、プログラマブルコントローラまたは数値制御装置などである。
Embodiment 1 FIG.
FIG. 1 is a block diagram schematically illustrating an example of a functional configuration of the control device according to the first embodiment. A control device described in the following embodiment is a device that performs calculation using data and controls a control target based on the calculation result, such as a programmable controller or a numerical control device.

制御装置10は、外部記憶媒体インタフェース11と、入力部12と、表示部13と、外部データ保存部14と、外部データ保存領域設定部15と、外部データ判定部16と、パスワード設定部17と、外部データ保存処理部18と、パスワード−外部データ対応情報記憶部19と、外部データ消去部20と、パスワード判定部21と、外部データ書戻し部22と、内部データ処理部23と、制御処理部24と、を備える。   The control device 10 includes an external storage medium interface 11, an input unit 12, a display unit 13, an external data storage unit 14, an external data storage area setting unit 15, an external data determination unit 16, and a password setting unit 17. External data storage processing unit 18, password-external data correspondence information storage unit 19, external data deletion unit 20, password determination unit 21, external data write back unit 22, internal data processing unit 23, and control processing Part 24.

外部記憶媒体インタフェース11は、制御装置10に装着された外部記憶媒体との間で通信を行うインタフェースである。外部記憶媒体は、着脱可能な記憶媒体であり、SDカード、microSDカード、コンパクトフラッシュ(登録商標)などのメモリカード、USB(Universal Serial Bus)メモリなどを例示することができる。外部記憶媒体には、制御装置10で実行させるためのプログラム、またはプログラムの実行で使用されるパラメータなどを格納することができる。なお、以下では、外部記憶媒体に格納されるプログラムまたはパラメータなどを外部データという。   The external storage medium interface 11 is an interface that performs communication with an external storage medium attached to the control device 10. The external storage medium is a detachable storage medium, and examples thereof include an SD card, a microSD card, a memory card such as a compact flash (registered trademark), a USB (Universal Serial Bus) memory, and the like. The external storage medium can store a program to be executed by the control device 10 or parameters used in executing the program. Hereinafter, a program or parameter stored in an external storage medium is referred to as external data.

入力部12は、ユーザが制御装置10に対して情報を入力する際のインタフェースであり、キーボード、ボタンまたはタッチパネルなどを例示することができる。入力部12を介して後述するパスワードなどが制御装置10に対して設定される。   The input unit 12 is an interface when the user inputs information to the control device 10 and can be exemplified by a keyboard, a button, a touch panel, and the like. A password, which will be described later, is set for the control device 10 via the input unit 12.

表示部13は、制御装置10に関する情報、または制御装置10で実行している制御に関する情報などを表示する。表示部13は、液晶表示装置などによって構成される。   The display unit 13 displays information related to the control device 10 or information related to control executed by the control device 10. The display unit 13 is configured by a liquid crystal display device or the like.

外部データ保存部14は、制御装置10が実行するプログラムまたはプログラムで使用されるパラメータなどを保存する。また、外部データ保存部14には、装着される外部記憶媒体ごとに外部データ保存領域が設けられる。   The external data storage unit 14 stores a program executed by the control device 10 or parameters used in the program. The external data storage unit 14 is provided with an external data storage area for each external storage medium to be mounted.

外部データ保存領域設定部15は、外部記憶媒体が制御装置10に装着されると、外部データ保存部14に外部データを保存することができる外部データ保存領域を設定する。   The external data storage area setting unit 15 sets an external data storage area in which external data can be stored in the external data storage unit 14 when an external storage medium is attached to the control device 10.

外部データ判定部16は、外部記憶媒体に外部データが保存されているかを判定し、外部データが保存されていない場合には何も処理を行わず、外部データが保存されている場合には外部データの外部データ保存部14への保存処理の実行指示をパスワード設定部17と外部データ保存処理部18に与える。   The external data determination unit 16 determines whether external data is stored in the external storage medium. If the external data is not stored, no processing is performed. If the external data is stored, the external data determination unit 16 performs external processing. An instruction to execute data storage processing to the external data storage unit 14 is given to the password setting unit 17 and the external data storage processing unit 18.

パスワード設定部17は、外部データを外部データ保存部14に保存する指示を外部データ判定部16から受けると、パスワードの設定処理を行う。たとえば、ユーザに対してパスワードの設定を指示する画面を表示部13に表示し、ユーザが入力部12を介して入力したパスワードをパスワード−外部データ対応情報に保存する。   When the password setting unit 17 receives an instruction to store external data in the external data storage unit 14 from the external data determination unit 16, the password setting unit 17 performs a password setting process. For example, a screen for instructing the user to set a password is displayed on the display unit 13, and the password input by the user via the input unit 12 is stored in the password-external data correspondence information.

外部データ保存処理部18は、パスワード設定部17によるパスワードの設定が終了すると、外部記憶媒体中の外部データを外部データ保存領域設定部15によって設定された外部データ保存領域にコピーする。また、外部データを外部データ保存領域にコピーした後、コピーした(コピー先の)外部データと、外部記憶媒体中の(コピー元の)外部データとを照合し、両者が一致しているかを判定する。両者が一致しない場合には、たとえばもう一度外部記憶媒体中の外部データを外部データ保存領域にコピーする。また、両者が一致する場合には、パスワード−外部データ対応情報に外部データの保存場所を書き込み、パスワードと対応付けし、正常に外部記憶媒体中の外部データをコピーできたことを外部データ消去部20に通知する。   When the password setting unit 17 finishes setting the password, the external data storage processing unit 18 copies the external data in the external storage medium to the external data storage area set by the external data storage area setting unit 15. Also, after copying external data to the external data storage area, the copied external data (destination) is compared with the external data (copy source) in the external storage medium to determine whether they match. To do. If they do not match, for example, the external data in the external storage medium is copied once again to the external data storage area. If the two match, the external data erasure unit indicates that the external data storage location is written in the password-external data correspondence information, is associated with the password, and the external data in the external storage medium has been successfully copied. 20 is notified.

パスワード−外部データ対応情報記憶部19は、外部データ保存部14に保存された外部データとパスワードとの対応関係を示すパスワード−外部データ対応情報を記憶する。図2は、パスワード−外部データ対応情報の一例を示す図である。パスワード−外部データ対応情報は、パスワード設定部17で設定されるパスワードと、それに対応付けて外部データ保存処理部18で保存される外部データの外部データ保存領域(たとえば先頭アドレスとサイズ)と、を対応付けて管理している。   The password-external data correspondence information storage unit 19 stores password-external data correspondence information indicating the correspondence between the external data stored in the external data storage unit 14 and the password. FIG. 2 is a diagram illustrating an example of password-external data correspondence information. The password-external data correspondence information includes a password set by the password setting unit 17 and an external data storage area (for example, the start address and size) of the external data stored by the external data storage processing unit 18 in association with the password. It is managed in association.

外部データ消去部20は、外部データ保存処理部18から外部記憶媒体中の外部データを正常に外部データ保存部14に保存できた旨の通知を受けた場合に、外部記憶媒体中の外部データを消去する。この外部データの消去として、単なる外部データの消去ではなく、たとえば外部記憶媒体が制御装置10から第三者に離脱された場合でも、外部記憶媒体中のデータを復元することができないように、初期化を実施したり、またはランダムデータの書き込みをしたりすることが望ましい。   When the external data erasure unit 20 receives notification from the external data storage processing unit 18 that the external data in the external storage medium has been successfully stored in the external data storage unit 14, the external data storage unit 20 stores the external data in the external storage medium. to erase. This external data erasure is not mere erasure of external data. For example, even when the external storage medium is removed from the control device 10 by a third party, the initial data is not restored so that the data in the external storage medium cannot be restored. It is desirable to implement data or to write random data.

パスワード判定部21は、空の外部記憶媒体が制御装置10に装着された状態で、ユーザによって外部データ保存部14から外部記憶媒体への外部データの保存が指示された場合に、表示部13にパスワードの入力画面を表示し、ユーザによって入力部12を介して入力されたパスワードがパスワード−外部データ対応情報に登録されたパスワードであるかを判定する。具体的には、入力されたパスワードがパスワード−外部データ対応情報中に存在するかを判定する。入力されたパスワードがパスワード−外部データ対応情報中に存在しない場合には、外部データの外部記憶媒体への保存処理は行われない。また入力されたパスワードがパスワード−外部データ対応情報中に存在する場合には、外部データの外部記憶媒体への保存処理を進めてもよい旨を外部データ書戻し部22に通知する。   The password determination unit 21 displays the display unit 13 when the user instructs the external data storage unit 14 to store external data in a state where an empty external storage medium is mounted on the control device 10. A password input screen is displayed, and it is determined whether the password input by the user via the input unit 12 is a password registered in the password-external data correspondence information. Specifically, it is determined whether the input password exists in the password-external data correspondence information. If the input password does not exist in the password-external data correspondence information, the external data is not stored in the external storage medium. If the input password exists in the password-external data correspondence information, the external data write-back unit 22 is notified that the saving process of the external data in the external storage medium may be proceeded.

外部データ書戻し部22は、パスワード判定部21から外部データの外部記憶媒体への保存処理を進めてもよい旨の通知を受けると、パスワード−外部データ対応情報中の入力されたパスワードに対応する外部データの保存位置から外部データを取得し、その外部データを外部記憶媒体に書き戻す処理を行う。また、外部データ書戻し部22は、外部データを外部記憶媒体にコピーした後、コピーした外部データと、外部データ保存部14中の(コピー元の)外部データとを照合し、両者が一致しているかを判定する。両者が一致しない場合には、たとえばもう一度外部データ保存部14中の外部データを外部記憶媒体にコピーする。また、両者が一致する場合には、正常に外部データ保存部14中の外部データをコピーできたことを内部データ処理部23に通知する。   When the external data write-back unit 22 receives a notification from the password determination unit 21 that the external data storage process may proceed, the external data write-back unit 22 corresponds to the password entered in the password-external data correspondence information. The external data is acquired from the storage location of the external data, and the external data is written back to the external storage medium. The external data write-back unit 22 copies the external data to the external storage medium, and then collates the copied external data with the external data (from the copy source) in the external data storage unit 14 so that they match. Judge whether it is. If they do not match, for example, the external data in the external data storage unit 14 is copied once again to the external storage medium. If the two match, the internal data processing unit 23 is notified that the external data in the external data storage unit 14 has been successfully copied.

内部データ処理部23は、ユーザによる外部データ書戻し処理時の設定に基づいて外部データ保存部14中の外部データに対する処理を行う。たとえば、外部データ保存部14中の外部データの消去が設定されていない場合には、外部データ書戻し部22によって外部記憶媒体へ外部データをコピーした後でも、外部データと対応するパスワードを外部データ保存部14から消去せずにそのままとして、外部記憶媒体が取り外し可能であることを示す情報をたとえば表示部13に表示する。また、外部データ保存部14中の外部データの消去が設定されている場合には、外部データ書戻し部22によって外部記憶媒体への外部データをコピーした後に、外部データ保存部14中の外部データと、対応するパスワードとを消去して、外部記憶媒体が取り外し可能であることを示す情報をたとえば表示部13に表示する。   The internal data processing unit 23 performs processing on the external data in the external data storage unit 14 based on the setting at the time of external data write-back processing by the user. For example, when erasure of the external data in the external data storage unit 14 is not set, the password corresponding to the external data is set to the external data even after the external data write-back unit 22 copies the external data to the external storage medium. For example, information indicating that the external storage medium is removable is displayed on the display unit 13 without being deleted from the storage unit 14. If the external data storage unit 14 is set to delete external data, the external data write-back unit 22 copies the external data to the external storage medium, and then the external data in the external data storage unit 14 is copied. And the corresponding password are deleted, and information indicating that the external storage medium is removable is displayed on the display unit 13, for example.

制御処理部24は、たとえば外部データ保存部14に記憶されたプログラムを読み込み、図示しない制御対象に対する制御処理を行う。   For example, the control processing unit 24 reads a program stored in the external data storage unit 14 and performs control processing on a control target (not shown).

図3は、実施の形態1による制御装置の構成の一例を模式的に示すブロック図である。上記したような制御装置10は、CPU(Central Processing Unit)101と、RAM(Random Access Memory)102と、ハードディスクまたはSSD(Solid State Drive)などの内部記憶部103と、外部記憶媒体50との間のインタフェースとなるメモリインタフェース104と、操作盤105と、がバス106を介して接続された情報処理装置によって構成される。   FIG. 3 is a block diagram schematically illustrating an example of the configuration of the control device according to the first embodiment. The control device 10 described above includes a CPU (Central Processing Unit) 101, a RAM (Random Access Memory) 102, an internal storage unit 103 such as a hard disk or an SSD (Solid State Drive), and an external storage medium 50. A memory interface 104 serving as an interface for the above and an operation panel 105 are configured by an information processing apparatus connected via a bus 106.

内部記憶部103は、CPU101で実行するプログラムまたはパラメータなどの外部データを不揮発に記憶する外部データ保存領域1031と、パスワード−外部データ対応情報1032と、を有する。RAM102は、内部記憶部103から読み出され、CPU101によって実行されるプログラムを記憶するワークメモリとして機能する。また、RAM102には、内部記憶部103に記憶されたパラメータが読み出される。   The internal storage unit 103 includes an external data storage area 1031 for storing external data such as a program executed by the CPU 101 or parameters in a nonvolatile manner, and password-external data correspondence information 1032. The RAM 102 functions as a work memory that stores a program that is read from the internal storage unit 103 and executed by the CPU 101. Also, the parameters stored in the internal storage unit 103 are read into the RAM 102.

図1の外部データ保存部14とパスワード−外部データ対応情報記憶部19は、図3の内部記憶部103に対応している。また、図1の制御処理部24は、プログラムまたはこれにパラメータが読み出された図3のRAM102とCPU101に対応している。さらに、図1の入力部12と表示部13は、図3の操作盤105に対応している。また、図1の他の処理部は、図3のたとえば内部記憶部103に設けられた処理プログラムが実行する機能に対応している。   The external data storage unit 14 and the password / external data correspondence information storage unit 19 in FIG. 1 correspond to the internal storage unit 103 in FIG. Further, the control processing unit 24 in FIG. 1 corresponds to the RAM 102 and the CPU 101 in FIG. 3 from which the program or parameters are read. Further, the input unit 12 and the display unit 13 in FIG. 1 correspond to the operation panel 105 in FIG. The other processing unit in FIG. 1 corresponds to a function executed by a processing program provided in, for example, the internal storage unit 103 in FIG.

つぎに、このような構成の制御装置10における動作について説明する。図4は、実施の形態1による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。   Next, the operation of the control device 10 having such a configuration will be described. FIG. 4 is a flowchart illustrating an example of a processing procedure when an external storage medium is mounted on the control device according to the first embodiment.

まず、メモリカードまたはUSBメモリなどの外部記憶媒体が制御装置10に装着(接続)されると(ステップS11)、外部データ保存領域設定部15は、外部データ保存領域を設定する(ステップS12)。   First, when an external storage medium such as a memory card or USB memory is attached (connected) to the control device 10 (step S11), the external data storage area setting unit 15 sets an external data storage area (step S12).

ついで、外部データ判定部16は外部記憶媒体内にデータが存在するかを判定する(ステップS13)。判定の結果、外部記憶媒体内にデータが存在しない場合(ステップS13でNoの場合)には、退避するデータがないので、処理が終了する。また、外部記憶媒体内にデータが存在する場合(ステップS13でYesの場合)には、パスワード設定部17は、外部データ保存部14から外部記憶媒体にデータを書き戻すためのパスワード設定処理を行う(ステップS14)。たとえば、制御装置10に設けられる表示部13にパスワード設定画面を表示し、ユーザが入力部12を介してパスワードを入力したり、または制御装置10に接続されるエンジニアリングツールにパスワード設定画面を表示し、ユーザがエンジニアリングツールを介してパスワードを入力したりする。   Next, the external data determination unit 16 determines whether data exists in the external storage medium (step S13). If there is no data in the external storage medium as a result of the determination (No in step S13), the process ends because there is no data to be saved. If data exists in the external storage medium (Yes in step S13), the password setting unit 17 performs a password setting process for writing data back from the external data storage unit 14 to the external storage medium. (Step S14). For example, a password setting screen is displayed on the display unit 13 provided in the control device 10, and a user inputs a password via the input unit 12, or a password setting screen is displayed on an engineering tool connected to the control device 10. The user enters a password through an engineering tool.

パスワード設定部17は、ユーザによってパスワードが入力されると、そのパスワードをパスワード−外部データ対応情報に保存する(ステップS15)。ついで、外部データ保存処理部18は、外部記憶媒体内のデータを外部データ保存部14に設定した外部データ保存領域にコピーする(ステップS16)。その後、外部データ保存処理部18は、外部記憶媒体中の外部データと外部データ保存領域中の外部データとが一致しているか(エラーなく保存されたか)を照合する(ステップS17)。   When the password is input by the user, the password setting unit 17 stores the password in the password-external data correspondence information (step S15). Next, the external data storage processing unit 18 copies the data in the external storage medium to the external data storage area set in the external data storage unit 14 (step S16). Thereafter, the external data storage processing unit 18 checks whether the external data in the external storage medium matches the external data in the external data storage area (whether stored without error) (step S17).

2つのデータが一致していない場合(ステップS17でNoの場合)には、表示部13または制御装置10に接続されるエンジニアリングツールにデータ異常を表示し(ステップS18)、ステップS16に処理が戻る。   If the two data do not match (No in step S17), the data abnormality is displayed on the display unit 13 or the engineering tool connected to the control device 10 (step S18), and the process returns to step S16. .

また、2つのデータが一致している場合(ステップS17でYesの場合)には、外部データ保存処理部18は、パスワード−外部データ対応情報で、コピーした外部データと設定したパスワードとを対応付けする(ステップS19)。そして、外部データ消去部20は、外部記憶媒体内の外部データを消去する(ステップS20)。以上によって、外部記憶媒体が接続された場合の外部データの退避処理が終了する。   If the two data match (Yes in step S17), the external data storage processing unit 18 associates the copied external data and the set password with the password-external data correspondence information. (Step S19). Then, the external data erasure unit 20 erases the external data in the external storage medium (step S20). Thus, the external data saving process when the external storage medium is connected is completed.

図5と図6は、実施の形態1による制御装置に外部記憶媒体が装着された場合の処理手順の具体例を示す図である。まず、図5(a)に示されるように、外部記憶媒体50が制御装置10のメモリインタフェース104に装着される。これによって、内部記憶部103には、外部データ保存領域1031が確保される。   5 and 6 are diagrams illustrating a specific example of a processing procedure when an external storage medium is attached to the control device according to the first embodiment. First, as shown in FIG. 5A, the external storage medium 50 is attached to the memory interface 104 of the control device 10. As a result, an external data storage area 1031 is secured in the internal storage unit 103.

ついで、図5(b)に示されるように、パスワードの設定処理が行われる。ここで、ユーザは、操作盤105からパスワードを入力し、そのパスワードは、パスワード−外部データ対応情報1032に保存される。その後、外部記憶媒体50中の外部データ301が外部データ保存領域1031に外部データ351としてコピーされる。   Next, as shown in FIG. 5B, password setting processing is performed. Here, the user inputs a password from operation panel 105, and the password is stored in password-external data correspondence information 1032. Thereafter, the external data 301 in the external storage medium 50 is copied to the external data storage area 1031 as the external data 351.

ついで、図6(a)に示されるように、外部記憶媒体50中の外部データ301と内部記憶部103の外部データ351との照合が行われ、両者が同一である場合には、外部データ351の保存位置がパスワード−外部データ対応情報にパスワードと対応付けされて保存される。そして、外部記憶媒体50中の外部データ301は消去される。   Next, as shown in FIG. 6A, the external data 301 in the external storage medium 50 and the external data 351 in the internal storage unit 103 are collated, and if both are the same, the external data 351 Is stored in the password-external data correspondence information in association with the password. Then, the external data 301 in the external storage medium 50 is deleted.

その後、図6(b)に示されるように、外部記憶媒体50が不正に抜き取られても、外部記憶媒体50には外部データとパスワードがともに保存されていないので、これらの情報が流出してしまうことを防ぐことができる。   Thereafter, as shown in FIG. 6B, even if the external storage medium 50 is illegally extracted, both the external data and the password are not stored in the external storage medium 50, so that the information leaks out. Can be prevented.

つぎに、外部記憶媒体の制御装置10からの取り外しおよび外部データの書戻し処理について説明する。図7は、実施の形態1による外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の一例を示すフローチャートである。   Next, removal of the external storage medium from the control device 10 and external data write-back processing will be described. FIG. 7 is a flowchart illustrating an example of an external storage medium extraction process from the control apparatus that involves the external data write-back process according to the first embodiment.

ここでは、データを有さない外部記憶媒体が制御装置10に接続されている状態にあるものとする。まず、ユーザが入力部12を介して外部記憶媒体取り外しコマンドを制御装置10に指示する(ステップS31)。これによって、たとえば表示部13には取り外しコマンドに関する表示画面が表示される。ついで、ユーザによって入力部12を介してパスワードが入力される(ステップS32)。パスワード判定部21は、入力されたパスワードがパスワード−外部データ対応情報に保存されているパスワードと一致するかを判定する(ステップS33)。   Here, it is assumed that an external storage medium having no data is connected to the control device 10. First, the user instructs an external storage medium removal command to the control device 10 via the input unit 12 (step S31). Thereby, for example, a display screen related to the removal command is displayed on the display unit 13. Next, a password is input by the user via the input unit 12 (step S32). The password determination unit 21 determines whether the input password matches the password stored in the password-external data correspondence information (step S33).

入力されたパスワードがパスワード−外部データ対応情報内のパスワードと一致しない場合(ステップS33でNoの場合)には、パスワードが一致しないことを表示部13に表示し(ステップS34)、ステップS32に戻る。また、入力されたパスワードがパスワード−外部データ対応情報内のパスワードと一致する場合(ステップS33でYesの場合)には、外部データ書戻し部22は、入力されたパスワードに対応する外部データ保存領域内の外部データを外部記憶媒体に書き戻す処理を行う(ステップS35)。   If the input password does not match the password in the password-external data correspondence information (No in step S33), the display unit 13 displays that the password does not match (step S34), and returns to step S32. . If the input password matches the password in the password-external data correspondence information (Yes in step S33), the external data write-back unit 22 uses the external data storage area corresponding to the input password. The external data is written back to the external storage medium (step S35).

また、外部データ書戻し部22は、外部記憶媒体に書き戻された外部データと外部データ保存部14の外部データ保存領域内の外部データとを照合し、両者が一致するかを判定する(ステップS36)。両者が一致しない場合(ステップS36でNoの場合)には、外部記憶媒体に書き戻したデータが異常である旨を表示部13に表示し(ステップS37)、ステップS35に戻る。   Also, the external data write-back unit 22 collates the external data written back to the external storage medium with the external data in the external data storage area of the external data storage unit 14 and determines whether or not they match (step S36). If they do not match (No in step S36), the display unit 13 displays that the data written back to the external storage medium is abnormal (step S37), and returns to step S35.

一方、両者が一致する場合(ステップS36でYesの場合)には、制御装置10の外部データ保存部14にコピーされたデータを消去するかを判定する(ステップS38)。外部記憶媒体にデータが書戻され、外部記憶媒体は接続前の状態に戻り、取外し可能の状態となり、このときに内部データ処理部23は、制御装置10の外部データ保存部14にコピーされたデータを消去するか否かを選択する選択画面を表示部13またはエンジニアリングツールに表示し、それに対するユーザの入力結果に基づいて判定を行う。   On the other hand, if the two match (Yes in step S36), it is determined whether to delete the data copied to the external data storage unit 14 of the control device 10 (step S38). The data is written back to the external storage medium, and the external storage medium returns to the state before connection and becomes a removable state. At this time, the internal data processing unit 23 is copied to the external data storage unit 14 of the control device 10. A selection screen for selecting whether to delete data is displayed on the display unit 13 or the engineering tool, and a determination is made based on a user input result.

外部データ保存部14内のデータを消去する場合(ステップS38でYesの場合)には、内部データ処理部23は、外部データ保存部14の外部データ保存領域中の外部データを消去し(ステップS39)、パスワード−外部データ対応情報を更新する(ステップS40)。具体的には、パスワード−外部データ対応情報中の対応するレコードを消去する。   When deleting the data in the external data storage unit 14 (Yes in step S38), the internal data processing unit 23 deletes the external data in the external data storage area of the external data storage unit 14 (step S39). ), The password-external data correspondence information is updated (step S40). Specifically, the corresponding record in the password-external data correspondence information is deleted.

その後、または外部データ保存部14内のデータを消去しない場合(ステップS38でNoの場合)には、内部データ処理部23は外部記憶媒体を取り外し可能であることを表示部13に表示し(ステップS41)、処理が終了する。   Thereafter, or when the data in the external data storage unit 14 is not deleted (No in step S38), the internal data processing unit 23 displays on the display unit 13 that the external storage medium can be removed (step S38). S41), the process ends.

なお、ステップS38で外部データ保存部14内のデータを消去しない場合(ステップS38でNoの場合)で、同じ外部データを有する外部記憶媒体が装着された場合には、同じパスワードが継続して使用されることになる。また、前回保存されていたものとは異なる新しい外部データを有する外部記憶媒体が装着された場合には、新たな外部データに対して新たなパスワードが設定される。そのため、外部記憶媒体が装着された際に、外部記憶媒体中の外部データと同じ外部データが既に外部データ保存部14に保存されているかを判定する機能をたとえば外部データ判定部16に持たせてもよい。   If the data in the external data storage unit 14 is not erased in step S38 (No in step S38) and the external storage medium having the same external data is loaded, the same password is continuously used. Will be. In addition, when an external storage medium having new external data different from that stored last time is loaded, a new password is set for the new external data. Therefore, for example, the external data determination unit 16 has a function of determining whether the same external data as the external data in the external storage medium is already stored in the external data storage unit 14 when the external storage medium is loaded. Also good.

また、ステップS38で外部データ保存部14内のデータを消去する場合(ステップS38でYesの場合)で、再び同じ外部データを有する外部記憶媒体が装着された場合には、パスワードは再設定されることになる。   If the data in the external data storage unit 14 is erased in step S38 (Yes in step S38) and the external storage medium having the same external data is mounted again, the password is reset. It will be.

図8と図9は、実施の形態1による制御装置から外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の具体例を示す図である。まず、図8(a)に示されるように、空の外部記憶媒体50が制御装置10に装着された状態で、外部記憶媒体50の取り外しの指示が出される。   FIG. 8 and FIG. 9 are diagrams illustrating a specific example of the external storage medium extraction process from the control apparatus involving the external data write-back process from the control apparatus according to the first embodiment. First, as illustrated in FIG. 8A, an instruction to remove the external storage medium 50 is issued in a state where the empty external storage medium 50 is attached to the control device 10.

ついで、図8(b)に示されるように、パスワードの入力がユーザに対して求められる。これに対して、ユーザは、操作盤105を介してパスワードの入力を行う。そして、入力されたパスワードとパスワード−外部データ対応情報に含まれるパスワードとの照合が行われる。   Next, as shown in FIG. 8B, the user is required to input a password. In response to this, the user inputs a password via the operation panel 105. Then, the input password is checked against the password included in the password-external data correspondence information.

その後、図9(a)に示されるように、パスワードが一致した場合には、内部記憶部103の外部データ保存領域1031の外部データ351が外部記憶媒体50に外部データ301としてコピーされる。そして、外部データ保存領域1031の外部データ351と外部記憶媒体50の外部データ301とが照合される。   Thereafter, as shown in FIG. 9A, when the passwords match, the external data 351 in the external data storage area 1031 of the internal storage unit 103 is copied as the external data 301 to the external storage medium 50. Then, the external data 351 in the external data storage area 1031 and the external data 301 in the external storage medium 50 are collated.

そして、図9(b)に示されるように、照合の結果、両者が一致する場合には、外部記憶媒体50は制御装置10への装着前の状態と同じ状態(図5(a)の状態)に戻ることになり、ユーザによって取り外される。   Then, as shown in FIG. 9B, when the two match as a result of the collation, the external storage medium 50 is in the same state as the state before being attached to the control device 10 (the state in FIG. 5A). ) And will be removed by the user.

実施の形態1では、外部記憶媒体が装着されると、外部記憶媒体中の外部データを書き戻す際に必要なパスワードを外部データ保存部14内のパスワード−外部データ対応情報に保存し、外部記憶媒体中の外部データを外部データ保存領域に保存し、外部記憶媒体中の外部データを削除するようにした。これによって、外部記憶媒体が制御装置10から抜き取られてしまった場合でも、外部記憶媒体中には外部データが保存されていないので、データが第三者に流出する虞がないという効果を有する。また、外部記憶媒体中にはパスワードも保存されていないので、パスワードの流出を防ぐことができるという効果も有する。   In the first embodiment, when an external storage medium is loaded, a password necessary for writing back external data in the external storage medium is stored in the password-external data correspondence information in the external data storage unit 14, and the external storage is performed. The external data in the medium is stored in the external data storage area, and the external data in the external storage medium is deleted. As a result, even when the external storage medium is removed from the control device 10, since the external data is not stored in the external storage medium, there is an effect that there is no possibility of the data leaking to a third party. In addition, since the password is not stored in the external storage medium, the password can be prevented from being leaked.

さらに、外部データに紐付けられたパスワードが入力された場合にのみ外部データを外部記憶媒体に書き戻すようにした。これによって、外部データの暗号化を使用せずに外部データの保護を実現することができるという効果を有する。   Furthermore, the external data is written back to the external storage medium only when the password associated with the external data is input. As a result, the external data can be protected without using external data encryption.

実施の形態2.
実施の形態1では、外部記憶媒体中の外部データを外部データ保存部内に保存する場合に、外部データ保存部の空き容量が外部記憶媒体中の外部データのサイズよりも大きいことを前提としていた。実施の形態2では、外部データ保存部の空き容量が外部記憶媒体中の外部データのサイズよりも小さい場合について説明する。
Embodiment 2. FIG.
In the first embodiment, when external data in the external storage medium is stored in the external data storage unit, it is assumed that the free space of the external data storage unit is larger than the size of the external data in the external storage medium. In the second embodiment, a case where the free capacity of the external data storage unit is smaller than the size of the external data in the external storage medium will be described.

実施の形態2の制御装置の構成は、実施の形態1の図1に示したものと基本的に同じ構成であるが、外部データ判定部16と外部データ消去部20の機能が実施の形態1のものとは異なる。   The configuration of the control device of the second embodiment is basically the same as that shown in FIG. 1 of the first embodiment, but the functions of the external data determination unit 16 and the external data erasing unit 20 are the same as those of the first embodiment. Different from that.

外部データ判定部16は、外部データ保存部14の空き容量を確認し、また外部記憶媒体中の外部データのサイズを確認し、外部データの合計サイズが外部データ保存部14の空き容量よりも大きい場合に、ユーザによって選択される外部データを外部データ保存部14に保存する機能を有する。具体的には、外部データ保存部14に退避する外部データ(以下、退避外部データという)と、外部記憶媒体に残存させる外部データ(以下、残存外部データという)に分ける処理を行う。このときに、外部データ判定部16は、外部データ保存部14に保存する外部データを選択する選択画面を表示部13に表示する。また、選択された外部データの合計サイズが外部データ保存部14の空き容量よりも大きい場合に、外部データ保存部14に保存できない旨の通知または表示を行うようにしてもよい。また、ここではユーザによって退避外部データと残存外部データとを分ける場合を示しているが、予め外部データに優先順位情報を設け、優先順位情報と外部データ保存部14の空き容量とに基づいて、退避外部データと残存外部データとを選択するようにしてもよい。   The external data determination unit 16 confirms the free capacity of the external data storage unit 14 and confirms the size of the external data in the external storage medium, and the total size of the external data is larger than the free capacity of the external data storage unit 14. In some cases, the external data selected by the user is stored in the external data storage unit 14. Specifically, processing is performed to divide into external data saved in the external data storage unit 14 (hereinafter referred to as saved external data) and external data left in the external storage medium (hereinafter referred to as remaining external data). At this time, the external data determination unit 16 displays a selection screen for selecting external data to be stored in the external data storage unit 14 on the display unit 13. Further, when the total size of the selected external data is larger than the free space of the external data storage unit 14, a notification or display indicating that the external data storage unit 14 cannot store the data may be performed. Further, here, a case where the saved external data and the remaining external data are separated by the user is shown, but priority information is provided in advance in the external data, and based on the priority information and the free capacity of the external data storage unit 14, The saved external data and the remaining external data may be selected.

外部データ消去部20は、外部データ保存領域の大きさが外部データの合計サイズよりも小さい場合に、外部データ保存部14に退避するように指定された退避外部データ以外は保護されないので、使用中に外部記憶媒体が第三者に取り外されないように注意を喚起する表示を表示部13にする機能をさらに有する。   The external data erasure unit 20 is not being used because the external data other than the saved external data designated to be saved in the external data saving unit 14 is not protected when the size of the external data saving area is smaller than the total size of the external data. The display unit 13 is further provided with a display for calling attention so that the external storage medium is not removed by a third party.

つぎに、実施の形態2による制御装置10の動作について説明する。図10は、実施の形態2による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。   Next, the operation of the control device 10 according to the second embodiment will be described. FIG. 10 is a flowchart illustrating an example of a processing procedure when an external storage medium is attached to the control device according to the second embodiment.

まず、実施の形態1の図4のステップS11〜S13と同様に、外部記憶媒体が制御装置10に装着されると、外部データ保存領域設定部15が内部記憶部に外部データ保存領域を設定し、外部記憶媒体中に外部データが存在するかを判定する(ステップS51〜S53)。外部記憶媒体中にデータが存在しない場合(ステップS53でNoの場合)には、退避するデータがないので、処理が終了する。   First, as in steps S11 to S13 of FIG. 4 of the first embodiment, when an external storage medium is loaded in the control device 10, the external data storage area setting unit 15 sets an external data storage area in the internal storage unit. Then, it is determined whether external data exists in the external storage medium (steps S51 to S53). If there is no data in the external storage medium (No in step S53), there is no data to be saved, and the process ends.

また、外部記憶媒体内にデータが存在する場合(ステップS53でYesの場合)には、外部データ判定部16は、設定された外部データ保存領域が外部記憶媒体の外部データの合計サイズ以上であるかを判定する(ステップS54)。外部データ保存領域が外部データの合計サイズよりも小さい場合(ステップS54でNoの場合)には、外部データ判定部16は、外部データ振り分け設定処理を行う(ステップS55)。外部データ振り分け設定処理は、たとえば、容量不足で外部データのすべてを保護できないことを表示部13に表示し、外部データ保存部14に退避させる退避外部データと、外部記憶媒体に残存させる残存外部データと、を振り分ける振り分け画面を表示部13に表示する。ユーザは退避可能データ容量を基に、入力部12を介して退避外部データと、残存外部データとに振り分け、外部データ判定部16は、その結果を外部データ振り分け設定として記憶する。なお、この外部データ振り分け設定処理後に、外部データ判定部16は、退避外部データ以外は保護されないことを表示部13に表示してもよい。   When data exists in the external storage medium (Yes in step S53), the external data determination unit 16 determines that the set external data storage area is equal to or larger than the total size of the external data on the external storage medium. Is determined (step S54). If the external data storage area is smaller than the total size of the external data (No in step S54), the external data determination unit 16 performs an external data distribution setting process (step S55). In the external data distribution setting process, for example, the display unit 13 displays that the external data cannot be protected due to insufficient capacity, and the saved external data saved in the external data saving unit 14 and the remaining external data left in the external storage medium And a sorting screen for sorting and is displayed on the display unit 13. The user sorts the saved external data and the remaining external data via the input unit 12 based on the savable data capacity, and the external data determination unit 16 stores the result as the external data sorting setting. After the external data distribution setting process, the external data determination unit 16 may display on the display unit 13 that only the saved external data is protected.

図11は、実施の形態2による外部データの選択処理の様子を示す図である。ここでは、図11(a)に示されるように、制御装置10に装着時の外部記憶媒体50には、4つの外部データ301〜304が保存されており、外部データ301,302,303,304の順で優先度が低くなるものとする。   FIG. 11 is a diagram illustrating the external data selection process according to the second embodiment. Here, as shown in FIG. 11A, four external data 301 to 304 are stored in the external storage medium 50 when mounted on the control device 10, and the external data 301, 302, 303, 304 are stored. Assume that the priority becomes lower in the order of.

図11(b)に示されるように、内部記憶部103は使用領域1031Aと空き領域1031Bとを有し、空き領域1031Bにはすべての外部データ301〜304を保存することができないものとする。   As shown in FIG. 11B, it is assumed that the internal storage unit 103 has a use area 1031A and a free area 1031B, and cannot store all external data 301 to 304 in the free area 1031B.

そこで、ユーザによって、優先度の高い外部データ301,302が内部記憶部103への退避外部データとして指定され、外部データ303,304が外部記憶媒体50に残存する残存外部データとして指定されたものとする。その結果、図11(b)に示されるように、内部記憶部103の空き領域1031Bには外部データ301,302が保存され、図11(c)に示されるように、外部記憶媒体50には外部データ303,304が残される。   Therefore, it is assumed that the external data 301 and 302 with high priority are designated by the user as saved external data to the internal storage unit 103, and the external data 303 and 304 are designated as remaining external data remaining in the external storage medium 50. To do. As a result, as shown in FIG. 11B, the external data 301 and 302 are stored in the free area 1031B of the internal storage unit 103, and in the external storage medium 50 as shown in FIG. External data 303 and 304 are left.

その後またはステップS54で外部データ保存領域が外部データの合計サイズ以上の場合(ステップS54でYesの場合)には、パスワード設定部17は、データ書戻し時のパスワードの設定を行い(ステップS56)、パスワードをパスワード−外部データ対応情報に保存する(ステップS57)。ついで、外部データ保存処理部18は、外部記憶媒体内の退避外部データを外部データ保存領域にコピーする(ステップS58)。その後、外部データ保存処理部18は、外部記憶媒体内の退避外部データと外部データ保存領域の退避外部データとが一致するか判定を行う(ステップS59)。両者が一致しない場合(ステップS59でNoの場合)には、データ異常を表示部13に表示し(ステップS60)、ステップS58に戻る。また、両者が一致する場合(ステップS59でYesの場合)には、退避外部データの保存位置をパスワード−外部データ対応情報に、パスワードに対応づけて保存する(ステップS61)。   After that, or when the external data storage area is equal to or larger than the total size of the external data at Step S54 (Yes at Step S54), the password setting unit 17 sets a password when data is written back (Step S56). The password is stored in the password-external data correspondence information (step S57). Next, the external data storage processing unit 18 copies the saved external data in the external storage medium to the external data storage area (step S58). Thereafter, the external data storage processing unit 18 determines whether the saved external data in the external storage medium matches the saved external data in the external data storage area (step S59). If they do not match (No in step S59), the data abnormality is displayed on the display unit 13 (step S60), and the process returns to step S58. If the two match (Yes in step S59), the save position of the saved external data is saved in the password-external data correspondence information in association with the password (step S61).

その後、内部データ処理部23は、外部記憶媒体内の退避外部データのみを消去する(ステップS62)。そして、内部データ処理部23は、指定された退避外部データ以外は保護されないので、使用後は外部記憶媒体を離脱するように注意喚起するメッセージを表示部13に表示して(ステップS63)、処理が終了する。   Thereafter, the internal data processing unit 23 deletes only the saved external data in the external storage medium (step S62). Since the internal data processing unit 23 is not protected except for the designated saved external data, the internal data processing unit 23 displays a message on the display unit 13 so as to leave the external storage medium after use (step S63). Ends.

なお、データ書戻し処理を伴う外部記憶媒体の取り外し処理は、実施の形態1で説明したものとほぼ同様であるので、その説明を省略する。   Note that the external storage medium removal process that accompanies the data write-back process is substantially the same as that described in the first embodiment, and a description thereof will be omitted.

実施の形態2では、外部記憶媒体中の外部データの合計サイズが外部データ保存部14の空き容量よりも大きい場合に、ユーザによって選択された外部データを外部データ保存部14の外部データ保存領域に保存し、それ以外のデータを外部記憶媒体に残し、外部記憶媒体の管理に注意を促すメッセージを表示するようにした。そのため、外部記憶媒体の制御装置10への装着状態が継続してしまうことの注意喚起をユーザに対して促すことができるという効果を実施の形態1の効果に加えて得ることができる。   In the second embodiment, when the total size of the external data in the external storage medium is larger than the free capacity of the external data storage unit 14, the external data selected by the user is stored in the external data storage area of the external data storage unit 14. The data is saved and other data is left on the external storage medium, and a message is displayed to call attention to management of the external storage medium. Therefore, in addition to the effect of the first embodiment, it is possible to urge the user to be alerted that the state where the external storage medium is attached to the control device 10 continues.

実施の形態3.
実施の形態3では、実施の形態2と同様に、外部データ保存部の空き容量が外部記憶媒体中の外部データのサイズよりも小さい場合について説明する。
Embodiment 3 FIG.
In the third embodiment, as in the second embodiment, a case where the free space of the external data storage unit is smaller than the size of the external data in the external storage medium will be described.

図12は、実施の形態3による制御装置の機能構成を模式的に示すブロック図である。制御装置10は、実施の形態1の構成に、データ分割部25と、データ結合部26と、をさらに備える。   FIG. 12 is a block diagram schematically illustrating a functional configuration of the control device according to the third embodiment. The control device 10 further includes a data dividing unit 25 and a data combining unit 26 in the configuration of the first embodiment.

データ分割部25は、外部記憶媒体中の外部データの合計サイズが外部データ保存部14の空き容量よりも大きいと外部データ判定部16に判定された場合に、外部記憶媒体中で外部データを複数に分割する。外部データの分割として、分割された一方のデータだけでは意味がなくなるようにするランダム分割、または1行おきの分割などの方法が使用される。また、外部データの分割は、各外部データの分割された一部が外部データ保存部14の外部データ保存領域に保存されるように、分割されるサイズが計算される。   When the external data determination unit 16 determines that the total size of the external data in the external storage medium is larger than the free capacity of the external data storage unit 14, the data division unit 25 stores a plurality of external data in the external storage medium. Divide into As the division of the external data, a method such as random division in which only one piece of divided data is meaningless or division every other row is used. Further, in the division of the external data, the size to be divided is calculated so that a part of each piece of the external data is stored in the external data storage area of the external data storage unit 14.

データ結合部26は、外部データ保存部14中の分割された外部データを外部記憶媒体に書き戻す場合あるいは制御処理部24で外部データ(プログラム)を実行する際にワークメモリ(RAM)に展開するその外部データが外部データ保存部14と外部記憶媒体に分割された状態で存在する場合に、分割されたデータをそれぞれ外部データ保存部14と外部記憶媒体からワークメモリに読み出し、結合して展開する。なお、実施の形態1,2と同一の構成要素には同一の符号を付してその説明を省略する。   The data combining unit 26 develops the divided external data in the external data storage unit 14 in the work memory (RAM) when the external data (program) is executed by the control processing unit 24 when the external data is written back to the external storage medium. When the external data exists in a state of being divided into the external data storage unit 14 and the external storage medium, the divided data is read from the external data storage unit 14 and the external storage medium to the work memory, combined and expanded. . In addition, the same code | symbol is attached | subjected to the component same as Embodiment 1, 2, and the description is abbreviate | omitted.

つぎに、実施の形態3による制御装置10の動作について説明する。図13は、実施の形態3による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。   Next, the operation of the control device 10 according to the third embodiment will be described. FIG. 13 is a flowchart illustrating an example of a processing procedure when an external storage medium is mounted on the control device according to the third embodiment.

まず、実施の形態2の図10のステップS51〜S54と同様に、外部記憶媒体が制御装置10に装着されると、外部データ保存領域設定部15が外部データ保存部14に外部データ保存領域を設定し、外部記憶媒体中に外部データが存在するかを判定する。外部記憶媒体中にデータが存在しない場合には、退避するデータがないので、処理が終了し、外部記憶媒体中にデータが存在する場合には、外部データ判定部16は、設定された外部データ保存領域が外部記憶媒体の外部データの合計サイズ以上であるかを判定する(ステップS71〜S74)。   First, as in steps S51 to S54 in FIG. 10 of the second embodiment, when an external storage medium is loaded in the control device 10, the external data storage area setting unit 15 sets an external data storage area in the external data storage unit 14. Set to determine whether external data exists in the external storage medium. When there is no data in the external storage medium, there is no data to be saved, so the processing ends, and when there is data in the external storage medium, the external data determination unit 16 sets the set external data. It is determined whether the storage area is equal to or larger than the total size of the external data on the external storage medium (steps S71 to S74).

ついで、外部データ保存領域が外部記憶媒体の外部データの合計サイズよりも小さい場合(ステップS74でNoの場合)には、データ分割部25は、外部データ保存部14の空き容量を基に、外部データを外部データ保存部14へ退避する退避データと、外部記憶媒体に残存させる残存データと、に分割する(ステップS75)。なお、このとき、容量不足で外部データのすべてを保護できないことを表示部13に表示してもよい。   Next, when the external data storage area is smaller than the total size of the external data on the external storage medium (in the case of No in step S74), the data dividing unit 25 uses the free capacity of the external data storage unit 14 to The data is divided into saved data for saving to the external data storage unit 14 and remaining data to remain in the external storage medium (step S75). At this time, it may be displayed on the display unit 13 that all of the external data cannot be protected due to insufficient capacity.

その後またはステップS74で外部データ保存領域が外部記憶媒体の外部データの合計サイズ以上である場合(ステップS74でYesの場合)には、パスワード設定部17は、外部データ保存部14から外部記憶媒体にデータを書き戻すためのパスワード設定処理を行う(ステップS76)。ついで、パスワード設定部17は、ユーザによってパスワードが入力されると、そのパスワードをパスワード−外部データ対応情報に保存する(ステップS77)。その後、外部データ保存処理部18は、外部データを分割して保存することを表示部13に表示する(ステップS78)。   After that or when the external data storage area is equal to or larger than the total size of the external data in the external storage medium (Yes in step S74), the password setting unit 17 transfers the external data storage unit 14 from the external data storage unit 14 to the external storage medium. A password setting process for writing back the data is performed (step S76). Next, when the password is input by the user, the password setting unit 17 stores the password in the password-external data correspondence information (step S77). Thereafter, the external data storage processing unit 18 displays on the display unit 13 that the external data is divided and stored (step S78).

ついで、外部データ保存処理部18は、外部記憶媒体内の退避データを外部データ保存部14に設定した外部データ保存領域にコピーする(ステップS79)。その後、外部データ保存処理部18は、外部記憶媒体中の退避データと外部データ保存領域中の退避データとが一致しているか(エラーなく保存されたか)を照合する(ステップS80)。   Next, the external data storage processing unit 18 copies the saved data in the external storage medium to the external data storage area set in the external data storage unit 14 (step S79). Thereafter, the external data storage processing unit 18 checks whether the saved data in the external storage medium matches the saved data in the external data storage area (whether saved without error) (step S80).

2つのデータが一致していない場合(ステップS80でNoの場合)には、表示部13または制御装置10に接続されるエンジニアリングツールにデータ異常を表示し(ステップS81)、ステップS79に処理が戻る。   If the two data do not match (No in step S80), the data abnormality is displayed on the display unit 13 or the engineering tool connected to the control device 10 (step S81), and the process returns to step S79. .

また、2つのデータが一致している場合(ステップS80でYesの場合)には、外部データ保存処理部18は、パスワード−外部データ対応情報で、外部データ保存部14にコピーした退避データと、設定したパスワードとを対応付けする(ステップS82)。そして、外部データ消去部20は、外部記憶媒体内の退避データのみを消去し、残存データをそのまま残存させる(ステップS83)。以上によって、外部記憶媒体が接続された場合の外部データの退避処理が終了する。   If the two data match (Yes in step S80), the external data storage processing unit 18 uses the password-external data correspondence information and saves the data copied to the external data storage unit 14, The set password is associated (step S82). Then, the external data erasure unit 20 erases only the saved data in the external storage medium and leaves the remaining data as it is (step S83). Thus, the external data saving process when the external storage medium is connected is completed.

図14と図15は、実施の形態3による制御装置に外部記憶媒体が装着された場合の処理手順の具体例を示す図である。図14(a)に示されるように、外部記憶媒体50が制御装置10に装着されると、外部記憶媒体50に保存されている外部データ301の合計サイズと、内部記憶部103の空き容量とを取得し、両者が比較される。   14 and 15 are diagrams illustrating a specific example of a processing procedure when an external storage medium is mounted on the control device according to the third embodiment. As shown in FIG. 14A, when the external storage medium 50 is attached to the control device 10, the total size of the external data 301 stored in the external storage medium 50, the free capacity of the internal storage unit 103, And the two are compared.

ついで、図14(b)に示されるように、内部記憶部103の空き容量が外部記憶媒体50の合計サイズに比して小さい場合には、外部記憶媒体50内の外部データ301が分割される。ここでは、外部データ301は、データ301A〜301Cに三分割される。三分割されたそれぞれのデータ301A〜301Cは、それ自体では意味を有さないデータとなっている。その後、パスワードの設定処理が行われ、パスワード−外部データ対応情報1032にパスワードが保存される。   Next, as shown in FIG. 14B, when the free capacity of the internal storage unit 103 is smaller than the total size of the external storage medium 50, the external data 301 in the external storage medium 50 is divided. . Here, the external data 301 is divided into three pieces of data 301A to 301C. Each of the three divided data 301A to 301C is data having no meaning in itself. Thereafter, a password setting process is performed, and the password is stored in the password-external data correspondence information 1032.

ついで、図15(a)に示されるように、外部記憶媒体50中の分割したデータ301A〜301Cの内の一部のデータ301Bが内部記憶部103の外部データ保存領域1031にデータ351Bとしてコピーされる。その後、外部記憶媒体50中のデータ301Bと内部記憶部103内のデータ351Bとが一致するか照合され、一致すると外部記憶媒体50中のデータ301Bが消去される。また、コピーされたデータ301Bの保存位置は、パスワード−外部データ対応情報にパスワードと対応付けされて保存される。   Next, as shown in FIG. 15A, a part of the divided data 301 </ b> A to 301 </ b> C in the external storage medium 50 is copied as data 351 </ b> B to the external data storage area 1031 of the internal storage unit 103. The Thereafter, the data 301B in the external storage medium 50 and the data 351B in the internal storage unit 103 are matched or checked, and if they match, the data 301B in the external storage medium 50 is erased. The storage location of the copied data 301B is stored in the password-external data correspondence information in association with the password.

その後、図15(b)に示されるように、外部記憶媒体50が不正に抜き取られた場合に、外部記憶媒体50にはデータ301A,301Cが存在するのみである。このデータ301A,301Cは、外部データ301を分割したものであり、しかも一部のデータ301Bが抜けたデータであり、意味がなくなっている。そのため、不正に抜き取った第三者によって、外部記憶媒体50内の外部データ301が不正に利用されてしまうことなどを防ぐことができる。   After that, as shown in FIG. 15B, when the external storage medium 50 is illegally extracted, only data 301A and 301C exist in the external storage medium 50. These data 301A and 301C are data obtained by dividing the external data 301, and are partly missing data 301B, and have no meaning. Therefore, it is possible to prevent the external data 301 in the external storage medium 50 from being illegally used by an unauthorized third party.

なお、図14と図15では、外部記憶媒体50に1つの外部データ301が含まれる場合であったが、複数の外部データが含まれる場合でも、同様である。図16は、外部記憶媒体に複数の外部データがある場合の分割の方法を模式的に示す図である。   14 and 15, the external storage medium 50 includes one external data 301. However, the same applies to a case where a plurality of external data is included. FIG. 16 is a diagram schematically showing a dividing method when there are a plurality of external data in the external storage medium.

図16(a)に示されるように、内部記憶部103(外部データ保存部14)は、既にデータまたはプログラムが格納されている使用領域1031Aと、使用されていない空き領域1031Bと、を有する状態となっている。   As shown in FIG. 16A, the internal storage unit 103 (external data storage unit 14) has a use area 1031A in which data or programs are already stored and a free area 1031B that is not used. It has become.

外部記憶媒体50が装着されると、空き領域1031Bの容量と外部記憶媒体50中の外部データ301〜303の合計サイズとが比較される。外部記憶媒体50中の外部データ301〜303の合計サイズが内部記憶部103の空き領域1031Bの容量よりも大きい場合には、図16(b)に示されるように、データ分割部25によって各外部データ301〜303が、データ301A〜301C,302A〜302C,303A〜303Cに分割される。ここでは、1つの外部データが3つのデータに分割される場合が示されている。また、ここでは図示していないが外部データ301A,301C,302A,302C,303A,303Cが残存データとされ、外部データ301B,302B,303Bが退避データとされる。   When the external storage medium 50 is attached, the capacity of the free area 1031B is compared with the total size of the external data 301 to 303 in the external storage medium 50. When the total size of the external data 301 to 303 in the external storage medium 50 is larger than the capacity of the free area 1031B of the internal storage unit 103, each data external unit 25 uses the external data division unit 25 to execute each external data as shown in FIG. Data 301 to 303 are divided into data 301A to 301C, 302A to 302C, and 303A to 303C. Here, a case where one external data is divided into three data is shown. Although not shown here, the external data 301A, 301C, 302A, 302C, 303A, and 303C are the remaining data, and the external data 301B, 302B, and 303B are the save data.

ついで、図16(c)に示されるように、分割されたデータのうち退避データ301B,302B,303Bのみが内部記憶部103の空き領域1031B(外部データ保存領域)にコピーされ、残存データ301A,301C,302A,302C,303A,303Cはそのまま外部記憶媒体50に残されたままとなる。このとき、分割された退避データ301B,302B,303Bの合計サイズは、空き領域1031Bの容量以下となっている。その後、コピーされた退避データ301B,302B,303Bと外部記憶媒体50中の退避データ301B,302B,303Bとが一致すると外部記憶媒体50から退避データ301B,302B,303Bが削除される。   Next, as shown in FIG. 16C, only the saved data 301B, 302B, and 303B among the divided data are copied to the free area 1031B (external data storage area) of the internal storage unit 103, and the remaining data 301A, 301C, 302A, 302C, 303A, and 303C remain as they are in the external storage medium 50. At this time, the total size of the divided save data 301B, 302B, and 303B is equal to or less than the capacity of the free area 1031B. Thereafter, when the copied save data 301B, 302B, and 303B match the save data 301B, 302B, and 303B in the external storage medium 50, the save data 301B, 302B, and 303B are deleted from the external storage medium 50.

つぎに、外部記憶媒体の制御装置10からの取り外しおよび外部データの書戻し処理について説明する。図17は、実施の形態3による外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の一例を示すフローチャートである。   Next, removal of the external storage medium from the control device 10 and external data write-back processing will be described. FIG. 17 is a flowchart illustrating an example of an external storage medium extraction process from the control apparatus that involves an external data write-back process according to the third embodiment.

まず、実施の形態1の図7のステップS31〜S34と同様に、外部記憶媒体取り外しコマンドが実行されると、パスワードが入力され、入力されたパスワードがパスワード−外部データ対応情報中のパスワードと一致するかが判定される(ステップS91〜S94)。   First, as in steps S31 to S34 in FIG. 7 of the first embodiment, when the external storage medium removal command is executed, the password is input, and the input password matches the password in the password-external data correspondence information. It is determined whether to do (steps S91 to S94).

入力されたパスワードとパスワード−外部データ対応情報中のパスワードとが一致した場合(ステップS93でYesの場合)には、データ結合部26は、パスワードに対応付けられた外部データ保存部14の外部データ保存領域から退避データを読み込み、また対応する残存データを外部記憶媒体50から読み込み、これらの退避データと残存データとを結合して外部データを復元する(ステップS95)。また、復元した外部データを外部記憶媒体50に書き戻す(ステップS96)。その後、生成した外部データと外部記憶媒体50に書き戻した外部データとが一致するかを照合する(ステップS97)。両者が一致しない場合(ステップS97でNoの場合)には、外部記憶媒体に書き戻した外部データが異常である旨を表示部13に表示し(ステップS98)、ステップS96に戻る。   If the input password matches the password in the password-external data correspondence information (Yes in step S93), the data combining unit 26 uses the external data stored in the external data storage unit 14 associated with the password. The save data is read from the save area, the corresponding remaining data is read from the external storage medium 50, and the save data and the remaining data are combined to restore the external data (step S95). Further, the restored external data is written back to the external storage medium 50 (step S96). Thereafter, it is checked whether the generated external data matches the external data written back to the external storage medium 50 (step S97). If they do not match (No in step S97), the display unit 13 displays that the external data written back to the external storage medium is abnormal (step S98), and returns to step S96.

一方、両者が一致する場合(ステップS97でYesの場合)には、制御装置10の外部データ保存部14にコピーされた退避データを消去するかを判定する(ステップS99)。以上の処理では、外部記憶媒体50に外部データが書戻され、取外し可能の状態となっている。このときに内部データ処理部23は、制御装置10の外部データ保存部14にコピーされた退避データを消去するか否かを選択する選択画面を表示部13またはエンジニアリングツールに表示し、それに対するユーザの入力結果に基づいて判定を行う。   On the other hand, if the two match (Yes in step S97), it is determined whether to save the saved data copied to the external data storage unit 14 of the control device 10 (step S99). In the above processing, the external data is written back to the external storage medium 50 and is in a removable state. At this time, the internal data processing unit 23 displays a selection screen for selecting whether or not to save the saved data copied to the external data storage unit 14 of the control device 10 on the display unit 13 or the engineering tool. The determination is made based on the input result.

外部データ保存部14内の退避データを消去する場合(ステップS99でYesの場合)には、内部データ処理部23は、外部データ保存部14の外部データ保存領域中の退避データを消去し(ステップS100)、パスワード−外部データ対応情報中の対応するレコードを消去し、更新する(ステップS101)。   When erasing the saved data in the external data storage unit 14 (Yes in step S99), the internal data processing unit 23 erases the saved data in the external data storage area of the external data storage unit 14 (step S99). S100), the corresponding record in the password-external data correspondence information is deleted and updated (step S101).

その後、または外部データ保存部14内の退避データを消去しない場合(ステップS99でNoの場合)には、内部データ処理部23は外部記憶媒体を取り外し可能であることを表示部13に表示し(ステップS102)、処理が終了する。   Thereafter, or when the saved data in the external data storage unit 14 is not deleted (No in step S99), the internal data processing unit 23 displays on the display unit 13 that the external storage medium can be removed ( Step S102), the process ends.

図18は、実施の形態3による分割されたデータの実行処理の手順の一例を示すフローチャートである。まず、外部データ保存部14中のデータ(プログラムまたはパラメータなど)の実行コマンドが指示されると(ステップS111)、制御処理部24は指示されたコマンドに対応するデータ(プログラム)が分割されているかを確認する(ステップS112)。データ(プログラム)が分割されていない場合(ステップS112でNoの場合)には、制御処理部24はデータ(プログラム)をメインメモリ(ワークメモリ)に読み出す(ステップS113)。そして、読み出したデータを実行し(ステップS117)、処理が終了する。   FIG. 18 is a flowchart illustrating an example of a procedure for executing divided data according to the third embodiment. First, when an execution command of data (program or parameter) in the external data storage unit 14 is instructed (step S111), the control processing unit 24 determines whether the data (program) corresponding to the instructed command is divided. Is confirmed (step S112). If the data (program) is not divided (No in step S112), the control processing unit 24 reads the data (program) into the main memory (work memory) (step S113). Then, the read data is executed (step S117), and the process ends.

一方、データ(プログラム)が分割されている場合(ステップS112でYesの場合)には、データ結合部26は、指示されたコマンドに対応する残存データを外部記憶媒体50からメインメモリ(ワークメモリ)に読み出し(ステップS114)、また指示されたコマンドに対応する退避データを外部データ保存部14からメインメモリ(ワークメモリ)に読み出す(ステップS115)。その後、データ結合部26は、読み出した残存データと退避データとを結合し、外部データを復元する(ステップS116)。そして、制御処理部24は、メインメモリ(ワークメモリ)に復元された外部データを実行し(ステップS117)、処理が終了する。   On the other hand, when the data (program) is divided (Yes in step S112), the data combining unit 26 transfers the remaining data corresponding to the instructed command from the external storage medium 50 to the main memory (work memory). (Step S114), and the saved data corresponding to the instructed command is read from the external data storage unit 14 to the main memory (work memory) (step S115). Thereafter, the data combining unit 26 combines the read remaining data and the saved data to restore the external data (step S116). Then, the control processing unit 24 executes the external data restored in the main memory (work memory) (step S117), and the process ends.

実施の形態3では、外部データ保存部14に外部記憶媒体50中の外部データをすべて保存することができない場合に、すべての外部データを分割し、各外部データから一部の分割データを退避データとして外部データ保存部14の外部データ保存領域に保存し、退避データ以外のデータを残存データとして外部記憶媒体50中に残すようにした。これによって、外部記憶媒体50が抜き取られてしまった場合でも、外部記憶媒体50には完全なデータが含まれていないので、データの流出を防ぐことができるという効果を有する。   In the third embodiment, when all the external data in the external storage medium 50 cannot be stored in the external data storage unit 14, all the external data is divided and a part of the divided data is saved from each external data. The data is stored in the external data storage area of the external data storage unit 14 and data other than the saved data is left in the external storage medium 50 as remaining data. As a result, even when the external storage medium 50 is extracted, the external storage medium 50 does not contain complete data, so that an outflow of data can be prevented.

実施の形態4.
実施の形態4では、外部データ保存領域に保存された外部データを更新した場合の処理について説明する。
Embodiment 4 FIG.
In the fourth embodiment, a process when the external data stored in the external data storage area is updated will be described.

実施の形態4による制御装置10は、実施の形態1の図1に示されたものとほぼ同様の構成を有するが、外部データ保存処理部18、外部データ書戻し部22および内部データ処理部23の機能が実施の形態1のものとは異なる。外部データ保存処理部18は、ユーザによって入力部12を介して外部データが更新された場合には、外部データ保存領域に更新された外部データ(以下、更新外部データという)を保存し、元の外部データのパスワードに対応付けてパスワード−外部データ対応情報に、更新外部データの格納位置を記憶する機能を有する。   The control device 10 according to the fourth embodiment has substantially the same configuration as that shown in FIG. 1 of the first embodiment, but the external data storage processing unit 18, the external data write-back unit 22, and the internal data processing unit 23. Is different from that of the first embodiment. When the external data is updated by the user via the input unit 12, the external data storage processing unit 18 stores the updated external data (hereinafter referred to as updated external data) in the external data storage area. It has a function of storing the storage location of the updated external data in the password-external data correspondence information in association with the external data password.

図19は、実施の形態4によるパスワード−外部データ対応情報の一例を示す図である。この図に示されるように、パスワード−外部データ対応情報は、外部データを識別するデータ名などの情報と、外部データの先頭アドレスおよびサイズと、外部データに対して設定されたパスワードと、更新外部データを識別する更新データ名などの情報と、更新外部データの先頭アドレスおよびサイズと、を有する。更新外部データの更新データ名と先頭アドレスおよびサイズは、元の外部データから派生した更新外部データを複数格納することができるように対応付けがなされている。また、データ名とパスワードの組み合わせに対して関連付けられる更新外部データの数に制限はない。   FIG. 19 is a diagram illustrating an example of password-external data correspondence information according to the fourth embodiment. As shown in this figure, the password-external data correspondence information includes information such as a data name for identifying external data, the start address and size of the external data, a password set for the external data, and an updated external data It has information such as an update data name for identifying data, and the start address and size of the updated external data. The update data name, the start address, and the size of the update external data are associated with each other so that a plurality of update external data derived from the original external data can be stored. In addition, there is no limit to the number of updated external data associated with a data name / password combination.

外部データ保存処理部18は、外部データが更新されると、パスワード−外部データ対応情報の外部データ(パスワード)に対応するレコードに更新外部データのアドレスとサイズを追記していく。パスワード−外部データ対応情報の更新は、外部データが更新されるタイミングであってもよいし、ユーザによって更新外部データを登録する指示が出されたタイミングであってもよいし、その他のタイミングであってもよい。   When the external data is updated, the external data storage processing unit 18 adds the address and size of the updated external data to the record corresponding to the external data (password) in the password-external data correspondence information. The update of the password-external data correspondence information may be at a timing when the external data is updated, may be at a timing when an instruction to register the updated external data is issued by the user, or at other timing. May be.

外部データ書戻し部22は、外部記憶媒体にデータを書き戻す際に、外部データ保存領域中の外部データと更新外部データのいずれを書き戻すかを設定する書戻し処理設定画面を表示部13に表示し、その内容に基づいて外部データの書戻し処理を行う。すなわち、外部データ書戻し部22は、書戻し処理設定画面での設定内容に基づいて、元の外部データのみを書き戻す処理、更新外部データのみを書き戻す処理、または元の外部データと更新外部データの両方を書き戻す処理、を実行する。   The external data write-back unit 22 displays a write-back process setting screen for setting whether to write back external data or updated external data in the external data storage area when data is written back to the external storage medium. Display and perform external data write-back processing based on the contents. That is, the external data write-back unit 22 rewrites only the original external data, rewrites only the updated external data, or the original external data and the update external based on the setting content on the write-back process setting screen. Execute processing to write back both data.

内部データ処理部23は、外部記憶媒体50にデータを書き戻した後に、外部データ保存部14の外部データ保存領域に保存されている外部データと更新外部データの消去の有無を設定する消去処理設定画面を表示部13に表示し、その内容に基づいて外部データ保存領域に保存されている外部データまたは更新外部データの消去処理を行う。すなわち消去処理設定画面での設定内容に基づいて、外部データと更新外部データの消去処理、または外部データと更新外部データを消去せずにそのままとする処理、を実行する。   After the data is written back to the external storage medium 50, the internal data processing unit 23 sets the erasure processing setting for setting whether to erase the external data and the updated external data stored in the external data storage area of the external data storage unit 14 A screen is displayed on the display unit 13, and the external data or updated external data stored in the external data storage area is deleted based on the contents. That is, based on the setting contents on the deletion processing setting screen, the external data and the updated external data are deleted, or the external data and the updated external data are left without being deleted.

図20は、実施の形態4による外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の一例を示すフローチャートである。まず、実施の形態1の図7のステップS31〜S34と同様に、外部記憶媒体50の取り外しコマンドが実行されると、パスワードが入力され、入力されたパスワードがパスワード−外部データ対応情報中のパスワードと一致するかが判定される(ステップS131〜S134)。   FIG. 20 is a flowchart illustrating an example of processing for extracting an external storage medium from a control apparatus that involves external data write-back processing according to the fourth embodiment. First, similarly to steps S31 to S34 in FIG. 7 of the first embodiment, when a command to remove the external storage medium 50 is executed, a password is input, and the input password is the password in the password-external data correspondence information. Is determined (steps S131 to S134).

入力されたパスワードとパスワード−外部データ対応情報中のパスワードとが一致した場合(ステップS133でYesの場合)には、外部データ書戻し部22は、外部データ保存部14内のデータ更新履歴をチェックする。すなわち、パスワード−外部データ対応情報を参照して入力されたパスワードに対応する外部データに更新外部データが存在するかを判定する(ステップS135)。   If the entered password matches the password in the password-external data correspondence information (Yes in step S133), the external data write-back unit 22 checks the data update history in the external data storage unit 14 To do. That is, it is determined whether updated external data exists in the external data corresponding to the password input with reference to the password-external data correspondence information (step S135).

パスワードに対応する外部データに更新外部データが存在する場合(ステップS135でYesの場合)には、外部データと更新外部データの中から書き戻す対象を選択する書戻しデータ選択処理を行う(ステップS136)。書戻しデータ選択処理は、入力されたパスワードに対応する外部データと更新外部データをパスワード−外部データ対応情報に基づいて取得し、書戻し処理設定画面を表示部13に表示する。この書戻し処理設定画面でユーザは書戻すデータの選択を行い、その選択内容を書戻しデータ指定情報として外部データ書戻し部22は記憶する。書戻すデータとして、外部データのみなのか、更新データのみなのかまたは外部データと外部更新データの両方なのかが選択される。   If the updated external data exists in the external data corresponding to the password (Yes in step S135), a write-back data selection process for selecting a target to be written back from the external data and the updated external data is performed (step S136). ). In the write-back data selection process, external data and updated external data corresponding to the input password are acquired based on the password-external data correspondence information, and a write-back process setting screen is displayed on the display unit 13. On this write-back processing setting screen, the user selects data to be written back, and the external data write-back unit 22 stores the selected content as write-back data designation information. As the data to be written back, it is selected whether only external data, only update data, or both external data and external update data.

その後またはパスワードに対応する外部データに更新外部データが存在しない場合(ステップS135でNoの場合)には、外部データ書戻し部22は、外部データ保存部14内の外部データまたは更新外部データを外部記憶媒体50に書戻す(ステップS137)。ここでは、更新外部データがない場合には、外部データのみが書戻され、更新外部データがある場合にはステップS136で記憶した書戻しデータ指定情報に基づいたデータ(外部データおよび/または更新外部データ)が書戻されることになる。   After that or when there is no updated external data in the external data corresponding to the password (No in step S135), the external data write-back unit 22 externally stores the external data or the updated external data in the external data storage unit 14. Writing back to the storage medium 50 (step S137). Here, when there is no updated external data, only the external data is written back, and when there is updated external data, data (external data and / or updated external data) based on the write-back data designation information stored in step S136. Data) will be written back.

その後は、実施の形態1の図7のステップS36〜S41と同様に、外部記憶媒体50に書戻されたデータと外部データ保存領域の元のデータとが一致するかを照合し、一致する場合には、ユーザからの指示に従って外部データ保存部14内の外部データと更新外部データの消去/非消去を行い、外部記憶媒体50の取り外しが可能になるとその旨を表示部13に表示して処理が終了する(ステップS138〜S143)。   After that, as in steps S36 to S41 in FIG. 7 of the first embodiment, the data written back to the external storage medium 50 are collated to match the original data in the external data storage area. In accordance with an instruction from the user, the external data in the external data storage unit 14 and the updated external data are erased / non-erased, and when the external storage medium 50 can be removed, this is displayed on the display unit 13 for processing. Ends (steps S138 to S143).

図21と図22は、実施の形態4による書戻し処理の一例を模式的に示す図である。まず、図21(a)に示されるように、空の外部記憶媒体が装着された状態で、ユーザが操作盤105から外部記憶媒体50の取り外しコマンドの実行を指示すると、パスワードの入力が求められ、ユーザは操作盤105を介してパスワードの入力を行う。パスワード−外部データ対応情報からパスワードに対応するレコードを確認し、更新外部データが存在する場合には書戻しデータを指定する処理を行う。ユーザは、たとえば更新外部データを書戻し、元の外部データは書戻さないように操作盤105を介して指定する。   21 and 22 are diagrams schematically showing an example of the write-back process according to the fourth embodiment. First, as shown in FIG. 21A, when a user instructs the execution of the removal command for the external storage medium 50 from the operation panel 105 in a state where a blank external storage medium is loaded, the input of a password is requested. The user inputs a password via the operation panel 105. A record corresponding to the password is confirmed from the password-external data correspondence information, and if updated external data exists, processing for designating write-back data is performed. The user specifies, for example, through the operation panel 105 so that the updated external data is written back and the original external data is not written back.

ついで、図21(b)に示されるように、書戻しデータ指定に基づいて外部記憶媒体50に更新外部データがコピーされる。外部記憶媒体50にコピーされた更新外部データと外部データ保存領域1031の更新外部データとが一致すると、図22に示されるように、外部記憶媒体50の取り外しが可能な状態をユーザに通知し、ユーザによって外部記憶媒体50が制御装置10から取り外される。   Next, as shown in FIG. 21B, the updated external data is copied to the external storage medium 50 based on the write-back data designation. When the updated external data copied to the external storage medium 50 matches the updated external data in the external data storage area 1031, as shown in FIG. 22, the user is notified that the external storage medium 50 can be removed, The external storage medium 50 is removed from the control device 10 by the user.

なお、実施の形態4におけるデータ退避処理を伴う外部記憶媒体50の接続時の処理は、実施の形態1で説明したものと同様であるので、その説明を省略する。   Note that the processing at the time of connection of the external storage medium 50 that accompanies the data saving processing in the fourth embodiment is the same as that described in the first embodiment, and thus the description thereof is omitted.

実施の形態4では、外部データ保存部14に保存された外部データが更新された場合に、その更新外部データを外部データに設定したパスワードに対応付けて保存し、書戻し処理を行う場合にどのデータを書戻すかを選択するようにした。これによって、外部記憶媒体50に書戻す処理を、元の外部データとするか、更新外部データとするか、それとも両方にするかをユーザが選択することができるという効果を有する。   In the fourth embodiment, when the external data stored in the external data storage unit 14 is updated, the updated external data is stored in association with the password set in the external data, and the write-back process is performed. It was made to choose whether to write back data. As a result, the user can select whether the process of writing back to the external storage medium 50 is the original external data, the updated external data, or both.

実施の形態5.
実施の形態1〜4では、制御装置に装着される外部記憶媒体とパスワードとの間の関係について特に限定していなかった。たとえば、ある外部記憶媒体を制御装置に装着し、外部データを外部データ保存部に退避させた後にその外部記憶媒体を離脱し、他の外部記憶媒体を制御装置に装着しても書戻し処理を行うことができた。実施の形態5では、書戻し処理ができる外部記憶媒体の種類または個体を指定することができる場合について説明する。
Embodiment 5. FIG.
In the first to fourth embodiments, the relationship between the external storage medium attached to the control device and the password is not particularly limited. For example, even if a certain external storage medium is attached to the control device, the external data is saved in the external data storage unit, then the external storage medium is detached, and even if another external storage medium is attached to the control device, the write-back process is performed. Could be done. In the fifth embodiment, a case where the type or individual of an external storage medium that can be written back can be designated will be described.

図23は、実施の形態5による制御装置の機能構成を模式的に示すブロック図である。制御装置10は、実施の形態1の構成に外部記憶媒体情報取得部27と、設定情報処理部28と、設定情報記憶部29と、をさらに備える。なお、制御装置10の外部記憶媒体50の接続スロットとして、SDカード、USBメモリ、コンパクトフラッシュ(登録商標)の3種類が設けられる場合を以下では説明する。   FIG. 23 is a block diagram schematically showing a functional configuration of the control device according to the fifth embodiment. The control device 10 further includes an external storage medium information acquisition unit 27, a setting information processing unit 28, and a setting information storage unit 29 in the configuration of the first embodiment. In the following, a case where three types of SD card, USB memory, and compact flash (registered trademark) are provided as connection slots of the external storage medium 50 of the control device 10 will be described.

外部記憶媒体情報取得部27は、制御装置10に外部記憶媒体50が装着されることを検知すると、外部記憶媒体50についての固有情報である種別情報を取得する。この種別情報は、外部記憶媒体50に設定された特定のエリアに格納されており、その特定のエリアの情報を読み込むことで取得することができる。   When the external storage medium information acquisition unit 27 detects that the external storage medium 50 is attached to the control device 10, the external storage medium information acquisition unit 27 acquires type information that is unique information about the external storage medium 50. This type information is stored in a specific area set in the external storage medium 50, and can be acquired by reading the information of the specific area.

設定情報処理部28は、制御装置10に装着した外部記憶媒体50の種類について、データ保護の有無、データの書戻し先の指定、データ書戻し先情報、内部記憶部内データ消去などを含む設定情報を設定するための設定情報設定画面を表示部13に表示し、設定情報設定画面に入力された内容を設定情報として設定情報記憶部29に記憶する。設定情報記憶部29は、設定情報処理部28で生成された設定情報を記憶する。   The setting information processing unit 28 sets setting information including the presence / absence of data protection, designation of data write-back destination, data write-back destination information, data erasure in the internal storage unit, etc. for the type of external storage medium 50 attached to the control device 10 Is displayed on the display unit 13 and the content input on the setting information setting screen is stored in the setting information storage unit 29 as setting information. The setting information storage unit 29 stores the setting information generated by the setting information processing unit 28.

図24は、設定情報の一例を示す図である。この例では、設定情報は、外部記憶媒体の種別情報、データ保護機能、データ書戻し先の指定、データ書戻し先情報、書戻し処理後の内部記憶部(外部データ保存部14)内の外部データの消去実行の有無を含む。   FIG. 24 is a diagram illustrating an example of setting information. In this example, the setting information includes external storage medium type information, data protection function, data write-back destination designation, data write-back destination information, and external memory in the internal storage unit (external data storage unit 14) after the write-back process. Includes whether or not data was erased.

外部記憶媒体の種別情報は、SDカード、microSDカード、コンパクトフラッシュ(登録商標)、USBメモリなどの種別を示すものである。データ保護機能は、外部記憶媒体50が制御装置10に装着された場合に外部記憶媒体50に保存されたデータを外部データ保存部14に退避するか否かを示すものである。   The type information of the external storage medium indicates the type of SD card, microSD card, compact flash (registered trademark), USB memory, or the like. The data protection function indicates whether or not data stored in the external storage medium 50 is saved in the external data storage unit 14 when the external storage medium 50 is attached to the control device 10.

データ書戻し先の指定は、書戻し処理時のデータの書戻しの可否を指定するものである。データ書戻し先の指定がある場合には、つぎのデータ書戻し先情報で指定された種別の外部記憶媒体50以外には書戻しされない。またデータ書戻し先の指定がない場合には、どの種別の外部記憶媒体50にも書戻し処理が行われる。   The designation of the data write-back destination specifies whether data can be written back during the write-back process. When the data write-back destination is specified, the data is not written back to other than the external storage medium 50 of the type specified by the next data write-back destination information. If no data write-back destination is specified, write-back processing is performed on any type of external storage medium 50.

データ書戻し先情報は、外部データ保存部14に記憶された外部データについての書戻しを実行することができる外部記憶媒体50の種別を設定するものである。内部記憶部内データ消去は、書戻し処理後に内部記憶部(外部データ保存部14)に保存した外部データを消去するかそのまま残すかを指定するものである。   The data write-back destination information sets the type of the external storage medium 50 that can execute the write-back for the external data stored in the external data storage unit 14. The data erasure in the internal storage unit specifies whether to delete or leave the external data stored in the internal storage unit (external data storage unit 14) after the write-back process.

また、外部記憶媒体50には、書戻し処理について許可されているか否かを示す許可情報が保存される。この許可情報は、設定情報処理部28で設定した内容に基づいて、外部記憶媒体50に対して書き込まれる。なお、実施の形態1と同一の構成要素には同一の符号を付してその説明を省略している。   The external storage medium 50 stores permission information indicating whether or not write-back processing is permitted. This permission information is written to the external storage medium 50 based on the contents set by the setting information processing unit 28. In addition, the same code | symbol is attached | subjected to the component same as Embodiment 1, and the description is abbreviate | omitted.

図24の例では、設定情報には、SDカード、USBメモリ、コンパクトフラッシュ(登録商標)の各種類についてのレコードが登録されている。SDカード、USBメモリおよびコンパクトフラッシュ(登録商標)のそれぞれは、データ保護機能、データ書戻し先指定、および内部記憶部内データ消去が設定され、データ書戻し先情報としては、同種の外部記憶媒体のみ許可された場合が示されている。   In the example of FIG. 24, records for each type of SD card, USB memory, and compact flash (registered trademark) are registered in the setting information. Each of the SD card, USB memory, and compact flash (registered trademark) is set with a data protection function, data write-back destination designation, and data erasure in the internal storage unit, and the data write-back destination information is only the same type of external storage medium. The permitted cases are shown.

つぎに、このような構成の制御装置10での動作について説明する。図25は、実施の形態5による外部記憶媒体装着時の動作処理手順の一例を示すフローチャートである。まず、外部記憶媒体50が制御装置10に装着されると(ステップS151)、外部記憶媒体情報取得部27は外部記憶媒体50から種別情報を取得する(ステップS152)。ついで、外部記憶媒体情報取得部27は、取得した種別情報に対応するレコードが設定情報中に存在するかを判定する(ステップS153)。   Next, the operation of the control device 10 having such a configuration will be described. FIG. 25 is a flowchart illustrating an example of an operation processing procedure when the external storage medium is mounted according to the fifth embodiment. First, when the external storage medium 50 is attached to the control device 10 (step S151), the external storage medium information acquisition unit 27 acquires type information from the external storage medium 50 (step S152). Next, the external storage medium information acquisition unit 27 determines whether a record corresponding to the acquired type information exists in the setting information (step S153).

種別情報に対応するレコードがない場合(ステップS153でNoの場合)には、設定情報処理部28は、設定情報設定処理を行う(ステップS154)。設定情報設定処理は、たとえば、データ保護が必要か否か、データ書戻し先の指定をするか否か、データを外部記憶媒体50に書戻した後に、制御装置10内に残った外部データを消去するか否かなどを設定するための設定画面を表示部13に表示し、設定画面に入力された内容を設定情報の1つのレコードとして種別情報に関連付けして保存することによって行われる。ついで、設定情報処理部28は、設定処理で設定された情報のうちデータ書戻し先の指定に関する書戻し許可情報を外部記憶媒体50に保存する(ステップS155)。   If there is no record corresponding to the type information (No in step S153), the setting information processing unit 28 performs setting information setting processing (step S154). The setting information setting process includes, for example, whether or not data protection is necessary, whether or not to specify a data write-back destination, and external data remaining in the control device 10 after data is written back to the external storage medium 50. A setting screen for setting whether or not to delete is displayed on the display unit 13, and the content input on the setting screen is stored in association with the type information as one record of the setting information. Next, the setting information processing unit 28 stores the write-back permission information regarding the designation of the data write-back destination among the information set in the setting process in the external storage medium 50 (step S155).

また、ステップS153で種別情報が設定情報内にある場合(ステップS153でYesの場合)には、設定情報中の種別情報に対応するレコードに、データ保護機能が設定されているかを判定する(ステップS156)。データ保護機能が設定されていない場合(ステップS156でNoの場合)には、外部記憶媒体50内の外部データの制御装置10への退避処理は行われず、処理が終了する。   If the type information is included in the setting information in step S153 (Yes in step S153), it is determined whether the data protection function is set in the record corresponding to the type information in the setting information (step S153). S156). If the data protection function is not set (No in step S156), the saving process of the external data in the external storage medium 50 to the control device 10 is not performed, and the process ends.

データ保護機能が設定されている場合(ステップS156でYesの場合)には、外部データ保存領域設定部15は、外部データ保存部14に外部データ保存領域を設定する(ステップS157)。ついで、外部データ判定部16は、外部記憶媒体50内に外部データが存在するかを判定する(ステップS158)。外部記憶媒体50内に外部データが存在しない場合(ステップS158でNoの場合)には、処理が終了する。   When the data protection function is set (Yes in step S156), the external data storage area setting unit 15 sets an external data storage area in the external data storage unit 14 (step S157). Next, the external data determination unit 16 determines whether there is external data in the external storage medium 50 (step S158). If there is no external data in the external storage medium 50 (No in step S158), the process ends.

また、外部記憶媒体50内に外部データが存在する場合(ステップS158でYesの場合)には、パスワード設定部17は、データ書戻しの際のパスワードを設定する(ステップS159)。パスワード設定部17は、設定されたパスワードをパスワード−外部データ対応情報に保存する(ステップS160)。   If external data exists in the external storage medium 50 (Yes in step S158), the password setting unit 17 sets a password for data writing back (step S159). The password setting unit 17 stores the set password in the password-external data correspondence information (step S160).

ついで、外部データ保存処理部18は、外部記憶媒体50内の外部データを外部データ保存部14の外部データ保存領域にコピーし(ステップS161)、外部記憶媒体50と外部データ保存領域の外部データが一致するかを判定する(ステップS162)。両者が一致しない場合(ステップS162でNoの場合)にはデータ異常を表示し(ステップS163)、ステップS161に処理が戻る。   Next, the external data storage processing unit 18 copies the external data in the external storage medium 50 to the external data storage area of the external data storage unit 14 (step S161), and the external data in the external storage medium 50 and the external data storage area is stored. It is determined whether they match (step S162). If they do not match (No in step S162), a data abnormality is displayed (step S163), and the process returns to step S161.

両者が一致する場合(ステップS162でYesの場合)には、外部データ保存処理部18は、外部データ保存部14にコピーした外部データとパスワードとを対応付けし、パスワード−外部データ対応情報に保存する(ステップS164)。そして、外部記憶媒体50内の外部データを消去し(ステップS165)、処理が終了する。   If they match (Yes in step S162), the external data storage processing unit 18 associates the external data copied to the external data storage unit 14 with the password and stores them in the password-external data correspondence information. (Step S164). Then, the external data in the external storage medium 50 is erased (step S165), and the process ends.

なお、上記した説明では、外部記憶媒体50の接続スロットとして、SDカード、USBメモリ、コンパクトフラッシュ(登録商標)の3種類を例に挙げているが、これに限定されるものではなく、他の種類の外部記憶媒体50であってもよく、また接続スロットもそれぞれの種類に対して任意の数を設けることができる。   In the above description, there are three types of connection slots for the external storage medium 50: an SD card, a USB memory, and a compact flash (registered trademark). However, the present invention is not limited to this. The type of external storage medium 50 may be used, and an arbitrary number of connection slots may be provided for each type.

図26は、実施の形態5による外部記憶媒体の取り外し処理手順の一例を示すフローチャートである。まず、ユーザによって書戻し先の外部記憶媒体50(接続スロット)が入力部12を介して選択されると(ステップS171)、外部データ書戻し部22は、書戻し先の外部記憶媒体50が接続されているかチェックする(ステップS172)。書戻し先の外部記憶媒体50が接続されていない場合(ステップS172でNoの場合)には、外部記憶媒体50が接続されていないことを示すエラーメッセージを表示部13に表示し(ステップS173)、ステップS171に処理が戻る。   FIG. 26 is a flowchart illustrating an example of an external storage medium removal processing procedure according to the fifth embodiment. First, when the user selects a write-back destination external storage medium 50 (connection slot) via the input unit 12 (step S171), the external data write-back unit 22 is connected to the write-back destination external storage medium 50. It is checked whether it has been done (step S172). If the write-back destination external storage medium 50 is not connected (No in step S172), an error message indicating that the external storage medium 50 is not connected is displayed on the display unit 13 (step S173). The process returns to step S171.

書戻し先の外部記憶媒体50が接続されている場合(ステップS172でYesの場合)には、ユーザによって入力部12を介してパスワードが入力される(ステップS174)。パスワード判定部21は、入力されたパスワードがパスワード−外部データ対応情報に保存されているパスワードと一致するかを判定する(ステップS175)。   If the write-back destination external storage medium 50 is connected (Yes in step S172), the user inputs a password via the input unit 12 (step S174). The password determination unit 21 determines whether the input password matches the password stored in the password-external data correspondence information (step S175).

入力されたパスワードがパスワード−外部データ対応情報内のパスワードと一致しない場合(ステップS175でNoの場合)には、パスワードが一致しないことを表示部13に表示し(ステップS176)、ステップS174に戻る。また、入力されたパスワードがパスワード−外部データ対応情報内のパスワードと一致する場合(ステップS175でYesの場合)には、外部データ書戻し部22は、外部記憶媒体50の書戻し許可情報を読み出し(ステップS177)、外部データの書戻しが許可されているか否かを判定する(ステップS178)。外部データの書戻しが許可されていない場合(ステップS178でNoの場合)には、外部記憶媒体50には外部データの書戻しができない旨の表示を行い(ステップS179)、処理が終了する。   If the input password does not match the password in the password-external data correspondence information (No in step S175), the display unit 13 displays that the password does not match (step S176), and returns to step S174. . If the input password matches the password in the password-external data correspondence information (Yes in step S175), the external data write-back unit 22 reads the write-back permission information in the external storage medium 50. (Step S177), it is determined whether or not writing back of external data is permitted (step S178). If the external data write-back is not permitted (No in step S178), the external storage medium 50 is displayed to the effect that the external data cannot be written back (step S179), and the process ends.

一方、外部データの書戻しが許可されている場合(ステップS178でYesの場合)には、外部データ書戻し部22は、外部データ保存部14内の入力されたパスワードに対応する外部データを外部記憶媒体50に書戻す(ステップS180)。その後、外部データ書戻し部22は、外部記憶媒体50と外部データ保存部14内の2つの外部データが一致しているかを照合し(ステップS181)、一致していない場合(ステップS181でNoの場合)にはデータ異常である旨を表示部13に表示して(ステップS182)、ステップS180に処理が戻る。   On the other hand, when the external data write-back is permitted (Yes in step S178), the external data write-back unit 22 sends the external data corresponding to the entered password in the external data storage unit 14 to the external Writing back to the storage medium 50 (step S180). Thereafter, the external data write-back unit 22 collates whether the external storage medium 50 and the two external data in the external data storage unit 14 match (step S181). If they do not match (No in step S181) In the case), the display unit 13 displays that the data is abnormal (step S182), and the process returns to step S180.

また、両者が一致している場合(ステップS181でYesの場合)には、設定情報を参照し、外部データ保存部14内の外部データを消去するか否かを判定する(ステップS183)。外部データ保存部14内のデータを消去する場合(ステップS183でYesの場合)には、外部データ保存部14内の外部データを消去し(ステップS184)、パスワード−外部データ対応情報の対応するレコードのパスワードを消去する(ステップS185)。   If they match (Yes in step S181), the setting information is referenced to determine whether or not to delete the external data in the external data storage unit 14 (step S183). When erasing the data in the external data storage unit 14 (Yes in step S183), the external data in the external data storage unit 14 is deleted (step S184), and the corresponding record of the password-external data correspondence information Is deleted (step S185).

その後またはステップS183で外部データ保存部14内の外部データを消去しない場合(ステップS183でNoの場合)には、外部記憶媒体50が取り外し可能な状態となり(ステップS186)、処理が終了する。   Thereafter, or when the external data in the external data storage unit 14 is not deleted in step S183 (No in step S183), the external storage medium 50 becomes removable (step S186), and the process ends.

図27は、実施の形態5によるデータの書戻し処理の手順の概要を模式的に示す図である。図27(a)に示されるように、制御装置10の内部記憶部103の外部データ保存領域1031には、外部データS1が保存され、パスワード−外部データ対応情報1032には外部データS1に対応するパスワードS1が記憶され、設定情報1033には外部記憶媒体50に対応する設定情報S1が記憶されている状態にある。   FIG. 27 is a diagram schematically illustrating an outline of a procedure of data write-back processing according to the fifth embodiment. As shown in FIG. 27A, the external data S1 is stored in the external data storage area 1031 of the internal storage unit 103 of the control device 10, and the password-external data correspondence information 1032 corresponds to the external data S1. The password S1 is stored, and the setting information 1033 is in a state where the setting information S1 corresponding to the external storage medium 50 is stored.

書戻し処理の実行では、外部記憶媒体50が装着されているかが確認され、その後入力されたパスワードがパスワード−外部データ対応情報に記憶されているパスワードS1と一致するかの判定が行われ、さらに外部記憶媒体50の書戻し許可情報S1には外部データS1の書戻しが許可されているかが判定される。   In the execution of the write-back process, it is confirmed whether or not the external storage medium 50 is mounted, and then it is determined whether or not the input password matches the password S1 stored in the password-external data correspondence information. It is determined whether the write-back permission information S1 of the external storage medium 50 is permitted to write back the external data S1.

その後、外部記憶媒体50の書戻し許可情報S1に外部データS1の書戻しが許可されている場合には、図27(b)に示されるように、外部データ保存領域1032の外部データS1が外部記憶媒体50にコピーされ、書戻される。   Thereafter, when the write-back permission information S1 of the external storage medium 50 permits the write-back of the external data S1, the external data S1 in the external data storage area 1032 is externally stored as shown in FIG. Copied to the storage medium 50 and written back.

なお、上記した説明では、外部記憶媒体50の種類ごとに設定を行っていたが、種類ではなく、個体ごとに識別して設定を行うようにしてもよい。この場合には、設定情報とパスワード−外部データ対応情報とを個体ごとに管理すればよい。また、外部記憶媒体50を個体ごとに識別する方法としては、たとえば製品個々の情報を示す個体識別情報などを用いることができる。   In the above description, the setting is made for each type of the external storage medium 50. However, instead of the type, the setting may be made by identifying each individual. In this case, setting information and password-external data correspondence information may be managed for each individual. In addition, as a method for identifying the external storage medium 50 for each individual, for example, individual identification information indicating individual product information can be used.

図28は、外部記憶媒体を個体ごとに管理する場合のパスワード−外部データ対応情報の一例を示す図である。この図に示されるように、図24の設定情報に外部記憶媒体についての固有情報である個体識別情報がさらに追加された構造となっている。   FIG. 28 is a diagram showing an example of password-external data correspondence information when managing external storage media for each individual. As shown in this figure, it has a structure in which individual identification information which is unique information about the external storage medium is further added to the setting information of FIG.

たとえば個体識別情報が「SDカード1」の場合には、種別情報は「SDカード」であり、データ保護機能は有りで、データ書戻し先も指定されており、データ書戻し先情報として、SDカード、USBメモリ、コンパクトフラッシュ(登録商標)の種別が登録され、内部記憶部内データ消去は有りに設定されている。   For example, when the individual identification information is “SD card 1”, the type information is “SD card”, the data protection function is provided, the data write back destination is also designated, and the data write back destination information is SD. Types of card, USB memory, and compact flash (registered trademark) are registered, and data deletion in the internal storage unit is set to “Yes”.

また、たとえば個体識別情報が「USBメモリ1」の場合には、種別情報は「USBメモリ」であり、データ保護機能は有りで、データ書戻し先とデータ書戻し先情報は指定されておらず、内部記憶部内データ消去は有りに設定されている。   For example, when the individual identification information is “USB memory 1”, the type information is “USB memory”, the data protection function is provided, and the data write-back destination and the data write-back destination information are not specified. The data deletion in the internal storage unit is set to “Yes”.

さらに、個体識別情報が「コンパクトフラッシュ(登録商標)1」の場合には、種別情報は「コンパクトフラッシュ(登録商標)」であり、データ保護機能は有りで、データ書戻し先、データ書戻し先情報および内部記憶部内データ消去はともに設定されていない。また、個体識別情報が「SDカード2」、「USBメモリ2」、「コンパクトフラッシュ(登録商標)2」は、それぞれ制御装置10に未接続で、設定前の状態であり、何も設定されていない。   Further, when the individual identification information is “compact flash (registered trademark) 1”, the type information is “compact flash (registered trademark)”, the data protection function is provided, the data write back destination, the data write back destination Neither information nor erasure of data in the internal storage unit is set. The individual identification information “SD card 2”, “USB memory 2”, and “Compact Flash (registered trademark) 2” are not connected to the control device 10 and are in a state before setting, and nothing is set. Absent.

図29は、複数種類の外部記憶媒体と着脱可能な制御装置でのパスワード−外部データ対応情報と設定情報の関係を模式的に示す図である。図29(a)に示されるように、制御装置10には、SDカード用のメモリインタフェース104Aと、USBメモリ用のメモリインタフェース104Bと、コンパクトフラッシュ(登録商標)用のメモリインタフェース104Cと、が設けられている。外部記憶媒体として、SDカード51A,51B、USBメモリ52A,52B、コンパクトフラッシュ(登録商標)53A,53Bなどがある。また、ここでは設定情報1033は、外部記憶媒体の種類ではなく、個体ごとに設けられるものとする。   FIG. 29 is a diagram schematically showing the relationship between password-external data correspondence information and setting information in a plurality of types of external storage media and removable control devices. As shown in FIG. 29A, the control device 10 is provided with a memory interface 104A for SD card, a memory interface 104B for USB memory, and a memory interface 104C for CompactFlash (registered trademark). It has been. Examples of external storage media include SD cards 51A and 51B, USB memories 52A and 52B, and compact flash (registered trademark) 53A and 53B. Here, it is assumed that the setting information 1033 is provided for each individual, not for the type of the external storage medium.

図29(b)は、制御装置10のメモリインタフェース104AにSDカード51Aが接続され、メモリインタフェース104BにUSBメモリ52Aが接続され、メモリインタフェース104Cにコンパクトフラッシュ(登録商標)53Aが接続されている状態が示されている。また、内部記憶部103の設定情報1033には、SDカード51A、USBメモリ52Aおよびコンパクトフラッシュ(登録商標)53Aのそれぞれのレコードが登録されている。内部記憶部103の外部データ保存領域1031には、SDカード51AとUSBメモリ52Aの外部データS1,U1が退避され、それに対応してパスワード−外部データ対応情報1032には、SDカード51AとUSBメモリ52AのパスワードS1,U1が格納される。しかし、コンパクトフラッシュ(登録商標)53Aの外部データC1は内部記憶部103の外部データ保存領域1031には保存されない。また、SDカード51Aには、許可情報S1が保存されている。   FIG. 29B shows a state in which the SD card 51A is connected to the memory interface 104A of the control device 10, the USB memory 52A is connected to the memory interface 104B, and the compact flash (registered trademark) 53A is connected to the memory interface 104C. It is shown. In the setting information 1033 of the internal storage unit 103, records of the SD card 51A, the USB memory 52A, and the compact flash (registered trademark) 53A are registered. The external data S1 and U1 of the SD card 51A and the USB memory 52A are saved in the external data storage area 1031 of the internal storage unit 103, and the SD card 51A and the USB memory are correspondingly stored in the password-external data correspondence information 1032. 52A passwords S1 and U1 are stored. However, the external data C1 of the compact flash (registered trademark) 53A is not stored in the external data storage area 1031 of the internal storage unit 103. Further, permission information S1 is stored in the SD card 51A.

また、上記した説明では、設定情報をパスワード−外部データ対応情報とは別個に管理する場合を示したが、パスワード−外部データ対応情報に設定情報を含ませるようにしてもよい。図30は、設定情報の内容を含むパスワード−外部データ対応情報の一例を示す図である。この図に示されるように、外部データとパスワードの組み合わせに対して、データ書戻し先媒体情報などの設定情報が関連付けされ、レコードとして保存される。   In the above description, the setting information is managed separately from the password-external data correspondence information. However, the setting information may be included in the password-external data correspondence information. FIG. 30 is a diagram illustrating an example of password-external data correspondence information including the contents of setting information. As shown in this figure, setting information such as data write-back destination medium information is associated with a combination of external data and a password and stored as a record.

実施の形態5では、外部記憶媒体50が制御装置10に接続されると、データ保護機能の有無、データ書戻し先の指定の有無、書戻し後の外部データ保存部14内の外部データの消去の有無を含む設定情報を設定し、その内容に基づいて処理を行うことにした。そのため、外部記憶媒体50の種類ごとまたは個体ごとに、外部データの書戻しの可否を設定することができ、不正な外部データの持ち去りを防ぐことができるという効果を有する。   In the fifth embodiment, when the external storage medium 50 is connected to the control device 10, the presence / absence of the data protection function, the presence / absence of the designation of the data write-back destination, the erasure of the external data in the external data storage unit 14 after the write-back Setting information including the presence or absence of is set and processing is performed based on the contents. Therefore, it is possible to set whether or not external data can be written back for each type or individual of the external storage medium 50, and it is possible to prevent unauthorized removal of external data.

実施の形態6.
実施の形態6では、外部記憶媒体にキー(鍵)の役目を持たせる場合について説明する。
Embodiment 6 FIG.
In the sixth embodiment, a case where a key role is given to an external storage medium will be described.

図31は、実施の形態6による制御装置の機能構成を模式的に示すブロック図である。この制御装置10は、実施の形態5の制御装置に、外部記憶媒体50の制御装置10への着脱状態を検知する外部記憶媒体着脱検知部30をさらに備える。外部記憶媒体着脱検知部30は、外部記憶媒体50内の外部データが外部データ保存部14へ退避された後、退避された外部データを実行する際に、実行する外部データを格納していた外部記憶媒体50が制御装置10に装着されているか否かを判定し、その結果を制御処理部24に通知する。つまり、実行する外部データを格納していた外部記憶媒体50が装着されている場合には、制御処理部24は外部データ(プログラムまたはパラメータなどのデータ)を実行することができ、実行する外部データを格納していた外部記憶媒体50が離脱されている場合または実行する外部データを格納していた外部記憶媒体50とは異なる外部記憶媒体50が装着されている場合には、制御処理部24は外部データを実行することができない。   FIG. 31 is a block diagram schematically showing a functional configuration of the control device according to the sixth embodiment. The control device 10 further includes an external storage medium attachment / detachment detection unit 30 that detects the attachment / detachment state of the external storage medium 50 to / from the control device 10 in the control device of the fifth embodiment. The external storage medium attachment / detachment detection unit 30 stores the external data to be executed when executing the saved external data after the external data in the external storage medium 50 is saved to the external data storage unit 14. It is determined whether or not the storage medium 50 is attached to the control device 10, and the result is notified to the control processing unit 24. That is, when the external storage medium 50 that stores the external data to be executed is loaded, the control processing unit 24 can execute the external data (data such as a program or parameters), and the external data to be executed When the external storage medium 50 that stores the external storage medium 50 is detached or the external storage medium 50 that is different from the external storage medium 50 that stores the external data to be executed is mounted, the control processing unit 24 External data cannot be executed.

図32は、実施の形態6による設定情報の構成の一例を示す図である。設定情報には、外部記憶媒体50をコピーした外部データの実行キーとして利用するか否かを示す項目がさらに付加されている。実行キーとして利用すると設定されている場合には、外部記憶媒体50が装着されていなければ、外部記憶媒体50に元々保存されていた外部データを実行することができない。一方、実行キーとして利用しないと設定されている場合には、外部記憶媒体50の装着の有無にかかわらず外部データを実行することができる。なお、その他の構成は、実施の形態5で説明したものと同様であるのでその説明を省略する。   FIG. 32 is a diagram illustrating an example of a configuration of setting information according to the sixth embodiment. In the setting information, an item indicating whether or not to use the external storage medium 50 as an execution key for copied external data is further added. If it is set to be used as an execution key, the external data originally stored in the external storage medium 50 cannot be executed unless the external storage medium 50 is attached. On the other hand, when it is set not to use as an execution key, external data can be executed regardless of whether or not the external storage medium 50 is attached. Since other configurations are the same as those described in the fifth embodiment, description thereof is omitted.

外部記憶媒体着脱検知部30は、たとえば、装着されている外部記憶媒体50の種別情報または個体識別情報を取得し、制御処理部24で実行しようとしている外部データに設定情報で対応付けられた種別情報または個体識別情報が取得した種別情報または個体識別情報を有しているか否かを判定することによって、制御処理部24に外部データを実行可能であるか否かを通知することができる。   The external storage medium attachment / detachment detection unit 30 acquires, for example, the type information or individual identification information of the attached external storage medium 50, and the type associated with the external data to be executed by the control processing unit 24 using the setting information. By determining whether the information or individual identification information has the acquired type information or individual identification information, it is possible to notify the control processing unit 24 whether or not external data can be executed.

図33は、実施の形態6による外部データの実行処理の手順の一例を示すフローチャートである。まず、制御処理部24によって実行する外部データが選択されると(ステップS191)、外部記憶媒体着脱検知部30は、設定情報を用いて、実行する外部データを保存していた外部記憶媒体50の種別情報または個体識別情報を取得する(ステップS192)。また、外部記憶媒体着脱検知部30は、外部記憶媒体インタフェース11に外部記憶媒体50が装着されているかを判定する(ステップS193)。外部記憶媒体50が装着されている場合(ステップS193でYesの場合)には、さらにその外部記憶媒体50の種別情報または個体識別情報を取得する(ステップS194)。その後、外部記憶媒体着脱検知部30は、取得した2つの種別情報または個体識別情報が一致するかを判定する(ステップS195)。   FIG. 33 is a flowchart illustrating an example of a procedure of external data execution processing according to the sixth embodiment. First, when external data to be executed is selected by the control processing unit 24 (step S191), the external storage medium attachment / detachment detection unit 30 uses the setting information to store the external data to be executed. Type information or individual identification information is acquired (step S192). Further, the external storage medium attachment / detachment detection unit 30 determines whether the external storage medium 50 is attached to the external storage medium interface 11 (step S193). If the external storage medium 50 is attached (Yes in step S193), the type information or individual identification information of the external storage medium 50 is further acquired (step S194). Thereafter, the external storage medium attachment / detachment detection unit 30 determines whether the acquired two type information or individual identification information matches (step S195).

両者が一致する場合(ステップS195でYesの場合)には、外部記憶媒体着脱検知部30は、制御処理部24に2つの種別情報または個体識別情報が一致する旨を通知する。これによって、制御処理部24は選択した外部データを実行し(ステップS197)、処理が終了する。   If they match (Yes in step S195), the external storage medium attachment / detachment detection unit 30 notifies the control processing unit 24 that the two types of information or individual identification information match. As a result, the control processing unit 24 executes the selected external data (step S197), and the process ends.

一方、両者が一致しない場合(ステップS195でNoの場合)には、外部記憶媒体着脱検知部30は、制御処理部24に2つの種別情報または個体識別情報が一致しない旨を通知する。その後、制御処理部24は、選択した外部データを実行することができず(ステップS197)、外部記憶媒体着脱検知部30は、正しい外部記憶媒体50を装着することを促すメッセージを表示部13に表示し(ステップS198)、処理が終了する。   On the other hand, if both do not match (No in step S195), the external storage medium attachment / detachment detection unit 30 notifies the control processing unit 24 that the two types of information or individual identification information do not match. Thereafter, the control processing unit 24 cannot execute the selected external data (step S197), and the external storage medium attachment / detachment detection unit 30 displays a message on the display unit 13 to prompt the user to attach the correct external storage medium 50. This is displayed (step S198), and the process ends.

また、ステップS193で外部記憶媒体インタフェース11に外部記憶媒体50が装着されていない場合(ステップS193でNoの場合)には、外部記憶媒体着脱検知部30は、制御処理部24に外部記憶媒体50が装着されていない旨を通知する。その後、制御処理部24は、選択した外部データを実行することができず(ステップS199)、外部記憶媒体着脱検知部30は、外部記憶媒体50を装着することを促すメッセージを表示部13に表示し(ステップS200)、処理が終了する。   When the external storage medium 50 is not attached to the external storage medium interface 11 in step S193 (No in step S193), the external storage medium attachment / detachment detection unit 30 sends the external storage medium 50 to the control processing unit 24. Notify that is not installed. Thereafter, the control processing unit 24 cannot execute the selected external data (step S199), and the external storage medium attachment / detachment detection unit 30 displays a message prompting the user to attach the external storage medium 50 on the display unit 13. (Step S200), and the process ends.

図34と図35は、実施の形態6による外部データの実行処理の状態の一例を模式的に示す図である。図34(a)に示されるように、外部記憶媒体50から内部記憶部103の外部データ保存領域1031に外部データ351が退避され、空の外部記憶媒体50が制御装置10に装着された状態にある。この状態で、外部データ保存領域1031の外部データ351の実行が指示されると、CPU101は、外部データ351に対応付けられた種別情報または個体識別情報を有する外部記憶媒体50が接続されているかを確認する。   FIG. 34 and FIG. 35 are diagrams schematically illustrating an example of a state of external data execution processing according to the sixth embodiment. As shown in FIG. 34A, the external data 351 is saved from the external storage medium 50 to the external data storage area 1031 of the internal storage unit 103, and the empty external storage medium 50 is attached to the control device 10. is there. In this state, when execution of the external data 351 in the external data storage area 1031 is instructed, the CPU 101 determines whether the external storage medium 50 having type information or individual identification information associated with the external data 351 is connected. Check.

ついで、図34(b)に示されるように、外部記憶媒体50の接続が確認され、かつ外部記憶媒体50が制御装置10に装着されている状態では、CPU101は外部データ保存領域1031の外部データ351を実行することができる。   Next, as shown in FIG. 34 (b), when the connection of the external storage medium 50 is confirmed and the external storage medium 50 is mounted in the control device 10, the CPU 101 stores the external data in the external data storage area 1031. 351 can be executed.

一方、図35(a)に示されるように、外部記憶媒体50が制御装置10から取り外されてしまった場合には、CPU101は外部記憶媒体50が制御装置10に接続されているかの確認を行う。このとき、CPU101は、外部記憶媒体50が制御装置10に接続されていないことを確認する。外部記憶媒体50が制御装置10に接続されていないと、図35(b)に示されるように、CPU101は、外部データ351を実行することができない状態となる。   On the other hand, as shown in FIG. 35A, when the external storage medium 50 is removed from the control device 10, the CPU 101 confirms whether the external storage medium 50 is connected to the control device 10. . At this time, the CPU 101 confirms that the external storage medium 50 is not connected to the control device 10. If the external storage medium 50 is not connected to the control device 10, as shown in FIG. 35 (b), the CPU 101 cannot execute the external data 351.

なお、外部記憶媒体50が装着された場合の処理と、外部記憶媒体50が離脱される場合の処理とは、実施の形態5で説明したものとほぼ同様であるので、その説明を省略する。   Note that the processing when the external storage medium 50 is mounted and the processing when the external storage medium 50 is detached are substantially the same as those described in the fifth embodiment, and thus description thereof is omitted.

実施の形態6では、外部記憶媒体50から外部データ保存部14に外部データを退避した後、その外部データを保存していた外部記憶媒体50が制御装置10に装着されている状態でなければ、外部データを実行することができないようにした。これによって、ユーザが制御装置10の近くに存在する場合でなければ、外部記憶媒体50に保存された外部データを実行することができない。その結果、たとえばユーザが外部記憶媒体50を抜き取って制御装置10の近傍から離れたときに、第三者が制御装置10に他の外部記憶媒体50を装着しても、制御装置10がユーザに不測の動作をすることがない。   In the sixth embodiment, after external data is saved from the external storage medium 50 to the external data storage unit 14, the external storage medium 50 storing the external data is not in a state of being attached to the control device 10. The external data cannot be executed. As a result, the external data stored in the external storage medium 50 cannot be executed unless the user is near the control device 10. As a result, for example, when the user pulls out the external storage medium 50 and leaves the vicinity of the control device 10, even if a third party attaches another external storage medium 50 to the control device 10, the control device 10 There is no unexpected behavior.

実施の形態7.
上記した実施の形態では、外部データ保存部の外部データを外部記憶媒体に書戻す場合には、平文の形で書戻していた。実施の形態7では、暗号文の形で書戻す場合を説明する。
Embodiment 7 FIG.
In the above embodiment, when the external data stored in the external data storage unit is written back to the external storage medium, it is written back in the form of plain text. In the seventh embodiment, the case of writing back in the form of ciphertext will be described.

実施の形態7における制御装置10は、上記してきた実施の形態の制御装置10と構成は同一であるが、外部データ書戻し部22の機能が異なる。外部データ書戻し部22は、書戻し処理のコマンドが実行され、パスワードが入力されると、外部データ保存部14内の対象となる外部データを入力されたパスワード(対象となる外部データに対応付けられたパスワード)を用いて暗号化し、暗号化した外部データを外部記憶媒体50にコピーする。また、コピー後のデータの照合は、外部記憶媒体50にコピーされた暗号化した外部データと、コピー元の暗号化した外部データとで行われる。   The control device 10 in the seventh embodiment has the same configuration as that of the control device 10 in the above-described embodiment, but the function of the external data write-back unit 22 is different. When the write-back processing command is executed and the password is input, the external data write-back unit 22 associates the external data to be stored in the external data storage unit 14 with the input password (corresponding to the target external data). And the encrypted external data is copied to the external storage medium 50. Further, the collation of the data after copying is performed by the encrypted external data copied to the external storage medium 50 and the encrypted external data of the copy source.

つぎに、このような外部データの書戻し処理について説明する。なお、実施の形態7における外部記憶媒体50が装着された場合の処理については、上記した実施の形態と同様であるので、説明を省略する。図36と図37は、実施の形態7による外部データの書戻し処理の手順の一例を模式的に示す図である。なお、ここでは書戻し処理の要部のみを説明する。   Next, the external data write-back process will be described. Note that the processing when the external storage medium 50 is mounted in the seventh embodiment is the same as that in the above-described embodiment, and thus the description thereof is omitted. FIG. 36 and FIG. 37 are diagrams schematically illustrating an example of the procedure of external data write-back processing according to the seventh embodiment. Only the main part of the write-back process will be described here.

まず、図36(a)に示されるように、制御装置10には外部記憶媒体50が装着され、外部記憶媒体50に保存されていたデータは外部データ保存部14に退避された状態にある。この状態で、操作盤105を介してユーザが外部記憶媒体50の取り外しコマンドの実行を指示する。   First, as shown in FIG. 36A, the external storage medium 50 is attached to the control device 10, and the data stored in the external storage medium 50 is in a state of being saved in the external data storage unit 14. In this state, the user instructs execution of the removal command for the external storage medium 50 via the operation panel 105.

外部記憶媒体50の取り外しコマンドが実行されると、図36(b)に示されるように、パスワードの入力画面が表示部13に表示され、ユーザによって操作盤105を介してパスワードが入力される。入力されたパスワードは、パスワード−外部データ対応情報1032中のパスワードと一致するか照合される。   When the removal command for the external storage medium 50 is executed, a password input screen is displayed on the display unit 13 as shown in FIG. 36B, and the password is input by the user via the operation panel 105. The input password is verified whether it matches the password in the password-external data correspondence information 1032.

ついで、図37(a)に示されるように、外部データ書戻し部22は、入力されたパスワードに対応付けられた外部データ保存領域1031内の外部データ351を、入力されたパスワードで暗号化し、図示しない暗号化外部データを生成する。その後、外部データ書戻し部22は、暗号化外部データを外部記憶媒体50にコピーし、コピーした暗号化外部データ301Aがコピー元の暗号化外部データと一致するかを照合する。   Next, as shown in FIG. 37A, the external data writing-back unit 22 encrypts the external data 351 in the external data storage area 1031 associated with the input password with the input password, Encrypted external data (not shown) is generated. Thereafter, the external data write-back unit 22 copies the encrypted external data to the external storage medium 50, and verifies whether the copied encrypted external data 301A matches the copy source encrypted external data.

そして、両者が一致する場合には、図37(b)に示されるように、暗号化外部データ301Aがコピーされた外部記憶媒体50が制御装置10から取り外し可能な状態となる。なお、暗号化外部データ301Aの基となる外部データ351については、上記した実施の形態で説明したように処理される。また、制御装置10内で生成された暗号化外部データは、照合後に削除されてもよいし、そのままデータ保存領域に残してもよい。また、このように、制御装置10内の外部データ351を暗号化外部データ301Aとして外部記憶媒体50に書戻す処理は、上記した各実施の形態に対して適用することができる。   If they match, the external storage medium 50 to which the encrypted external data 301A has been copied becomes removable from the control device 10 as shown in FIG. Note that the external data 351 that is the basis of the encrypted external data 301A is processed as described in the above embodiment. Further, the encrypted external data generated in the control device 10 may be deleted after collation or may be left in the data storage area as it is. In addition, the process of writing the external data 351 in the control device 10 back to the external storage medium 50 as the encrypted external data 301A as described above can be applied to the above-described embodiments.

実施の形態7では、外部記憶媒体50に外部データ保存部14内の外部データを書戻す処理を行う場合に、その外部データに対して設定されたパスワードを用いて暗号化した暗号化外部データを外部記憶媒体50に書戻した。これによって、外部記憶媒体50に外部データを書戻した状態で外部記憶媒体50が盗難された場合でも、外部記憶媒体50内の外部データが閲覧されてしまう確率を低減することができるという効果を有する。   In the seventh embodiment, when the external data in the external data storage unit 14 is written back to the external storage medium 50, the encrypted external data encrypted using the password set for the external data is stored. The data was written back to the external storage medium 50. Thus, even when the external storage medium 50 is stolen in a state where the external data is written back to the external storage medium 50, the probability that the external data in the external storage medium 50 is browsed can be reduced. Have.

実施の形態8.
実施の形態2では、外部データ保存部の空き容量が外部記憶媒体に保存されている外部データの合計サイズよりも小さい場合に、優先度の高い外部データを外部データ保存部に保存し、優先度の低い外部データは外部記憶媒体に残存させたままとした。実施の形態8では、外部記憶媒体に残存させるデータを暗号化する場合について説明する。
Embodiment 8 FIG.
In the second embodiment, when the free space of the external data storage unit is smaller than the total size of the external data stored in the external storage medium, the high-priority external data is stored in the external data storage unit. Low external data was left on the external storage medium. In the eighth embodiment, a case where data remaining in an external storage medium is encrypted will be described.

実施の形態8による制御装置10は、実施の形態2の制御装置10において、外部データ保存処理部18の機能が異なる。すなわち、外部データ保存処理部18は、外部記憶媒体50の外部データを外部データ保存部14に退避する際、外部データ保存部14の空き容量が外部記憶媒体50の外部データの合計サイズよりも小さい場合に、退避外部データを外部データ保存部14にコピーするとともに、外部記憶媒体50に残る残存外部データを設定されたパスワードで暗号化して暗号化外部データを生成し、外部記憶媒体50に保存し、残存外部データを削除する機能をさらに備える。   The control device 10 according to the eighth embodiment differs from the control device 10 according to the second embodiment in the function of the external data storage processing unit 18. That is, when the external data storage processing unit 18 saves the external data of the external storage medium 50 to the external data storage unit 14, the free space of the external data storage unit 14 is smaller than the total size of the external data of the external storage medium 50. In this case, the saved external data is copied to the external data storage unit 14, and the remaining external data remaining in the external storage medium 50 is encrypted with the set password to generate encrypted external data, which is stored in the external storage medium 50. And a function of deleting the remaining external data.

図38は、実施の形態8による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。まず、実施の形態2の図10のステップS51〜S57と同様に、外部記憶媒体50が制御装置10に装着されると、外部データ保存領域設定部15が内部記憶部に外部データ保存領域を設定し、外部データ保存領域の容量が外部記憶媒体50の外部データの合計サイズよりも小さい場合に、退避可能データ容量を基に、外部データ保存部14に退避する退避外部データと外部記憶媒体50に残存させる残存外部データとに振り分ける。そして、データ書戻し時のパスワードを設定し、設定したパスワードをパスワード−外部データ対応情報に保存する(ステップS211〜S217)。   FIG. 38 is a flowchart illustrating an example of a processing procedure when an external storage medium is mounted on the control device according to the eighth embodiment. First, as in steps S51 to S57 of FIG. 10 of the second embodiment, when the external storage medium 50 is loaded in the control device 10, the external data storage area setting unit 15 sets an external data storage area in the internal storage unit. When the capacity of the external data storage area is smaller than the total size of the external data in the external storage medium 50, the saved external data saved in the external data saving unit 14 and the external storage medium 50 are saved based on the saveable data capacity. Sort to remaining external data to remain. Then, a password for data writing back is set, and the set password is stored in the password-external data correspondence information (steps S211 to S217).

ついで、外部記憶媒体50中の残存外部データを、ステップS216で設定されたパスワードを用いて暗号化して暗号化残存外部データを生成し(ステップS218)、暗号化残存外部データを外部記憶媒体50に保存し、外部記憶媒体50中の残存外部データを消去する(ステップS219)。このとき、外部データ保存処理部18は、退避外部データ以外(残存外部データ)は暗号化して外部記憶媒体50に保存する旨の表示を表示部13に出力してもよい。   Next, the remaining external data in the external storage medium 50 is encrypted using the password set in step S216 to generate encrypted remaining external data (step S218), and the encrypted remaining external data is stored in the external storage medium 50. Save and erase the remaining external data in the external storage medium 50 (step S219). At this time, the external data storage processing unit 18 may output a display to the display unit 13 indicating that data other than the saved external data (remaining external data) is encrypted and stored in the external storage medium 50.

その後、外部記憶媒体50中の退避外部データを外部データ保存部14の外部データ保存領域にコピーする(ステップS220)。そして、実施の形態2の図10のステップS59〜S63と同様に、外部記憶媒体50と外部データ保存部14の退避外部データとの照合を行い、外部データ保存部14に保存した退避外部データの保存位置をパスワード−外部データ対応情報に登録し、外部記憶媒体50内の退避外部データを消去する(ステップS221〜S225)。以上で、処理が終了する。   Thereafter, the saved external data in the external storage medium 50 is copied to the external data storage area of the external data storage unit 14 (step S220). Then, similarly to steps S59 to S63 of FIG. 10 of the second embodiment, the external storage medium 50 and the saved external data of the external data storage unit 14 are collated, and the saved external data stored in the external data storage unit 14 is checked. The storage position is registered in the password-external data correspondence information, and the saved external data in the external storage medium 50 is deleted (steps S221 to S225). This is the end of the process.

図39は、実施の形態8による外部データが処理される様子を模式的に示す図である。図39(a)で、外部記憶媒体50中の外部データ301,302が退避外部データであり、外部データ303,304が残存外部データに指定されたものとする。パスワードが設定されると、図39(b)に示されるように、残存外部データ303,304が設定されたパスワードによって暗号化され、暗号化外部データ303X,304Xとして外部記憶媒体50に保存される。そして、外部データ303,304は外部記憶媒体50から消去される。一方、退避外部データ301,302は、実施の形態2と同様に内部記憶部103の空き領域1031Bにコピーされる。   FIG. 39 is a diagram schematically illustrating how external data according to the eighth embodiment is processed. In FIG. 39A, it is assumed that the external data 301 and 302 in the external storage medium 50 are saved external data, and the external data 303 and 304 are designated as remaining external data. When the password is set, as shown in FIG. 39B, the remaining external data 303 and 304 are encrypted with the set password and stored in the external storage medium 50 as encrypted external data 303X and 304X. . Then, the external data 303 and 304 are erased from the external storage medium 50. On the other hand, the saved external data 301 and 302 are copied to the free area 1031B of the internal storage unit 103 as in the second embodiment.

外部記憶媒体50を制御装置10から離脱する場合には、図39(c)に示されるように、外部データ書戻し部22が、外部データ保存部14中の退避外部データ301,302を外部記憶媒体50にコピーするとともに、入力されたパスワードを用いて外部記憶媒体50中の暗号化外部データ303X,304Xを復号化して平文の残存外部データ303,304を外部記憶媒体50に保存し、暗号化外部データ303X,304Xを消去するようにしてもよい。この場合には、外部データ書戻し部22は、パスワードを用いて外部記憶媒体50中の暗号化データを復号化する機能を有することになる。   When the external storage medium 50 is detached from the control device 10, as shown in FIG. 39C, the external data write-back unit 22 stores the saved external data 301 and 302 in the external data storage unit 14 as external storage. The encrypted external data 303X and 304X in the external storage medium 50 are decrypted using the input password, and the plaintext remaining external data 303 and 304 are stored in the external storage medium 50 for encryption. The external data 303X and 304X may be deleted. In this case, the external data write-back unit 22 has a function of decrypting the encrypted data in the external storage medium 50 using a password.

あるいは、図39(d)に示されるように、外部データ書戻し部22が、入力されたパスワードを用いて外部データ保存部14中の退避外部データ301,302を暗号化して暗号化外部データ301X,302Xを生成し、この暗号化外部データ301X,302Xを外部記憶媒体50にコピーしてもよい。この場合には、外部データ書戻し部22は、パスワードを用いて外部データ保存部14中の外部データを暗号化して外部記憶媒体50に保存する機能を有することになる。   Alternatively, as shown in FIG. 39 (d), the external data write-back unit 22 encrypts the saved external data 301 and 302 in the external data storage unit 14 using the input password, and encrypts the external data 301X. , 302X may be generated and the encrypted external data 301X, 302X may be copied to the external storage medium 50. In this case, the external data write-back unit 22 has a function of encrypting the external data in the external data storage unit 14 using a password and storing it in the external storage medium 50.

実施の形態8では、外部データ保存領域の容量が外部記憶媒体50の外部データの合計サイズよりも小さく、外部データの一部のみが外部データ保存部14に退避され、他が外部記憶媒体50に残される場合に、残される外部データを暗号化するようにした。これによって、外部記憶媒体50が作業中に抜き取られてしまった場合でも、外部記憶媒体50内の外部データの内容が見られてしまう確率を低減させることができるという効果を有する。   In the eighth embodiment, the capacity of the external data storage area is smaller than the total size of the external data in the external storage medium 50, only a part of the external data is saved in the external data storage unit 14, and the other is stored in the external storage medium 50. When the data is left, the remaining external data is encrypted. As a result, even when the external storage medium 50 is extracted during work, the probability that the contents of the external data in the external storage medium 50 can be seen can be reduced.

実施の形態9.
上記した実施の形態では、外部記憶媒体を制御装置に装着し、外部データを外部データ保存部に退避した後の制御装置の動作と装着状態の関係については、実施の形態7以外では特に言及しなかった。実施の形態9では、制御装置を実行する場合に外部記憶媒体を離脱させることについて説明する。
Embodiment 9 FIG.
In the above-described embodiment, the relationship between the operation of the control device after the external storage medium is attached to the control device and the external data is saved in the external data storage unit and the attachment state is particularly referred to except for the seventh embodiment. There wasn't. In the ninth embodiment, the case where the external storage medium is detached when the control device is executed will be described.

図40は、実施の形態9による制御装置の機能構成を模式的に示すブロック図である。この制御装置10は、外部記憶媒体インタフェース11と、入力部12と、表示部13と、外部データ保存部14と、外部データ保存処理部18と、制御処理部24と、外部記憶媒体着脱検知部30と、を備える。   FIG. 40 is a block diagram schematically showing a functional configuration of the control device according to the ninth embodiment. The control device 10 includes an external storage medium interface 11, an input unit 12, a display unit 13, an external data storage unit 14, an external data storage processing unit 18, a control processing unit 24, and an external storage medium attachment / detachment detection unit. 30.

外部記憶媒体着脱検知部30は、外部記憶媒体50が制御装置10に装着されているか否かを検知する。たとえば、制御処理部24がプログラムを実行する際に、外部記憶媒体着脱検知部30に問い合わせを行い、外部記憶媒体50の装着状態を制御処理部24に通知する。   The external storage medium attachment / detachment detection unit 30 detects whether or not the external storage medium 50 is attached to the control device 10. For example, when the control processing unit 24 executes the program, it makes an inquiry to the external storage medium attachment / detachment detection unit 30 and notifies the control processing unit 24 of the mounting state of the external storage medium 50.

外部データ保存処理部18は、ユーザから外部記憶媒体50の外部データを制御装置10内にコピーする指示を受けると、外部記憶媒体50の外部データを外部データ保存部14にコピーする。   When receiving an instruction from the user to copy the external data in the external storage medium 50 into the control device 10, the external data storage processing unit 18 copies the external data in the external storage medium 50 to the external data storage unit 14.

制御処理部24は、外部データ保存部14に保存された外部データにアクセスする場合に、外部記憶媒体着脱検知部30に外部記憶媒体50が制御装置10に装着された状態にあるのか否かを問い合わせる。外部記憶媒体50が装着された状態にある場合には、外部データ保存部14の外部データへのアクセスが禁止され、外部記憶媒体50が離脱された状態にある場合には、外部データへのアクセスが可能となる。これは、外部データの制御装置10へのコピー後の外部記憶媒体50の装着状態の継続を防止するためである。なお、上記した実施の形態で説明したものと同一の構成要素には同一の符号を付してその説明を省略している。   When the control processing unit 24 accesses the external data stored in the external data storage unit 14, the control processing unit 24 determines whether the external storage medium 50 is attached to the control device 10 in the external storage medium attachment / detachment detection unit 30. Inquire. When the external storage medium 50 is attached, access to the external data of the external data storage unit 14 is prohibited. When the external storage medium 50 is detached, access to the external data is performed. Is possible. This is to prevent the external storage medium 50 from being attached after the external data is copied to the control device 10. In addition, the same code | symbol is attached | subjected to the component same as what was demonstrated in the above-mentioned embodiment, and the description is abbreviate | omitted.

つぎに、実施の形態9による処理について説明する。図41は、実施の形態9による外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。まず、外部記憶媒体50が装着される(ステップS231)。その後、ユーザから外部記憶媒体50の外部データの外部データ保存部14へのコピーの指示があると(ステップS232)、外部データ保存処理部18は、外部記憶媒体50中の外部データを外部データ保存部14にコピーする(ステップS233)。なお、実施の形態9では、上記したように外部記憶媒体50中の外部データを消去しなくてもよい。   Next, processing according to the ninth embodiment will be described. FIG. 41 is a flowchart illustrating an example of a processing procedure when an external storage medium according to the ninth embodiment is loaded. First, the external storage medium 50 is loaded (step S231). Thereafter, when the user gives an instruction to copy the external data in the external storage medium 50 to the external data storage unit 14 (step S232), the external data storage processing unit 18 stores the external data in the external storage medium 50 as external data. Copy to the unit 14 (step S233). In the ninth embodiment, it is not necessary to delete the external data in the external storage medium 50 as described above.

ついで、外部記憶媒体着脱検知部30は、外部記憶媒体50の接続状況を確認し、外部記憶媒体50が離脱されたかを判定する(ステップS234)。外部記憶媒体50が装着されている場合(ステップS234でNoの場合)には、コピーした外部データ保存部14内の外部データへのアクセスが禁止され(ステップS235)、ステップS234に戻る。   Next, the external storage medium attachment / detachment detection unit 30 confirms the connection status of the external storage medium 50 and determines whether the external storage medium 50 has been detached (step S234). If the external storage medium 50 is loaded (No in step S234), access to the external data in the copied external data storage unit 14 is prohibited (step S235), and the process returns to step S234.

一方、外部記憶媒体50が離脱された場合(ステップS234でYesの場合)には、制御処理部24は、コピーした外部データ保存部14内の外部データへのアクセスが初めて可能となる(ステップS236)。そして、制御処理部24は、外部データへのアクセスを行い(ステップS237)、処理が終了する。   On the other hand, when the external storage medium 50 is detached (Yes in step S234), the control processing unit 24 can access the external data in the copied external data storage unit 14 for the first time (step S236). ). Then, the control processing unit 24 accesses external data (step S237), and the process ends.

図42は、実施の形態9による外部記憶媒体が装着された場合の制御装置の処理状態を模式的に示す図である。図42(a)に示されるように、外部記憶媒体50が制御装置10に装着され、外部記憶媒体50中の外部データ301のコピーが指示されると、外部データ301が内部記憶部103に外部データ351としてコピーされる。   FIG. 42 is a diagram schematically illustrating a processing state of the control device when the external storage medium according to the ninth embodiment is loaded. As shown in FIG. 42A, when the external storage medium 50 is attached to the control device 10 and the copy of the external data 301 in the external storage medium 50 is instructed, the external data 301 is externally transferred to the internal storage unit 103. Copied as data 351.

ついで、CPU101は外部記憶媒体50が制御装置10に接続されているかを確認する。ここでは、外部記憶媒体50が制御装置10に接続されているので、CPU101は内部記憶部103内の外部データ351へのアクセスができない。   Next, the CPU 101 confirms whether the external storage medium 50 is connected to the control device 10. Here, since the external storage medium 50 is connected to the control device 10, the CPU 101 cannot access the external data 351 in the internal storage unit 103.

その後、図42(b)に示されるように、外部記憶媒体50が制御装置10から抜き取られると、CPU101が外部記憶媒体50が制御装置10から離脱したことを検出し、内部記憶部103内の外部データ351へのアクセスが可能になる。そして、外部データ351を用いた処理を実行することができる。   Thereafter, as shown in FIG. 42B, when the external storage medium 50 is removed from the control device 10, the CPU 101 detects that the external storage medium 50 has detached from the control device 10, and the internal storage unit 103 Access to the external data 351 becomes possible. Then, processing using the external data 351 can be executed.

実施の形態9では、外部記憶媒体50が装着されると、外部記憶媒体50内の外部データを外部データ保存部14にコピーし、その後外部記憶媒体50が接続されている間はコピーした外部データへのアクセスを禁止し、外部記憶媒体50が離脱した後にコピーした外部データへのアクセスを可能となるようにした。これによって、外部記憶媒体50が制御装置10に装着され続けてしまう状態を防ぐことができ、第三者による外部記憶媒体50の持ち去りを防止することができるという効果を有する。   In the ninth embodiment, when the external storage medium 50 is loaded, the external data in the external storage medium 50 is copied to the external data storage unit 14, and then the copied external data while the external storage medium 50 is connected. The access to the external data is prohibited, and the external data copied after the external storage medium 50 is detached can be accessed. As a result, it is possible to prevent the external storage medium 50 from being continuously attached to the control apparatus 10 and to prevent the external storage medium 50 from being taken away by a third party.

実施の形態10.
実施の形態10では、実施の形態9で外部記憶媒体が制御装置に装着されてから所定時間経過した後に、外部記憶媒体内の外部データを暗号化する場合について説明する。
Embodiment 10 FIG.
In the tenth embodiment, a case will be described in which the external data in the external storage medium is encrypted after a predetermined time has elapsed since the external storage medium was attached to the control device in the ninth embodiment.

図43は、実施の形態10による制御装置の機能構成を模式的に示すブロック図である。制御装置10は、外部記憶媒体インタフェース11と、入力部12と、表示部13と、外部データ保存部14と、ユーザ認証情報記憶部31と、ユーザ認証部32と、外部データ保存処理部18と、外部データ保護部33と、外部データ復号部34と、制御処理部24と、外部記憶媒体着脱検知部30と、を備える。   FIG. 43 is a block diagram schematically showing a functional configuration of the control device according to the tenth embodiment. The control device 10 includes an external storage medium interface 11, an input unit 12, a display unit 13, an external data storage unit 14, a user authentication information storage unit 31, a user authentication unit 32, and an external data storage processing unit 18. An external data protection unit 33, an external data decryption unit 34, a control processing unit 24, and an external storage medium attachment / detachment detection unit 30.

ユーザ認証情報記憶部31は、制御装置10を使用するユーザの認証を行うためのユーザ認証情報を記憶する。ユーザ認証情報は、たとえばユーザを識別するユーザID、ユーザIDに対応付けられたパスワードなどを含む。   The user authentication information storage unit 31 stores user authentication information for authenticating a user who uses the control device 10. The user authentication information includes, for example, a user ID for identifying the user, a password associated with the user ID, and the like.

ユーザ認証部32は、外部記憶媒体50が接続されると、ユーザ認証を行う。具体的には、表示部13にユーザ認証画面を表示し、ユーザ認証画面に入力される内容がユーザ認証情報と一致するかを判定する。入力内容がユーザ認証情報と一致する場合には、以後の操作を認め、入力内容がユーザ認証情報と一致しない場合には、以後の操作を認めない。   When the external storage medium 50 is connected, the user authentication unit 32 performs user authentication. Specifically, a user authentication screen is displayed on the display unit 13, and it is determined whether or not the content input on the user authentication screen matches the user authentication information. If the input content matches the user authentication information, the subsequent operation is permitted. If the input content does not match the user authentication information, the subsequent operation is not allowed.

外部データ保護部33は、外部記憶媒体50が装着された後、予め定められた外部データ保護期間が過ぎても外部記憶媒体50が取り外されない場合に、外部記憶媒体50に保存されている外部データをユーザ認証情報(パスワードなど)を暗号鍵として暗号化し、外部記憶媒体50に保存し、元となった平文の外部データを消去する。   The external data protection unit 33 stores the external data stored in the external storage medium 50 when the external storage medium 50 is not removed even after a predetermined external data protection period has passed after the external storage medium 50 is attached. Data is encrypted using user authentication information (such as a password) as an encryption key, stored in the external storage medium 50, and the original plaintext external data is erased.

外部データ復号部34は、外部記憶媒体50中の暗号化外部データを復号化する指示を受けると、ユーザ認証画面を表示してユーザ認証を行い、ユーザ認証が正常に終了すると、外部記憶媒体50に保存されている暗号化外部データを復号化し、暗号化外部データを消去する。また、ユーザ認証ができない場合には、暗号化外部データを復号化せずにそのままの状態とする。   When the external data decrypting unit 34 receives an instruction to decrypt the encrypted external data in the external storage medium 50, the external data decrypting unit 34 displays a user authentication screen to perform user authentication, and when the user authentication ends normally, the external storage medium 50 Decrypt the encrypted external data stored in, and erase the encrypted external data. If user authentication is not possible, the encrypted external data is left as it is without being decrypted.

なお、上記した実施の形態で使用された構成要素と同一の構成要素には、同一の符号を付してその説明を省略している。   In addition, the same code | symbol is attached | subjected to the component same as the component used by above-described embodiment, and the description is abbreviate | omitted.

つぎに、実施の形態10による制御装置10の動作処理について説明する。図44は、実施の形態10による制御装置の処理手順の一例を示すフローチャートである。まず、外部記憶媒体50が制御装置10に接続(装着)されると(ステップS251)、計時を開始し(ステップS252)、ユーザ認証部32はユーザ認証を行う(ステップS253)。ユーザ認証として、ユーザIDとパスワードの入力を例示することができる。ユーザ認証部32は、ユーザ認証が成功したかを判定する(ステップS254)。ユーザ認証が成功しなかった場合(ステップS254でNoの場合)、すなわちユーザ認証が失敗した場合には、処理が終了する。   Next, an operation process of the control device 10 according to the tenth embodiment will be described. FIG. 44 is a flowchart illustrating an example of a processing procedure of the control device according to the tenth embodiment. First, when the external storage medium 50 is connected (attached) to the control device 10 (step S251), timing is started (step S252), and the user authentication unit 32 performs user authentication (step S253). As user authentication, input of a user ID and a password can be exemplified. The user authentication unit 32 determines whether the user authentication is successful (step S254). If the user authentication is not successful (No in step S254), that is, if the user authentication fails, the process ends.

また、ユーザ認証が成功した場合(ステップS254でYesの場合)には、外部データ保存処理部18は、外部記憶媒体50内の外部データを外部データ保存部14にコピーする(ステップS255)。外部記憶媒体着脱検知部30は、外部記憶媒体50の接続状況を確認し、外部記憶媒体50が制御装置10から離脱したかを判定する(ステップS256)。外部記憶媒体50が離脱した場合(ステップS256でYesの場合)には、外部データ保存部14にコピーされた外部データへのアクセスが可能となる(ステップS257)。そして、制御処理部24は、外部データへのアクセスを行い(ステップS258)、処理が終了する。   If the user authentication is successful (Yes in step S254), the external data storage processing unit 18 copies the external data in the external storage medium 50 to the external data storage unit 14 (step S255). The external storage medium attachment / detachment detection unit 30 confirms the connection status of the external storage medium 50 and determines whether the external storage medium 50 has been detached from the control device 10 (step S256). If the external storage medium 50 is detached (Yes in step S256), the external data copied to the external data storage unit 14 can be accessed (step S257). Then, the control processing unit 24 accesses external data (step S258), and the process ends.

外部記憶媒体50が離脱していない場合(ステップS256でNoの場合)には、外部データ保存部14にコピーされた外部データへのアクセスを禁止する(ステップS259)。その後、計時してから所定の外部データ保護期間が経過したかを判定する(ステップS260)。所定の外部データ保護期間が経過していない場合(ステップS260でNoの場合)には、ステップS256に戻る。また、計時してから所定の外部データ保護期間が経過した場合(ステップS260でYesの場合)には、ユーザ認証情報(パスワードなど)を暗号鍵として、外部記憶媒体50内の外部データを暗号化して外部記憶媒体50に保存する(ステップS261)。また、暗号化の元となった平文の外部データを削除する(ステップS262)。   If the external storage medium 50 is not detached (No in step S256), access to the external data copied to the external data storage unit 14 is prohibited (step S259). Thereafter, it is determined whether or not a predetermined external data protection period has elapsed since the clocking (step S260). If the predetermined external data protection period has not elapsed (No in step S260), the process returns to step S256. In addition, when a predetermined external data protection period has elapsed after counting (in the case of Yes in step S260), the external data in the external storage medium 50 is encrypted using user authentication information (such as a password) as an encryption key. To the external storage medium 50 (step S261). Also, the plaintext external data that is the source of encryption is deleted (step S262).

その後、ユーザから外部記憶媒体50内の暗号化された外部データの復号化などの指示があると(ステップS263)、再度ユーザ認証を行う(ステップS264)。ユーザ認証が成功しなかった場合(ステップS265でNoの場合)、すなわちユーザ認証が失敗した場合には、処理が終了する。   Thereafter, when the user gives an instruction to decrypt the encrypted external data in the external storage medium 50 (step S263), user authentication is performed again (step S264). If the user authentication is not successful (No in step S265), that is, if the user authentication fails, the process ends.

また、ユーザ認証が成功した場合(ステップS265でYesの場合)には、ユーザ認証情報を用いて暗号化された外部データを復号化し、外部記憶媒体50に記憶する(ステップS266)。また外部記憶媒体50内の暗号化された外部データを削除する(ステップS267)。以上によって、処理が終了する。   If the user authentication is successful (Yes in step S265), the external data encrypted using the user authentication information is decrypted and stored in the external storage medium 50 (step S266). Further, the encrypted external data in the external storage medium 50 is deleted (step S267). Thus, the process ends.

図45は、実施の形態10による外部記憶媒体の暗号化の様子を模式的に示す図である。図45(a)に示されるように、外部記憶媒体50が制御装置10に装着されると、操作盤105を介してユーザによって入力されるユーザIDとパスワードを用いてユーザ認証が行われる。ユーザ認証が成功すると、外部記憶媒体50内の外部データ301が内部記憶部103にコピーされる。CPU101は外部記憶媒体50が接続されているか確認し、接続されている間は内部記憶部103にコピーされた外部データ351へのアクセスが禁止される。   FIG. 45 is a diagram schematically showing the state of encryption of the external storage medium according to the tenth embodiment. As shown in FIG. 45A, when the external storage medium 50 is attached to the control device 10, user authentication is performed using a user ID and password input by the user via the operation panel 105. If the user authentication is successful, the external data 301 in the external storage medium 50 is copied to the internal storage unit 103. The CPU 101 checks whether the external storage medium 50 is connected, and access to the external data 351 copied to the internal storage unit 103 is prohibited while the external storage medium 50 is connected.

外部記憶媒体50が制御装置10に接続された状態で所定の時間放置されていると、外部記憶媒体50内の外部データ301が暗号化される。そして、図45(b)に示されるように、外部記憶媒体50には暗号化外部データ301Xが保存され、外部データ301は削除される。なお、この状態で再度ユーザ認証を行うことで外部記憶媒体50内の暗号化外部データ301Xを復号化することができる。   If the external storage medium 50 is left connected to the control device 10 for a predetermined time, the external data 301 in the external storage medium 50 is encrypted. Then, as shown in FIG. 45B, the encrypted external data 301X is stored in the external storage medium 50, and the external data 301 is deleted. Note that the encrypted user data 301X in the external storage medium 50 can be decrypted by performing user authentication again in this state.

実施の形態10では、外部記憶媒体50中の外部データが外部データ保存部14にコピーされた後、外部記憶媒体50が装着されてから所定時間経過しても外部記憶媒体50が離脱されない場合に、外部記憶媒体50内の外部データを暗号化して保存するようにした。これによって、外部記憶媒体50が長期間にわたって制御装置10に接続される状態となり、外部記憶媒体50が第三者に抜き取られてしまっても、外部データが暗号化されているので、外部記憶媒体50の中身が流出する虞が少ないという効果を有する。   In the tenth embodiment, after external data in the external storage medium 50 is copied to the external data storage unit 14, the external storage medium 50 is not detached even after a predetermined time has elapsed since the external storage medium 50 was attached. The external data in the external storage medium 50 is encrypted and stored. As a result, the external storage medium 50 is connected to the control device 10 for a long period of time, and even if the external storage medium 50 is extracted by a third party, the external data is encrypted. There is an effect that there is little possibility that the content of 50 flows out.

なお、パスワードや各種の入力は、操作盤105などの入力部12に限らず、コンピュータを使用してもよいし、あるいはネットワーク経由でエンジニアリングツールなどを使用してもよい。   The password and various inputs are not limited to the input unit 12 such as the operation panel 105, but may be a computer or an engineering tool or the like via a network.

以上のように、この発明にかかる制御装置は、プログラムまたはパラメータなどの外部データを携帯可能な記憶媒体から読み込んで処理を行うプログラマブルコントローラまたは数値制御装置などの制御装置に有用である。   As described above, the control device according to the present invention is useful for a control device such as a programmable controller or a numerical control device that reads and processes external data such as programs or parameters from a portable storage medium.

10 制御装置、11 外部記憶媒体インタフェース、12 入力部、13 表示部、14 外部データ保存部、15 外部データ保存領域設定部、16 外部データ判定部、17 パスワード設定部、18 外部データ保存処理部、19 パスワード−外部データ対応情報記憶部、20 外部データ消去部、21 パスワード判定部、22 外部データ書戻し部、23 内部データ処理部、24 制御処理部、25 データ分割部、26 データ結合部、27 外部記憶媒体情報取得部、28 設定情報処理部、29 設定情報記憶部、30 外部記憶媒体着脱検知部、31 ユーザ認証情報記憶部、32 ユーザ認証部、33 外部データ保護部、34 外部データ復号部、50 外部記憶媒体、101 CPU、102 RAM、103 内部記憶部、104,104A〜104C メモリインタフェース、105 操作盤、106 バス。   DESCRIPTION OF SYMBOLS 10 Control apparatus, 11 External storage medium interface, 12 Input part, 13 Display part, 14 External data storage part, 15 External data storage area setting part, 16 External data determination part, 17 Password setting part, 18 External data storage process part, 19 Password-external data correspondence information storage unit, 20 External data deletion unit, 21 Password determination unit, 22 External data write-back unit, 23 Internal data processing unit, 24 Control processing unit, 25 Data division unit, 26 Data combination unit, 27 External storage medium information acquisition unit, 28 setting information processing unit, 29 setting information storage unit, 30 external storage medium attachment / detachment detection unit, 31 user authentication information storage unit, 32 user authentication unit, 33 external data protection unit, 34 external data decoding unit , 50 External storage medium, 101 CPU, 102 RAM, 103 Internal storage unit, 10 4, 104A to 104C Memory interface, 105 operation panel, 106 bus.

この発明は、制御装置に関するものである。   The present invention relates to a control device.

近年、データをメモリカードなどの外部記憶媒体に入れて持ち運び、制御機器本体に接続して使用するケースが増えている。外部記憶媒体内のデータを、制御機器本体の内部記憶部にコピーして使用したり、外部記憶媒体内のデータをそのまま制御機器で実行したりする場合がある。しかし、どちらの場合も、外部記憶媒体内のデータの管理に関しては、意識が薄くなりがちである。そのため、外部記憶媒体を本体に挿入したままの状態が継続されることが多くなり、外部記憶媒体内のデータのセキュリティの確保が必要になってきている。   In recent years, there are increasing cases in which data is carried in an external storage medium such as a memory card and connected to a control device body for use. In some cases, data in the external storage medium is copied to the internal storage unit of the control device main body and used, or data in the external storage medium is directly executed by the control device. However, in either case, the consciousness tends to be reduced regarding the management of data in the external storage medium. For this reason, the state where the external storage medium is inserted into the main body is often continued, and it is necessary to ensure the security of data in the external storage medium.

そこで、外部記憶媒体を不正に抜き取られた時に外部記憶媒体内のデータを保護する機能として、外部記憶媒体を接続して一定期間アクセスがないと、外部記憶媒体内のデータを機器本体内の記憶媒体に退避して、外部記憶媒体内のデータを削除することでデータを保護する機能が知られている(たとえば、特許文献1参照)。   Therefore, as a function to protect the data in the external storage medium when the external storage medium is illegally extracted, the data in the external storage medium is stored in the device main body when the external storage medium is connected and there is no access for a certain period of time. A function of protecting data by saving to a medium and deleting data in an external storage medium is known (see, for example, Patent Document 1).

特許文献1では、情報処理装置は、パスワードファイルとファイルを格納したメモリカードが情報処理装置に挿入され、パスワードファイルが存在する場合に、内蔵ハードディスクに保存できるか判断する。そして、一定期間メモリカードへのアクセスがない場合に、情報処理装置は、メモリカード中のパスワードファイルとファイルとをハードディスクにコピーし、メモリカードのパスワードファイル以外のファイルを削除する。また情報処理装置は、入力されたパスワードがメモリカード中のパスワードと一致した場合に、削除されたファイルをメモリカードに戻すとともに、ハードディスクのファイルを削除する。 In Patent Document 1, the information processing apparatus determines whether a password file and a memory card storing the file are inserted into the information processing apparatus and the password file exists and can be stored in the built-in hard disk. Then, if you do not have access to the certain period of time the memory card, the information processing apparatus, to copy the password file and the files in the memory card to the hard disk, delete the file other than the password file of the memory card. Further, when the input password matches the password in the memory card, the information processing apparatus returns the deleted file to the memory card and deletes the file on the hard disk.

特開2011−43881号公報JP 2011-43881 A

しかしながら、特許文献1に記載の技術では、パスワードファイルを予めメモリカード内に準備しておく必要がある。また、メモリカード内にパスワードを保管するため、メモリカードが不正に抜き取られた場合、パスワードが読み取られ、れを基にファイルが書戻されて、第3者に流出してしまう可能性がある。さらに、情報処理装置にメモリカードが挿されて一定時間経過後にデータを退避するため、データを退避するまでの期間にメモリカードが不正に抜き取られた場合にも、データが流出してしまうという問題点があった。 However, in the technique described in Patent Document 1, it is necessary to prepare a password file in the memory card in advance. Further, in order to store the password in the memory card, when the memory card is withdrawn incorrect password is read, and the file is written back on the basis of this, possibility of flowing out to the third party is there. Furthermore, since data is saved after a certain time has elapsed after the memory card is inserted into the information processing device, data is leaked even if the memory card is illegally extracted before the data is saved. There was a point.

この発明は上記に鑑みてなされたもので、持ち運び可能な記憶媒体を制御装置に装着したままの状態が生じ、第3者に不正に持ち運び可能な記憶媒体が抜き取られてしまった場合でもデータ流出を防ぐことができる制御装置を得ることを目的とする。   The present invention has been made in view of the above, and even when a portable storage medium is left attached to the control device, even if a third party illegally removes the portable storage medium, data leakage occurs. It is an object of the present invention to obtain a control device that can prevent the above.

上記目的を達成するため、この発明にかかる制御装置は、内部記憶部と、前記内部記憶部に記憶されたプログラムまたはパラメータを用いて演算を行い、接続される制御対象に対する制御処理を行う制御処理部と、を備える制御装置において、当該制御装置に外部記憶媒体が装着された後外部から入力された照合情報を設定する照合情報設定部と、前記外部記憶媒体に記憶されている外部データが外部データ保存領域に保存されると、前記外部記憶媒体内の前記外部データを消去する外部データ消去部と、を備え、前記外部データ消去部は、前記外部データを消去した後、前記外部記憶媒体の初期化の実行または前記外部記憶媒体へのランダムデータの書き込みを行うことを特徴とする。 In order to achieve the above object, a control device according to the present invention performs control processing on an internal storage unit and a program or parameter stored in the internal storage unit, and performs control processing on a connected control target. a control device comprising a part, and after the external storage medium is attached to the control unit, external data stored and collating information setting unit for setting the verification information input from the outside, on the external storage medium When There is stored in the external data storage area, and an external data erasing unit for erasing the external data in the external storage medium, the external data erasing unit, after erasing the external data, the external The storage medium is initialized or random data is written to the external storage medium .

この発明によれば、外部記憶媒体が装着されるとパスワードを設定し、外部記憶媒体内の外部データを外部データ保存領域に記憶し、パスワードと外部データの保存位置とをパスワード−外部データ対応情報に対応付け、外部記憶媒体内の外部データを消去するようにしたので、制御装置に装着状態の外部記憶媒体中には外部データが存在せず、外部記憶媒体が制御装置から抜き取られてしまった場合でも、データが第三者に流出する虞がないという効果を有する。   According to the present invention, when an external storage medium is attached, a password is set, the external data in the external storage medium is stored in the external data storage area, and the password and the storage position of the external data are set as password-external data correspondence information. Since the external data in the external storage medium is deleted, the external data does not exist in the external storage medium attached to the control device, and the external storage medium has been removed from the control device. Even in this case, there is an effect that there is no possibility of data leaking to a third party.

図1は、実施の形態1による制御装置の機能構成の一例を模式的に示すブロック図である。FIG. 1 is a block diagram schematically illustrating an example of a functional configuration of the control device according to the first embodiment. 図2は、パスワード−外部データ対応情報の一例を示す図である。FIG. 2 is a diagram illustrating an example of password-external data correspondence information. 図3は、実施の形態1による制御装置の構成の一例を模式的に示すブロック図である。FIG. 3 is a block diagram schematically illustrating an example of the configuration of the control device according to the first embodiment. 図4は、実施の形態1による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。FIG. 4 is a flowchart illustrating an example of a processing procedure when an external storage medium is mounted on the control device according to the first embodiment. 図5は、実施の形態1による制御装置に外部記憶媒体が装着された場合の処理手順の具体例を示す図である(その1)。FIG. 5 is a diagram showing a specific example of a processing procedure when an external storage medium is mounted on the control device according to the first embodiment (part 1). 図6は、実施の形態1による制御装置に外部記憶媒体が装着された場合の処理手順の具体例を示す図である(その2)。FIG. 6 is a diagram showing a specific example of a processing procedure when an external storage medium is mounted on the control device according to the first embodiment (part 2). 図7は、実施の形態1による外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の一例を示すフローチャートである。FIG. 7 is a flowchart illustrating an example of an external storage medium extraction process from the control apparatus that involves the external data write-back process according to the first embodiment. 図8は、実施の形態1による制御装置から外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の具体例を示す図である(その1)。FIG. 8 is a diagram illustrating a specific example of the external storage medium extraction process from the control apparatus that involves the external data write-back process from the control apparatus according to the first embodiment (part 1). 図9は、実施の形態1による制御装置から外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の具体例を示す図である(その2)。FIG. 9 is a diagram illustrating a specific example of an external storage medium extraction process from the control apparatus that accompanies the external data write-back process from the control apparatus according to the first embodiment (part 2). 図10は、実施の形態2による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。FIG. 10 is a flowchart illustrating an example of a processing procedure when an external storage medium is attached to the control device according to the second embodiment. 図11は、実施の形態2による外部データの選択処理の様子を示す図である。FIG. 11 is a diagram illustrating the external data selection process according to the second embodiment. 図12は、実施の形態3による制御装置の機能構成を模式的に示すブロック図である。FIG. 12 is a block diagram schematically illustrating a functional configuration of the control device according to the third embodiment. 図13は、実施の形態3による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。FIG. 13 is a flowchart illustrating an example of a processing procedure when an external storage medium is mounted on the control device according to the third embodiment. 図14は、実施の形態3による制御装置に外部記憶媒体が装着された場合の処理手順の具体例を示す図である(その1)。FIG. 14 is a diagram showing a specific example of a processing procedure when an external storage medium is mounted on the control device according to the third embodiment (part 1). 図15は、実施の形態3による制御装置に外部記憶媒体が装着された場合の処理手順の具体例を示す図である(その2)。FIG. 15 is a diagram illustrating a specific example of a processing procedure when an external storage medium is mounted on the control device according to the third embodiment (part 2). 図16は、外部記憶媒体に複数の外部データがある場合の分割の方法を模式的に示す図である。FIG. 16 is a diagram schematically showing a dividing method when there are a plurality of external data in the external storage medium. 図17は、実施の形態3による外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の一例を示すフローチャートである。FIG. 17 is a flowchart illustrating an example of an external storage medium extraction process from the control apparatus that involves an external data write-back process according to the third embodiment. 図18は、実施の形態3による分割されたデータの実行処理の手順の一例を示すフローチャートである。FIG. 18 is a flowchart illustrating an example of a procedure for executing divided data according to the third embodiment. 図19は、実施の形態4によるパスワード−外部データ対応情報の一例を示す図である。FIG. 19 is a diagram illustrating an example of password-external data correspondence information according to the fourth embodiment. 図20は、実施の形態4による外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の一例を示すフローチャートである。FIG. 20 is a flowchart illustrating an example of processing for extracting an external storage medium from a control apparatus that involves external data write-back processing according to the fourth embodiment. 図21は、実施の形態4による書戻し処理の一例を模式的に示す図である(その1)。FIG. 21 is a diagram schematically showing an example of a write-back process according to the fourth embodiment (part 1). 図22は、実施の形態4による書戻し処理の一例を模式的に示す図である(その2)。FIG. 22 is a diagram schematically showing an example of a write-back process according to the fourth embodiment (part 2). 図23は、実施の形態5による制御装置の機能構成を模式的に示すブロック図である。FIG. 23 is a block diagram schematically showing a functional configuration of the control device according to the fifth embodiment. 図24は、設定情報の一例を示す図である。FIG. 24 is a diagram illustrating an example of setting information. 図25は、実施の形態5による外部記憶媒体装着時の動作処理手順の一例を示すフローチャートである。FIG. 25 is a flowchart illustrating an example of an operation processing procedure when the external storage medium is mounted according to the fifth embodiment. 図26は、実施の形態5による外部記憶媒体の取り外し処理手順の一例を示すフローチャートである。FIG. 26 is a flowchart illustrating an example of an external storage medium removal processing procedure according to the fifth embodiment. 図27は、実施の形態5によるデータの書戻し処理の手順の概要を模式的に示す図である。FIG. 27 is a diagram schematically illustrating an outline of a procedure of data write-back processing according to the fifth embodiment. 図28は、外部記憶媒体を個体ごとに管理する場合のパスワード−外部データ対応情報の一例を示す図である。FIG. 28 is a diagram showing an example of password-external data correspondence information when managing external storage media for each individual. 図29は、複数種類の外部記憶媒体と着脱可能な制御装置でのパスワード−外部データ対応情報と設定情報の関係を模式的に示す図である。FIG. 29 is a diagram schematically showing the relationship between password-external data correspondence information and setting information in a plurality of types of external storage media and removable control devices. 図30は、設定情報の内容を含むパスワード−外部データ対応情報の一例を示す図である。FIG. 30 is a diagram illustrating an example of password-external data correspondence information including the contents of setting information. 図31は、実施の形態6による制御装置の機能構成を模式的に示すブロック図である。FIG. 31 is a block diagram schematically showing a functional configuration of the control device according to the sixth embodiment. 図32は、実施の形態6による設定情報の構成の一例を示す図である。FIG. 32 is a diagram illustrating an example of a configuration of setting information according to the sixth embodiment. 図33は、実施の形態6による外部データの実行処理の手順の一例を示すフローチャートである。FIG. 33 is a flowchart illustrating an example of a procedure of external data execution processing according to the sixth embodiment. 図34は、実施の形態6による外部データの実行処理の状態の一例を模式的に示す図である(その1)。FIG. 34 is a diagram schematically showing an example of a state of external data execution processing according to the sixth embodiment (part 1). 図35は、実施の形態6による外部データの実行処理の状態の一例を模式的に示す図である(その2)。FIG. 35 is a diagram schematically illustrating an example of a state of external data execution processing according to the sixth embodiment (part 2). 図36は、実施の形態7による外部データの書戻し処理の手順の一例を模式的に示す図である(その1)。FIG. 36 is a diagram schematically illustrating an example of a procedure of external data write-back processing according to the seventh embodiment (part 1). 図37は、実施の形態7による外部データの書戻し処理の手順の一例を模式的に示す図である(その2)。FIG. 37 is a diagram schematically illustrating an example of a procedure of external data write-back processing according to the seventh embodiment (part 2). 図38は、実施の形態8による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。FIG. 38 is a flowchart illustrating an example of a processing procedure when an external storage medium is mounted on the control device according to the eighth embodiment. 図39は、実施の形態8による外部データが処理される様子を模式的に示す図である。FIG. 39 is a diagram schematically illustrating how external data according to the eighth embodiment is processed. 図40は、実施の形態9による制御装置の機能構成を模式的に示すブロック図である。FIG. 40 is a block diagram schematically showing a functional configuration of the control device according to the ninth embodiment. 図41は、実施の形態9による外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。FIG. 41 is a flowchart illustrating an example of a processing procedure when an external storage medium according to the ninth embodiment is loaded. 図42は、実施の形態9による外部記憶媒体が装着された場合の制御装置の処理状態を模式的に示す図である。FIG. 42 is a diagram schematically illustrating a processing state of the control device when the external storage medium according to the ninth embodiment is loaded. 図43は、実施の形態10による制御装置の機能構成を模式的に示すブロック図である。FIG. 43 is a block diagram schematically showing a functional configuration of the control device according to the tenth embodiment. 図44は、実施の形態10による制御装置の処理手順の一例を示すフローチャートである。FIG. 44 is a flowchart illustrating an example of a processing procedure of the control device according to the tenth embodiment. 図45は、実施の形態10による外部記憶媒体の暗号化の様子を模式的に示す図である。FIG. 45 is a diagram schematically showing the state of encryption of the external storage medium according to the tenth embodiment.

以下に添付図面を参照して、この発明の実施の形態にかかる制御装置を詳細に説明する。なお、これらの実施の形態によりこの発明が限定されるものではない。   Hereinafter, a control device according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to these embodiments.

実施の形態1.
図1は、実施の形態1による制御装置の機能構成の一例を模式的に示すブロック図である。以下の実施の形態で説明される制御装置は、データを用いて演算を行い、の演算結果に基づいて制御対象を制御する装置であり、プログラマブルコントローラまたは数値制御装置などである。
Embodiment 1 FIG.
FIG. 1 is a block diagram schematically illustrating an example of a functional configuration of the control device according to the first embodiment. Control device to be described in the following embodiment, performs a calculation using data, an apparatus for controlling a controlled object according to the result of this, a programmable controller or numerical control apparatus, and the like.

制御装置10は、外部記憶媒体インタフェース11と、入力部12と、表示部13と、外部データ保存部14と、外部データ保存領域設定部15と、外部データ判定部16と、パスワード設定部17と、外部データ保存処理部18と、パスワード−外部データ対応情報記憶部19と、外部データ消去部20と、パスワード判定部21と、外部データ書戻し部22と、内部データ処理部23と、制御処理部24と、を備える。   The control device 10 includes an external storage medium interface 11, an input unit 12, a display unit 13, an external data storage unit 14, an external data storage area setting unit 15, an external data determination unit 16, and a password setting unit 17. External data storage processing unit 18, password-external data correspondence information storage unit 19, external data deletion unit 20, password determination unit 21, external data write back unit 22, internal data processing unit 23, and control processing Part 24.

外部記憶媒体インタフェース11は、制御装置10に装着された外部記憶媒体との間で通信を行うインタフェースである。外部記憶媒体は、着脱可能な記憶媒体であり、SDカード、microSDカード、コンパクトフラッシュ(登録商標)などのメモリカード、USB(Universal Serial Bus)メモリなどを例示することができる。外部記憶媒体には、制御装置10で実行させるためのプログラム、またはプログラムの実行で使用されるパラメータなどを格納することができる。なお、以下では、外部記憶媒体に格納されるプログラムまたはパラメータなどを外部データという。   The external storage medium interface 11 is an interface that performs communication with an external storage medium attached to the control device 10. The external storage medium is a detachable storage medium, and examples thereof include an SD card, a microSD card, a memory card such as a compact flash (registered trademark), a USB (Universal Serial Bus) memory, and the like. The external storage medium can store a program to be executed by the control device 10 or parameters used in executing the program. Hereinafter, a program or parameter stored in an external storage medium is referred to as external data.

入力部12は、ユーザが制御装置10に対して情報を入力する際のインタフェースであり、キーボード、ボタンまたはタッチパネルなどを例示することができる。入力部12を介して後述するパスワードなどが制御装置10に対して設定される。   The input unit 12 is an interface when the user inputs information to the control device 10 and can be exemplified by a keyboard, a button, a touch panel, and the like. A password, which will be described later, is set for the control device 10 via the input unit 12.

表示部13は、制御装置10に関する情報、または制御装置10で実行している制御に関する情報などを表示する。表示部13は、液晶表示装置などによって構成される。   The display unit 13 displays information related to the control device 10 or information related to control executed by the control device 10. The display unit 13 is configured by a liquid crystal display device or the like.

外部データ保存部14は、制御装置10が実行するプログラムまたはプログラムで使用されるパラメータなどを保存する。また、外部データ保存部14には、装着される外部記憶媒体ごとに外部データ保存領域が設けられる。   The external data storage unit 14 stores a program executed by the control device 10 or parameters used in the program. The external data storage unit 14 is provided with an external data storage area for each external storage medium to be mounted.

外部データ保存領域設定部15は、外部記憶媒体が制御装置10に装着されると、外部データ保存部14に外部データを保存することができる外部データ保存領域を設定する。   The external data storage area setting unit 15 sets an external data storage area in which external data can be stored in the external data storage unit 14 when an external storage medium is attached to the control device 10.

外部データ判定部16は、外部記憶媒体に外部データが保存されているかを判定し、外部データが保存されていない場合には何も処理を行わず、外部データが保存されている場合には外部データの外部データ保存部14への保存処理の実行指示をパスワード設定部17と外部データ保存処理部18に与える。   The external data determination unit 16 determines whether external data is stored in the external storage medium. If the external data is not stored, no processing is performed. If the external data is stored, the external data determination unit 16 performs external processing. An instruction to execute data storage processing to the external data storage unit 14 is given to the password setting unit 17 and the external data storage processing unit 18.

パスワード設定部17は、外部データを外部データ保存部14に保存する指示を外部データ判定部16から受けると、パスワードの設定処理を行う。たとえば、ユーザに対してパスワードの設定を指示する画面を表示部13に表示し、ユーザが入力部12を介して入力したパスワードをパスワード−外部データ対応情報に保存する。   When the password setting unit 17 receives an instruction to store external data in the external data storage unit 14 from the external data determination unit 16, the password setting unit 17 performs a password setting process. For example, a screen for instructing the user to set a password is displayed on the display unit 13, and the password input by the user via the input unit 12 is stored in the password-external data correspondence information.

外部データ保存処理部18は、パスワード設定部17によるパスワードの設定が終了すると、外部記憶媒体中の外部データを外部データ保存領域設定部15によって設定された外部データ保存領域にコピーする。また、外部データを外部データ保存領域にコピーした後、コピーしたコピー先の外部データと、外部記憶媒体中のコピー元の外部データとを照合し、両者が一致しているかを判定する。両者が一致しない場合には、たとえばもう一度外部記憶媒体中の外部データを外部データ保存領域にコピーする。また、両者が一致する場合には、パスワード−外部データ対応情報に外部データの保存場所を書き込み、パスワードと対応付けし、正常に外部記憶媒体中の外部データをコピーできたことを外部データ消去部20に通知する。 When the password setting unit 17 finishes setting the password, the external data storage processing unit 18 copies the external data in the external storage medium to the external data storage area set by the external data storage area setting unit 15. Further, after copying the external data to an external data storage area, and external data copy destination to copy collates the copy source external data in the external storage medium, if both are coincident judge. If they do not match, for example, the external data in the external storage medium is copied once again to the external data storage area. If the two match, the external data erasure unit indicates that the external data storage location is written in the password-external data correspondence information, is associated with the password, and the external data in the external storage medium has been successfully copied. 20 is notified.

パスワード−外部データ対応情報記憶部19は、外部データ保存部14に保存された外部データとパスワードとの対応関係を示すパスワード−外部データ対応情報を記憶する。図2は、パスワード−外部データ対応情報の一例を示す図である。パスワード−外部データ対応情報は、パスワード設定部17で設定されるパスワードと、れに対応付けて外部データ保存処理部18で保存される外部データの外部データ保存領域たとえば先頭アドレスとサイズと、を対応付けて管理している。 The password-external data correspondence information storage unit 19 stores password-external data correspondence information indicating the correspondence between the external data stored in the external data storage unit 14 and the password. FIG. 2 is a diagram illustrating an example of password-external data correspondence information. Password - External data correspondence information, and a password set by the password setting unit 17, an external data storage area of the external data to be stored in association with the Re this external data storage processing unit 18, for example, start address and size and Are managed in association with each other.

外部データ消去部20は、外部データ保存処理部18から外部記憶媒体中の外部データを正常に外部データ保存部14に保存できた旨の通知を受けた場合に、外部記憶媒体中の外部データを消去する。この外部データの消去として、単なる外部データの消去ではなく、たとえば外部記憶媒体が制御装置10から第三者に離脱された場合でも、外部記憶媒体中のデータを復元することができないように、初期化を実施したり、またはランダムデータの書き込みをしたりすることが望ましい。   When the external data erasure unit 20 receives notification from the external data storage processing unit 18 that the external data in the external storage medium has been successfully stored in the external data storage unit 14, the external data storage unit 20 stores the external data in the external storage medium. to erase. This external data erasure is not mere erasure of external data. For example, even when the external storage medium is removed from the control device 10 by a third party, the initial data is not restored so that the data in the external storage medium cannot be restored. It is desirable to implement data or to write random data.

パスワード判定部21は、空の外部記憶媒体が制御装置10に装着された状態で、ユーザによって外部データ保存部14から外部記憶媒体への外部データの保存が指示された場合に、表示部13にパスワードの入力画面を表示し、ユーザによって入力部12を介して入力されたパスワードがパスワード−外部データ対応情報に登録されたパスワードであるかを判定する。具体的には、入力されたパスワードがパスワード−外部データ対応情報中に存在するかを判定する。入力されたパスワードがパスワード−外部データ対応情報中に存在しない場合には、外部データの外部記憶媒体への保存処理は行われない。また入力されたパスワードがパスワード−外部データ対応情報中に存在する場合には、外部データの外部記憶媒体への保存処理を進めてもよい旨を外部データ書戻し部22に通知する。   The password determination unit 21 displays the display unit 13 when the user instructs the external data storage unit 14 to store external data in a state where an empty external storage medium is mounted on the control device 10. A password input screen is displayed, and it is determined whether the password input by the user via the input unit 12 is a password registered in the password-external data correspondence information. Specifically, it is determined whether the input password exists in the password-external data correspondence information. If the input password does not exist in the password-external data correspondence information, the external data is not stored in the external storage medium. If the input password exists in the password-external data correspondence information, the external data write-back unit 22 is notified that the saving process of the external data in the external storage medium may be proceeded.

外部データ書戻し部22は、パスワード判定部21から外部データの外部記憶媒体への保存処理を進めてもよい旨の通知を受けると、パスワード−外部データ対応情報中の入力されたパスワードに対応する外部データの保存位置から外部データを取得し、の外部データを外部記憶媒体に書き戻す処理を行う。また、外部データ書戻し部22は、外部データを外部記憶媒体にコピーした後、コピーした外部データと、外部データ保存部14中のコピー元の外部データとを照合し、両者が一致しているかを判定する。両者が一致しない場合には、たとえばもう一度外部データ保存部14中の外部データを外部記憶媒体にコピーする。また、両者が一致する場合には、正常に外部データ保存部14中の外部データをコピーできたことを内部データ処理部23に通知する。 When the external data write-back unit 22 receives a notification from the password determination unit 21 that the external data storage process may proceed, the external data write-back unit 22 corresponds to the password entered in the password-external data correspondence information. external data acquired from the storage location of the external data, performs a process of writing back external this data in the external storage medium. Moreover, external data writeback unit 22, after copying the external data to an external storage medium, collates the external data copied, the copy-source of external data in the external data storage unit 14, numbers match Judge whether it is. If they do not match, for example, the external data in the external data storage unit 14 is copied once again to the external storage medium. If the two match, the internal data processing unit 23 is notified that the external data in the external data storage unit 14 has been successfully copied.

内部データ処理部23は、ユーザによる外部データ書戻し処理時の設定に基づいて外部データ保存部14中の外部データに対する処理を行う。たとえば、外部データ保存部14中の外部データの消去が設定されていない場合には、外部データ書戻し部22によって外部記憶媒体へ外部データをコピーした後でも、外部データと対応するパスワードを外部データ保存部14から消去せずにそのままとして、外部記憶媒体が取り外し可能であることを示す情報をたとえば表示部13に表示する。また、外部データ保存部14中の外部データの消去が設定されている場合には、外部データ書戻し部22によって外部記憶媒体への外部データをコピーした後に、外部データ保存部14中の外部データと、対応するパスワードとを消去して、外部記憶媒体が取り外し可能であることを示す情報をたとえば表示部13に表示する。   The internal data processing unit 23 performs processing on the external data in the external data storage unit 14 based on the setting at the time of external data write-back processing by the user. For example, when erasure of the external data in the external data storage unit 14 is not set, the password corresponding to the external data is set to the external data even after the external data write-back unit 22 copies the external data to the external storage medium. For example, information indicating that the external storage medium is removable is displayed on the display unit 13 without being deleted from the storage unit 14. If the external data storage unit 14 is set to delete external data, the external data write-back unit 22 copies the external data to the external storage medium, and then the external data in the external data storage unit 14 is copied. And the corresponding password are deleted, and information indicating that the external storage medium is removable is displayed on the display unit 13, for example.

制御処理部24は、たとえば外部データ保存部14に記憶されたプログラムを読み込み、図示しない制御対象に対する制御処理を行う。   For example, the control processing unit 24 reads a program stored in the external data storage unit 14 and performs control processing on a control target (not shown).

図3は、実施の形態1による制御装置の構成の一例を模式的に示すブロック図である。上記したような制御装置10は、CPU(Central Processing Unit)101と、RAM(Random Access Memory)102と、ハードディスクまたはSSD(Solid State Drive)などの内部記憶部103と、外部記憶媒体50との間のインタフェースとなるメモリインタフェース104と、操作盤105と、がバス106を介して接続された情報処理装置によって構成される。   FIG. 3 is a block diagram schematically illustrating an example of the configuration of the control device according to the first embodiment. The control device 10 described above includes a CPU (Central Processing Unit) 101, a RAM (Random Access Memory) 102, an internal storage unit 103 such as a hard disk or an SSD (Solid State Drive), and an external storage medium 50. A memory interface 104 serving as an interface for the above and an operation panel 105 are configured by an information processing apparatus connected via a bus 106.

内部記憶部103は、CPU101で実行するプログラムまたはパラメータなどの外部データを不揮発に記憶する外部データ保存領域1031と、パスワード−外部データ対応情報1032と、を有する。RAM102は、内部記憶部103から読み出され、CPU101によって実行されるプログラムを記憶するワークメモリとして機能する。また、RAM102には、内部記憶部103に記憶されたパラメータが読み出される。   The internal storage unit 103 includes an external data storage area 1031 for storing external data such as a program executed by the CPU 101 or parameters in a nonvolatile manner, and password-external data correspondence information 1032. The RAM 102 functions as a work memory that stores a program that is read from the internal storage unit 103 and executed by the CPU 101. Also, the parameters stored in the internal storage unit 103 are read into the RAM 102.

図1の外部データ保存部14とパスワード−外部データ対応情報記憶部19は、図3の内部記憶部103に対応している。また、図1の制御処理部24は、プログラムまたはこれにパラメータが読み出された図3のRAM102とCPU101に対応している。さらに、図1の入力部12と表示部13は、図3の操作盤105に対応している。また、図1の他の処理部は、図3のたとえば内部記憶部103に設けられた処理プログラムが実行する機能に対応している。   The external data storage unit 14 and the password / external data correspondence information storage unit 19 in FIG. 1 correspond to the internal storage unit 103 in FIG. Further, the control processing unit 24 in FIG. 1 corresponds to the RAM 102 and the CPU 101 in FIG. 3 from which the program or parameters are read. Further, the input unit 12 and the display unit 13 in FIG. 1 correspond to the operation panel 105 in FIG. The other processing unit in FIG. 1 corresponds to a function executed by a processing program provided in, for example, the internal storage unit 103 in FIG.

つぎに、このような構成の制御装置10における動作について説明する。図4は、実施の形態1による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。   Next, the operation of the control device 10 having such a configuration will be described. FIG. 4 is a flowchart illustrating an example of a processing procedure when an external storage medium is mounted on the control device according to the first embodiment.

まず、メモリカードまたはUSBメモリなどの外部記憶媒体が制御装置10に装着または続されると(ステップS11)、外部データ保存領域設定部15は、外部データ保存領域を設定する(ステップS12)。 First, when an external storage medium such as a memory card or USB memory is attached or connected to the control device 10 (step S11), and the external data storage region setting unit 15 sets the external data storage area (step S12).

ついで、外部データ判定部16は外部記憶媒体内にデータが存在するかを判定する(ステップS13)。判定の結果、外部記憶媒体内にデータが存在しない場合(ステップS13でNoの場合)には、退避するデータがないので、処理が終了する。また、外部記憶媒体内にデータが存在する場合(ステップS13でYesの場合)には、パスワード設定部17は、外部データ保存部14から外部記憶媒体にデータを書き戻すためのパスワード設定処理を行う(ステップS14)。たとえば、制御装置10に設けられる表示部13にパスワード設定画面を表示し、ユーザが入力部12を介してパスワードを入力したり、または制御装置10に接続されるエンジニアリングツールにパスワード設定画面を表示し、ユーザがエンジニアリングツールを介してパスワードを入力したりする。   Next, the external data determination unit 16 determines whether data exists in the external storage medium (step S13). If there is no data in the external storage medium as a result of the determination (No in step S13), the process ends because there is no data to be saved. If data exists in the external storage medium (Yes in step S13), the password setting unit 17 performs a password setting process for writing data back from the external data storage unit 14 to the external storage medium. (Step S14). For example, a password setting screen is displayed on the display unit 13 provided in the control device 10, and a user inputs a password via the input unit 12, or a password setting screen is displayed on an engineering tool connected to the control device 10. The user enters a password through an engineering tool.

パスワード設定部17は、ユーザによってパスワードが入力されると、のパスワードをパスワード−外部データ対応情報に保存する(ステップS15)。ついで、外部データ保存処理部18は、外部記憶媒体内のデータを外部データ保存部14に設定した外部データ保存領域にコピーする(ステップS16)。その後、外部データ保存処理部18は、外部記憶媒体中の外部データと外部データ保存領域中の外部データとが一致しているか、すなわちエラーなく保存されたかを照合する(ステップS17)。 Password setting unit 17, when the password is input by the user, the this password password - storing the external data correspondence information (step S15). Next, the external data storage processing unit 18 copies the data in the external storage medium to the external data storage area set in the external data storage unit 14 (step S16). Thereafter, the external data storage processing unit 18, or the external data in the external data and the external data storage area in the external storage medium are the same, i.e. either stored without error, matching (step S17).

2つのデータが一致していない場合(ステップS17でNoの場合)には、表示部13または制御装置10に接続されるエンジニアリングツールにデータ異常を表示し(ステップS18)、ステップS16に処理が戻る。   If the two data do not match (No in step S17), the data abnormality is displayed on the display unit 13 or the engineering tool connected to the control device 10 (step S18), and the process returns to step S16. .

また、2つのデータが一致している場合(ステップS17でYesの場合)には、外部データ保存処理部18は、パスワード−外部データ対応情報で、コピーした外部データと設定したパスワードとを対応付けする(ステップS19)。そして、外部データ消去部20は、外部記憶媒体内の外部データを消去する(ステップS20)。以上によって、外部記憶媒体が接続された場合の外部データの退避処理が終了する。   If the two data match (Yes in step S17), the external data storage processing unit 18 associates the copied external data and the set password with the password-external data correspondence information. (Step S19). Then, the external data erasure unit 20 erases the external data in the external storage medium (step S20). Thus, the external data saving process when the external storage medium is connected is completed.

図5と図6は、実施の形態1による制御装置に外部記憶媒体が装着された場合の処理手順の具体例を示す図である。まず、図5(a)に示されるように、外部記憶媒体50が制御装置10のメモリインタフェース104に装着される。これによって、内部記憶部103には、外部データ保存領域1031が確保される。   5 and 6 are diagrams illustrating a specific example of a processing procedure when an external storage medium is attached to the control device according to the first embodiment. First, as shown in FIG. 5A, the external storage medium 50 is attached to the memory interface 104 of the control device 10. As a result, an external data storage area 1031 is secured in the internal storage unit 103.

ついで、図5(b)に示されるように、パスワードの設定処理が行われる。ここで、ユーザは、操作盤105からパスワードを入力し、のパスワードは、パスワード−外部データ対応情報1032に保存される。その後、外部記憶媒体50中の外部データ301が外部データ保存領域1031に外部データ351としてコピーされる。 Next, as shown in FIG. 5B, password setting processing is performed. Here, the user inputs the password through the operation panel 105, this password is the password - is stored in the external data correspondence information 1032. Thereafter, the external data 301 in the external storage medium 50 is copied to the external data storage area 1031 as the external data 351.

ついで、図6(a)に示されるように、外部記憶媒体50中の外部データ301と内部記憶部103の外部データ351との照合が行われ、両者が同一である場合には、外部データ351の保存位置がパスワード−外部データ対応情報にパスワードと対応付けされて保存される。そして、外部記憶媒体50中の外部データ301は消去される。   Next, as shown in FIG. 6A, the external data 301 in the external storage medium 50 and the external data 351 in the internal storage unit 103 are collated, and if both are the same, the external data 351 Is stored in the password-external data correspondence information in association with the password. Then, the external data 301 in the external storage medium 50 is deleted.

その後、図6(b)に示されるように、外部記憶媒体50が不正に抜き取られても、外部記憶媒体50には外部データとパスワードがともに保存されていないので、これらの情報が流出してしまうことを防ぐことができる。   Thereafter, as shown in FIG. 6B, even if the external storage medium 50 is illegally extracted, both the external data and the password are not stored in the external storage medium 50, so that the information leaks out. Can be prevented.

つぎに、外部記憶媒体の制御装置10からの取り外しおよび外部データの書戻し処理について説明する。図7は、実施の形態1による外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の一例を示すフローチャートである。   Next, removal of the external storage medium from the control device 10 and external data write-back processing will be described. FIG. 7 is a flowchart illustrating an example of an external storage medium extraction process from the control apparatus that involves the external data write-back process according to the first embodiment.

ここでは、データを有さない外部記憶媒体が制御装置10に接続されている状態にあるものとする。まず、ユーザが入力部12を介して外部記憶媒体取り外しコマンドを制御装置10に指示する(ステップS31)。これによって、たとえば表示部13には取り外しコマンドに関する表示画面が表示される。ついで、ユーザによって入力部12を介してパスワードが入力される(ステップS32)。パスワード判定部21は、入力されたパスワードがパスワード−外部データ対応情報に保存されているパスワードと一致するかを判定する(ステップS33)。   Here, it is assumed that an external storage medium having no data is connected to the control device 10. First, the user instructs an external storage medium removal command to the control device 10 via the input unit 12 (step S31). Thereby, for example, a display screen related to the removal command is displayed on the display unit 13. Next, a password is input by the user via the input unit 12 (step S32). The password determination unit 21 determines whether the input password matches the password stored in the password-external data correspondence information (step S33).

入力されたパスワードがパスワード−外部データ対応情報内のパスワードと一致しない場合(ステップS33でNoの場合)には、パスワードが一致しないことを表示部13に表示し(ステップS34)、ステップS32に戻る。また、入力されたパスワードがパスワード−外部データ対応情報内のパスワードと一致する場合(ステップS33でYesの場合)には、外部データ書戻し部22は、入力されたパスワードに対応する外部データ保存領域内の外部データを外部記憶媒体に書き戻す処理を行う(ステップS35)。   If the input password does not match the password in the password-external data correspondence information (No in step S33), the display unit 13 displays that the password does not match (step S34), and returns to step S32. . If the input password matches the password in the password-external data correspondence information (Yes in step S33), the external data write-back unit 22 uses the external data storage area corresponding to the input password. The external data is written back to the external storage medium (step S35).

また、外部データ書戻し部22は、外部記憶媒体に書き戻された外部データと外部データ保存部14の外部データ保存領域内の外部データとを照合し、両者が一致するかを判定する(ステップS36)。両者が一致しない場合(ステップS36でNoの場合)には、外部記憶媒体に書き戻したデータが異常である旨を表示部13に表示し(ステップS37)、ステップS35に戻る。   Also, the external data write-back unit 22 collates the external data written back to the external storage medium with the external data in the external data storage area of the external data storage unit 14 and determines whether or not they match (step S36). If they do not match (No in step S36), the display unit 13 displays that the data written back to the external storage medium is abnormal (step S37), and returns to step S35.

一方、両者が一致する場合(ステップS36でYesの場合)には、制御装置10の外部データ保存部14にコピーされたデータを消去するかを判定する(ステップS38)。外部記憶媒体にデータが書戻され、外部記憶媒体は接続前の状態に戻り、取外し可能の状態となり、このときに内部データ処理部23は、制御装置10の外部データ保存部14にコピーされたデータを消去するか否かを選択する選択画面を表示部13またはエンジニアリングツールに表示し、れに対するユーザの入力結果に基づいて判定を行う。 On the other hand, if the two match (Yes in step S36), it is determined whether to delete the data copied to the external data storage unit 14 of the control device 10 (step S38). The data is written back to the external storage medium, and the external storage medium returns to the state before connection and becomes a removable state. At this time, the internal data processing unit 23 is copied to the external data storage unit 14 of the control device 10. a selection screen for selecting whether or not to erase the data on the display unit 13 or the engineering tool, a determination based on the user's input result for Re this.

外部データ保存部14内のデータを消去する場合(ステップS38でYesの場合)には、内部データ処理部23は、外部データ保存部14の外部データ保存領域中の外部データを消去し(ステップS39)、パスワード−外部データ対応情報を更新する(ステップS40)。具体的には、パスワード−外部データ対応情報中の対応するレコードを消去する。   When deleting the data in the external data storage unit 14 (Yes in step S38), the internal data processing unit 23 deletes the external data in the external data storage area of the external data storage unit 14 (step S39). ), The password-external data correspondence information is updated (step S40). Specifically, the corresponding record in the password-external data correspondence information is deleted.

その後、または外部データ保存部14内のデータを消去しない場合(ステップS38でNoの場合)には、内部データ処理部23は外部記憶媒体を取り外し可能であることを表示部13に表示し(ステップS41)、処理が終了する。   Thereafter, or when the data in the external data storage unit 14 is not deleted (No in step S38), the internal data processing unit 23 displays on the display unit 13 that the external storage medium can be removed (step S38). S41), the process ends.

なお、ステップS38で外部データ保存部14内のデータを消去しない場合(ステップS38でNoの場合)で、同じ外部データを有する外部記憶媒体が装着された場合には、同じパスワードが継続して使用されることになる。また、前回保存されていたものとは異なる新しい外部データを有する外部記憶媒体が装着された場合には、新たな外部データに対して新たなパスワードが設定される。そのため、外部記憶媒体が装着された際に、外部記憶媒体中の外部データと同じ外部データが既に外部データ保存部14に保存されているかを判定する機能をたとえば外部データ判定部16に持たせてもよい。   If the data in the external data storage unit 14 is not erased in step S38 (No in step S38) and the external storage medium having the same external data is loaded, the same password is continuously used. Will be. In addition, when an external storage medium having new external data different from that stored last time is loaded, a new password is set for the new external data. Therefore, for example, the external data determination unit 16 has a function of determining whether the same external data as the external data in the external storage medium is already stored in the external data storage unit 14 when the external storage medium is loaded. Also good.

また、ステップS38で外部データ保存部14内のデータを消去する場合(ステップS38でYesの場合)で、再び同じ外部データを有する外部記憶媒体が装着された場合には、パスワードは再設定されることになる。   If the data in the external data storage unit 14 is erased in step S38 (Yes in step S38) and the external storage medium having the same external data is mounted again, the password is reset. It will be.

図8と図9は、実施の形態1による制御装置から外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の具体例を示す図である。まず、図8(a)に示されるように、空の外部記憶媒体50が制御装置10に装着された状態で、外部記憶媒体50の取り外しの指示が出される。   FIG. 8 and FIG. 9 are diagrams illustrating a specific example of the external storage medium extraction process from the control apparatus involving the external data write-back process from the control apparatus according to the first embodiment. First, as illustrated in FIG. 8A, an instruction to remove the external storage medium 50 is issued in a state where the empty external storage medium 50 is attached to the control device 10.

ついで、図8(b)に示されるように、パスワードの入力がユーザに対して求められる。これに対して、ユーザは、操作盤105を介してパスワードの入力を行う。そして、入力されたパスワードとパスワード−外部データ対応情報に含まれるパスワードとの照合が行われる。   Next, as shown in FIG. 8B, the user is required to input a password. In response to this, the user inputs a password via the operation panel 105. Then, the input password is checked against the password included in the password-external data correspondence information.

その後、図9(a)に示されるように、パスワードが一致した場合には、内部記憶部103の外部データ保存領域1031の外部データ351が外部記憶媒体50に外部データ301としてコピーされる。そして、外部データ保存領域1031の外部データ351と外部記憶媒体50の外部データ301とが照合される。   Thereafter, as shown in FIG. 9A, when the passwords match, the external data 351 in the external data storage area 1031 of the internal storage unit 103 is copied as the external data 301 to the external storage medium 50. Then, the external data 351 in the external data storage area 1031 and the external data 301 in the external storage medium 50 are collated.

そして、図9(b)に示されるように、照合の結果、両者が一致する場合には、外部記憶媒体50は制御装置10への装着前の状態と同じ状態、すなわち図5(a)の状態に戻ることになり、ユーザによって取り外される。 As shown in FIG. 9 (b), when the two match as a result of the collation, the external storage medium 50 is in the same state as that before being mounted on the control device 10 , that is, in FIG. 5 (a). Will be returned to the state and removed by the user.

実施の形態1では、外部記憶媒体が装着されると、外部記憶媒体中の外部データを書き戻す際に必要なパスワードを外部データ保存部14内のパスワード−外部データ対応情報に保存し、外部記憶媒体中の外部データを外部データ保存領域に保存し、外部記憶媒体中の外部データを削除するようにした。これによって、外部記憶媒体が制御装置10から抜き取られてしまった場合でも、外部記憶媒体中には外部データが保存されていないので、データが第三者に流出する虞がないという効果を有する。また、外部記憶媒体中にはパスワードも保存されていないので、パスワードの流出を防ぐことができるという効果も有する。   In the first embodiment, when an external storage medium is loaded, a password necessary for writing back external data in the external storage medium is stored in the password-external data correspondence information in the external data storage unit 14, and the external storage is performed. The external data in the medium is stored in the external data storage area, and the external data in the external storage medium is deleted. As a result, even when the external storage medium is removed from the control device 10, since the external data is not stored in the external storage medium, there is an effect that there is no possibility of the data leaking to a third party. In addition, since the password is not stored in the external storage medium, the password can be prevented from being leaked.

さらに、外部データに紐付けられたパスワードが入力された場合にのみ外部データを外部記憶媒体に書き戻すようにした。これによって、外部データの暗号化を使用せずに外部データの保護を実現することができるという効果を有する。   Furthermore, the external data is written back to the external storage medium only when the password associated with the external data is input. As a result, the external data can be protected without using external data encryption.

実施の形態2.
実施の形態1では、外部記憶媒体中の外部データを外部データ保存部内に保存する場合に、外部データ保存部の空き容量が外部記憶媒体中の外部データのサイズよりも大きいことを前提としていた。実施の形態2では、外部データ保存部の空き容量が外部記憶媒体中の外部データのサイズよりも小さい場合について説明する。
Embodiment 2. FIG.
In the first embodiment, when external data in the external storage medium is stored in the external data storage unit, it is assumed that the free space of the external data storage unit is larger than the size of the external data in the external storage medium. In the second embodiment, a case where the free capacity of the external data storage unit is smaller than the size of the external data in the external storage medium will be described.

実施の形態2の制御装置の構成は、実施の形態1の図1に示したものと基本的に同じ構成であるが、外部データ判定部16と外部データ消去部20の機能が実施の形態1のものとは異なる。   The configuration of the control device of the second embodiment is basically the same as that shown in FIG. 1 of the first embodiment, but the functions of the external data determination unit 16 and the external data erasing unit 20 are the same as those of the first embodiment. Different from that.

外部データ判定部16は、外部データ保存部14の空き容量を確認し、また外部記憶媒体中の外部データのサイズを確認し、外部データの合計サイズが外部データ保存部14の空き容量よりも大きい場合に、ユーザによって選択される外部データを外部データ保存部14に保存する機能を有する。具体的には、外部データ保存部14に退避する外部データである退避外部データと、外部記憶媒体に残存させる外部データである残存外部データに分ける処理を行う。このときに、外部データ判定部16は、外部データ保存部14に保存する外部データを選択する選択画面を表示部13に表示する。また、選択された外部データの合計サイズが外部データ保存部14の空き容量よりも大きい場合に、外部データ保存部14に保存できない旨の通知または表示を行うようにしてもよい。また、ここではユーザによって退避外部データと残存外部データとを分ける場合を示しているが、予め外部データに優先順位情報を設け、優先順位情報と外部データ保存部14の空き容量とに基づいて、退避外部データと残存外部データとを選択するようにしてもよい。 The external data determination unit 16 confirms the free capacity of the external data storage unit 14 and confirms the size of the external data in the external storage medium, and the total size of the external data is larger than the free capacity of the external data storage unit 14. In some cases, the external data selected by the user is stored in the external data storage unit 14. Specifically, performing the save external data which is an external data to be saved in the external data storage unit 14, a process of dividing the remaining external data which is an external data to be left in the external storage medium. At this time, the external data determination unit 16 displays a selection screen for selecting the external data to be stored in the external data storage unit 14 on the display unit 13. Further, when the total size of the selected external data is larger than the free space of the external data storage unit 14, a notification or display indicating that the external data storage unit 14 cannot store the data may be performed. Further, here, a case where the saved external data and the remaining external data are separated by the user is shown, but priority information is provided in advance in the external data, and based on the priority information and the free capacity of the external data storage unit 14, The saved external data and the remaining external data may be selected.

外部データ消去部20は、外部データ保存領域の大きさが外部データの合計サイズよりも小さい場合に、外部データ保存部14に退避するように指定された退避外部データ以外は保護されないので、使用中に外部記憶媒体が第三者に取り外されないように注意を喚起する表示を表示部13にする機能をさらに有する。   The external data erasure unit 20 is not being used because the external data other than the saved external data designated to be saved in the external data saving unit 14 is not protected when the size of the external data saving area is smaller than the total size of the external data. The display unit 13 is further provided with a display for calling attention so that the external storage medium is not removed by a third party.

つぎに、実施の形態2による制御装置10の動作について説明する。図10は、実施の形態2による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。   Next, the operation of the control device 10 according to the second embodiment will be described. FIG. 10 is a flowchart illustrating an example of a processing procedure when an external storage medium is attached to the control device according to the second embodiment.

まず、実施の形態1の図4のステップS11からS13と同様に、外部記憶媒体が制御装置10に装着されると、外部データ保存領域設定部15が内部記憶部に外部データ保存領域を設定し、外部記憶媒体中に外部データが存在するかを判定する(ステップS51からS53)。外部記憶媒体中にデータが存在しない場合(ステップS53でNoの場合)には、退避するデータがないので、処理が終了する。 First, as in steps S11 to S13 of FIG. 4 of the first embodiment, when an external storage medium is loaded in the control device 10, the external data storage area setting unit 15 sets an external data storage area in the internal storage unit. Then, it is determined whether external data exists in the external storage medium (steps S51 to S53). If there is no data in the external storage medium (No in step S53), there is no data to be saved, and the process ends.

また、外部記憶媒体内にデータが存在する場合(ステップS53でYesの場合)には、外部データ判定部16は、設定された外部データ保存領域が外部記憶媒体の外部データの合計サイズ以上であるかを判定する(ステップS54)。外部データ保存領域が外部データの合計サイズよりも小さい場合(ステップS54でNoの場合)には、外部データ判定部16は、外部データ振り分け設定処理を行う(ステップS55)。外部データ振り分け設定処理は、たとえば、容量不足で外部データのすべてを保護できないことを表示部13に表示し、外部データ保存部14に退避させる退避外部データと、外部記憶媒体に残存させる残存外部データと、を振り分ける振り分け画面を表示部13に表示する。ユーザは退避可能データ容量を基に、入力部12を介して退避外部データと、残存外部データとに振り分け、外部データ判定部16は、の結果を外部データ振り分け設定として記憶する。なお、この外部データ振り分け設定処理後に、外部データ判定部16は、退避外部データ以外は保護されないことを表示部13に表示してもよい。 When data exists in the external storage medium (Yes in step S53), the external data determination unit 16 determines that the set external data storage area is equal to or larger than the total size of the external data on the external storage medium. Is determined (step S54). If the external data storage area is smaller than the total size of the external data (No in step S54), the external data determination unit 16 performs an external data distribution setting process (step S55). In the external data distribution setting process, for example, the display unit 13 displays that the external data cannot be protected due to insufficient capacity, and the saved external data saved in the external data saving unit 14 and the remaining external data left in the external storage medium And a sorting screen for sorting and is displayed on the display unit 13. The user on the basis of the retractable data capacity, and saving the external data via the input unit 12, distributed to the remaining external data, external data determination unit 16 stores the result of this as an external data distribution settings. After the external data distribution setting process, the external data determination unit 16 may display on the display unit 13 that only the saved external data is protected.

図11は、実施の形態2による外部データの選択処理の様子を示す図である。ここでは、図11(a)に示されるように、制御装置10に装着時の外部記憶媒体50には、4つの外部データ301から304が保存されており、外部データ301,302,303,304の順で優先度が低くなるものとする。 FIG. 11 is a diagram illustrating the external data selection process according to the second embodiment. Here, as shown in FIG. 11A, four external data 301 to 304 are stored in the external storage medium 50 at the time of mounting on the control device 10, and the external data 301, 302, 303, 304 are stored. Assume that the priority becomes lower in the order of.

図11(b)に示されるように、内部記憶部103は使用領域1031Aと空き領域1031Bとを有し、空き領域1031Bにはすべての外部データ301から304を保存することができないものとする。 As shown in FIG. 11B, it is assumed that the internal storage unit 103 has a use area 1031A and a free area 1031B, and cannot store all external data 301 to 304 in the free area 1031B.

そこで、ユーザによって、優先度の高い外部データ301,302が内部記憶部103への退避外部データとして指定され、外部データ303,304が外部記憶媒体50に残存する残存外部データとして指定されたものとする。その結果、図11(b)に示されるように、内部記憶部103の空き領域1031Bには外部データ301,302が保存され、図11(c)に示されるように、外部記憶媒体50には外部データ303,304が残される。   Therefore, it is assumed that the external data 301 and 302 with high priority are designated by the user as saved external data to the internal storage unit 103, and the external data 303 and 304 are designated as remaining external data remaining in the external storage medium 50. To do. As a result, as shown in FIG. 11B, the external data 301 and 302 are stored in the free area 1031B of the internal storage unit 103, and in the external storage medium 50 as shown in FIG. External data 303 and 304 are left.

その後またはステップS54で外部データ保存領域が外部データの合計サイズ以上の場合(ステップS54でYesの場合)には、パスワード設定部17は、データ書戻し時のパスワードの設定を行い(ステップS56)、パスワードをパスワード−外部データ対応情報に保存する(ステップS57)。ついで、外部データ保存処理部18は、外部記憶媒体内の退避外部データを外部データ保存領域にコピーする(ステップS58)。その後、外部データ保存処理部18は、外部記憶媒体内の退避外部データと外部データ保存領域の退避外部データとが一致するか判定を行う(ステップS59)。両者が一致しない場合(ステップS59でNoの場合)には、データ異常を表示部13に表示し(ステップS60)、ステップS58に戻る。また、両者が一致する場合(ステップS59でYesの場合)には、退避外部データの保存位置をパスワード−外部データ対応情報に、パスワードに対応づけて保存する(ステップS61)。   After that, or when the external data storage area is equal to or larger than the total size of the external data at Step S54 (Yes at Step S54), the password setting unit 17 sets a password when data is written back (Step S56). The password is stored in the password-external data correspondence information (step S57). Next, the external data storage processing unit 18 copies the saved external data in the external storage medium to the external data storage area (step S58). Thereafter, the external data storage processing unit 18 determines whether the saved external data in the external storage medium matches the saved external data in the external data storage area (step S59). If they do not match (No in step S59), the data abnormality is displayed on the display unit 13 (step S60), and the process returns to step S58. If the two match (Yes in step S59), the save position of the saved external data is saved in the password-external data correspondence information in association with the password (step S61).

その後、内部データ処理部23は、外部記憶媒体内の退避外部データのみを消去する(ステップS62)。そして、内部データ処理部23は、指定された退避外部データ以外は保護されないので、使用後は外部記憶媒体を離脱するように注意喚起するメッセージを表示部13に表示して(ステップS63)、処理が終了する。   Thereafter, the internal data processing unit 23 deletes only the saved external data in the external storage medium (step S62). Since the internal data processing unit 23 is not protected except for the designated saved external data, the internal data processing unit 23 displays a message on the display unit 13 so as to leave the external storage medium after use (step S63). Ends.

なお、データ書戻し処理を伴う外部記憶媒体の取り外し処理は、実施の形態1で説明したものとほぼ同様であるので、その説明を省略する。   Note that the external storage medium removal process that accompanies the data write-back process is substantially the same as that described in the first embodiment, and a description thereof will be omitted.

実施の形態2では、外部記憶媒体中の外部データの合計サイズが外部データ保存部14の空き容量よりも大きい場合に、ユーザによって選択された外部データを外部データ保存部14の外部データ保存領域に保存し、れ以外のデータを外部記憶媒体に残し、外部記憶媒体の管理に注意を促すメッセージを表示するようにした。そのため、外部記憶媒体の制御装置10への装着状態が継続してしまうことの注意喚起をユーザに対して促すことができるという効果を実施の形態1の効果に加えて得ることができる。 In the second embodiment, when the total size of the external data in the external storage medium is larger than the free capacity of the external data storage unit 14, the external data selected by the user is stored in the external data storage area of the external data storage unit 14. Save, leaving the other is this data to an external storage medium, and to display the reminder in the management of the external storage medium. Therefore, in addition to the effect of the first embodiment, it is possible to urge the user to be alerted that the state where the external storage medium is attached to the control device 10 continues.

実施の形態3.
実施の形態3では、実施の形態2と同様に、外部データ保存部の空き容量が外部記憶媒体中の外部データのサイズよりも小さい場合について説明する。
Embodiment 3 FIG.
In the third embodiment, as in the second embodiment, a case where the free space of the external data storage unit is smaller than the size of the external data in the external storage medium will be described.

図12は、実施の形態3による制御装置の機能構成を模式的に示すブロック図である。制御装置10は、実施の形態1の構成に、データ分割部25と、データ結合部26と、をさらに備える。   FIG. 12 is a block diagram schematically illustrating a functional configuration of the control device according to the third embodiment. The control device 10 further includes a data dividing unit 25 and a data combining unit 26 in the configuration of the first embodiment.

データ分割部25は、外部記憶媒体中の外部データの合計サイズが外部データ保存部14の空き容量よりも大きいと外部データ判定部16に判定された場合に、外部記憶媒体中で外部データを複数に分割する。外部データの分割として、分割された一方のデータだけでは意味がなくなるようにするランダム分割、または1行おきの分割などの方法が使用される。また、外部データの分割は、各外部データの分割された一部が外部データ保存部14の外部データ保存領域に保存されるように、分割されるサイズが計算される。   When the external data determination unit 16 determines that the total size of the external data in the external storage medium is larger than the free capacity of the external data storage unit 14, the data division unit 25 stores a plurality of external data in the external storage medium. Divide into As the division of the external data, a method such as random division in which only one piece of divided data is meaningless or division every other row is used. Further, in the division of the external data, the size to be divided is calculated so that a part of each piece of the external data is stored in the external data storage area of the external data storage unit 14.

データ結合部26は、外部データ保存部14中の分割された外部データを外部記憶媒体に書き戻す場合あるいは制御処理部24で外部データであるプログラムを実行する際にワークメモリであるRAMに展開するの外部データが外部データ保存部14と外部記憶媒体に分割された状態で存在する場合に、分割されたデータをそれぞれ外部データ保存部14と外部記憶媒体からワークメモリに読み出し、結合して展開する。なお、実施の形態1,2と同一の構成要素には同一の符号を付してその説明を省略する。 Data combining unit 26, the RA M is a work memory when executing a program which is an external data or when the control unit 24 to rewrite the divided external data has been in the external data storage unit 14 in the external storage medium when present in a state where external data this deployment is divided into an external data storage unit 14 and the external storage medium, reads the divided data from the external data storage unit 14 and the external storage medium, respectively in the work memory, bound And expand. In addition, the same code | symbol is attached | subjected to the component same as Embodiment 1, 2, and the description is abbreviate | omitted.

つぎに、実施の形態3による制御装置10の動作について説明する。図13は、実施の形態3による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。   Next, the operation of the control device 10 according to the third embodiment will be described. FIG. 13 is a flowchart illustrating an example of a processing procedure when an external storage medium is mounted on the control device according to the third embodiment.

まず、実施の形態2の図10のステップS51からS54と同様に、外部記憶媒体が制御装置10に装着されると、外部データ保存領域設定部15が外部データ保存部14に外部データ保存領域を設定し、外部記憶媒体中に外部データが存在するかを判定する。外部記憶媒体中にデータが存在しない場合には、退避するデータがないので、処理が終了し、外部記憶媒体中にデータが存在する場合には、外部データ判定部16は、設定された外部データ保存領域が外部記憶媒体の外部データの合計サイズ以上であるかを判定する(ステップS71からS74)。 First, as in steps S51 to S54 in FIG. 10 of the second embodiment, when an external storage medium is loaded in the control device 10, the external data storage area setting unit 15 sets an external data storage area in the external data storage unit 14. Set to determine whether external data exists in the external storage medium. When there is no data in the external storage medium, there is no data to be saved, so the processing ends, and when there is data in the external storage medium, the external data determination unit 16 sets the set external data. It is determined whether the storage area is equal to or larger than the total size of the external data on the external storage medium (steps S71 to S74).

ついで、外部データ保存領域が外部記憶媒体の外部データの合計サイズよりも小さい場合(ステップS74でNoの場合)には、データ分割部25は、外部データ保存部14の空き容量を基に、外部データを外部データ保存部14へ退避する退避データと、外部記憶媒体に残存させる残存データと、に分割する(ステップS75)。なお、このとき、容量不足で外部データのすべてを保護できないことを表示部13に表示してもよい。   Next, when the external data storage area is smaller than the total size of the external data on the external storage medium (in the case of No in step S74), the data dividing unit 25 uses the free capacity of the external data storage unit 14 to The data is divided into saved data for saving to the external data storage unit 14 and remaining data to remain in the external storage medium (step S75). At this time, it may be displayed on the display unit 13 that all of the external data cannot be protected due to insufficient capacity.

その後またはステップS74で外部データ保存領域が外部記憶媒体の外部データの合計サイズ以上である場合(ステップS74でYesの場合)には、パスワード設定部17は、外部データ保存部14から外部記憶媒体にデータを書き戻すためのパスワード設定処理を行う(ステップS76)。ついで、パスワード設定部17は、ユーザによってパスワードが入力されると、のパスワードをパスワード−外部データ対応情報に保存する(ステップS77)。その後、外部データ保存処理部18は、外部データを分割して保存することを表示部13に表示する(ステップS78)。 After that or when the external data storage area is equal to or larger than the total size of the external data in the external storage medium (Yes in step S74), the password setting unit 17 transfers the external data storage unit 14 from the external data storage unit 14 to the external storage medium. A password setting process for writing back the data is performed (step S76). Then, the password setting unit 17, when the password is input by the user, the this password password - storing the external data correspondence information (step S77). Thereafter, the external data storage processing unit 18 displays on the display unit 13 that the external data is divided and stored (step S78).

ついで、外部データ保存処理部18は、外部記憶媒体内の退避データを外部データ保存部14に設定した外部データ保存領域にコピーする(ステップS79)。その後、外部データ保存処理部18は、外部記憶媒体中の退避データと外部データ保存領域中の退避データとが一致しているか、すなわちエラーなく保存されたかを照合する(ステップS80)。 Next, the external data storage processing unit 18 copies the saved data in the external storage medium to the external data storage area set in the external data storage unit 14 (step S79). Thereafter, the external data storage processing unit 18, or the saved data in the save data and the external data storage area in the external storage medium are the same, i.e. either stored without error, matching (step S80).

2つのデータが一致していない場合(ステップS80でNoの場合)には、表示部13または制御装置10に接続されるエンジニアリングツールにデータ異常を表示し(ステップS81)、ステップS79に処理が戻る。   If the two data do not match (No in step S80), the data abnormality is displayed on the display unit 13 or the engineering tool connected to the control device 10 (step S81), and the process returns to step S79. .

また、2つのデータが一致している場合(ステップS80でYesの場合)には、外部データ保存処理部18は、パスワード−外部データ対応情報で、外部データ保存部14にコピーした退避データと、設定したパスワードとを対応付けする(ステップS82)。そして、外部データ消去部20は、外部記憶媒体内の退避データのみを消去し、残存データをそのまま残存させる(ステップS83)。以上によって、外部記憶媒体が接続された場合の外部データの退避処理が終了する。   If the two data match (Yes in step S80), the external data storage processing unit 18 uses the password-external data correspondence information and saves the data copied to the external data storage unit 14, The set password is associated (step S82). Then, the external data erasure unit 20 erases only the saved data in the external storage medium and leaves the remaining data as it is (step S83). Thus, the external data saving process when the external storage medium is connected is completed.

図14と図15は、実施の形態3による制御装置に外部記憶媒体が装着された場合の処理手順の具体例を示す図である。図14(a)に示されるように、外部記憶媒体50が制御装置10に装着されると、外部記憶媒体50に保存されている外部データ301の合計サイズと、内部記憶部103の空き容量とを取得し、両者が比較される。   14 and 15 are diagrams illustrating a specific example of a processing procedure when an external storage medium is mounted on the control device according to the third embodiment. As shown in FIG. 14A, when the external storage medium 50 is attached to the control device 10, the total size of the external data 301 stored in the external storage medium 50, the free capacity of the internal storage unit 103, And the two are compared.

ついで、図14(b)に示されるように、内部記憶部103の空き容量が外部記憶媒体50の合計サイズに比して小さい場合には、外部記憶媒体50内の外部データ301が分割される。ここでは、外部データ301は、データ301Aから301Cに三分割される。三分割されたそれぞれのデータ301Aから301Cは、それ自体では意味を有さないデータとなっている。その後、パスワードの設定処理が行われ、パスワード−外部データ対応情報1032にパスワードが保存される。 Next, as shown in FIG. 14B, when the free capacity of the internal storage unit 103 is smaller than the total size of the external storage medium 50, the external data 301 in the external storage medium 50 is divided. . Here, the external data 301 is divided into three pieces of data 301A to 301C. Each of the three divided data 301A to 301C is data that has no meaning in itself. Thereafter, a password setting process is performed, and the password is stored in the password-external data correspondence information 1032.

ついで、図15(a)に示されるように、外部記憶媒体50中の分割したデータ301Aから301Cの内の一部のデータ301Bが内部記憶部103の外部データ保存領域1031にデータ351Bとしてコピーされる。その後、外部記憶媒体50中のデータ301Bと内部記憶部103内のデータ351Bとが一致するか照合され、一致すると外部記憶媒体50中のデータ301Bが消去される。また、コピーされたデータ301Bの保存位置は、パスワード−外部データ対応情報にパスワードと対応付けされて保存される。 Next, as shown in FIG. 15A, a part of the divided data 301A to 301C in the external storage medium 50 is copied as data 351B to the external data storage area 1031 of the internal storage unit 103. The Thereafter, the data 301B in the external storage medium 50 and the data 351B in the internal storage unit 103 are matched or checked, and if they match, the data 301B in the external storage medium 50 is erased. The storage location of the copied data 301B is stored in the password-external data correspondence information in association with the password.

その後、図15(b)に示されるように、外部記憶媒体50が不正に抜き取られた場合に、外部記憶媒体50にはデータ301A,301Cが存在するのみである。このデータ301A,301Cは、外部データ301を分割したものであり、しかも一部のデータ301Bが抜けたデータであり、意味がなくなっている。そのため、不正に抜き取った第三者によって、外部記憶媒体50内の外部データ301が不正に利用されてしまうことなどを防ぐことができる。   After that, as shown in FIG. 15B, when the external storage medium 50 is illegally extracted, only data 301A and 301C exist in the external storage medium 50. These data 301A and 301C are data obtained by dividing the external data 301, and are partly missing data 301B, and have no meaning. Therefore, it is possible to prevent the external data 301 in the external storage medium 50 from being illegally used by an unauthorized third party.

なお、図14と図15では、外部記憶媒体50に1つの外部データ301が含まれる場合であったが、複数の外部データが含まれる場合でも、同様である。図16は、外部記憶媒体に複数の外部データがある場合の分割の方法を模式的に示す図である。   14 and 15, the external storage medium 50 includes one external data 301. However, the same applies to a case where a plurality of external data is included. FIG. 16 is a diagram schematically showing a dividing method when there are a plurality of external data in the external storage medium.

図16(a)に示されるように、外部データ保存部14内の内部記憶部103は、既にデータまたはプログラムが格納されている使用領域1031Aと、使用されていない空き領域1031Bと、を有する状態となっている。 As shown in FIG. 16 (a), the internal storage unit 103 in the external data storage unit 14 has already a used area 1031A of data or program is stored, and free space 1031B that is not being used, the It is in a state.

外部記憶媒体50が装着されると、空き領域1031Bの容量と外部記憶媒体50中の外部データ301から303の合計サイズとが比較される。外部記憶媒体50中の外部データ301から303の合計サイズが内部記憶部103の空き領域1031Bの容量よりも大きい場合には、図16(b)に示されるように、データ分割部25によって各外部データ301から303が、データ301Aから301C,302Aから302C,303Aから303Cに分割される。ここでは、1つの外部データが3つのデータに分割される場合が示されている。また、ここでは図示していないが外部データ301A,301C,302A,302C,303A,303Cが残存データとされ、外部データ301B,302B,303Bが退避データとされる。 When the external storage medium 50 is loaded, the capacity of the free area 1031B is compared with the total size of the external data 301 to 303 in the external storage medium 50. When the total size of the external data 301 to 303 in the external storage medium 50 is larger than the capacity of the free area 1031B of the internal storage unit 103, as shown in FIG. Data 301 to 303 are divided into data 301A to 301C, 302A to 302C, and 303A to 303C. Here, a case where one external data is divided into three data is shown. Although not shown here, the external data 301A, 301C, 302A, 302C, 303A, and 303C are the remaining data, and the external data 301B, 302B, and 303B are the save data.

ついで、図16(c)に示されるように、分割されたデータのうち退避データ301B,302B,303Bのみが内部記憶部103の外部データ保存領域である空き領域1031Bにコピーされ、残存データ301A,301C,302A,302C,303A,303Cはそのまま外部記憶媒体50に残されたままとなる。このとき、分割された退避データ301B,302B,303Bの合計サイズは、空き領域1031Bの容量以下となっている。その後、コピーされた退避データ301B,302B,303Bと外部記憶媒体50中の退避データ301B,302B,303Bとが一致すると外部記憶媒体50から退避データ301B,302B,303Bが削除される。 Next, as shown in FIG. 16C, only the saved data 301B, 302B, and 303B among the divided data are copied to the free area 1031B that is the external data storage area of the internal storage unit 103, and the remaining data 301A , 301C, 302A, 302C, 303A, and 303C remain as they are in the external storage medium 50. At this time, the total size of the divided save data 301B, 302B, and 303B is equal to or less than the capacity of the free area 1031B. Thereafter, when the copied save data 301B, 302B, and 303B match the save data 301B, 302B, and 303B in the external storage medium 50, the save data 301B, 302B, and 303B are deleted from the external storage medium 50.

つぎに、外部記憶媒体の制御装置10からの取り外しおよび外部データの書戻し処理について説明する。図17は、実施の形態3による外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の一例を示すフローチャートである。   Next, removal of the external storage medium from the control device 10 and external data write-back processing will be described. FIG. 17 is a flowchart illustrating an example of an external storage medium extraction process from the control apparatus that involves an external data write-back process according to the third embodiment.

まず、実施の形態1の図7のステップS31からS34と同様に、外部記憶媒体取り外しコマンドが実行されると、パスワードが入力され、入力されたパスワードがパスワード−外部データ対応情報中のパスワードと一致するかが判定される(ステップS91からS94)。 First, as in steps S31 to S34 in FIG. 7 of the first embodiment, when the external storage medium removal command is executed, the password is input, and the input password matches the password in the password-external data correspondence information. It is determined whether to do so (steps S91 to S94).

入力されたパスワードとパスワード−外部データ対応情報中のパスワードとが一致した場合(ステップS93でYesの場合)には、データ結合部26は、パスワードに対応付けられた外部データ保存部14の外部データ保存領域から退避データを読み込み、また対応する残存データを外部記憶媒体50から読み込み、これらの退避データと残存データとを結合して外部データを復元する(ステップS95)。また、復元した外部データを外部記憶媒体50に書き戻す(ステップS96)。その後、生成した外部データと外部記憶媒体50に書き戻した外部データとが一致するかを照合する(ステップS97)。両者が一致しない場合(ステップS97でNoの場合)には、外部記憶媒体に書き戻した外部データが異常である旨を表示部13に表示し(ステップS98)、ステップS96に戻る。   If the input password matches the password in the password-external data correspondence information (Yes in step S93), the data combining unit 26 uses the external data stored in the external data storage unit 14 associated with the password. The save data is read from the save area, the corresponding remaining data is read from the external storage medium 50, and the save data and the remaining data are combined to restore the external data (step S95). Further, the restored external data is written back to the external storage medium 50 (step S96). Thereafter, it is checked whether the generated external data matches the external data written back to the external storage medium 50 (step S97). If they do not match (No in step S97), the display unit 13 displays that the external data written back to the external storage medium is abnormal (step S98), and returns to step S96.

一方、両者が一致する場合(ステップS97でYesの場合)には、制御装置10の外部データ保存部14にコピーされた退避データを消去するかを判定する(ステップS99)。以上の処理では、外部記憶媒体50に外部データが書戻され、取外し可能の状態となっている。このときに内部データ処理部23は、制御装置10の外部データ保存部14にコピーされた退避データを消去するか否かを選択する選択画面を表示部13またはエンジニアリングツールに表示し、れに対するユーザの入力結果に基づいて判定を行う。 On the other hand, if the two match (Yes in step S97), it is determined whether to save the saved data copied to the external data storage unit 14 of the control device 10 (step S99). In the above processing, the external data is written back to the external storage medium 50 and is in a removable state. Internal data processing unit 23 in this case, a selection screen for selecting whether or not to erase the save data copied to the external data storage unit 14 of the controller 10 on the display unit 13 or engineering tools, for Re this The determination is performed based on the user input result.

外部データ保存部14内の退避データを消去する場合(ステップS99でYesの場合)には、内部データ処理部23は、外部データ保存部14の外部データ保存領域中の退避データを消去し(ステップS100)、パスワード−外部データ対応情報中の対応するレコードを消去し、更新する(ステップS101)。   When erasing the saved data in the external data storage unit 14 (Yes in step S99), the internal data processing unit 23 erases the saved data in the external data storage area of the external data storage unit 14 (step S99). S100), the corresponding record in the password-external data correspondence information is deleted and updated (step S101).

その後、または外部データ保存部14内の退避データを消去しない場合(ステップS99でNoの場合)には、内部データ処理部23は外部記憶媒体を取り外し可能であることを表示部13に表示し(ステップS102)、処理が終了する。   Thereafter, or when the saved data in the external data storage unit 14 is not deleted (No in step S99), the internal data processing unit 23 displays on the display unit 13 that the external storage medium can be removed ( Step S102), the process ends.

図18は、実施の形態3による分割されたデータの実行処理の手順の一例を示すフローチャートである。まず、外部データ保存部14中のプログラムまたはパラメータなどのデータの実行コマンドが指示されると(ステップS111)、制御処理部24は指示されたコマンドに対応するデータであるプログラムが分割されているかを確認する(ステップS112)。データであるプログラムが分割されていない場合(ステップS112でNoの場合)には、制御処理部24はデータであるプログラムをメインメモリであるワークメモリに読み出す(ステップS113)。そして、読み出したデータを実行し(ステップS117)、処理が終了する。 FIG. 18 is a flowchart illustrating an example of a procedure for executing divided data according to the third embodiment. First, the external when the data storage unit 14 in a program or data for executing commands such parameters is instructed (step S 111), control processor 24 is a data corresponding to the instruction command program is divided (Step S112). If the data program is not divided (No at step S112), the control processor 24 reads out a program which is data in the work memory is a main memory (step S113). Then, the read data is executed (step S117), and the process ends.

一方、データであるプログラムが分割されている場合(ステップS112でYesの場合)には、データ結合部26は、指示されたコマンドに対応する残存データを外部記憶媒体50からメインメモリであるワークメモリに読み出し(ステップS114)、また指示されたコマンドに対応する退避データを外部データ保存部14からメインメモリであるワークメモリに読み出す(ステップS115)。その後、データ結合部26は、読み出した残存データと退避データとを結合し、外部データを復元する(ステップS116)。そして、制御処理部24は、メインメモリであるワークメモリに復元された外部データを実行し(ステップS117)、処理が終了する。 On the other hand, in the case (Yes in step S112) that a data program is divided, the data combining unit 26 is a main memory residual data corresponding to the designated command from the external storage medium 50 work read memory (step S114), and reads the saved data corresponding to the designated command from the external data storage unit 14 to the work memory is a main memory (step S115). Thereafter, the data combining unit 26 combines the read remaining data and the saved data to restore the external data (step S116). Then, the control unit 24 executes the external data restored to the work memory is a main memory (step S117), the processing is terminated.

実施の形態3では、外部データ保存部14に外部記憶媒体50中の外部データをすべて保存することができない場合に、すべての外部データを分割し、各外部データから一部の分割データを退避データとして外部データ保存部14の外部データ保存領域に保存し、退避データ以外のデータを残存データとして外部記憶媒体50中に残すようにした。これによって、外部記憶媒体50が抜き取られてしまった場合でも、外部記憶媒体50には完全なデータが含まれていないので、データの流出を防ぐことができるという効果を有する。   In the third embodiment, when all the external data in the external storage medium 50 cannot be stored in the external data storage unit 14, all the external data is divided and a part of the divided data is saved from each external data. The data is stored in the external data storage area of the external data storage unit 14 and data other than the saved data is left in the external storage medium 50 as remaining data. As a result, even when the external storage medium 50 is extracted, the external storage medium 50 does not contain complete data, so that an outflow of data can be prevented.

実施の形態4.
実施の形態4では、外部データ保存領域に保存された外部データを更新した場合の処理について説明する。
Embodiment 4 FIG.
In the fourth embodiment, a process when the external data stored in the external data storage area is updated will be described.

実施の形態4による制御装置10は、実施の形態1の図1に示されたものとほぼ同様の構成を有するが、外部データ保存処理部18、外部データ書戻し部22および内部データ処理部23の機能が実施の形態1のものとは異なる。外部データ保存処理部18は、ユーザによって入力部12を介して外部データが更新された場合には、外部データ保存領域に更新された外部データである更新外部データを保存し、元の外部データのパスワードに対応付けてパスワード−外部データ対応情報に、更新外部データの格納位置を記憶する機能を有する。 The control device 10 according to the fourth embodiment has substantially the same configuration as that shown in FIG. 1 of the first embodiment, but the external data storage processing unit 18, the external data write-back unit 22, and the internal data processing unit 23. Is different from that of the first embodiment. External data storage processing unit 18, when the external data is updated via the input unit 12 by the user, and save the updated external data is an external data updated in the external data storage area, the original external data The storage location of the updated external data is stored in the password-external data correspondence information in association with the password.

図19は、実施の形態4によるパスワード−外部データ対応情報の一例を示す図である。この図に示されるように、パスワード−外部データ対応情報は、外部データを識別するデータ名などの情報と、外部データの先頭アドレスおよびサイズと、外部データに対して設定されたパスワードと、更新外部データを識別する更新データ名などの情報と、更新外部データの先頭アドレスおよびサイズと、を有する。更新外部データの更新データ名と先頭アドレスおよびサイズは、元の外部データから派生した更新外部データを複数格納することができるように対応付けがなされている。また、データ名とパスワードの組み合わせに対して関連付けられる更新外部データの数に制限はない。   FIG. 19 is a diagram illustrating an example of password-external data correspondence information according to the fourth embodiment. As shown in this figure, the password-external data correspondence information includes information such as a data name for identifying external data, the start address and size of the external data, a password set for the external data, and an updated external data It has information such as an update data name for identifying data, and the start address and size of the updated external data. The update data name, the start address, and the size of the update external data are associated with each other so that a plurality of update external data derived from the original external data can be stored. In addition, there is no limit to the number of updated external data associated with a data name / password combination.

外部データ保存処理部18は、外部データが更新されると、パスワード−外部データ対応情報の外部データまたはパスワードに対応するレコードに更新外部データのアドレスとサイズを追記していく。パスワード−外部データ対応情報の更新は、外部データが更新されるタイミングであってもよいし、ユーザによって更新外部データを登録する指示が出されたタイミングであってもよいし、その他のタイミングであってもよい。 External data storage processing unit 18, the external data is updated, the password - incrementally written the address and size of the update external data record corresponding to the external data or passwords external data correspondence information. The update of the password-external data correspondence information may be at a timing when the external data is updated, may be at a timing when an instruction to register the updated external data is issued by the user, or at other timing. May be.

外部データ書戻し部22は、外部記憶媒体にデータを書き戻す際に、外部データ保存領域中の外部データと更新外部データのいずれを書き戻すかを設定する書戻し処理設定画面を表示部13に表示し、の内容に基づいて外部データの書戻し処理を行う。すなわち、外部データ書戻し部22は、書戻し処理設定画面での設定内容に基づいて、元の外部データのみを書き戻す処理、更新外部データのみを書き戻す処理、または元の外部データと更新外部データの両方を書き戻す処理、を実行する。 The external data write-back unit 22 displays a write-back process setting screen for setting whether to write back external data or updated external data in the external data storage area when data is written back to the external storage medium. display, and perform the write-back processing of external data based on the contents of this. That is, the external data write-back unit 22 rewrites only the original external data, rewrites only the updated external data, or the original external data and the update external based on the setting content on the write-back process setting screen. Execute processing to write back both data.

内部データ処理部23は、外部記憶媒体50にデータを書き戻した後に、外部データ保存部14の外部データ保存領域に保存されている外部データと更新外部データの消去の有無を設定する消去処理設定画面を表示部13に表示し、の内容に基づいて外部データ保存領域に保存されている外部データまたは更新外部データの消去処理を行う。すなわち消去処理設定画面での設定内容に基づいて、外部データと更新外部データの消去処理、または外部データと更新外部データを消去せずにそのままとする処理、を実行する。 After the data is written back to the external storage medium 50, the internal data processing unit 23 sets the erasure processing setting for setting whether to erase the external data and the updated external data stored in the external data storage area of the external data storage unit 14 screen displayed on the display unit 13, performs the erasing process of the external data or update external data stored in the external data storage area based on the content of this. That is, based on the setting contents on the deletion processing setting screen, the external data and the updated external data are deleted, or the external data and the updated external data are left without being deleted.

図20は、実施の形態4による外部データの書戻し処理を伴う制御装置からの外部記憶媒体の抜き取り処理の一例を示すフローチャートである。まず、実施の形態1の図7のステップS31からS34と同様に、外部記憶媒体50の取り外しコマンドが実行されると、パスワードが入力され、入力されたパスワードがパスワード−外部データ対応情報中のパスワードと一致するかが判定される(ステップS131からS134)。 FIG. 20 is a flowchart illustrating an example of processing for extracting an external storage medium from a control apparatus that involves external data write-back processing according to the fourth embodiment. First, as in steps S31 to S34 in FIG. 7 of the first embodiment, when a command to remove the external storage medium 50 is executed, a password is input, and the input password is the password in the password-external data correspondence information. Is determined (steps S131 to S134).

入力されたパスワードとパスワード−外部データ対応情報中のパスワードとが一致した場合(ステップS133でYesの場合)には、外部データ書戻し部22は、外部データ保存部14内のデータ更新履歴をチェックする。すなわち、パスワード−外部データ対応情報を参照して入力されたパスワードに対応する外部データに更新外部データが存在するかを判定する(ステップS135)。   If the entered password matches the password in the password-external data correspondence information (Yes in step S133), the external data write-back unit 22 checks the data update history in the external data storage unit 14 To do. That is, it is determined whether updated external data exists in the external data corresponding to the password input with reference to the password-external data correspondence information (step S135).

パスワードに対応する外部データに更新外部データが存在する場合(ステップS135でYesの場合)には、外部データと更新外部データの中から書き戻す対象を選択する書戻しデータ選択処理を行う(ステップS136)。書戻しデータ選択処理は、入力されたパスワードに対応する外部データと更新外部データをパスワード−外部データ対応情報に基づいて取得し、書戻し処理設定画面を表示部13に表示する。この書戻し処理設定画面でユーザは書戻すデータの選択を行い、の選択内容を書戻しデータ指定情報として外部データ書戻し部22は記憶する。書戻すデータとして、外部データのみなのか、更新データのみなのかまたは外部データと外部更新データの両方なのかが選択される。 If the updated external data exists in the external data corresponding to the password (Yes in step S135), a write-back data selection process for selecting a target to be written back from the external data and the updated external data is performed (step S136). ). In the write-back data selection process, external data and updated external data corresponding to the input password are acquired based on the password-external data correspondence information, and a write-back process setting screen is displayed on the display unit 13. Users This write back processing setting screen used to select the data writing back, the external data writeback unit 22 the choice of this as a write-back data specifying information is stored. As the data to be written back, it is selected whether only external data, only update data, or both external data and external update data.

その後またはパスワードに対応する外部データに更新外部データが存在しない場合(ステップS135でNoの場合)には、外部データ書戻し部22は、外部データ保存部14内の外部データまたは更新外部データを外部記憶媒体50に書戻す(ステップS137)。ここでは、更新外部データがない場合には、外部データのみが書戻され、更新外部データがある場合にはステップS136で記憶した書戻しデータ指定情報に基づいたデータ、すなわち外部データ更新外部データのうち少なくとも一方、が書戻されることになる。 After that or when there is no updated external data in the external data corresponding to the password (No in step S135), the external data write-back unit 22 externally stores the external data or the updated external data in the external data storage unit 14. Writing back to the storage medium 50 (step S137). Here, when there is no updated external data, only the external data is written back, and when there is updated external data , the data based on the write-back data designation information stored in step S136 , that is, the external data and the updated external data At least one of them will be written back.

その後は、実施の形態1の図7のステップS36からS41と同様に、外部記憶媒体50に書戻されたデータと外部データ保存領域の元のデータとが一致するかを照合し、一致する場合には、ユーザからの指示に従って外部データ保存部14内の外部データと更新外部データの消去または非消去を行い、外部記憶媒体50の取り外しが可能になるとの旨を表示部13に表示して処理が終了する(ステップS138からS143)。 Thereafter, as in steps S36 to S41 in FIG. 7 of the first embodiment, the data written back to the external storage medium 50 is collated with the original data in the external data storage area. to perform an erase or non-erasable external data and update external data in the external data storage unit 14 in accordance with an instruction from the user, displayed on the display unit 13 to the effect that this becomes a removable external storage medium 50 The process ends (steps S138 to S143).

図21と図22は、実施の形態4による書戻し処理の一例を模式的に示す図である。まず、図21(a)に示されるように、空の外部記憶媒体が装着された状態で、ユーザが操作盤105から外部記憶媒体50の取り外しコマンドの実行を指示すると、パスワードの入力が求められ、ユーザは操作盤105を介してパスワードの入力を行う。パスワード−外部データ対応情報からパスワードに対応するレコードを確認し、更新外部データが存在する場合には書戻しデータを指定する処理を行う。ユーザは、たとえば更新外部データを書戻し、元の外部データは書戻さないように操作盤105を介して指定する。   21 and 22 are diagrams schematically showing an example of the write-back process according to the fourth embodiment. First, as shown in FIG. 21A, when a user instructs the execution of the removal command for the external storage medium 50 from the operation panel 105 in a state where a blank external storage medium is loaded, the input of a password is requested. The user inputs a password via the operation panel 105. A record corresponding to the password is confirmed from the password-external data correspondence information, and if updated external data exists, processing for designating write-back data is performed. The user specifies, for example, through the operation panel 105 so that the updated external data is written back and the original external data is not written back.

ついで、図21(b)に示されるように、書戻しデータ指定に基づいて外部記憶媒体50に更新外部データがコピーされる。外部記憶媒体50にコピーされた更新外部データと外部データ保存領域1031の更新外部データとが一致すると、図22に示されるように、外部記憶媒体50の取り外しが可能な状態をユーザに通知し、ユーザによって外部記憶媒体50が制御装置10から取り外される。   Next, as shown in FIG. 21B, the updated external data is copied to the external storage medium 50 based on the write-back data designation. When the updated external data copied to the external storage medium 50 matches the updated external data in the external data storage area 1031, as shown in FIG. 22, the user is notified that the external storage medium 50 can be removed, The external storage medium 50 is removed from the control device 10 by the user.

なお、実施の形態4におけるデータ退避処理を伴う外部記憶媒体50の接続時の処理は、実施の形態1で説明したものと同様であるので、その説明を省略する。   Note that the processing at the time of connection of the external storage medium 50 that accompanies the data saving processing in the fourth embodiment is the same as that described in the first embodiment, and thus the description thereof is omitted.

実施の形態4では、外部データ保存部14に保存された外部データが更新された場合に、の更新外部データを外部データに設定したパスワードに対応付けて保存し、書戻し処理を行う場合にどのデータを書戻すかを選択するようにした。これによって、外部記憶媒体50に書戻す処理を、元の外部データとするか、更新外部データとするか、それとも両方にするかをユーザが選択することができるという効果を有する。 In the fourth embodiment, when the external data stored in the external data storage unit 14 is updated in association with the password set to this update external data to an external data storage, in the case of performing the writing-back process The data to be written back is selected. As a result, the user can select whether the process of writing back to the external storage medium 50 is the original external data, the updated external data, or both.

実施の形態5.
実施の形態1から4では、制御装置に装着される外部記憶媒体とパスワードとの間の関係について特に限定していなかった。たとえば、ある外部記憶媒体を制御装置に装着し、外部データを外部データ保存部に退避させた後にの外部記憶媒体を離脱し、他の外部記憶媒体を制御装置に装着しても書戻し処理を行うことができた。実施の形態5では、書戻し処理ができる外部記憶媒体の種類または個体を指定することができる場合について説明する。
Embodiment 5. FIG.
In the first to fourth embodiments, the relationship between the external storage medium mounted on the control device and the password is not particularly limited. For example, wearing a certain external storage medium in the controller, it left the external storage medium this after retracts the external data to an external data storage unit, writing-back be attached to another external storage medium in the controller processing Was able to do. In the fifth embodiment, a case where the type or individual of an external storage medium that can be written back can be designated will be described.

図23は、実施の形態5による制御装置の機能構成を模式的に示すブロック図である。制御装置10は、実施の形態1の構成に外部記憶媒体情報取得部27と、設定情報処理部28と、設定情報記憶部29と、をさらに備える。なお、制御装置10の外部記憶媒体50の接続スロットとして、SDカード、USBメモリ、コンパクトフラッシュ(登録商標)の3種類が設けられる場合を以下では説明する。   FIG. 23 is a block diagram schematically showing a functional configuration of the control device according to the fifth embodiment. The control device 10 further includes an external storage medium information acquisition unit 27, a setting information processing unit 28, and a setting information storage unit 29 in the configuration of the first embodiment. In the following, a case where three types of SD card, USB memory, and compact flash (registered trademark) are provided as connection slots of the external storage medium 50 of the control device 10 will be described.

外部記憶媒体情報取得部27は、制御装置10に外部記憶媒体50が装着されることを検知すると、外部記憶媒体50についての固有情報である種別情報を取得する。この種別情報は、外部記憶媒体50に設定された特定のエリアに格納されており、の特定のエリアの情報を読み込むことで取得することができる。 When the external storage medium information acquisition unit 27 detects that the external storage medium 50 is attached to the control device 10, the external storage medium information acquisition unit 27 acquires type information that is unique information about the external storage medium 50. This type information is stored in the specific area set in the external storage medium 50 can be obtained by reading the information of the specific area of this.

設定情報処理部28は、制御装置10に装着した外部記憶媒体50の種類について、データ保護の有無、データの書戻し先の指定、データ書戻し先情報、内部記憶部内データ消去などを含む設定情報を設定するための設定情報設定画面を表示部13に表示し、設定情報設定画面に入力された内容を設定情報として設定情報記憶部29に記憶する。設定情報記憶部29は、設定情報処理部28で生成された設定情報を記憶する。   The setting information processing unit 28 sets setting information including the presence / absence of data protection, designation of data write-back destination, data write-back destination information, data erasure in the internal storage unit, etc. for the type of external storage medium 50 attached to the control device 10 Is displayed on the display unit 13 and the content input on the setting information setting screen is stored in the setting information storage unit 29 as setting information. The setting information storage unit 29 stores the setting information generated by the setting information processing unit 28.

図24は、設定情報の一例を示す図である。この例では、設定情報は、外部記憶媒体の種別情報、データ保護機能、データ書戻し先の指定、データ書戻し先情報、書戻し処理後の外部データ保存部14である内部記憶部内の外部データの消去実行の有無を含む。 FIG. 24 is a diagram illustrating an example of setting information. In this example, the setting information includes external storage medium type information, data protection function, data write-back destination designation, data write-back destination information, and external data in the internal storage unit that is the external data storage unit 14 after the write-back process. Including whether or not erasure is executed.

外部記憶媒体の種別情報は、SDカード、microSDカード、コンパクトフラッシュ(登録商標)、USBメモリなどの種別を示すものである。データ保護機能は、外部記憶媒体50が制御装置10に装着された場合に外部記憶媒体50に保存されたデータを外部データ保存部14に退避するか否かを示すものである。   The type information of the external storage medium indicates the type of SD card, microSD card, compact flash (registered trademark), USB memory, or the like. The data protection function indicates whether or not data stored in the external storage medium 50 is saved in the external data storage unit 14 when the external storage medium 50 is attached to the control device 10.

データ書戻し先の指定は、書戻し処理時のデータの書戻しの可否を指定するものである。データ書戻し先の指定がある場合には、つぎのデータ書戻し先情報で指定された種別の外部記憶媒体50以外には書戻しされない。またデータ書戻し先の指定がない場合には、どの種別の外部記憶媒体50にも書戻し処理が行われる。   The designation of the data write-back destination specifies whether data can be written back during the write-back process. When the data write-back destination is specified, the data is not written back to other than the external storage medium 50 of the type specified by the next data write-back destination information. If no data write-back destination is specified, write-back processing is performed on any type of external storage medium 50.

データ書戻し先情報は、外部データ保存部14に記憶された外部データについての書戻しを実行することができる外部記憶媒体50の種別を設定するものである。内部記憶部内データ消去は、書戻し処理後に外部データ保存部14である内部記憶部に保存した外部データを消去するかそのまま残すかを指定するものである。 The data write-back destination information sets the type of the external storage medium 50 that can execute the write-back for the external data stored in the external data storage unit 14. The data erasure in the internal storage unit designates whether to delete or leave the external data stored in the internal storage unit which is the external data storage unit 14 after the write-back process.

また、外部記憶媒体50には、書戻し処理について許可されているか否かを示す許可情報が保存される。この許可情報は、設定情報処理部28で設定した内容に基づいて、外部記憶媒体50に対して書き込まれる。なお、実施の形態1と同一の構成要素には同一の符号を付してその説明を省略している。   The external storage medium 50 stores permission information indicating whether or not write-back processing is permitted. This permission information is written to the external storage medium 50 based on the contents set by the setting information processing unit 28. In addition, the same code | symbol is attached | subjected to the component same as Embodiment 1, and the description is abbreviate | omitted.

図24の例では、設定情報には、SDカード、USBメモリ、コンパクトフラッシュ(登録商標)の各種類についてのレコードが登録されている。SDカード、USBメモリおよびコンパクトフラッシュ(登録商標)のそれぞれは、データ保護機能、データ書戻し先指定、および内部記憶部内データ消去が設定され、データ書戻し先情報としては、同種の外部記憶媒体のみ許可された場合が示されている。   In the example of FIG. 24, records for each type of SD card, USB memory, and compact flash (registered trademark) are registered in the setting information. Each of the SD card, USB memory, and compact flash (registered trademark) is set with a data protection function, data write-back destination designation, and data erasure in the internal storage unit, and the data write-back destination information is only the same type of external storage medium. The permitted cases are shown.

つぎに、このような構成の制御装置10での動作について説明する。図25は、実施の形態5による外部記憶媒体装着時の動作処理手順の一例を示すフローチャートである。まず、外部記憶媒体50が制御装置10に装着されると(ステップS151)、外部記憶媒体情報取得部27は外部記憶媒体50から種別情報を取得する(ステップS152)。ついで、外部記憶媒体情報取得部27は、取得した種別情報に対応するレコードが設定情報中に存在するかを判定する(ステップS153)。   Next, the operation of the control device 10 having such a configuration will be described. FIG. 25 is a flowchart illustrating an example of an operation processing procedure when the external storage medium is mounted according to the fifth embodiment. First, when the external storage medium 50 is attached to the control device 10 (step S151), the external storage medium information acquisition unit 27 acquires type information from the external storage medium 50 (step S152). Next, the external storage medium information acquisition unit 27 determines whether a record corresponding to the acquired type information exists in the setting information (step S153).

種別情報に対応するレコードがない場合(ステップS153でNoの場合)には、設定情報処理部28は、設定情報設定処理を行う(ステップS154)。設定情報設定処理は、たとえば、データ保護が必要か否か、データ書戻し先の指定をするか否か、データを外部記憶媒体50に書戻した後に、制御装置10内に残った外部データを消去するか否かなどを設定するための設定画面を表示部13に表示し、設定画面に入力された内容を設定情報の1つのレコードとして種別情報に関連付けして保存することによって行われる。ついで、設定情報処理部28は、設定処理で設定された情報のうちデータ書戻し先の指定に関する書戻し許可情報を外部記憶媒体50に保存する(ステップS155)。   If there is no record corresponding to the type information (No in step S153), the setting information processing unit 28 performs setting information setting processing (step S154). The setting information setting process includes, for example, whether or not data protection is necessary, whether or not to specify a data write-back destination, and external data remaining in the control device 10 after data is written back to the external storage medium 50. A setting screen for setting whether or not to delete is displayed on the display unit 13, and the content input on the setting screen is stored in association with the type information as one record of the setting information. Next, the setting information processing unit 28 stores the write-back permission information regarding the designation of the data write-back destination among the information set in the setting process in the external storage medium 50 (step S155).

また、ステップS153で種別情報が設定情報内にある場合(ステップS153でYesの場合)には、設定情報中の種別情報に対応するレコードに、データ保護機能が設定されているかを判定する(ステップS156)。データ保護機能が設定されていない場合(ステップS156でNoの場合)には、外部記憶媒体50内の外部データの制御装置10への退避処理は行われず、処理が終了する。   If the type information is included in the setting information in step S153 (Yes in step S153), it is determined whether the data protection function is set in the record corresponding to the type information in the setting information (step S153). S156). If the data protection function is not set (No in step S156), the saving process of the external data in the external storage medium 50 to the control device 10 is not performed, and the process ends.

データ保護機能が設定されている場合(ステップS156でYesの場合)には、外部データ保存領域設定部15は、外部データ保存部14に外部データ保存領域を設定する(ステップS157)。ついで、外部データ判定部16は、外部記憶媒体50内に外部データが存在するかを判定する(ステップS158)。外部記憶媒体50内に外部データが存在しない場合(ステップS158でNoの場合)には、処理が終了する。   When the data protection function is set (Yes in step S156), the external data storage area setting unit 15 sets an external data storage area in the external data storage unit 14 (step S157). Next, the external data determination unit 16 determines whether there is external data in the external storage medium 50 (step S158). If there is no external data in the external storage medium 50 (No in step S158), the process ends.

また、外部記憶媒体50内に外部データが存在する場合(ステップS158でYesの場合)には、パスワード設定部17は、データ書戻しの際のパスワードを設定する(ステップS159)。パスワード設定部17は、設定されたパスワードをパスワード−外部データ対応情報に保存する(ステップS160)。   If external data exists in the external storage medium 50 (Yes in step S158), the password setting unit 17 sets a password for data writing back (step S159). The password setting unit 17 stores the set password in the password-external data correspondence information (step S160).

ついで、外部データ保存処理部18は、外部記憶媒体50内の外部データを外部データ保存部14の外部データ保存領域にコピーし(ステップS161)、外部記憶媒体50と外部データ保存領域の外部データが一致するかを判定する(ステップS162)。両者が一致しない場合(ステップS162でNoの場合)にはデータ異常を表示し(ステップS163)、ステップS161に処理が戻る。   Next, the external data storage processing unit 18 copies the external data in the external storage medium 50 to the external data storage area of the external data storage unit 14 (step S161), and the external data in the external storage medium 50 and the external data storage area is stored. It is determined whether they match (step S162). If they do not match (No in step S162), a data abnormality is displayed (step S163), and the process returns to step S161.

両者が一致する場合(ステップS162でYesの場合)には、外部データ保存処理部18は、外部データ保存部14にコピーした外部データとパスワードとを対応付けし、パスワード−外部データ対応情報に保存する(ステップS164)。そして、外部記憶媒体50内の外部データを消去し(ステップS165)、処理が終了する。   If they match (Yes in step S162), the external data storage processing unit 18 associates the external data copied to the external data storage unit 14 with the password and stores them in the password-external data correspondence information. (Step S164). Then, the external data in the external storage medium 50 is erased (step S165), and the process ends.

なお、上記した説明では、外部記憶媒体50の接続スロットとして、SDカード、USBメモリ、コンパクトフラッシュ(登録商標)の3種類を例に挙げているが、これに限定されるものではなく、他の種類の外部記憶媒体50であってもよく、また接続スロットもそれぞれの種類に対して任意の数を設けることができる。   In the above description, there are three types of connection slots for the external storage medium 50: an SD card, a USB memory, and a compact flash (registered trademark). However, the present invention is not limited to this. The type of external storage medium 50 may be used, and an arbitrary number of connection slots may be provided for each type.

図26は、実施の形態5による外部記憶媒体の取り外し処理手順の一例を示すフローチャートである。まず、ユーザによって書戻し先の外部記憶媒体50または接続スロットが入力部12を介して選択されると(ステップS171)、外部データ書戻し部22は、書戻し先の外部記憶媒体50が接続されているかチェックする(ステップS172)。書戻し先の外部記憶媒体50が接続されていない場合(ステップS172でNoの場合)には、外部記憶媒体50が接続されていないことを示すエラーメッセージを表示部13に表示し(ステップS173)、ステップS171に処理が戻る。 FIG. 26 is a flowchart illustrating an example of an external storage medium removal processing procedure according to the fifth embodiment. First, when the external storage medium 50 or the connection slot of the writing-back destination is selected by the user via the input unit 12 (step S171), the external data writeback unit 22, writing-back destination of the external storage medium 50 is connected It is checked whether it has been done (step S172). If the write-back destination external storage medium 50 is not connected (No in step S172), an error message indicating that the external storage medium 50 is not connected is displayed on the display unit 13 (step S173). The process returns to step S171.

書戻し先の外部記憶媒体50が接続されている場合(ステップS172でYesの場合)には、ユーザによって入力部12を介してパスワードが入力される(ステップS174)。パスワード判定部21は、入力されたパスワードがパスワード−外部データ対応情報に保存されているパスワードと一致するかを判定する(ステップS175)。   If the write-back destination external storage medium 50 is connected (Yes in step S172), the user inputs a password via the input unit 12 (step S174). The password determination unit 21 determines whether the input password matches the password stored in the password-external data correspondence information (step S175).

入力されたパスワードがパスワード−外部データ対応情報内のパスワードと一致しない場合(ステップS175でNoの場合)には、パスワードが一致しないことを表示部13に表示し(ステップS176)、ステップS174に戻る。また、入力されたパスワードがパスワード−外部データ対応情報内のパスワードと一致する場合(ステップS175でYesの場合)には、外部データ書戻し部22は、外部記憶媒体50の書戻し許可情報を読み出し(ステップS177)、外部データの書戻しが許可されているか否かを判定する(ステップS178)。外部データの書戻しが許可されていない場合(ステップS178でNoの場合)には、外部記憶媒体50には外部データの書戻しができない旨の表示を行い(ステップS179)、処理が終了する。   If the input password does not match the password in the password-external data correspondence information (No in step S175), the display unit 13 displays that the password does not match (step S176), and returns to step S174. . If the input password matches the password in the password-external data correspondence information (Yes in step S175), the external data write-back unit 22 reads the write-back permission information in the external storage medium 50. (Step S177), it is determined whether or not writing back of external data is permitted (step S178). If the external data write-back is not permitted (No in step S178), the external storage medium 50 is displayed to the effect that the external data cannot be written back (step S179), and the process ends.

一方、外部データの書戻しが許可されている場合(ステップS178でYesの場合)には、外部データ書戻し部22は、外部データ保存部14内の入力されたパスワードに対応する外部データを外部記憶媒体50に書戻す(ステップS180)。その後、外部データ書戻し部22は、外部記憶媒体50と外部データ保存部14内の2つの外部データが一致しているかを照合し(ステップS181)、一致していない場合(ステップS181でNoの場合)にはデータ異常である旨を表示部13に表示して(ステップS182)、ステップS180に処理が戻る。   On the other hand, when the external data write-back is permitted (Yes in step S178), the external data write-back unit 22 sends the external data corresponding to the entered password in the external data storage unit 14 to the external Writing back to the storage medium 50 (step S180). Thereafter, the external data write-back unit 22 collates whether the external storage medium 50 and the two external data in the external data storage unit 14 match (step S181). If they do not match (No in step S181) In the case), the display unit 13 displays that the data is abnormal (step S182), and the process returns to step S180.

また、両者が一致している場合(ステップS181でYesの場合)には、設定情報を参照し、外部データ保存部14内の外部データを消去するか否かを判定する(ステップS183)。外部データ保存部14内のデータを消去する場合(ステップS183でYesの場合)には、外部データ保存部14内の外部データを消去し(ステップS184)、パスワード−外部データ対応情報の対応するレコードのパスワードを消去する(ステップS185)。   If they match (Yes in step S181), the setting information is referenced to determine whether or not to delete the external data in the external data storage unit 14 (step S183). When erasing the data in the external data storage unit 14 (Yes in step S183), the external data in the external data storage unit 14 is deleted (step S184), and the corresponding record of the password-external data correspondence information Is deleted (step S185).

その後またはステップS183で外部データ保存部14内の外部データを消去しない場合(ステップS183でNoの場合)には、外部記憶媒体50が取り外し可能な状態となり(ステップS186)、処理が終了する。   Thereafter, or when the external data in the external data storage unit 14 is not deleted in step S183 (No in step S183), the external storage medium 50 becomes removable (step S186), and the process ends.

図27は、実施の形態5によるデータの書戻し処理の手順の概要を模式的に示す図である。図27(a)に示されるように、制御装置10の内部記憶部103の外部データ保存領域1031には、外部データS1が保存され、パスワード−外部データ対応情報1032には外部データS1に対応するパスワードS1が記憶され、設定情報1033には外部記憶媒体50に対応する設定情報S1が記憶されている状態にある。   FIG. 27 is a diagram schematically illustrating an outline of a procedure of data write-back processing according to the fifth embodiment. As shown in FIG. 27A, the external data S1 is stored in the external data storage area 1031 of the internal storage unit 103 of the control device 10, and the password-external data correspondence information 1032 corresponds to the external data S1. The password S1 is stored, and the setting information 1033 is in a state where the setting information S1 corresponding to the external storage medium 50 is stored.

書戻し処理の実行では、外部記憶媒体50が装着されているかが確認され、その後入力されたパスワードがパスワード−外部データ対応情報に記憶されているパスワードS1と一致するかの判定が行われ、さらに外部記憶媒体50の書戻し許可情報S1には外部データS1の書戻しが許可されているかが判定される。   In the execution of the write-back process, it is confirmed whether or not the external storage medium 50 is mounted, and then it is determined whether or not the input password matches the password S1 stored in the password-external data correspondence information. It is determined whether the write-back permission information S1 of the external storage medium 50 is permitted to write back the external data S1.

その後、外部記憶媒体50の書戻し許可情報S1に外部データS1の書戻しが許可されている場合には、図27(b)に示されるように、外部データ保存領域1032の外部データS1が外部記憶媒体50にコピーされ、書戻される。   Thereafter, when the write-back permission information S1 of the external storage medium 50 permits the write-back of the external data S1, the external data S1 in the external data storage area 1032 is externally stored as shown in FIG. Copied to the storage medium 50 and written back.

なお、上記した説明では、外部記憶媒体50の種類ごとに設定を行っていたが、種類ではなく、個体ごとに識別して設定を行うようにしてもよい。この場合には、設定情報とパスワード−外部データ対応情報とを個体ごとに管理すればよい。また、外部記憶媒体50を個体ごとに識別する方法としては、たとえば製品個々の情報を示す個体識別情報などを用いることができる。   In the above description, the setting is made for each type of the external storage medium 50. However, instead of the type, the setting may be made by identifying each individual. In this case, setting information and password-external data correspondence information may be managed for each individual. In addition, as a method for identifying the external storage medium 50 for each individual, for example, individual identification information indicating individual product information can be used.

図28は、外部記憶媒体を個体ごとに管理する場合のパスワード−外部データ対応情報の一例を示す図である。この図に示されるように、図24の設定情報に外部記憶媒体についての固有情報である個体識別情報がさらに追加された構造となっている。   FIG. 28 is a diagram showing an example of password-external data correspondence information when managing external storage media for each individual. As shown in this figure, it has a structure in which individual identification information which is unique information about the external storage medium is further added to the setting information of FIG.

たとえば個体識別情報が「SDカード1」の場合には、種別情報は「SDカード」であり、データ保護機能は有りで、データ書戻し先も指定されており、データ書戻し先情報として、SDカード、USBメモリ、コンパクトフラッシュ(登録商標)の種別が登録され、内部記憶部内データ消去は有りに設定されている。   For example, when the individual identification information is “SD card 1”, the type information is “SD card”, the data protection function is provided, the data write back destination is also designated, and the data write back destination information is SD. Types of card, USB memory, and compact flash (registered trademark) are registered, and data deletion in the internal storage unit is set to “Yes”.

また、たとえば個体識別情報が「USBメモリ1」の場合には、種別情報は「USBメモリ」であり、データ保護機能は有りで、データ書戻し先とデータ書戻し先情報は指定されておらず、内部記憶部内データ消去は有りに設定されている。   For example, when the individual identification information is “USB memory 1”, the type information is “USB memory”, the data protection function is provided, and the data write-back destination and the data write-back destination information are not specified. The data deletion in the internal storage unit is set to “Yes”.

さらに、個体識別情報が「コンパクトフラッシュ(登録商標)1」の場合には、種別情報は「コンパクトフラッシュ(登録商標)」であり、データ保護機能は有りで、データ書戻し先、データ書戻し先情報および内部記憶部内データ消去はともに設定されていない。また、個体識別情報が「SDカード2」、「USBメモリ2」、「コンパクトフラッシュ(登録商標)2」は、それぞれ制御装置10に未接続で、設定前の状態であり、何も設定されていない。   Further, when the individual identification information is “compact flash (registered trademark) 1”, the type information is “compact flash (registered trademark)”, the data protection function is provided, the data write back destination, the data write back destination Neither information nor erasure of data in the internal storage unit is set. The individual identification information “SD card 2”, “USB memory 2”, and “Compact Flash (registered trademark) 2” are not connected to the control device 10 and are in a state before setting, and nothing is set. Absent.

図29は、複数種類の外部記憶媒体と着脱可能な制御装置でのパスワード−外部データ対応情報と設定情報の関係を模式的に示す図である。図29(a)に示されるように、制御装置10には、SDカード用のメモリインタフェース104Aと、USBメモリ用のメモリインタフェース104Bと、コンパクトフラッシュ(登録商標)用のメモリインタフェース104Cと、が設けられている。外部記憶媒体として、SDカード51A,51B、USBメモリ52A,52B、コンパクトフラッシュ(登録商標)53A,53Bなどがある。また、ここでは設定情報1033は、外部記憶媒体の種類ではなく、個体ごとに設けられるものとする。   FIG. 29 is a diagram schematically showing the relationship between password-external data correspondence information and setting information in a plurality of types of external storage media and removable control devices. As shown in FIG. 29A, the control device 10 is provided with a memory interface 104A for SD card, a memory interface 104B for USB memory, and a memory interface 104C for CompactFlash (registered trademark). It has been. Examples of external storage media include SD cards 51A and 51B, USB memories 52A and 52B, and compact flash (registered trademark) 53A and 53B. Here, it is assumed that the setting information 1033 is provided for each individual, not for the type of the external storage medium.

図29(b)は、制御装置10のメモリインタフェース104AにSDカード51Aが接続され、メモリインタフェース104BにUSBメモリ52Aが接続され、メモリインタフェース104Cにコンパクトフラッシュ(登録商標)53Aが接続されている状態が示されている。また、内部記憶部103の設定情報1033には、SDカード51A、USBメモリ52Aおよびコンパクトフラッシュ(登録商標)53Aのそれぞれのレコードが登録されている。内部記憶部103の外部データ保存領域1031には、SDカード51AとUSBメモリ52Aの外部データS1,U1が退避され、れに対応してパスワード−外部データ対応情報1032には、SDカード51AとUSBメモリ52AのパスワードS1,U1が格納される。しかし、コンパクトフラッシュ(登録商標)53Aの外部データC1は内部記憶部103の外部データ保存領域1031には保存されない。また、SDカード51Aには、許可情報S1が保存されている。 FIG. 29B shows a state in which the SD card 51A is connected to the memory interface 104A of the control device 10, the USB memory 52A is connected to the memory interface 104B, and the compact flash (registered trademark) 53A is connected to the memory interface 104C. It is shown. In the setting information 1033 of the internal storage unit 103, records of the SD card 51A, the USB memory 52A, and the compact flash (registered trademark) 53A are registered. The external data storage area 1031 of the internal storage unit 103, an external data S1, U1 SD card 51A and the USB memory 52A is evacuated, in response to Re this password - the external data correspondence information 1032, and SD card 51A The passwords S1 and U1 of the USB memory 52A are stored. However, the external data C1 of the compact flash (registered trademark) 53A is not stored in the external data storage area 1031 of the internal storage unit 103. Further, permission information S1 is stored in the SD card 51A.

また、上記した説明では、設定情報をパスワード−外部データ対応情報とは別個に管理する場合を示したが、パスワード−外部データ対応情報に設定情報を含ませるようにしてもよい。図30は、設定情報の内容を含むパスワード−外部データ対応情報の一例を示す図である。この図に示されるように、外部データとパスワードの組み合わせに対して、データ書戻し先媒体情報などの設定情報が関連付けされ、レコードとして保存される。   In the above description, the setting information is managed separately from the password-external data correspondence information. However, the setting information may be included in the password-external data correspondence information. FIG. 30 is a diagram illustrating an example of password-external data correspondence information including the contents of setting information. As shown in this figure, setting information such as data write-back destination medium information is associated with a combination of external data and a password and stored as a record.

実施の形態5では、外部記憶媒体50が制御装置10に接続されると、データ保護機能の有無、データ書戻し先の指定の有無、書戻し後の外部データ保存部14内の外部データの消去の有無を含む設定情報を設定し、の内容に基づいて処理を行うことにした。そのため、外部記憶媒体50の種類ごとまたは個体ごとに、外部データの書戻しの可否を設定することができ、不正な外部データの持ち去りを防ぐことができるという効果を有する。 In the fifth embodiment, when the external storage medium 50 is connected to the control device 10, the presence / absence of the data protection function, the presence / absence of the designation of the data write-back destination, the erasure of the external data in the external data storage unit 14 after the write-back set the setting information including the presence of, and to perform processing based on the contents of this. Therefore, it is possible to set whether or not external data can be written back for each type or individual of the external storage medium 50, and it is possible to prevent unauthorized removal of external data.

実施の形態6.
実施の形態6では、外部記憶媒体にキー、すなわち鍵の役目を持たせる場合について説明する。
Embodiment 6 FIG.
In the sixth embodiment, a case where a key , that is, a key role is given to an external storage medium will be described.

図31は、実施の形態6による制御装置の機能構成を模式的に示すブロック図である。この制御装置10は、実施の形態5の制御装置に、外部記憶媒体50の制御装置10への着脱状態を検知する外部記憶媒体着脱検知部30をさらに備える。外部記憶媒体着脱検知部30は、外部記憶媒体50内の外部データが外部データ保存部14へ退避された後、退避された外部データを実行する際に、実行する外部データを格納していた外部記憶媒体50が制御装置10に装着されているか否かを判定し、の結果を制御処理部24に通知する。つまり、実行する外部データを格納していた外部記憶媒体50が装着されている場合には、制御処理部24はプログラムまたはパラメータなどのデータである外部データを実行することができ、実行する外部データを格納していた外部記憶媒体50が離脱されている場合または実行する外部データを格納していた外部記憶媒体50とは異なる外部記憶媒体50が装着されている場合には、制御処理部24は外部データを実行することができない。 FIG. 31 is a block diagram schematically showing a functional configuration of the control device according to the sixth embodiment. The control device 10 further includes an external storage medium attachment / detachment detection unit 30 that detects the attachment / detachment state of the external storage medium 50 to / from the control device 10 in the control device of the fifth embodiment. The external storage medium attachment / detachment detection unit 30 stores the external data to be executed when executing the saved external data after the external data in the external storage medium 50 is saved to the external data storage unit 14. storage medium 50, it is determined whether or not it is attached to the controller 10, and notifies the result of this to the control processor 24. That is, if the external storage medium 50 which has stored the external data to be executed is installed, the control processor 24 may perform external data is data such as a program or parameters, performing external When the external storage medium 50 storing the data is detached or when an external storage medium 50 different from the external storage medium 50 storing the external data to be executed is attached, the control processing unit 24 Cannot execute external data.

図32は、実施の形態6による設定情報の構成の一例を示す図である。設定情報には、外部記憶媒体50をコピーした外部データの実行キーとして利用するか否かを示す項目がさらに付加されている。実行キーとして利用すると設定されている場合には、外部記憶媒体50が装着されていなければ、外部記憶媒体50に元々保存されていた外部データを実行することができない。一方、実行キーとして利用しないと設定されている場合には、外部記憶媒体50の装着の有無にかかわらず外部データを実行することができる。なお、その他の構成は、実施の形態5で説明したものと同様であるのでその説明を省略する。   FIG. 32 is a diagram illustrating an example of a configuration of setting information according to the sixth embodiment. In the setting information, an item indicating whether or not to use the external storage medium 50 as an execution key for copied external data is further added. If it is set to be used as an execution key, the external data originally stored in the external storage medium 50 cannot be executed unless the external storage medium 50 is attached. On the other hand, when it is set not to use as an execution key, external data can be executed regardless of whether or not the external storage medium 50 is attached. Since other configurations are the same as those described in the fifth embodiment, description thereof is omitted.

外部記憶媒体着脱検知部30は、たとえば、装着されている外部記憶媒体50の種別情報または個体識別情報を取得し、制御処理部24で実行しようとしている外部データに設定情報で対応付けられた種別情報または個体識別情報が取得した種別情報または個体識別情報を有しているか否かを判定することによって、制御処理部24に外部データを実行可能であるか否かを通知することができる。   The external storage medium attachment / detachment detection unit 30 acquires, for example, the type information or individual identification information of the attached external storage medium 50, and the type associated with the external data to be executed by the control processing unit 24 using the setting information. By determining whether the information or individual identification information has the acquired type information or individual identification information, it is possible to notify the control processing unit 24 whether or not external data can be executed.

図33は、実施の形態6による外部データの実行処理の手順の一例を示すフローチャートである。まず、制御処理部24によって実行する外部データが選択されると(ステップS191)、外部記憶媒体着脱検知部30は、設定情報を用いて、実行する外部データを保存していた外部記憶媒体50の種別情報または個体識別情報を取得する(ステップS192)。また、外部記憶媒体着脱検知部30は、外部記憶媒体インタフェース11に外部記憶媒体50が装着されているかを判定する(ステップS193)。外部記憶媒体50が装着されている場合(ステップS193でYesの場合)には、さらにの外部記憶媒体50の種別情報または個体識別情報を取得する(ステップS194)。その後、外部記憶媒体着脱検知部30は、取得した2つの種別情報または個体識別情報が一致するかを判定する(ステップS195)。 FIG. 33 is a flowchart illustrating an example of a procedure of external data execution processing according to the sixth embodiment. First, when external data to be executed is selected by the control processing unit 24 (step S191), the external storage medium attachment / detachment detection unit 30 uses the setting information to store the external data to be executed. Type information or individual identification information is acquired (step S192). Further, the external storage medium attachment / detachment detection unit 30 determines whether the external storage medium 50 is attached to the external storage medium interface 11 (step S193). If the external storage medium 50 is attached (Yes at step S193), further acquires the type information or identification information of the external storage medium 50 of this (step S194). Thereafter, the external storage medium attachment / detachment detection unit 30 determines whether the acquired two type information or individual identification information matches (step S195).

両者が一致する場合(ステップS195でYesの場合)には、外部記憶媒体着脱検知部30は、制御処理部24に2つの種別情報または個体識別情報が一致する旨を通知する。これによって、制御処理部24は選択した外部データを実行し(ステップS197)、処理が終了する。   If they match (Yes in step S195), the external storage medium attachment / detachment detection unit 30 notifies the control processing unit 24 that the two types of information or individual identification information match. As a result, the control processing unit 24 executes the selected external data (step S197), and the process ends.

一方、両者が一致しない場合(ステップS195でNoの場合)には、外部記憶媒体着脱検知部30は、制御処理部24に2つの種別情報または個体識別情報が一致しない旨を通知する。その後、制御処理部24は、選択した外部データを実行することができず(ステップS197)、外部記憶媒体着脱検知部30は、正しい外部記憶媒体50を装着することを促すメッセージを表示部13に表示し(ステップS198)、処理が終了する。   On the other hand, if both do not match (No in step S195), the external storage medium attachment / detachment detection unit 30 notifies the control processing unit 24 that the two types of information or individual identification information do not match. Thereafter, the control processing unit 24 cannot execute the selected external data (step S197), and the external storage medium attachment / detachment detection unit 30 displays a message on the display unit 13 to prompt the user to attach the correct external storage medium 50. This is displayed (step S198), and the process ends.

また、ステップS193で外部記憶媒体インタフェース11に外部記憶媒体50が装着されていない場合(ステップS193でNoの場合)には、外部記憶媒体着脱検知部30は、制御処理部24に外部記憶媒体50が装着されていない旨を通知する。その後、制御処理部24は、選択した外部データを実行することができず(ステップS199)、外部記憶媒体着脱検知部30は、外部記憶媒体50を装着することを促すメッセージを表示部13に表示し(ステップS200)、処理が終了する。   When the external storage medium 50 is not attached to the external storage medium interface 11 in step S193 (No in step S193), the external storage medium attachment / detachment detection unit 30 sends the external storage medium 50 to the control processing unit 24. Notify that is not installed. Thereafter, the control processing unit 24 cannot execute the selected external data (step S199), and the external storage medium attachment / detachment detection unit 30 displays a message prompting the user to attach the external storage medium 50 on the display unit 13. (Step S200), and the process ends.

図34と図35は、実施の形態6による外部データの実行処理の状態の一例を模式的に示す図である。図34(a)に示されるように、外部記憶媒体50から内部記憶部103の外部データ保存領域1031に外部データ351が退避され、空の外部記憶媒体50が制御装置10に装着された状態にある。この状態で、外部データ保存領域1031の外部データ351の実行が指示されると、CPU101は、外部データ351に対応付けられた種別情報または個体識別情報を有する外部記憶媒体50が接続されているかを確認する。   FIG. 34 and FIG. 35 are diagrams schematically illustrating an example of a state of external data execution processing according to the sixth embodiment. As shown in FIG. 34A, the external data 351 is saved from the external storage medium 50 to the external data storage area 1031 of the internal storage unit 103, and the empty external storage medium 50 is attached to the control device 10. is there. In this state, when execution of the external data 351 in the external data storage area 1031 is instructed, the CPU 101 determines whether the external storage medium 50 having type information or individual identification information associated with the external data 351 is connected. Check.

ついで、図34(b)に示されるように、外部記憶媒体50の接続が確認され、かつ外部記憶媒体50が制御装置10に装着されている状態では、CPU101は外部データ保存領域1031の外部データ351を実行することができる。   Next, as shown in FIG. 34 (b), when the connection of the external storage medium 50 is confirmed and the external storage medium 50 is mounted in the control device 10, the CPU 101 stores the external data in the external data storage area 1031. 351 can be executed.

一方、図35(a)に示されるように、外部記憶媒体50が制御装置10から取り外されてしまった場合には、CPU101は外部記憶媒体50が制御装置10に接続されているかの確認を行う。このとき、CPU101は、外部記憶媒体50が制御装置10に接続されていないことを確認する。外部記憶媒体50が制御装置10に接続されていないと、図35(b)に示されるように、CPU101は、外部データ351を実行することができない状態となる。   On the other hand, as shown in FIG. 35A, when the external storage medium 50 is removed from the control device 10, the CPU 101 confirms whether the external storage medium 50 is connected to the control device 10. . At this time, the CPU 101 confirms that the external storage medium 50 is not connected to the control device 10. If the external storage medium 50 is not connected to the control device 10, as shown in FIG. 35 (b), the CPU 101 cannot execute the external data 351.

なお、外部記憶媒体50が装着された場合の処理と、外部記憶媒体50が離脱される場合の処理とは、実施の形態5で説明したものとほぼ同様であるので、その説明を省略する。   Note that the processing when the external storage medium 50 is mounted and the processing when the external storage medium 50 is detached are substantially the same as those described in the fifth embodiment, and thus description thereof is omitted.

実施の形態6では、外部記憶媒体50から外部データ保存部14に外部データを退避した後、の外部データを保存していた外部記憶媒体50が制御装置10に装着されている状態でなければ、外部データを実行することができないようにした。これによって、ユーザが制御装置10の近くに存在する場合でなければ、外部記憶媒体50に保存された外部データを実行することができない。その結果、たとえばユーザが外部記憶媒体50を抜き取って制御装置10の近傍から離れたときに、第三者が制御装置10に他の外部記憶媒体50を装着しても、制御装置10がユーザに不測の動作をすることがない。 In the sixth embodiment, after saving the external data from the external storage medium 50 in the external data storage unit 14, if the state in which the external storage medium 50 which has been stored external data this is mounted in the control unit 10 Made it impossible to execute external data. As a result, the external data stored in the external storage medium 50 cannot be executed unless the user is near the control device 10. As a result, for example, when the user pulls out the external storage medium 50 and leaves the vicinity of the control device 10, even if a third party attaches another external storage medium 50 to the control device 10, the control device 10 There is no unexpected behavior.

実施の形態7.
上記した実施の形態では、外部データ保存部の外部データを外部記憶媒体に書戻す場合には、平文の形で書戻していた。実施の形態7では、暗号文の形で書戻す場合を説明する。
Embodiment 7 FIG.
In the above embodiment, when the external data stored in the external data storage unit is written back to the external storage medium, it is written back in the form of plain text. In the seventh embodiment, the case of writing back in the form of ciphertext will be described.

実施の形態7における制御装置10は、上記してきた実施の形態の制御装置10と構成は同一であるが、外部データ書戻し部22の機能が異なる。外部データ書戻し部22は、書戻し処理のコマンドが実行され、パスワードが入力されると、外部データ保存部14内の対象となる外部データを入力されたパスワード、すなわち対象となる外部データに対応付けられたパスワードを用いて暗号化し、暗号化した外部データを外部記憶媒体50にコピーする。また、コピー後のデータの照合は、外部記憶媒体50にコピーされた暗号化した外部データと、コピー元の暗号化した外部データとで行われる。 The control device 10 in the seventh embodiment has the same configuration as that of the control device 10 in the above-described embodiment, but the function of the external data write-back unit 22 is different. External data writeback unit 22 is a command to execute the write-back process, when the password is entered, the password inputted external data of interest in the external data storage unit 14, i.e. corresponding to the external data of interest encrypted using the Tagged password, copies the external data encrypted in the external storage medium 50. Further, the collation of the data after copying is performed by the encrypted external data copied to the external storage medium 50 and the encrypted external data of the copy source.

つぎに、このような外部データの書戻し処理について説明する。なお、実施の形態7における外部記憶媒体50が装着された場合の処理については、上記した実施の形態と同様であるので、説明を省略する。図36と図37は、実施の形態7による外部データの書戻し処理の手順の一例を模式的に示す図である。なお、ここでは書戻し処理の要部のみを説明する。   Next, the external data write-back process will be described. Note that the processing when the external storage medium 50 is mounted in the seventh embodiment is the same as that in the above-described embodiment, and thus the description thereof is omitted. FIG. 36 and FIG. 37 are diagrams schematically illustrating an example of the procedure of external data write-back processing according to the seventh embodiment. Only the main part of the write-back process will be described here.

まず、図36(a)に示されるように、制御装置10には外部記憶媒体50が装着され、外部記憶媒体50に保存されていたデータは外部データ保存部14に退避された状態にある。この状態で、操作盤105を介してユーザが外部記憶媒体50の取り外しコマンドの実行を指示する。   First, as shown in FIG. 36A, the external storage medium 50 is attached to the control device 10, and the data stored in the external storage medium 50 is in a state of being saved in the external data storage unit 14. In this state, the user instructs execution of the removal command for the external storage medium 50 via the operation panel 105.

外部記憶媒体50の取り外しコマンドが実行されると、図36(b)に示されるように、パスワードの入力画面が表示部13に表示され、ユーザによって操作盤105を介してパスワードが入力される。入力されたパスワードは、パスワード−外部データ対応情報1032中のパスワードと一致するか照合される。   When the removal command for the external storage medium 50 is executed, a password input screen is displayed on the display unit 13 as shown in FIG. 36B, and the password is input by the user via the operation panel 105. The input password is verified whether it matches the password in the password-external data correspondence information 1032.

ついで、図37(a)に示されるように、外部データ書戻し部22は、入力されたパスワードに対応付けられた外部データ保存領域1031内の外部データ351を、入力されたパスワードで暗号化し、図示しない暗号化外部データを生成する。その後、外部データ書戻し部22は、暗号化外部データを外部記憶媒体50にコピーし、コピーした暗号化外部データ301Aがコピー元の暗号化外部データと一致するかを照合する。   Next, as shown in FIG. 37A, the external data writing-back unit 22 encrypts the external data 351 in the external data storage area 1031 associated with the input password with the input password, Encrypted external data (not shown) is generated. Thereafter, the external data write-back unit 22 copies the encrypted external data to the external storage medium 50, and verifies whether the copied encrypted external data 301A matches the copy source encrypted external data.

そして、両者が一致する場合には、図37(b)に示されるように、暗号化外部データ301Aがコピーされた外部記憶媒体50が制御装置10から取り外し可能な状態となる。なお、暗号化外部データ301Aの基となる外部データ351については、上記した実施の形態で説明したように処理される。また、制御装置10内で生成された暗号化外部データは、照合後に削除されてもよいし、そのままデータ保存領域に残してもよい。また、このように、制御装置10内の外部データ351を暗号化外部データ301Aとして外部記憶媒体50に書戻す処理は、上記した各実施の形態に対して適用することができる。   If they match, the external storage medium 50 to which the encrypted external data 301A has been copied becomes removable from the control device 10 as shown in FIG. Note that the external data 351 that is the basis of the encrypted external data 301A is processed as described in the above embodiment. Further, the encrypted external data generated in the control device 10 may be deleted after collation or may be left in the data storage area as it is. In addition, the process of writing the external data 351 in the control device 10 back to the external storage medium 50 as the encrypted external data 301A as described above can be applied to the above-described embodiments.

実施の形態7では、外部記憶媒体50に外部データ保存部14内の外部データを書戻す処理を行う場合に、の外部データに対して設定されたパスワードを用いて暗号化した暗号化外部データを外部記憶媒体50に書戻した。これによって、外部記憶媒体50に外部データを書戻した状態で外部記憶媒体50が盗難された場合でも、外部記憶媒体50内の外部データが閲覧されてしまう確率を低減することができるという効果を有する。 In the seventh embodiment, when the encrypted encrypted external data using the set for this external data password to perform the writing process returns external data in the external storage medium 50 in the external data storage unit 14 Is written back to the external storage medium 50. Thus, even when the external storage medium 50 is stolen in a state where the external data is written back to the external storage medium 50, the probability that the external data in the external storage medium 50 is browsed can be reduced. Have.

実施の形態8.
実施の形態2では、外部データ保存部の空き容量が外部記憶媒体に保存されている外部データの合計サイズよりも小さい場合に、優先度の高い外部データを外部データ保存部に保存し、優先度の低い外部データは外部記憶媒体に残存させたままとした。実施の形態8では、外部記憶媒体に残存させるデータを暗号化する場合について説明する。
Embodiment 8 FIG.
In the second embodiment, when the free space of the external data storage unit is smaller than the total size of the external data stored in the external storage medium, the high-priority external data is stored in the external data storage unit. Low external data was left on the external storage medium. In the eighth embodiment, a case where data remaining in an external storage medium is encrypted will be described.

実施の形態8による制御装置10は、実施の形態2の制御装置10において、外部データ保存処理部18の機能が異なる。すなわち、外部データ保存処理部18は、外部記憶媒体50の外部データを外部データ保存部14に退避する際、外部データ保存部14の空き容量が外部記憶媒体50の外部データの合計サイズよりも小さい場合に、退避外部データを外部データ保存部14にコピーするとともに、外部記憶媒体50に残る残存外部データを設定されたパスワードで暗号化して暗号化外部データを生成し、外部記憶媒体50に保存し、残存外部データを削除する機能をさらに備える。   The control device 10 according to the eighth embodiment differs from the control device 10 according to the second embodiment in the function of the external data storage processing unit 18. That is, when the external data storage processing unit 18 saves the external data of the external storage medium 50 to the external data storage unit 14, the free space of the external data storage unit 14 is smaller than the total size of the external data of the external storage medium 50. In this case, the saved external data is copied to the external data storage unit 14, and the remaining external data remaining in the external storage medium 50 is encrypted with the set password to generate encrypted external data, which is stored in the external storage medium 50. And a function of deleting the remaining external data.

図38は、実施の形態8による制御装置に外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。まず、実施の形態2の図10のステップS51からS57と同様に、外部記憶媒体50が制御装置10に装着されると、外部データ保存領域設定部15が内部記憶部に外部データ保存領域を設定し、外部データ保存領域の容量が外部記憶媒体50の外部データの合計サイズよりも小さい場合に、退避可能データ容量を基に、外部データ保存部14に退避する退避外部データと外部記憶媒体50に残存させる残存外部データとに振り分ける。そして、データ書戻し時のパスワードを設定し、設定したパスワードをパスワード−外部データ対応情報に保存する(ステップS211からS217)。 FIG. 38 is a flowchart illustrating an example of a processing procedure when an external storage medium is mounted on the control device according to the eighth embodiment. First, as in steps S51 to S57 in FIG. 10 of the second embodiment, when the external storage medium 50 is loaded in the control device 10, the external data storage area setting unit 15 sets the external data storage area in the internal storage unit. When the capacity of the external data storage area is smaller than the total size of the external data in the external storage medium 50, the saved external data saved in the external data saving unit 14 and the external storage medium 50 are saved based on the saveable data capacity. Sort to remaining external data to remain. Then, a password for data writing back is set, and the set password is stored in the password-external data correspondence information (steps S211 to S217).

ついで、外部記憶媒体50中の残存外部データを、ステップS216で設定されたパスワードを用いて暗号化して暗号化残存外部データを生成し(ステップS218)、暗号化残存外部データを外部記憶媒体50に保存し、外部記憶媒体50中の残存外部データを消去する(ステップS219)。このとき、外部データ保存処理部18は、退避外部データ以外残存外部データは暗号化して外部記憶媒体50に保存する旨の表示を表示部13に出力してもよい。 Next, the remaining external data in the external storage medium 50 is encrypted using the password set in step S216 to generate encrypted remaining external data (step S218), and the encrypted remaining external data is stored in the external storage medium 50. Save and erase the remaining external data in the external storage medium 50 (step S219). At this time, the external data storage processing unit 18, the remaining external data other than saving the external data may be output to the display unit 13 an indication to be stored in the external storage medium 50 are encrypted.

その後、外部記憶媒体50中の退避外部データを外部データ保存部14の外部データ保存領域にコピーする(ステップS220)。そして、実施の形態2の図10のステップS59からS63と同様に、外部記憶媒体50と外部データ保存部14の退避外部データとの照合を行い、外部データ保存部14に保存した退避外部データの保存位置をパスワード−外部データ対応情報に登録し、外部記憶媒体50内の退避外部データを消去する(ステップS221からS225)。以上で、処理が終了する。 Thereafter, the saved external data in the external storage medium 50 is copied to the external data storage area of the external data storage unit 14 (step S220). Then, similarly to steps S59 to S63 in FIG. 10 of the second embodiment, the external storage medium 50 is compared with the saved external data of the external data storage unit 14, and the saved external data stored in the external data storage unit 14 is checked. The saving position is registered in the password-external data correspondence information, and the saved external data in the external storage medium 50 is deleted (steps S221 to S225). This is the end of the process.

図39は、実施の形態8による外部データが処理される様子を模式的に示す図である。図39(a)で、外部記憶媒体50中の外部データ301,302が退避外部データであり、外部データ303,304が残存外部データに指定されたものとする。パスワードが設定されると、図39(b)に示されるように、残存外部データ303,304が設定されたパスワードによって暗号化され、暗号化外部データ303X,304Xとして外部記憶媒体50に保存される。そして、外部データ303,304は外部記憶媒体50から消去される。一方、退避外部データ301,302は、実施の形態2と同様に内部記憶部103の空き領域1031Bにコピーされる。   FIG. 39 is a diagram schematically illustrating how external data according to the eighth embodiment is processed. In FIG. 39A, it is assumed that the external data 301 and 302 in the external storage medium 50 are saved external data, and the external data 303 and 304 are designated as remaining external data. When the password is set, as shown in FIG. 39B, the remaining external data 303 and 304 are encrypted with the set password and stored in the external storage medium 50 as encrypted external data 303X and 304X. . Then, the external data 303 and 304 are erased from the external storage medium 50. On the other hand, the saved external data 301 and 302 are copied to the free area 1031B of the internal storage unit 103 as in the second embodiment.

外部記憶媒体50を制御装置10から離脱する場合には、図39(c)に示されるように、外部データ書戻し部22が、外部データ保存部14中の退避外部データ301,302を外部記憶媒体50にコピーするとともに、入力されたパスワードを用いて外部記憶媒体50中の暗号化外部データ303X,304Xを復号化して平文の残存外部データ303,304を外部記憶媒体50に保存し、暗号化外部データ303X,304Xを消去するようにしてもよい。この場合には、外部データ書戻し部22は、パスワードを用いて外部記憶媒体50中の暗号化データを復号化する機能を有することになる。   When the external storage medium 50 is detached from the control device 10, as shown in FIG. 39C, the external data write-back unit 22 stores the saved external data 301 and 302 in the external data storage unit 14 as external storage. The encrypted external data 303X and 304X in the external storage medium 50 are decrypted using the input password, and the plaintext remaining external data 303 and 304 are stored in the external storage medium 50 for encryption. The external data 303X and 304X may be deleted. In this case, the external data write-back unit 22 has a function of decrypting the encrypted data in the external storage medium 50 using a password.

あるいは、図39(d)に示されるように、外部データ書戻し部22が、入力されたパスワードを用いて外部データ保存部14中の退避外部データ301,302を暗号化して暗号化外部データ301X,302Xを生成し、この暗号化外部データ301X,302Xを外部記憶媒体50にコピーしてもよい。この場合には、外部データ書戻し部22は、パスワードを用いて外部データ保存部14中の外部データを暗号化して外部記憶媒体50に保存する機能を有することになる。   Alternatively, as shown in FIG. 39 (d), the external data write-back unit 22 encrypts the saved external data 301 and 302 in the external data storage unit 14 using the input password, and encrypts the external data 301X. , 302X may be generated and the encrypted external data 301X, 302X may be copied to the external storage medium 50. In this case, the external data write-back unit 22 has a function of encrypting the external data in the external data storage unit 14 using a password and storing it in the external storage medium 50.

実施の形態8では、外部データ保存領域の容量が外部記憶媒体50の外部データの合計サイズよりも小さく、外部データの一部のみが外部データ保存部14に退避され、他が外部記憶媒体50に残される場合に、残される外部データを暗号化するようにした。これによって、外部記憶媒体50が作業中に抜き取られてしまった場合でも、外部記憶媒体50内の外部データの内容が見られてしまう確率を低減させることができるという効果を有する。   In the eighth embodiment, the capacity of the external data storage area is smaller than the total size of the external data in the external storage medium 50, only a part of the external data is saved in the external data storage unit 14, and the other is stored in the external storage medium 50. When the data is left, the remaining external data is encrypted. As a result, even when the external storage medium 50 is extracted during work, the probability that the contents of the external data in the external storage medium 50 can be seen can be reduced.

実施の形態9.
上記した実施の形態では、外部記憶媒体を制御装置に装着し、外部データを外部データ保存部に退避した後の制御装置の動作と装着状態の関係については、実施の形態7以外では特に言及しなかった。実施の形態9では、制御装置を実行する場合に外部記憶媒体を離脱させることについて説明する。
Embodiment 9 FIG.
In the above-described embodiment, the relationship between the operation of the control device after the external storage medium is attached to the control device and the external data is saved in the external data storage unit and the attachment state is particularly referred to except for the seventh embodiment. There wasn't. In the ninth embodiment, the case where the external storage medium is detached when the control device is executed will be described.

図40は、実施の形態9による制御装置の機能構成を模式的に示すブロック図である。この制御装置10は、外部記憶媒体インタフェース11と、入力部12と、表示部13と、外部データ保存部14と、外部データ保存処理部18と、制御処理部24と、外部記憶媒体着脱検知部30と、を備える。   FIG. 40 is a block diagram schematically showing a functional configuration of the control device according to the ninth embodiment. The control device 10 includes an external storage medium interface 11, an input unit 12, a display unit 13, an external data storage unit 14, an external data storage processing unit 18, a control processing unit 24, and an external storage medium attachment / detachment detection unit. 30.

外部記憶媒体着脱検知部30は、外部記憶媒体50が制御装置10に装着されているか否かを検知する。たとえば、制御処理部24がプログラムを実行する際に、外部記憶媒体着脱検知部30に問い合わせを行い、外部記憶媒体50の装着状態を制御処理部24に通知する。   The external storage medium attachment / detachment detection unit 30 detects whether or not the external storage medium 50 is attached to the control device 10. For example, when the control processing unit 24 executes the program, it makes an inquiry to the external storage medium attachment / detachment detection unit 30 and notifies the control processing unit 24 of the mounting state of the external storage medium 50.

外部データ保存処理部18は、ユーザから外部記憶媒体50の外部データを制御装置10内にコピーする指示を受けると、外部記憶媒体50の外部データを外部データ保存部14にコピーする。   When receiving an instruction from the user to copy the external data in the external storage medium 50 into the control device 10, the external data storage processing unit 18 copies the external data in the external storage medium 50 to the external data storage unit 14.

制御処理部24は、外部データ保存部14に保存された外部データにアクセスする場合に、外部記憶媒体着脱検知部30に外部記憶媒体50が制御装置10に装着された状態にあるのか否かを問い合わせる。外部記憶媒体50が装着された状態にある場合には、外部データ保存部14の外部データへのアクセスが禁止され、外部記憶媒体50が離脱された状態にある場合には、外部データへのアクセスが可能となる。これは、外部データの制御装置10へのコピー後の外部記憶媒体50の装着状態の継続を防止するためである。なお、上記した実施の形態で説明したものと同一の構成要素には同一の符号を付してその説明を省略している。   When the control processing unit 24 accesses the external data stored in the external data storage unit 14, the control processing unit 24 determines whether the external storage medium 50 is attached to the control device 10 in the external storage medium attachment / detachment detection unit 30. Inquire. When the external storage medium 50 is attached, access to the external data of the external data storage unit 14 is prohibited. When the external storage medium 50 is detached, access to the external data is performed. Is possible. This is to prevent the external storage medium 50 from being attached after the external data is copied to the control device 10. In addition, the same code | symbol is attached | subjected to the component same as what was demonstrated in the above-mentioned embodiment, and the description is abbreviate | omitted.

つぎに、実施の形態9による処理について説明する。図41は、実施の形態9による外部記憶媒体が装着された場合の処理手順の一例を示すフローチャートである。まず、外部記憶媒体50が装着される(ステップS231)。その後、ユーザから外部記憶媒体50の外部データの外部データ保存部14へのコピーの指示があると(ステップS232)、外部データ保存処理部18は、外部記憶媒体50中の外部データを外部データ保存部14にコピーする(ステップS233)。なお、実施の形態9では、上記したように外部記憶媒体50中の外部データを消去しなくてもよい。   Next, processing according to the ninth embodiment will be described. FIG. 41 is a flowchart illustrating an example of a processing procedure when an external storage medium according to the ninth embodiment is loaded. First, the external storage medium 50 is loaded (step S231). Thereafter, when the user gives an instruction to copy the external data in the external storage medium 50 to the external data storage unit 14 (step S232), the external data storage processing unit 18 stores the external data in the external storage medium 50 as external data. Copy to the unit 14 (step S233). In the ninth embodiment, it is not necessary to delete the external data in the external storage medium 50 as described above.

ついで、外部記憶媒体着脱検知部30は、外部記憶媒体50の接続状況を確認し、外部記憶媒体50が離脱されたかを判定する(ステップS234)。外部記憶媒体50が装着されている場合(ステップS234でNoの場合)には、コピーした外部データ保存部14内の外部データへのアクセスが禁止され(ステップS235)、ステップS234に戻る。   Next, the external storage medium attachment / detachment detection unit 30 confirms the connection status of the external storage medium 50 and determines whether the external storage medium 50 has been detached (step S234). If the external storage medium 50 is loaded (No in step S234), access to the external data in the copied external data storage unit 14 is prohibited (step S235), and the process returns to step S234.

一方、外部記憶媒体50が離脱された場合(ステップS234でYesの場合)には、制御処理部24は、コピーした外部データ保存部14内の外部データへのアクセスが初めて可能となる(ステップS236)。そして、制御処理部24は、外部データへのアクセスを行い(ステップS237)、処理が終了する。   On the other hand, when the external storage medium 50 is detached (Yes in step S234), the control processing unit 24 can access the external data in the copied external data storage unit 14 for the first time (step S236). ). Then, the control processing unit 24 accesses external data (step S237), and the process ends.

図42は、実施の形態9による外部記憶媒体が装着された場合の制御装置の処理状態を模式的に示す図である。図42(a)に示されるように、外部記憶媒体50が制御装置10に装着され、外部記憶媒体50中の外部データ301のコピーが指示されると、外部データ301が内部記憶部103に外部データ351としてコピーされる。   FIG. 42 is a diagram schematically illustrating a processing state of the control device when the external storage medium according to the ninth embodiment is loaded. As shown in FIG. 42A, when the external storage medium 50 is attached to the control device 10 and the copy of the external data 301 in the external storage medium 50 is instructed, the external data 301 is externally transferred to the internal storage unit 103. Copied as data 351.

ついで、CPU101は外部記憶媒体50が制御装置10に接続されているかを確認する。ここでは、外部記憶媒体50が制御装置10に接続されているので、CPU101は内部記憶部103内の外部データ351へのアクセスができない。   Next, the CPU 101 confirms whether the external storage medium 50 is connected to the control device 10. Here, since the external storage medium 50 is connected to the control device 10, the CPU 101 cannot access the external data 351 in the internal storage unit 103.

その後、図42(b)に示されるように、外部記憶媒体50が制御装置10から抜き取られると、CPU101が外部記憶媒体50が制御装置10から離脱したことを検出し、内部記憶部103内の外部データ351へのアクセスが可能になる。そして、外部データ351を用いた処理を実行することができる。   Thereafter, as shown in FIG. 42B, when the external storage medium 50 is removed from the control device 10, the CPU 101 detects that the external storage medium 50 has detached from the control device 10, and the internal storage unit 103 Access to the external data 351 becomes possible. Then, processing using the external data 351 can be executed.

実施の形態9では、外部記憶媒体50が装着されると、外部記憶媒体50内の外部データを外部データ保存部14にコピーし、その後外部記憶媒体50が接続されている間はコピーした外部データへのアクセスを禁止し、外部記憶媒体50が離脱した後にコピーした外部データへのアクセスを可能となるようにした。これによって、外部記憶媒体50が制御装置10に装着され続けてしまう状態を防ぐことができ、第三者による外部記憶媒体50の持ち去りを防止することができるという効果を有する。   In the ninth embodiment, when the external storage medium 50 is loaded, the external data in the external storage medium 50 is copied to the external data storage unit 14, and then the copied external data while the external storage medium 50 is connected. The access to the external data is prohibited, and the external data copied after the external storage medium 50 is detached can be accessed. As a result, it is possible to prevent the external storage medium 50 from being continuously attached to the control apparatus 10 and to prevent the external storage medium 50 from being taken away by a third party.

実施の形態10.
実施の形態10では、実施の形態9で外部記憶媒体が制御装置に装着されてから所定時間経過した後に、外部記憶媒体内の外部データを暗号化する場合について説明する。
Embodiment 10 FIG.
In the tenth embodiment, a case will be described in which the external data in the external storage medium is encrypted after a predetermined time has elapsed since the external storage medium was attached to the control device in the ninth embodiment.

図43は、実施の形態10による制御装置の機能構成を模式的に示すブロック図である。制御装置10は、外部記憶媒体インタフェース11と、入力部12と、表示部13と、外部データ保存部14と、ユーザ認証情報記憶部31と、ユーザ認証部32と、外部データ保存処理部18と、外部データ保護部33と、外部データ復号部34と、制御処理部24と、外部記憶媒体着脱検知部30と、を備える。   FIG. 43 is a block diagram schematically showing a functional configuration of the control device according to the tenth embodiment. The control device 10 includes an external storage medium interface 11, an input unit 12, a display unit 13, an external data storage unit 14, a user authentication information storage unit 31, a user authentication unit 32, and an external data storage processing unit 18. An external data protection unit 33, an external data decryption unit 34, a control processing unit 24, and an external storage medium attachment / detachment detection unit 30.

ユーザ認証情報記憶部31は、制御装置10を使用するユーザの認証を行うためのユーザ認証情報を記憶する。ユーザ認証情報は、たとえばユーザを識別するユーザID、ユーザIDに対応付けられたパスワードなどを含む。   The user authentication information storage unit 31 stores user authentication information for authenticating a user who uses the control device 10. The user authentication information includes, for example, a user ID for identifying the user, a password associated with the user ID, and the like.

ユーザ認証部32は、外部記憶媒体50が接続されると、ユーザ認証を行う。具体的には、表示部13にユーザ認証画面を表示し、ユーザ認証画面に入力される内容がユーザ認証情報と一致するかを判定する。入力内容がユーザ認証情報と一致する場合には、以後の操作を認め、入力内容がユーザ認証情報と一致しない場合には、以後の操作を認めない。   When the external storage medium 50 is connected, the user authentication unit 32 performs user authentication. Specifically, a user authentication screen is displayed on the display unit 13, and it is determined whether or not the content input on the user authentication screen matches the user authentication information. If the input content matches the user authentication information, the subsequent operation is permitted. If the input content does not match the user authentication information, the subsequent operation is not allowed.

外部データ保護部33は、外部記憶媒体50が装着された後、予め定められた外部データ保護期間が過ぎても外部記憶媒体50が取り外されない場合に、外部記憶媒体50に保存されている外部データをパスワードなどのユーザ認証情報を暗号鍵として暗号化し、外部記憶媒体50に保存し、元となった平文の外部データを消去する。 The external data protection unit 33 stores the external data stored in the external storage medium 50 when the external storage medium 50 is not removed even after a predetermined external data protection period has passed after the external storage medium 50 is attached. It encrypts data user authentication information such as password as an encryption key, stored in the external storage medium 50, to erase the external data in plain text that is the source.

外部データ復号部34は、外部記憶媒体50中の暗号化外部データを復号化する指示を受けると、ユーザ認証画面を表示してユーザ認証を行い、ユーザ認証が正常に終了すると、外部記憶媒体50に保存されている暗号化外部データを復号化し、暗号化外部データを消去する。また、ユーザ認証ができない場合には、暗号化外部データを復号化せずにそのままの状態とする。   When the external data decrypting unit 34 receives an instruction to decrypt the encrypted external data in the external storage medium 50, the external data decrypting unit 34 displays a user authentication screen to perform user authentication, and when the user authentication ends normally, the external storage medium 50 Decrypt the encrypted external data stored in, and erase the encrypted external data. If user authentication is not possible, the encrypted external data is left as it is without being decrypted.

なお、上記した実施の形態で使用された構成要素と同一の構成要素には、同一の符号を付してその説明を省略している。   In addition, the same code | symbol is attached | subjected to the component same as the component used by above-described embodiment, and the description is abbreviate | omitted.

つぎに、実施の形態10による制御装置10の動作処理について説明する。図44は、実施の形態10による制御装置の処理手順の一例を示すフローチャートである。まず、外部記憶媒体50が制御装置10に接続または着されると(ステップS251)、計時を開始し(ステップS252)、ユーザ認証部32はユーザ認証を行う(ステップS253)。ユーザ認証として、ユーザIDとパスワードの入力を例示することができる。ユーザ認証部32は、ユーザ認証が成功したかを判定する(ステップS254)。ユーザ認証が成功しなかった場合(ステップS254でNoの場合)、すなわちユーザ認証が失敗した場合には、処理が終了する。 Next, an operation process of the control device 10 according to the tenth embodiment will be described. FIG. 44 is a flowchart illustrating an example of a processing procedure of the control device according to the tenth embodiment. First, when the external storage medium 50 is connected or instrumentation wear control device 10 (step S251), and starts measuring time (step S252), the user authentication unit 32 performs user authentication (step S253). As user authentication, input of a user ID and a password can be exemplified. The user authentication unit 32 determines whether the user authentication is successful (step S254). If the user authentication is not successful (No in step S254), that is, if the user authentication fails, the process ends.

また、ユーザ認証が成功した場合(ステップS254でYesの場合)には、外部データ保存処理部18は、外部記憶媒体50内の外部データを外部データ保存部14にコピーする(ステップS255)。外部記憶媒体着脱検知部30は、外部記憶媒体50の接続状況を確認し、外部記憶媒体50が制御装置10から離脱したかを判定する(ステップS256)。外部記憶媒体50が離脱した場合(ステップS256でYesの場合)には、外部データ保存部14にコピーされた外部データへのアクセスが可能となる(ステップS257)。そして、制御処理部24は、外部データへのアクセスを行い(ステップS258)、処理が終了する。   If the user authentication is successful (Yes in step S254), the external data storage processing unit 18 copies the external data in the external storage medium 50 to the external data storage unit 14 (step S255). The external storage medium attachment / detachment detection unit 30 confirms the connection status of the external storage medium 50 and determines whether the external storage medium 50 has been detached from the control device 10 (step S256). If the external storage medium 50 is detached (Yes in step S256), the external data copied to the external data storage unit 14 can be accessed (step S257). Then, the control processing unit 24 accesses external data (step S258), and the process ends.

外部記憶媒体50が離脱していない場合(ステップS256でNoの場合)には、外部データ保存部14にコピーされた外部データへのアクセスを禁止する(ステップS259)。その後、計時してから所定の外部データ保護期間が経過したかを判定する(ステップS260)。所定の外部データ保護期間が経過していない場合(ステップS260でNoの場合)には、ステップS256に戻る。また、計時してから所定の外部データ保護期間が経過した場合(ステップS260でYesの場合)には、パスワードなどのユーザ認証情報を暗号鍵として、外部記憶媒体50内の外部データを暗号化して外部記憶媒体50に保存する(ステップS261)。また、暗号化の元となった平文の外部データを削除する(ステップS262)。 If the external storage medium 50 is not detached (No in step S256), access to the external data copied to the external data storage unit 14 is prohibited (step S259). Thereafter, it is determined whether or not a predetermined external data protection period has elapsed since the clocking (step S260). If the predetermined external data protection period has not elapsed (No in step S260), the process returns to step S256. Further, when the elapsed since the time measurement a predetermined external data protection period (Yes in step S260), the user authentication information such as password as an encryption key, encrypts the external data in the external storage medium 50 To the external storage medium 50 (step S261). Also, the plaintext external data that is the source of encryption is deleted (step S262).

その後、ユーザから外部記憶媒体50内の暗号化された外部データの復号化などの指示があると(ステップS263)、再度ユーザ認証を行う(ステップS264)。ユーザ認証が成功しなかった場合(ステップS265でNoの場合)、すなわちユーザ認証が失敗した場合には、処理が終了する。   Thereafter, when the user gives an instruction to decrypt the encrypted external data in the external storage medium 50 (step S263), user authentication is performed again (step S264). If the user authentication is not successful (No in step S265), that is, if the user authentication fails, the process ends.

また、ユーザ認証が成功した場合(ステップS265でYesの場合)には、ユーザ認証情報を用いて暗号化された外部データを復号化し、外部記憶媒体50に記憶する(ステップS266)。また外部記憶媒体50内の暗号化された外部データを削除する(ステップS267)。以上によって、処理が終了する。   If the user authentication is successful (Yes in step S265), the external data encrypted using the user authentication information is decrypted and stored in the external storage medium 50 (step S266). Further, the encrypted external data in the external storage medium 50 is deleted (step S267). Thus, the process ends.

図45は、実施の形態10による外部記憶媒体の暗号化の様子を模式的に示す図である。図45(a)に示されるように、外部記憶媒体50が制御装置10に装着されると、操作盤105を介してユーザによって入力されるユーザIDとパスワードを用いてユーザ認証が行われる。ユーザ認証が成功すると、外部記憶媒体50内の外部データ301が内部記憶部103にコピーされる。CPU101は外部記憶媒体50が接続されているか確認し、接続されている間は内部記憶部103にコピーされた外部データ351へのアクセスが禁止される。   FIG. 45 is a diagram schematically showing the state of encryption of the external storage medium according to the tenth embodiment. As shown in FIG. 45A, when the external storage medium 50 is attached to the control device 10, user authentication is performed using a user ID and password input by the user via the operation panel 105. If the user authentication is successful, the external data 301 in the external storage medium 50 is copied to the internal storage unit 103. The CPU 101 checks whether the external storage medium 50 is connected, and access to the external data 351 copied to the internal storage unit 103 is prohibited while the external storage medium 50 is connected.

外部記憶媒体50が制御装置10に接続された状態で所定の時間放置されていると、外部記憶媒体50内の外部データ301が暗号化される。そして、図45(b)に示されるように、外部記憶媒体50には暗号化外部データ301Xが保存され、外部データ301は削除される。なお、この状態で再度ユーザ認証を行うことで外部記憶媒体50内の暗号化外部データ301Xを復号化することができる。   If the external storage medium 50 is left connected to the control device 10 for a predetermined time, the external data 301 in the external storage medium 50 is encrypted. Then, as shown in FIG. 45B, the encrypted external data 301X is stored in the external storage medium 50, and the external data 301 is deleted. Note that the encrypted user data 301X in the external storage medium 50 can be decrypted by performing user authentication again in this state.

実施の形態10では、外部記憶媒体50中の外部データが外部データ保存部14にコピーされた後、外部記憶媒体50が装着されてから所定時間経過しても外部記憶媒体50が離脱されない場合に、外部記憶媒体50内の外部データを暗号化して保存するようにした。これによって、外部記憶媒体50が長期間にわたって制御装置10に接続される状態となり、外部記憶媒体50が第三者に抜き取られてしまっても、外部データが暗号化されているので、外部記憶媒体50の中身が流出する虞が少ないという効果を有する。   In the tenth embodiment, after external data in the external storage medium 50 is copied to the external data storage unit 14, the external storage medium 50 is not detached even after a predetermined time has elapsed since the external storage medium 50 was attached. The external data in the external storage medium 50 is encrypted and stored. As a result, the external storage medium 50 is connected to the control device 10 for a long period of time, and even if the external storage medium 50 is extracted by a third party, the external data is encrypted. There is an effect that there is little possibility that the content of 50 flows out.

なお、パスワードや各種の入力は、操作盤105などの入力部12に限らず、コンピュータを使用してもよいし、あるいはネットワーク経由でエンジニアリングツールなどを使用してもよい。   The password and various inputs are not limited to the input unit 12 such as the operation panel 105, but may be a computer or an engineering tool or the like via a network.

以上のように、この発明にかかる制御装置は、プログラムまたはパラメータなどの外部データを携帯可能な記憶媒体から読み込んで処理を行うプログラマブルコントローラまたは数値制御装置などの制御装置に有用である。   As described above, the control device according to the present invention is useful for a control device such as a programmable controller or a numerical control device that reads and processes external data such as programs or parameters from a portable storage medium.

10 制御装置、11 外部記憶媒体インタフェース、12 入力部、13 表示部、14 外部データ保存部、15 外部データ保存領域設定部、16 外部データ判定部、17 パスワード設定部、18 外部データ保存処理部、19 パスワード−外部データ対応情報記憶部、20 外部データ消去部、21 パスワード判定部、22 外部データ書戻し部、23 内部データ処理部、24 制御処理部、25 データ分割部、26 データ結合部、27 外部記憶媒体情報取得部、28 設定情報処理部、29 設定情報記憶部、30 外部記憶媒体着脱検知部、31 ユーザ認証情報記憶部、32 ユーザ認証部、33 外部データ保護部、34 外部データ復号部、50 外部記憶媒体、101 CPU、102 RAM、103 内部記憶部、104,104A104C メモリインタフェース、105 操作盤、106 バス。 DESCRIPTION OF SYMBOLS 10 Control apparatus, 11 External storage medium interface, 12 Input part, 13 Display part, 14 External data storage part, 15 External data storage area setting part, 16 External data determination part, 17 Password setting part, 18 External data storage process part, 19 Password-external data correspondence information storage unit, 20 External data deletion unit, 21 Password determination unit, 22 External data write-back unit, 23 Internal data processing unit, 24 Control processing unit, 25 Data division unit, 26 Data combination unit, 27 External storage medium information acquisition unit, 28 setting information processing unit, 29 setting information storage unit, 30 external storage medium attachment / detachment detection unit, 31 user authentication information storage unit, 32 user authentication unit, 33 external data protection unit, 34 external data decoding unit , 50 External storage medium, 101 CPU, 102 RAM, 103 Internal storage unit, 104, 104A - 10 4C memory interface, 105 operation panel, 106 bus.

上記目的を達成するため、この発明にかかる制御装置は、内部記憶部と、内部記憶部に記憶されたプログラムまたはパラメータを用いて演算を行い、接続される制御対象に対する制御処理を行う制御処理部と、を備える制御装置は、照合情報設定部と、外部データ消去部と、外部データ保存処理部と、外部データ判定部と、を備える。照合情報設定部は、当該制御装置に外部記憶媒体が装着された後、外部から入力された照合情報を設定する。外部データ消去部は、外部記憶媒体に記憶されている外部データが外部データ保存領域に保存されると、外部記憶媒体内の外部データを消去する。外部データ保存処理部は、外部データを外部データ保存領域に記憶し、外部データの保存位置と照合情報とを照合情報−外部データ対応情報に対応付ける。外部データ判定部は、外部記憶媒体中の外部データの合計サイズと内部記憶部の空き領域のサイズとを比較する。外部データ消去部は、外部データを消去した後、外部記憶媒体の初期化の実行または外部記憶媒体へのランダムデータの書き込みを行う。また、外部データ保存処理部は、外部データの合計サイズが内部記憶部の空き領域のサイズよりも大きい場合に、設定された優先度に従って空き領域のサイズに収まる分の外部データを外部データ保存領域に保存する。 To achieve the above object, a control apparatus according to the present invention, an internal storage unit, performs a calculation using the program or parameters stored in the internal storage unit, a control process for controlling processing for the connected are controlled object A section . Control device includes a collating information setting unit, and the external data erasing unit, Ru comprises an external data storage processing section, and the external data judging unit. The collation information setting unit sets collation information input from the outside after the external storage medium is mounted on the control device. The external data erasure unit erases the external data in the external storage medium when the external data stored in the external storage medium is stored in the external data storage area. The external data storage processing unit stores the external data in the external data storage area, and associates the storage position of the external data and the verification information with the verification information-external data correspondence information. The external data determination unit compares the total size of the external data in the external storage medium with the size of the free area in the internal storage unit. The external data erasure unit erases the external data and then executes initialization of the external storage medium or writes random data to the external storage medium. In addition, the external data storage processing unit, when the total size of the external data is larger than the size of the free area of the internal storage unit, external data storage area that fits the size of the free area according to the set priority Save to.

Claims (16)

内部記憶部と、
前記内部記憶部に記憶されたプログラムまたはパラメータを用いて演算を行い、接続される制御対象に対する制御処理を行う制御処理部と、
を備える制御装置において、
当該制御装置に外部記憶媒体が装着されると、パスワードを設定するパスワード設定部と、
前記外部記憶媒体に記憶されている外部データを保存する外部データ保存領域を前記内部記憶部に設定する外部データ保存領域設定部と、
前記外部データを前記外部データ保存領域に記憶し、前記外部データの保存位置と前記パスワードとをパスワード−外部データ対応情報に対応付ける外部データ保存処理部と、
前記外部データが前記外部データ保存領域に保存されると、前記外部記憶媒体内の前記外部データを消去する外部データ消去部と、
を備えることを特徴とする制御装置。
An internal storage unit;
A control processing unit that performs a calculation process using a program or parameter stored in the internal storage unit and performs a control process on a connected control target;
In a control device comprising:
When an external storage medium is attached to the control device, a password setting unit for setting a password;
An external data storage area setting unit for setting an external data storage area for storing external data stored in the external storage medium in the internal storage unit;
Storing the external data in the external data storage area, and an external data storage processing unit that associates the storage position of the external data and the password with password-external data correspondence information;
When the external data is stored in the external data storage area, an external data erasure unit that erases the external data in the external storage medium;
A control device comprising:
装着された前記外部記憶媒体を抜き取る際に入力される入力パスワードが前記パスワード−外部データ対応情報に記憶されている前記パスワードと一致するかを判定するパスワード判定部と、
前記入力パスワードと前記パスワードとが一致する場合に、前記外部データ保存領域内の前記外部データを前記外部記憶媒体にコピーする外部データ書戻し部と、
をさらに備えることを特徴とする請求項1に記載の制御装置。
A password determination unit for determining whether an input password input when the attached external storage medium is removed matches the password stored in the password-external data correspondence information;
An external data write-back unit that copies the external data in the external data storage area to the external storage medium when the input password matches the password;
The control device according to claim 1, further comprising:
前記外部データを前記外部記憶媒体にコピーした後、前記外部データ保存領域内の前記外部データを消去する内部データ処理部をさらに備えることを特徴とする請求項2に記載の制御装置。   The control device according to claim 2, further comprising an internal data processing unit that deletes the external data in the external data storage area after copying the external data to the external storage medium. 前記外部記憶媒体中の前記外部データの合計サイズと前記内部記憶部の空き領域のサイズとを比較する外部データ判定部をさらに備え、
前記外部データ保存処理部は、前記外部データの合計サイズが前記内部記憶部の空き領域のサイズよりも大きい場合に、設定された優先度に従って前記空き領域のサイズに収まる分の前記外部データを前記外部データ保存領域に保存することを特徴とする請求項1に記載の制御装置。
An external data determination unit that compares the total size of the external data in the external storage medium with the size of the free space in the internal storage unit;
The external data storage processing unit, when the total size of the external data is larger than the size of the free area of the internal storage unit, the external data corresponding to the size of the free area according to the set priority The control device according to claim 1, wherein the control device stores the data in an external data storage area.
前記外部記憶媒体中の前記外部データの合計サイズと前記内部記憶部の空き領域のサイズとを比較する外部データ判定部と、
前記外部データの合計サイズが前記内部記憶部の空き領域のサイズよりも大きい場合に、前記外部データを複数に分割するデータ分割部と、
をさらに備え、
前記外部データ保存処理部は、各前記外部データから取得した少なくとも1つの分割データを前記外部データの数分集めて前記外部データ保存領域に保存することを特徴とする請求項1に記載の制御装置。
An external data determination unit that compares the total size of the external data in the external storage medium with the size of the free area of the internal storage unit;
A data dividing unit that divides the external data into a plurality when the total size of the external data is larger than the size of the free area of the internal storage unit;
Further comprising
2. The control device according to claim 1, wherein the external data storage processing unit collects at least one divided data acquired from each of the external data by the number of the external data and stores the collected data in the external data storage area. .
前記外部データ保存領域から分割データと、前記外部記憶媒体からの分割データとを取得し、結合して前記外部データを復元するデータ結合部をさらに備えることを特徴とする請求項5に記載の制御装置。   6. The control according to claim 5, further comprising a data combining unit that acquires the divided data from the external data storage area and the divided data from the external storage medium and combines the data to restore the external data. apparatus. 前記外部データ保存処理部は、前記外部データが更新されると前記外部データ保存領域に更新外部データとして保存し、前記更新外部データの保存位置を、前記パスワード−外部データ対応情報の前記外部データに関連付けられた前記パスワードに対応付けて保存し、
前記外部データ書戻し部は、前記外部データと前記更新外部データのうち選択されたデータを前記外部記憶媒体に書戻すことを特徴とする請求項2に記載の制御装置。
When the external data is updated, the external data storage processing unit stores the external data in the external data storage area as updated external data, and the storage location of the updated external data is stored in the external data of the password-external data correspondence information. Save it in association with the associated password,
The control device according to claim 2, wherein the external data write-back unit writes back data selected from the external data and the updated external data to the external storage medium.
前記外部記憶媒体が当該制御装置に装着されると、前記外部記憶媒体についての固有情報を取得する外部記憶媒体情報取得部と、
前記固有情報を有するデータが設定情報内にない場合に、前記外部記憶媒体のデータ保護の有無と、前記外部データの書戻し先情報と、前記内部記憶部内のデータ消去とを含む前記設定情報の設定処理を行う設定情報処理部と、
を備え、
前記パスワード設定部と前記外部データ保存領域設定部と前記外部データ保存処理部と前記外部データ消去部と前記外部データ書戻し部は、前記設定情報に基づいて処理を行うことを特徴とする請求項2に記載の制御装置。
An external storage medium information acquisition unit that acquires specific information about the external storage medium when the external storage medium is attached to the control device;
If the data having the unique information is not in the setting information, the setting information including the presence / absence of data protection of the external storage medium, the write-back destination information of the external data, and the data erasure in the internal storage unit A setting information processing unit for performing setting processing;
With
The password setting unit, the external data storage area setting unit, the external data storage processing unit, the external data erasing unit, and the external data writing back unit perform processing based on the setting information. 2. The control device according to 2.
前記設定情報処理部は、前記外部データ書戻し部による前記外部データの書戻しの可否を示す許可情報を前記外部記憶媒体に書き込み、
前記外部データ書戻し部は、前記外部データ保存領域の前記外部データをコピーする際に、前記外部記憶媒体への書戻しが許可されているか否かを前記外部記憶媒体の前記許可情報を参照して判定し、許可されている場合には前記外部データをコピーし、許可されていない場合には前記外部データをコピーしないことを特徴とする請求項8に記載の制御装置。
The setting information processing unit writes permission information indicating whether or not the external data write-back unit can write back the external data to the external storage medium;
The external data write-back unit refers to the permission information of the external storage medium to determine whether or not write-back to the external storage medium is permitted when copying the external data in the external data storage area. 9. The control apparatus according to claim 8, wherein the external data is copied when it is permitted, and the external data is not copied when it is not permitted.
当該制御装置への外部記憶媒体の着脱状態を検出する外部記憶媒体着脱検知部をさらに備え、
前記外部記憶媒体着脱検知部は、前記外部記憶媒体が装着されている場合に、前記外部記憶媒体の固有情報と、前記設定情報から取得した前記制御処理部で実行される外部データを保存していた外部記憶媒体の固有情報と、が一致するかを判定し、
前記制御処理部は、前記外部記憶媒体の固有情報と前記設定情報から取得した固有情報とが一致する場合にのみ前記外部データを実行し、それ以外の場合には前記外部データを実行しないことを特徴とする請求項8に記載の制御装置。
An external storage medium attachment / detachment detection unit for detecting an attachment / detachment state of the external storage medium to the control device;
The external storage medium attachment / detachment detection unit stores specific information of the external storage medium and external data executed by the control processing unit acquired from the setting information when the external storage medium is attached. Determine whether the specific information of the external storage medium matches,
The control processing unit executes the external data only when the unique information of the external storage medium matches the unique information acquired from the setting information, and otherwise does not execute the external data. The control device according to claim 8, characterized in that:
前記外部データ書戻し部は、前記パスワードを用いて前記外部データ保存領域内の前記外部データを暗号化して暗号化外部データを生成し、前記暗号化外部データを前記外部記憶媒体にコピーすることを特徴とする請求項2に記載の制御装置。   The external data write-back unit encrypts the external data in the external data storage area using the password to generate encrypted external data, and copies the encrypted external data to the external storage medium. The control device according to claim 2. 前記外部データ保存処理部は、前記外部記憶媒体に残す前記外部データを前記パスワードで暗号化して暗号化外部データを生成し、前記暗号化外部データを前記外部記憶媒体にコピーし、暗号化の元になった前記外部データを削除することを特徴とする請求項4に記載の制御装置。   The external data storage processing unit generates the encrypted external data by encrypting the external data to be left in the external storage medium with the password, and copies the encrypted external data to the external storage medium. The control apparatus according to claim 4, wherein the external data that has become is deleted. 前記外部データ書戻し部は、前記外部データ保存領域中の前記外部データを前記外部記憶媒体に保存する際に、前記外部記憶媒体内の前記暗号化外部データを前記パスワードで復号化して前記外部記憶媒体に保存することを特徴とする請求項12に記載の制御装置。   The external data write-back unit decrypts the encrypted external data in the external storage medium with the password when storing the external data in the external data storage area in the external storage medium. The control device according to claim 12, wherein the control device is stored in a medium. 前記外部データ書戻し部は、前記外部データ保存領域中の前記外部データを前記外部記憶媒体に保存する際に、前記パスワードを用いて前記外部データ保存領域内の前記外部データを暗号化して、前記外部記憶媒体に保存することを特徴とする請求項12に記載の制御装置。   The external data write-back unit encrypts the external data in the external data storage area using the password when storing the external data in the external data storage area in the external storage medium, The control device according to claim 12, wherein the control device is stored in an external storage medium. 内部記憶部と、
前記内部記憶部に記憶されたプログラムまたはパラメータを用いて演算を行い、接続される制御対象に対する制御処理を行う制御処理部と、
を備える制御装置において、
外部記憶媒体が当該制御装置に装着されるとすぐに前記内部記憶部に前記外部記憶媒体内の外部データをコピーする外部データ保存処理部と、
前記外部データのコピー後に、前記外部記憶媒体の着脱状態を確認する外部記憶媒体着脱検知部と、
を備え、
前記制御処理部は、前記外部記憶媒体が装着状態にある場合には前記内部記憶部にコピーされた前記外部データへのアクセスが禁止され、前記外部記憶媒体が離脱状態にある場合には前記内部記憶部にコピーされた前記外部データへのアクセスが可能になることを特徴とする制御装置。
An internal storage unit;
A control processing unit that performs a calculation process using a program or parameter stored in the internal storage unit and performs a control process on a connected control target;
In a control device comprising:
An external data storage processing unit that copies external data in the external storage medium to the internal storage unit as soon as the external storage medium is attached to the control device;
An external storage medium attachment / detachment detection unit for confirming the attachment / detachment state of the external storage medium after copying the external data;
With
The control processing unit is prohibited from accessing the external data copied to the internal storage unit when the external storage medium is in a mounted state, and the internal processing unit when the external storage medium is in a detached state. A control device capable of accessing the external data copied to a storage unit.
当該制御装置を使用するユーザのユーザ認証を行うユーザ認証部と、
前記外部記憶媒体が当該制御装置に装着されてから予め定められた期間離脱されない場合に、前記ユーザ認証で用いた情報を用いて前記外部記憶媒体中の前記外部データを暗号化して暗号化外部データを生成し、前記外部記憶媒体に保存するとともに前記外部データを削除する外部データ保護部と、
前記外部記憶媒体中の前記暗号化外部データを復号化する外部データ復号部と、
をさらに備え、
前記外部データ復号部は、前記外部データ保護部によって前記暗号化外部データが生成された後、前記ユーザ認証部による再度の前記ユーザ認証が行われると、前記暗号化外部データを復号化することを特徴とする請求項15に記載の制御装置。
A user authentication unit for performing user authentication of a user who uses the control device;
Encrypted external data by encrypting the external data in the external storage medium using information used in the user authentication when the external storage medium is not detached for a predetermined period after being attached to the control device An external data protection unit that generates and stores the external data in the external storage medium and deletes the external data;
An external data decryption unit for decrypting the encrypted external data in the external storage medium;
Further comprising
The external data decryption unit decrypts the encrypted external data when the user authentication unit performs the user authentication again after the encrypted external data is generated by the external data protection unit. The control device according to claim 15, characterized in that:
JP2016519038A 2014-05-14 2014-05-14 Control device Expired - Fee Related JP6150943B2 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2014/062842 WO2015173912A1 (en) 2014-05-14 2014-05-14 Control device

Publications (2)

Publication Number Publication Date
JPWO2015173912A1 true JPWO2015173912A1 (en) 2017-04-20
JP6150943B2 JP6150943B2 (en) 2017-06-21

Family

ID=54479482

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016519038A Expired - Fee Related JP6150943B2 (en) 2014-05-14 2014-05-14 Control device

Country Status (3)

Country Link
JP (1) JP6150943B2 (en)
CN (1) CN106133744B (en)
WO (1) WO2015173912A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7119736B2 (en) * 2018-08-08 2022-08-17 京セラドキュメントソリューションズ株式会社 Information processing device, information management method and program

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005193411A (en) * 2003-12-26 2005-07-21 Canon Inc Recording apparatus and recording method
JP2006107376A (en) * 2004-10-08 2006-04-20 Konica Minolta Business Technologies Inc Storage information outputting device for external storage device
WO2006120938A1 (en) * 2005-05-09 2006-11-16 Matsushita Electric Industrial Co., Ltd. Memory card, application program holding method, and holding program
JP2008282203A (en) * 2007-05-10 2008-11-20 Konica Minolta Business Technologies Inc Image forming apparatus, medium management method in image forming apparatus, and medium management program
JP2009284286A (en) * 2008-05-23 2009-12-03 Kyocera Mita Corp Image forming apparatus
JP2010176367A (en) * 2009-01-29 2010-08-12 Canon Inc Image forming device
JP2012160884A (en) * 2011-01-31 2012-08-23 Kyocera Document Solutions Inc Image formation apparatus
JP2013089062A (en) * 2011-10-19 2013-05-13 Arsa Co Ltd Management and storage device of portable storage medium
JP2013257791A (en) * 2012-06-13 2013-12-26 Nippon Denpa Co Ltd Controller for index table

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4372168B2 (en) * 2007-02-19 2009-11-25 株式会社東芝 Semiconductor memory information storage apparatus and stored data processing method thereof
JP4562759B2 (en) * 2007-09-03 2010-10-13 京楽産業.株式会社 Access control apparatus, access control method, and access control program
JP2011043881A (en) * 2009-08-19 2011-03-03 Canon Inc Information processing apparatus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005193411A (en) * 2003-12-26 2005-07-21 Canon Inc Recording apparatus and recording method
JP2006107376A (en) * 2004-10-08 2006-04-20 Konica Minolta Business Technologies Inc Storage information outputting device for external storage device
WO2006120938A1 (en) * 2005-05-09 2006-11-16 Matsushita Electric Industrial Co., Ltd. Memory card, application program holding method, and holding program
JP2008282203A (en) * 2007-05-10 2008-11-20 Konica Minolta Business Technologies Inc Image forming apparatus, medium management method in image forming apparatus, and medium management program
JP2009284286A (en) * 2008-05-23 2009-12-03 Kyocera Mita Corp Image forming apparatus
JP2010176367A (en) * 2009-01-29 2010-08-12 Canon Inc Image forming device
JP2012160884A (en) * 2011-01-31 2012-08-23 Kyocera Document Solutions Inc Image formation apparatus
JP2013089062A (en) * 2011-10-19 2013-05-13 Arsa Co Ltd Management and storage device of portable storage medium
JP2013257791A (en) * 2012-06-13 2013-12-26 Nippon Denpa Co Ltd Controller for index table

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"オフィスで使う人に役立つ&ユーティリティー 安心してHDDを廃棄・譲渡するためのソフト shred", 日経LINUX 2013年8月号 特別付録 すぐ使える!すごく便利! 厳選フリーソフト150, vol. 第15巻,第8号, JPN6016050136, 8 July 2013 (2013-07-08), JP, pages 83, ISSN: 0003469497 *

Also Published As

Publication number Publication date
JP6150943B2 (en) 2017-06-21
CN106133744A (en) 2016-11-16
CN106133744B (en) 2019-02-19
WO2015173912A1 (en) 2015-11-19

Similar Documents

Publication Publication Date Title
US7865659B2 (en) Removable storage device
US8423795B2 (en) Storage controller comprising encryption function, data encryption method, and storage system
US20100058073A1 (en) Storage system, controller, and data protection method thereof
CN110516428B (en) Data reading and writing method and device of mobile storage equipment and storage medium
JP5354001B2 (en) Information processing apparatus, information processing system, and program
JP2009054014A (en) Management system and management method of portable recording medium, and program
CN109214204A (en) Data processing method and storage equipment
JP4653497B2 (en) Portable storage device
JP6150943B2 (en) Control device
WO2023179378A1 (en) Encryption method and apparatus and electronic device
JP5061809B2 (en) Information processing apparatus and program
JP2012216222A (en) Information processor and program
JP2002175210A (en) Method of transferring and copying, and enciphering and deciphering data
JP2005149093A (en) Storage device with access right control function, control program for storage device with access right control function and method for controlling access right
KR20170038340A (en) Data leakage prevention apparatus and method thereof
JP4799239B2 (en) Information leakage prevention method and removable media
JP2006164096A (en) Encrypted data access control method
JP2011108151A (en) Security adaptor for external storage
KR20070046363A (en) Apparatus for preventing outflow of data and storage device including the same
TW200411392A (en) Data protection method and system for storage unit
JP6460765B2 (en) Information processing apparatus, control method for information processing apparatus, and program
JP5537477B2 (en) Portable storage media
JP2010157144A (en) Document management system, document management method and program therefor
JP2007128172A (en) Programmable controller
TW201633198A (en) Storage device capable of fingerprint identification

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170104

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170203

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170523

R150 Certificate of patent or registration of utility model

Ref document number: 6150943

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees