JPH05257516A - Numerical controller - Google Patents
Numerical controllerInfo
- Publication number
- JPH05257516A JPH05257516A JP4055194A JP5519492A JPH05257516A JP H05257516 A JPH05257516 A JP H05257516A JP 4055194 A JP4055194 A JP 4055194A JP 5519492 A JP5519492 A JP 5519492A JP H05257516 A JPH05257516 A JP H05257516A
- Authority
- JP
- Japan
- Prior art keywords
- master
- access
- data input
- output circuit
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000007257 malfunction Effects 0.000 abstract description 4
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000004044 response Effects 0.000 description 6
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 1
- 230000001276 controlling effect Effects 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
Landscapes
- Numerical Control (AREA)
- Debugging And Monitoring (AREA)
- Bus Control (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、マルチバスマスター方
式の数値制御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multi-bus master type numerical controller.
【0002】[0002]
【従来の技術】従来、マルチバスマスター方式の数値制
御装置が知られている。この数値制御装置は、図5に示
すように、システムバス3を有しており、システムバス
3には複数のマスター1、2…が接続されており、かつ
データ入出力回路4が接続されている。データ入出力回
路4は、デコーダ5及びI/O6を備えている。2. Description of the Related Art Conventionally, a multi-bus master type numerical control device is known. As shown in FIG. 5, this numerical control device has a system bus 3 to which a plurality of masters 1, 2 ... Are connected and a data input / output circuit 4 is connected. There is. The data input / output circuit 4 includes a decoder 5 and an I / O 6.
【0003】従って、システムバス3に接続されるデー
タ入出力回路4のアドレスが複数のマスター1、2の共
通エリアにある場合、予め決められた所定のマスター1
以外のマスター2からのアクセスを禁止しなければなら
ない場合がある。このような場合、マスター2はデータ
入出力回路4のアドレスに相当する領域をアクセス禁止
領域としてソフトウエア的にまたは回路的にマスクする
ことにより、異常アクセスの発生を防止し、データ入出
力回路4を保護している。Therefore, when the address of the data input / output circuit 4 connected to the system bus 3 is in the common area of the plurality of masters 1 and 2, the predetermined master 1 is determined.
It may be necessary to prohibit access from masters 2 other than. In such a case, the master 2 masks the area corresponding to the address of the data input / output circuit 4 as an access-prohibited area by software or circuit to prevent the occurrence of abnormal access, thereby preventing the data input / output circuit 4 from being accessed. Protects.
【0004】[0004]
【発明が解決しようとする課題】従来のマルチバスマス
ター方式の数値制御装置においてはソフトウエア的にア
クセスを禁止している場合は、ソフトウエアの欠陥によ
りマスターが異常動作を起こすとアクセス禁止領域に対
するアクセスを阻止する手段がなく、データ入出力回路
を保護することができないという問題点があった。特
に、工作機械の数値制御装置においてはデータ入出力回
路は直接機械の動作をコントロールすることがあり、ソ
フトウエアの欠陥により機械が誤動作することは確実に
防止する必要がある。また、回路的にアクセスを禁止し
ている場合は、禁止領域の追加または削除等を行う度に
マスクのための回路を変更する必要があり、容易に機能
の追加または削除を行うことができないという問題点が
あった。In the conventional multi-bus master type numerical control device, when access is prohibited by software, if the master causes an abnormal operation due to a software defect, the access prohibited area will be erased. There is a problem that the data input / output circuit cannot be protected because there is no means for blocking access. In particular, in a numerical control device for machine tools, the data input / output circuit may directly control the operation of the machine, and it is necessary to reliably prevent the machine from malfunctioning due to software defects. Also, when access is prohibited in terms of circuitry, it is necessary to change the masking circuit each time a prohibited area is added or deleted, and it is not possible to easily add or delete functions. There was a problem.
【0005】この発明は、上記のような課題を解消する
ためになされたもので、本発明の目的は、マスターの誤
動作によるデータ入出力回路への不正なアクセスを規制
してデータ入出力回路を保護する数値制御装置を提供す
ることにある。The present invention has been made in order to solve the above problems, and an object of the present invention is to prevent unauthorized access to the data input / output circuit due to malfunction of the master, thereby controlling the data input / output circuit. It is to provide a numerical control device for protection.
【0006】[0006]
【課題を解決するための手段】本発明に係る数値制御装
置は、バスに接続される複数のマスターのそれぞれに設
けられマスター識別信号を発生させるマスター識別信号
発生手段と、マスター識別信号を識別するマスター識別
手段と、マスター識別手段の識別結果に基づき所定の制
御信号を生成する制御信号生成手段と、制御信号により
制御されるデータ入出力回路と、マスター識別手段の識
別結果に基づきアクセスが有効か否かをアクセスを行っ
たマスターに知らせる報知手段とを備えることを特徴と
するものである。A numerical control apparatus according to the present invention identifies a master identification signal, which is provided in each of a plurality of masters connected to a bus and which generates a master identification signal. Master identification means, control signal generation means for generating a predetermined control signal based on the identification result of the master identification means, data input / output circuit controlled by the control signal, and whether access is effective based on the identification result of the master identification means. And a notifying means for notifying the master who has made an access.
【0007】[0007]
【作用】本発明に係る数値制御装置は、マスター識別信
号発生手段が発生させるマスター識別信号をマスター識
別手段により識別している。さらに、マスター識別手段
の識別結果に基づき所定の制御信号を制御信号生成手段
により生成しデータ入出力回路を制御する一方で、アク
セスが有効か否かをアクセスを行ったマスターに知ら
せ、データ入出力回路への不正なアクセスを規制し、マ
スターの誤動作からデータ入出力回路を保護している。In the numerical controller according to the present invention, the master identification signal generated by the master identification signal generating means is identified by the master identification means. Further, based on the identification result of the master identification means, a predetermined control signal is generated by the control signal generation means to control the data input / output circuit, while the access master is informed whether the access is valid or not, and the data input / output is performed. The unauthorized access to the circuit is regulated and the data input / output circuit is protected from the malfunction of the master.
【0008】[0008]
【実施例】以下、この発明の一実施例を図を用いて説明
する。図1は、本発明の一実施例に係る数値制御装置の
構成を示すブロック図である。この数値制御装置は、図
1に示すように、システムバス3を有しており、システ
ムバス3には複数のマスター1、2…が接続されてお
り、マスター1、2は、それぞれマスター識別信号を発
生するマスター識別信号発生回路7a、7bを有してい
る。また、システムバス3にはデータ入出力回路4が接
続されており、データ入出力回路4は、マスター識別信
号を識別するマスター識別回路8と、その識別結果に基
づき所定の制御信号を生成し、マスター1又は2による
アクセスが有効か否かをアクセスを行ったマスター1又
は2に知らせるデコーダ5及びI/O(例えばメモリま
たはI/O命令により動作する回路)6を備えている。
なお、マスター識別信号発生回路7a、7bは、予め設
定されているマスター特有の信号線の状態を変化させる
回路や、または予め設定されているマスター特有の信号
コードを出力する回路として実現されており、これによ
りそれぞれのマスターに特有なマスター識別信号を発生
する。また、マスター識別回路8は、図2に示すよう
に、システムバス3に接続された識別信号線9と、識別
信号線9から入力するデータをデコードしてその結果に
よりアクセス許可信号102を制御するデコーダ10と
から構成されている。DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a numerical controller according to an embodiment of the present invention. As shown in FIG. 1, this numerical controller has a system bus 3, and a plurality of masters 1, 2, ... Are connected to the system bus 3. The masters 1, 2 are master identification signals, respectively. It has master identification signal generating circuits 7a and 7b for generating. A data input / output circuit 4 is connected to the system bus 3, and the data input / output circuit 4 generates a master identification circuit 8 for identifying a master identification signal and a predetermined control signal based on the identification result. A decoder 5 and an I / O (for example, a memory or a circuit operated by an I / O instruction) 6 for notifying the master 1 or 2 that has made access whether the access by the master 1 or 2 is valid are provided.
The master identification signal generating circuits 7a and 7b are realized as a circuit that changes the state of a preset master-specific signal line or a circuit that outputs a preset master-specific signal code. , Thereby generating a master identification signal unique to each master. Further, as shown in FIG. 2, the master identification circuit 8 decodes the identification signal line 9 connected to the system bus 3 and the data input from the identification signal line 9, and controls the access permission signal 102 according to the result. It is composed of a decoder 10.
【0009】次に、本実施例の動作について説明する。
マスター1がデータ入出力回路4に対してアクセスを行
う場合、アクセス信号100と共にマスター識別信号発
生回路7aからマスター識別信号101を出力する。マ
スター識別信号発生回路7aより出力されたマスター識
別信号101は、システムバス3を介してデータ入出力
回路4へ入力され、データ入出力回路4のマスター識別
回路8により解釈される。マスター識別回路8は、マス
ター1からのアクセスであることを確認した後に、デコ
ーダ5に対してアクセス許可信号102を出力する。ア
クセス許可信号102を受けたデコーダ5は、このアク
セス許可信号102をデコード条件に加えアクセス信号
100の内容に応じたI/Oセレクト信号103を出力
すると共にシステムバス3にアクセスが正常に行われた
ことを示す応答信号104を出力する。更に、マスター
1はこの応答信号104を監視することによりアクセス
が正常に行われたことを検知する。一方、I/Oセレク
ト信号103を受けたI/O6はその信号の内容に従い
動作を行う。このようにして、マスター1からのアクセ
スは正常に終了する。Next, the operation of this embodiment will be described.
When the master 1 accesses the data input / output circuit 4, the master identification signal generation circuit 7 a outputs the master identification signal 101 together with the access signal 100. The master identification signal 101 output from the master identification signal generation circuit 7 a is input to the data input / output circuit 4 via the system bus 3 and interpreted by the master identification circuit 8 of the data input / output circuit 4. The master identification circuit 8 outputs the access permission signal 102 to the decoder 5 after confirming that the access is from the master 1. The decoder 5, which has received the access permission signal 102, outputs the I / O select signal 103 according to the content of the access signal 100 in addition to the decoding condition of the access permission signal 102, and the system bus 3 is normally accessed. A response signal 104 indicating that is output. Further, the master 1 detects that the access is normally performed by monitoring the response signal 104. On the other hand, the I / O 6 receiving the I / O select signal 103 operates according to the content of the signal. In this way, the access from the master 1 ends normally.
【0010】また、図3に示すように、マスター2がデ
ータ入出力回路4に対してアクセスを行う場合、アクセ
ス信号200と共にマスター識別信号発生回路7bから
マスター識別信号201を出力する。マスター識別信号
発生回路7bより出力されたマスター識別信号201
は、システムバス3を介してデータ入出力回路4へ入力
され、データ入出力回路4のマスター識別回路8により
解釈される。しかし、アクセスが禁止されているマスタ
ー2からのアクセスであるため、アクセス許可信号20
2は出力されず、アクセス許可信号202をデコード条
件としているデコーダ5においてデコード条件が成立し
なくなり、I/Oセレクト信号203は出力されない。
これにより、マスター2からのアクセスに対してI/O
6を保護する。また、この際、デコーダ5は正常にアク
セスが行われなかったことを示す応答信号204を生成
してシステムバス3へ出力する。そして、この応答信号
204を監視することによりマスター2はそのアクセス
が無効であったことを知る。なお、応答信号を全てのマ
スターが監視し得るように構成すると、応答信号とマス
ター識別信号とでどのマスターで異常動作が発生したか
を全てのマスターが検知できる。従って、この情報によ
りエラー表示を行うことも可能である。As shown in FIG. 3, when the master 2 accesses the data input / output circuit 4, the master identification signal generating circuit 7b outputs the master identification signal 201 together with the access signal 200. Master identification signal 201 output from master identification signal generation circuit 7b
Is input to the data input / output circuit 4 via the system bus 3 and interpreted by the master identification circuit 8 of the data input / output circuit 4. However, since the access is from the master 2 whose access is prohibited, the access permission signal 20
2 is not output, the decoder 5 that uses the access permission signal 202 as a decoding condition does not satisfy the decoding condition, and the I / O select signal 203 is not output.
This allows I / O for access from the master 2.
Protect 6 Further, at this time, the decoder 5 generates the response signal 204 indicating that the access is not normally performed and outputs it to the system bus 3. Then, by monitoring the response signal 204, the master 2 knows that the access is invalid. If the response signal is configured to be monitored by all masters, all masters can detect which master the abnormal operation has occurred in the response signal and the master identification signal. Therefore, it is possible to display an error based on this information.
【0011】また、上述実施例においては、マスター識
別回路8を、システムバス3に接続された識別信号線9
と、識別信号線9から入力するデータをデコードしてそ
の結果によりアクセス許可信号102を制御するデコー
ダ10とから構成したが、これに限らず、図4に示すよ
うに、それぞれのマスターに対応する信号線9a、9
b、9c及びその信号線9a、9b、9cの内のいずれ
の信号線をアクセス許可信号として使用するかを選択す
るスイッチ11で構成してもよい。In the above embodiment, the master identification circuit 8 is replaced with the identification signal line 9 connected to the system bus 3.
And the decoder 10 which decodes the data input from the identification signal line 9 and controls the access permission signal 102 according to the result, but is not limited to this, and corresponds to each master as shown in FIG. Signal lines 9a, 9
b, 9c and the signal line 9a, 9b, 9c may be used as a switch 11 for selecting which signal line to use as an access permission signal.
【0012】[0012]
【発明の効果】以上説明したように、本発明によれば、
マスター識別信号発生手段によりマスター識別信号を発
生させマスター識別手段により識別し、データ入出力回
路の制御及びアクセスを行ったマスターへの報知を実行
するように構成したので、データ入出力回路への不正な
アクセスを規制して、マスターの誤動作からデータ入出
力回路を保護することができる。また、アクセスに対す
る有効、無効の判定をデータ入出力側で行うため、新機
能のデータ入出力回路が追加されても回路変更すること
なしに容易に機能追加を行うことができる。As described above, according to the present invention,
Since the master identification signal is generated by the master identification signal generation means and the master identification means is used for identification, and the notification to the master that has controlled and accessed the data input / output circuit is executed, the data input / output circuit is illegal. Such access can be restricted to protect the data input / output circuit from the malfunction of the master. Further, since the validity / invalidity of access is determined on the data input / output side, even if a data input / output circuit having a new function is added, the function can be easily added without changing the circuit.
【図1】本発明の一実施例に係る数値制御装置の構成を
示すブロック図である。FIG. 1 is a block diagram showing a configuration of a numerical control device according to an embodiment of the present invention.
【図2】本実施例に係るマスター識別回路の構成を示す
ブロック図である。FIG. 2 is a block diagram showing a configuration of a master identification circuit according to the present embodiment.
【図3】本実施例の動作を説明するための図である。FIG. 3 is a diagram for explaining the operation of the present embodiment.
【図4】本発明の他の実施例に係るマスター識別回路の
構成を示すブロック図である。FIG. 4 is a block diagram showing a configuration of a master identification circuit according to another embodiment of the present invention.
【図5】従来の数値制御装置の構成を示すブロック図で
ある。FIG. 5 is a block diagram showing a configuration of a conventional numerical control device.
1,2 マスター 3 システムバス 4 データ入出力回路 5 デコーダ 6 I/O 7a,7b マスター識別信号発生回路 8 マスター識別回路 9 識別信号線 1, 2 master 3 system bus 4 data input / output circuit 5 decoder 6 I / O 7a, 7b master identification signal generation circuit 8 master identification circuit 9 identification signal line
Claims (1)
において、 バスに接続される複数のマスターそれぞれに設けられマ
スター識別信号を発生させるマスター識別信号発生手段
と、 マスター識別信号を識別するマスター識別手段と、 マスター識別手段の識別結果に基づき所定の制御信号を
生成する制御信号生成手段と、 制御信号により制御されるデータ入出力回路と、 マスター識別手段の識別結果に基づきアクセスが有効か
否かをアクセスを行ったマスターに知らせる報知手段
と、 を備えることを特徴とする数値制御装置。1. A multi-bus master type numerical control device comprising: master identification signal generating means provided for each of a plurality of masters connected to a bus to generate a master identification signal; and master identification means for identifying the master identification signal. , A control signal generating means for generating a predetermined control signal based on the identification result of the master identifying means, a data input / output circuit controlled by the control signal, and whether or not the access is valid based on the identification result of the master identifying means A numerical control device comprising: a notifying unit for notifying the master who has performed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4055194A JP2904991B2 (en) | 1992-03-13 | 1992-03-13 | Numerical control unit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4055194A JP2904991B2 (en) | 1992-03-13 | 1992-03-13 | Numerical control unit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH05257516A true JPH05257516A (en) | 1993-10-08 |
| JP2904991B2 JP2904991B2 (en) | 1999-06-14 |
Family
ID=12991881
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4055194A Expired - Fee Related JP2904991B2 (en) | 1992-03-13 | 1992-03-13 | Numerical control unit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2904991B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1571559A1 (en) * | 2004-03-04 | 2005-09-07 | NEC Electronics Corporation | Bus system and access control method |
-
1992
- 1992-03-13 JP JP4055194A patent/JP2904991B2/en not_active Expired - Fee Related
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1571559A1 (en) * | 2004-03-04 | 2005-09-07 | NEC Electronics Corporation | Bus system and access control method |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2904991B2 (en) | 1999-06-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4525599A (en) | Software protection methods and apparatus | |
| US4523271A (en) | Software protection method and apparatus | |
| JP2001306400A (en) | Semiconductor storage device, control device thereof, and electronic device | |
| GB2228350A (en) | Memory protection against unauthorised access | |
| US4383297A (en) | Data processing system including internal register addressing arrangements | |
| WO1990013864A1 (en) | Improved security for machine-writeable data storage systems | |
| JPH05257516A (en) | Numerical controller | |
| JPH01173244A (en) | Copy protection ROM circuit | |
| JPS59231800A (en) | Preventing device for foul writing to main memory | |
| CA1194609A (en) | Software protection methods and apparatus | |
| JPH04322343A (en) | Memory access tracing method | |
| JPH08137625A (en) | Disk controller | |
| JPH0264754A (en) | Processing equipment with software protection function | |
| JPS6315347A (en) | Information preserving system | |
| JPS63250753A (en) | Memory access checking system | |
| JP2795234B2 (en) | Semiconductor integrated circuit | |
| JPS6115253A (en) | Id code adding system | |
| JP2602909B2 (en) | Write-protection method during CPU runaway | |
| JPH02155057A (en) | Data processor | |
| JPS58141500A (en) | Memory management protection method | |
| JPH0322055A (en) | Microprocessor | |
| JPS61218293A (en) | Detecting system for writing memory abnormality | |
| JPS6137660B2 (en) | ||
| JPS62251941A (en) | data processing equipment | |
| JPH0836529A (en) | Memory information analysis prevention method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |