JPH02126302A - Programmable controller - Google Patents
Programmable controllerInfo
- Publication number
- JPH02126302A JPH02126302A JP28085088A JP28085088A JPH02126302A JP H02126302 A JPH02126302 A JP H02126302A JP 28085088 A JP28085088 A JP 28085088A JP 28085088 A JP28085088 A JP 28085088A JP H02126302 A JPH02126302 A JP H02126302A
- Authority
- JP
- Japan
- Prior art keywords
- macro
- instruction
- user program
- displayed
- macro instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000002265 prevention Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 3
Abstract
Description
【発明の詳細な説明】
(発明の分野)
この発明は、ユーザプログラムの読出し・書込みを制限
することのできるプログラマブル・コントローラ(以下
PCという)に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of the Invention) The present invention relates to a programmable controller (hereinafter referred to as a PC) that can restrict reading and writing of user programs.
(発明の概要)
この発明は、PCに入力されるユーザプログラム中の任
意の部分をマクロ命令で指定し、プロテクトをかけてお
くことにより、予め登録されているパスワードを入力し
ない限り、プログラム内容の読出し・書込みができない
ようにしたものである。(Summary of the Invention) This invention specifies an arbitrary part of a user program input to a PC using a macro instruction and protects the program. This makes it impossible to read or write.
(従来技術とその問題点)
従来、ユーザが作成してPCに入力したプログラムは、
読出し・書込み用のツールを用いることにより容易に内
容の読出しや書込みができた。また、入力したプログラ
ムを部外者に読出されたり、勝手に変更されては困る場
合は、プログラム全体にハード、あるいはソフト上でプ
ロテクトをかけて保護することができた。(Prior art and its problems) Conventionally, a program created by a user and input into a PC is
By using read/write tools, the contents could be easily read and written. In addition, if you do not want the input program to be read or modified by an outsider, you can protect the entire program by using hardware or software protection.
しかしながら、作成したプログラムの特定部分について
、秘匿を要したり、勝手に変更されては困るような場合
、それら特定部分だけの読出し・書込みを禁止すること
ができなかった。However, if specific parts of a created program need to be kept secret or cannot be changed without permission, it has not been possible to prohibit reading and writing of only those specific parts.
また、マクロ命令を用いることができるPCでは、作成
したユーザプログラム中の任意の命令語群にマクロ命令
を定義していた場合、逆アセンブルしてプログラム内容
を表示させると、マクロ命令に定義された部分がどこな
のか識別しにくいという不具合もあった。In addition, on PCs that can use macro instructions, if a macro instruction is defined in any instruction word group in a created user program, when you disassemble and display the program contents, the macro instruction defined in the user program will be displayed. There was also the problem that it was difficult to identify which part was where.
(発明の目的)
この発明は上記の問題を解消するためになされたもので
、その目的とするところは、作成したユーザプログラム
の任意の部分についての秘密保持と書き換え防止ができ
て、しかも逆アセンブルしたときにマクロ命令定義部分
の識別を容易にしたPCを提供することにある。(Purpose of the invention) This invention was made to solve the above problems, and its purpose is to maintain the confidentiality and prevent tampering of any part of the created user program, and to prevent disassembly. An object of the present invention is to provide a PC in which a macro instruction definition part can be easily identified when a macro instruction is defined.
(発明の構成と効果)
この発明は上記目的を達成するために、連続した命令語
群からなるユーザプログラム中において、開始位置およ
び終了位置を指定することによりマクロ命令の定義を入
力する手段と、
マクロ命令に定義された部分のプログラム内容の読出し
・書込みを禁止する手段と、
定義されたマクロ命令ごとに、読出し・書込み禁止の有
無が設定されるエリア、およびマクロ命令ごとに読出し
・書込み禁止の設定を解除するパスワードが登録される
エリアを有するユーザプログラムメモリと、
を備えたことを特徴とする。(Structure and Effects of the Invention) In order to achieve the above object, the present invention includes means for inputting a definition of a macro instruction by specifying a start position and an end position in a user program consisting of a group of consecutive command words; A means for prohibiting reading and writing of the program contents of the part defined by the macro instruction, an area in which read and write protection is set for each defined macro instruction, and an area for setting read and write protection for each macro instruction. A user program memory having an area in which a password for canceling settings is registered;
この発明は上記のように構成したので、ユーザプログラ
ムの任意箇所の開始と終了位置を指定入力することによ
りマクロ命令が定義され、マクロ命令に対応して設けら
れたユーザプログラムメモリの該当エリアに読出し・書
込み禁止が設定されていれば、該当箇所の読出し・書込
みが禁止される。また、これらの読出し一書込み禁止設
定の解除は、同じくマクロ命令に対応するメモリエリア
に予め登録されているパスワードが入力された場合のみ
おこなうことができる。Since this invention is configured as described above, a macro instruction is defined by specifying and inputting the start and end positions of an arbitrary part of a user program, and the macro instruction is read into the corresponding area of the user program memory provided corresponding to the macro instruction. - If write protection is set, reading and writing to the corresponding location will be prohibited. Further, these read/write prohibition settings can be canceled only when a password registered in advance in the memory area corresponding to the macro instruction is input.
その結果、ユーザプログラムにおける任意部分の読出し
・書込み防止のプロテクトを容易におこなうことができ
る。As a result, it is possible to easily protect any part of the user program from reading or writing.
また、入力したユーザプログラムを逆アセンブルして表
示させる場合も、マクロ命令に定義した部分の開始位1
と終了位置が表示されるので、定義部分を容易に識別す
ることができる。Also, when disassembling and displaying the input user program, start position 1 of the part defined in the macro instruction.
The end position is displayed, so you can easily identify the definition part.
(実施例の説明) 以下、この発明の実施例を図面に基づいて説明する。(Explanation of Examples) Embodiments of the present invention will be described below based on the drawings.
第1図は、この発明にかかるPCに入力されたユーザプ
ログラムと、その表示を示す図である。FIG. 1 is a diagram showing a user program input to a PC according to the present invention and its display.
図に示すように、入力されたユーザプログラム中でマク
ロ定義をしようとする命令語群の先頭“ADD”の直前
にマクロ命令指定開始の命令語“MACRO3”、およ
びマクロ指定の通し番号“Ol“が挿入されている。さ
らに、命令語群の最後尾の“#0100°の直後にマク
ロ命令指定終了の命令語“MACROE”、およびマク
ロ指定の通し番号“01”が挿入されている。これらマ
クロ定義の命令語にくくられた“ADD”から“#01
00”までが“MACROO1”に定義されたことにな
る。As shown in the figure, the command word "MACRO3" to start macro command specification and the serial number "Ol" of the macro command are placed immediately before "ADD" at the beginning of the command group for macro definition in the input user program. It has been inserted. Furthermore, immediately after #0100° at the end of the instruction word group, the instruction word "MACROE", which ends the macro instruction specification, and the serial number "01" of the macro instruction are inserted. “ADD” to “#01
00" is defined as "MACROO1".
また、これらのマクロ命令指定の際には、あわせて、第
2図に示すようにユーザプログラムメモリの後端部に用
意されているマクロ付加情報エリアにマクロ命令に関す
る付加情報を格納する。When specifying these macro instructions, additional information regarding the macro instructions is also stored in the macro additional information area provided at the rear end of the user program memory, as shown in FIG.
この付加情報エリアには、“MACRO”命令の番号ご
とにプロテクトフラグが設けられ、プロテクトを指定す
る場合は“1”がセットされる。In this additional information area, a protect flag is provided for each "MACRO" instruction number, and "1" is set when protection is specified.
さらにこのエリアには、プロテクトフラグを“0”に変
更してプロテクトを解除するためのパスワードが登録さ
れる。Furthermore, a password for changing the protect flag to "0" and canceling protection is registered in this area.
これらのユーザプログラムをPCに入力した後、ツール
に表示させると、マクロ゛命令に対してプロテクトが設
定されていれば、第1@に示すようにマクロ定義されて
いる部分が”MACROOI”とのみ表示される。After entering these user programs into the PC and displaying them on the tool, if protection is set for the macro command, the part where the macro is defined will only be "MACROOI" as shown in the first @. Is displayed.
ここで、“MACROO1’″と表示されている部分の
定義内容を展開して表示させようとすると、あらかじめ
登録しておいたパスワードを入力して該当するプロテク
トフラグをO”に変更すれば、第1図右側に示すように
定義内容が展開される。Here, if you try to expand and display the definition contents of the part displayed as "MACROO1'", enter the password registered in advance and change the corresponding protect flag to "O". The definition contents are expanded as shown on the right side of Figure 1.
つまり、プロテクトフラグの内容をパスワードを用いて
変更することにより、マクロ命令の内容を自在に展開ま
たは収納することができ、この収納されている状態が、
またプロテクトされている状態でもある。In other words, by changing the contents of the protect flag using a password, the contents of the macro instruction can be freely expanded or stored, and this stored state is
It is also in a protected state.
以−ヒのように、この発明では、ユーザプログラム中に
マクロ命令を定義しようとする場合、マクロ命令指定の
開始および終了の指定を挿入するだけで容易におこなえ
る。As described above, in the present invention, when a macro instruction is to be defined in a user program, this can be easily done by simply inserting the start and end specifications of the macro instruction specification.
さらに、マクロ命令語ごとに登録しておいたパスワード
を用いることにより、プロテクトの設定と解除を容易に
変更することができる。また、解除した状態でプログラ
ムを表示させれば、マクロ指定した部分が開始および終
了指定により明瞭に識別することができる。Further, by using a password registered for each macro instruction word, protection can be easily set and canceled. Furthermore, if the program is displayed in a canceled state, the portion designated by the macro can be clearly identified by the start and end designations.
その結果、パスワードを所有する正規のオペレータは、
ユーザプログラムの読出し・書込みが自在であるが、パ
スワードを有しない部外者は、プログラム内容の一部に
ついてしか読出し・書込みができず、プログラムの機密
性、安全性が向上すまた、プロテクトの設定・解除用の
パスワードがマクロ命令ごとに登録されるから、個々の
パスワードを管理することにより、多人数のオペレータ
のレベルに応じてプログラム内容の開放を制限すること
もできる。この場合、マクロ指定の構成をネスティング
にするとより効果的になる。As a result, a legitimate operator in possession of the password
The user program can be read and written freely, but outsiders who do not have the password can only read and write part of the program contents, which improves the confidentiality and security of the program. - Since a release password is registered for each macro command, by managing each password, it is possible to restrict the release of program contents according to the level of a large number of operators. In this case, it is more effective to configure the macro specifications in a nested manner.
第1図はこの発明にかかるPCに入力されたユーザプロ
グラムとその表示例を示す図、第2図は同じくユーザプ
ログラムメモリ内の付加情報エリア構成を示す図である
。FIG. 1 is a diagram showing a user program input to a PC according to the present invention and an example of its display, and FIG. 2 is a diagram also showing the configuration of the additional information area in the user program memory.
Claims (1)
いて、開始位置および終了位置を指定することによりマ
クロ命令の定義を入力する手段と、マクロ命令に定義さ
れた部分のプログラム内容の読出し・書込みを禁止する
手段と、 定義されたマクロ命令ごとに、読出し・書込み禁止の有
無が設定されるエリア、およびマクロ命令ごとに読出し
・書込み禁止の設定を解除するパスワードが登録される
エリアを有するユーザプログラムメモリと、 を備えたことを特徴とするプログラマブル・コントロー
ラ。[Claims] 1. Means for inputting the definition of a macro instruction by specifying a start position and an end position in a user program consisting of a group of consecutive instruction words, and program contents of the portion defined by the macro instruction. means for prohibiting reading and writing, an area where read/write prohibition is set for each defined macro instruction, and an area where a password is registered to cancel the read/write prohibition setting for each macro instruction. A programmable controller comprising: a user program memory having the following features;
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP28085088A JPH02126302A (en) | 1988-11-07 | 1988-11-07 | Programmable controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP28085088A JPH02126302A (en) | 1988-11-07 | 1988-11-07 | Programmable controller |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH02126302A true JPH02126302A (en) | 1990-05-15 |
Family
ID=17630851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP28085088A Pending JPH02126302A (en) | 1988-11-07 | 1988-11-07 | Programmable controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH02126302A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008165709A (en) * | 2007-01-05 | 2008-07-17 | Koyo Electronics Ind Co Ltd | Motion program protection method and programmable controller |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5441629A (en) * | 1977-09-09 | 1979-04-03 | Casio Comput Co Ltd | Output control system of program information |
JPS57101966A (en) * | 1980-12-18 | 1982-06-24 | Casio Comput Co Ltd | Program status display system |
-
1988
- 1988-11-07 JP JP28085088A patent/JPH02126302A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS5441629A (en) * | 1977-09-09 | 1979-04-03 | Casio Comput Co Ltd | Output control system of program information |
JPS57101966A (en) * | 1980-12-18 | 1982-06-24 | Casio Comput Co Ltd | Program status display system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008165709A (en) * | 2007-01-05 | 2008-07-17 | Koyo Electronics Ind Co Ltd | Motion program protection method and programmable controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3529800B2 (en) | Data protection microprocessor circuit for portable data carrier | |
US5870467A (en) | Method and apparatus for data input/output management suitable for protection of electronic writing data | |
JP5911835B2 (en) | Information processing device | |
JPS58101349A (en) | Program memory identification and data processing system | |
JPH08305558A (en) | Ciphering program arithmetic unit | |
JP2007115228A (en) | Masking program and masking system | |
JPH0844630A (en) | Device for controlling file access and method thereof | |
KR980010772A (en) | How to prevent copying of computer software | |
CN103377350A (en) | Method and device for protecting codes of embedded software by hardware encryption module | |
JPH07325712A (en) | Illicit copy preventing device for program | |
JPH02126302A (en) | Programmable controller | |
KR20020016711A (en) | Mandatory Object Access Control Method Using Multi-Level Security, and Computer Readable Recording Medium Having thereon Programmed Mandatory Object Access Control Method Using Multi-Level Security | |
JPH10124308A (en) | Method for protecting program in programmable controller | |
JP2006331130A (en) | Programmable controller | |
JPH01243172A (en) | System for controlling in-document area access | |
JP2696219B2 (en) | Information protection method | |
JP2002312221A (en) | Memory device with access control function and faile access control program | |
TWI502400B (en) | Microcontroller unit and protecting method for a data in the microcontroller unit | |
JPS62285161A (en) | Data protection system | |
JPS59229646A (en) | Without-permission use inhibiting device of coded program | |
JP2017068622A (en) | License management system and license management method | |
JPS62100805A (en) | Programmable controller | |
JPH0844553A (en) | System for software having open part and secret part provided for plural users | |
JPH09134285A (en) | Program execution device | |
JPH04287124A (en) | Method and device for inhibiting software from being used without permission at computer system |