JPH048836B2 - - Google Patents

Info

Publication number
JPH048836B2
JPH048836B2 JP57184151A JP18415182A JPH048836B2 JP H048836 B2 JPH048836 B2 JP H048836B2 JP 57184151 A JP57184151 A JP 57184151A JP 18415182 A JP18415182 A JP 18415182A JP H048836 B2 JPH048836 B2 JP H048836B2
Authority
JP
Japan
Prior art keywords
tape
data
self
diagnosis
test pattern
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.)
Expired - Lifetime
Application number
JP57184151A
Other languages
Japanese (ja)
Other versions
JPS5972531A (en
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 filed Critical
Priority to JP57184151A priority Critical patent/JPS5972531A/en
Publication of JPS5972531A publication Critical patent/JPS5972531A/en
Publication of JPH048836B2 publication Critical patent/JPH048836B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/267Reconfiguring circuits for testing, e.g. LSSD, partitioning

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Description

【発明の詳細な説明】 本発明は、数値制御装置本体から分離可能なテ
ープパンチヤ、テープリーダ等を所定の数値制御
装置にデータ入出力装置として接続して、これら
データ入出力装置の自己診断を行なう自己診断装
置に関する。
Detailed Description of the Invention The present invention connects a tape puncher, tape reader, etc. that can be separated from the main body of a numerical control device as a data input/output device to a predetermined numerical control device, and performs self-diagnosis of these data input/output devices. The present invention relates to a self-diagnosis device that performs self-diagnosis.

数値制御において、ホスト・コンピユータを用
い、これに各種のデータ処理を行わせて被加工物
の加工指令データを作成する場合がある。ホス
ト・コンピユータにて作成されたデータは、テー
プパンチヤーにより紙テープに記録され、この紙
テープを記録楳体として他のシステムの入力情報
として使用する。また、紙テープを作成する際、
その内容を記録しておくため、プリンタに印字さ
せている。通常ホスト・コンピユータからの出力
を紙テープに記録したり、また記録用紙に印字す
る場合、ホスト・コンピユータの本体とはそれぞ
れ別に設けた紙テープパンチヤとプリンタが使用
されている。それらの機器はホスト・コンピユー
タと接続され、これの指令のみにより動作する。
このような各周辺機器が離ればなれのシステムと
は異なり、ホスト・コンピユータと接続した場合
はその指令に基ずいた動作を行い、ホスト・コン
ピユータから切り離した場合は独自に紙テープの
内容を読み込んでこのコピー印字を行うシステム
も考えられる。しかしこのようなシステムは、ご
く限られたシステムを対象としたもので、別のシ
ステムには応用できない面もあるし、また応用で
きたとしてもホスト・コンピユータのソフトウエ
アを変更したりして対処しなければならない、と
いう不便な面もあつた。
In numerical control, a host computer is sometimes used to perform various data processing to create machining command data for a workpiece. Data created by the host computer is recorded on paper tape by a tape puncher, and this paper tape is used as a recording medium as input information for other systems. Also, when making paper tape,
In order to record the contents, I print it out on a printer. Normally, when output from a host computer is recorded on paper tape or printed on recording paper, a paper tape puncher and a printer are used, each of which is provided separately from the main body of the host computer. These devices are connected to a host computer and operate only according to instructions from the host computer.
Unlike such a system in which each peripheral device is separate, when it is connected to a host computer, it operates based on its commands, and when it is disconnected from the host computer, it independently reads the contents of the paper tape and copies it. A system for printing may also be considered. However, such systems are intended for a very limited number of systems and may not be applicable to other systems, and even if they can be applied, the solution may be to change the host computer software. There was also the inconvenience of having to do so.

また、ホスト・コンピユータへデータを送る場
合、あるいはホスト・コンピユータから送られた
データを紙テープに記録する場合など、テープリ
ーダやテープパンチヤが誤動作し、データの読取
りや記録が不正確になることもあるが、従来はこ
のような誤動作を起すかどうかの自己診断はテー
プリーダやテープパンチヤごとに別々に行つてい
たため、極めて面倒なものであつた。
Additionally, when sending data to a host computer or recording data sent from a host computer onto paper tape, the tape reader or tape puncher may malfunction, resulting in inaccurate data reading or recording. However, in the past, self-diagnosis to determine whether such a malfunction occurred was performed separately for each tape reader or tape puncher, which was extremely troublesome.

そこで本発明は数値制御システムにおいて、ホ
スト・コンピユータとは分離可能なテープパンチ
ヤ、テープリーダ、プリンタが一体的に所定の数
値制御装置にデータ入出力装置として接続された
場合、電源投入時に、テープリーダやテープパン
チヤが誤つたデータの読取りや記録動作を起すか
どうかの自己診断が一括して行なえる自己診断装
置を提供することを目的とする。
Therefore, the present invention provides a numerical control system in which when a tape puncher, tape reader, and printer, which can be separated from a host computer, are integrally connected to a predetermined numerical control device as a data input/output device, when the power is turned on, It is an object of the present invention to provide a self-diagnosis device that can perform self-diagnosis all at once to determine whether a reader or tape puncher causes an erroneous data reading or recording operation.

次に本発明の一実施例を図面を用いて詳細に説
明する。
Next, one embodiment of the present invention will be described in detail using the drawings.

第1図は、本発明に係るデータ入出力装置のブ
ロツク図である。同図において、1は制御装置、
2はデータ入出力装置の動作に必要なプログラム
を収納したリード・オンリー・メモリ(以下
ROMと略記する)である。このROM2の中に
は、基本プログラムなどのほか、自己診断用の一
連のプログラムが収納されている。この自己診断
用のプログラムは2つのサブプログラムからな
り、その第1のサブプログラムは、ある決められ
たパターンたとえば、第2図に示すように、紙テ
ープに穿孔により表わされるいくつかの模様を所
定数ずつパンチングするようなプログラムであ
り、第2のサブプログラムは、第1のサブプログ
ラムによつて作成された紙テープに記録されたデ
ータをテープリーダによつて読み取つたデータ
と、第1のサブプログラムにあるパンチングデー
タとを比較するプログラムである。
FIG. 1 is a block diagram of a data input/output device according to the present invention. In the figure, 1 is a control device;
2 is a read-only memory (hereinafter referred to as
(abbreviated as ROM). The ROM 2 stores a series of programs for self-diagnosis in addition to basic programs. This self-diagnosis program consists of two subprograms. The second subprogram is a program that punches the data recorded on the paper tape created by the first subprogram with the data read by the tape reader and the data recorded on the paper tape created by the first subprogram. This is a program that compares certain punching data.

3は紙テープなどから読み出されたデータなど
を一時記憶せしめておくランダム・アクセス・メ
モリ(以下RAMと略記する)、4はテープリー
ダ、5はテープパンチヤ、6はプリンタで、テー
プリーダ4にて読み取られたデータ、テープパン
チヤ5にて打ち出されているデータあるいはホス
ト・コンピユータから送られてくるデータを印字
する。7は操作盤であり、文字キー、テンキー、
フアンクシヨンキーなどを有する。特に、ホス
ト・コンピユータからの指令で動作させるかある
いは本発明に係るデータ入出力装置独自で動作さ
せるかの動作切替えスイツチを有するほか、電源
投入時ホスト・コンピユータの指令あるいは本発
明に係るデータ入出力装置自身からの指令で、自
己診断動作を行なわせるためのスイツチを有す
る。8はホスト・コンピユータとの間のインター
フエース回路、9は切換え回路である。
3 is a random access memory (hereinafter abbreviated as RAM) for temporarily storing data read out from a paper tape, etc.; 4 is a tape reader; 5 is a tape puncher; 6 is a printer; The data read by the tape puncher 5, the data printed by the tape puncher 5, or the data sent from the host computer are printed. 7 is a control panel with character keys, numeric keypad,
It has function keys etc. Particularly, in addition to having an operation changeover switch for operating according to commands from the host computer or independently operating the data input/output device according to the present invention, it also has an operation changeover switch for operating according to commands from the host computer or independently according to the data input/output device according to the present invention, and also includes an operation changeover switch for operating according to commands from the host computer or data input/output according to the present invention when the power is turned on. It has a switch that allows it to perform self-diagnosis operations based on commands from the device itself. 8 is an interface circuit with the host computer, and 9 is a switching circuit.

第1図に示す装置は、自己の装置内だけで次の
ような操作を行うことができる。まず、操作盤7
からキーインしたデータを即座にプリンタにてプ
リントアウトすることができるとともに、このデ
ータをRAM3にストアできる。またプリントア
ウトされた結果をチエツクしてから、RAM3に
ストアーされているデータのエラーを訂正するこ
ともできる。またこの訂正動作後、RAM3にス
トアされているデータをプリントアウトするとと
もに、紙テープを穿孔することもできる。さら
に、テープリーダ4から読み取られたデータをプ
リンタ6からプリントアウトすることもできる
し、テープパンチヤ5により紙テープに穿孔して
紙テープのコピーを作成することもできるし、こ
れらの動作を同時に行なうこともできる。
The device shown in FIG. 1 can perform the following operations only within its own device. First, operation panel 7
The data keyed in can be immediately printed out using the printer, and this data can also be stored in the RAM 3. It is also possible to correct errors in the data stored in the RAM 3 after checking the printed results. After this correction operation, the data stored in the RAM 3 can be printed out and the paper tape can also be punched. Furthermore, the data read from the tape reader 4 can be printed out from the printer 6, and the paper tape can be punched by the tape puncher 5 to make a copy of the paper tape, and these operations can be performed simultaneously. You can also do it.

また、第1図に示す装置は、操作盤7に設けら
れた動作切替えスイツチを切り替え、切替回路9
をオンにしてホスト・コンピユータ側と接続し、
操作盤7あるいはテープリーダ4から、RAM3
を経由し、あるいは経由せず、データをホスト・
コンピユータ側に転送することができるとともに
ホスト・コンピユータ側から転送されたデータを
テープパンチヤ5から紙テープに記録することも
できるし、プリンタ6からプリントアウトするこ
ともできる。
The device shown in FIG. 1 also switches an operation changeover switch provided on the operation panel 7, and
Turn on and connect to the host computer side.
RAM3 from operation panel 7 or tape reader 4
Host data with or without
The data can be transferred to the computer side, and the data transferred from the host computer side can also be recorded on paper tape from the tape puncher 5 or printed out from the printer 6.

次に自己診断動作について説明する。 Next, the self-diagnosis operation will be explained.

まず、操作盤7のスイツチを切り替えて、「自
己診断モード」にする。なお、この自己診断動作
は、本発明に係るデータ入出力装置自身からの指
令またはホスト・コンピユータからの指令のうち
いずれか一方のモードとする。
First, flip the switch on the operation panel 7 to set it to "self-diagnosis mode." Note that this self-diagnosis operation is performed in one of two modes: a command from the data input/output device itself according to the present invention or a command from the host computer.

次いで、電源を投入する。第3図に示すように
次のステツプでプログラムカウンタの内容を自己
診断プログラム開始アドレスにする。その後、前
述のようなパンチデータを記憶している領域から
1バイト分のデータを読み出してパンチヤに出力
する。以後、第3図に示すように、紙テープに所
定のパンチングを繰り返し行つて所定のデータを
記録する。
Next, turn on the power. As shown in FIG. 3, in the next step, the contents of the program counter are set to the self-diagnosis program start address. Thereafter, one byte of data is read from the area storing punch data as described above and output to the puncher. Thereafter, as shown in FIG. 3, predetermined punching is repeatedly performed on the paper tape to record predetermined data.

このようにして自己診断用の紙テープが出来上
がつて、第1のサブプログラムは終了する。ここ
で、紙テープをテープパンチヤから取り外してテ
ープリーダにその自己診断用の紙テープを掛け
る。そして、操作盤7のスタートスイツチを押圧
すると、第2のサブプログラムに移る。この第2
のサブプログラムは第4図に示すように、紙テー
プからまず1バイト分のデータを読み取る。そし
てテープリーダから読取りデータが本装置に入力
されているか否かの判断を行う。データの入力が
確認されたならば、第1のサブプログラムに示さ
れる自己診断用パンチデータ記憶領域の指定アド
レスの1バイトを読出し、テープリーダからの入
力データとの一致を見る。この一致動作において
一致が見られたならば、パンチデータ記憶領域の
今読出されたデータの次のデータの記憶されてい
るアドレスを指定する。そして、パンチデータ記
憶領域の最後のアドレスが指定されて両者の一致
を見たならば、プリンタ6に印字指令を送つて、
たとえば、「NO ERROR」と印字させる。一連
の一致動作を行つているとき、いずれかで不一致
な部分が見られたならば、直ちにこの一致動作を
中止し、プリンタ6に印字指令を送つて、たとえ
ば、「ERROR」と印字し、データのパンチング
動作あるいはデータの読取り動作に誤りがあつた
ことを表示する。
In this way, the paper tape for self-diagnosis is completed, and the first subprogram ends. At this point, the paper tape is removed from the tape puncher and the paper tape for self-diagnosis is hung on the tape leader. Then, when the start switch on the operation panel 7 is pressed, the process moves to the second subprogram. This second
As shown in FIG. 4, the subprogram first reads one byte of data from the paper tape. Then, it is determined whether read data from the tape reader is being input to the device. When data input is confirmed, one byte of the designated address of the self-diagnosis punch data storage area shown in the first subprogram is read out to check whether it matches the input data from the tape reader. If a match is found in this match operation, the address where data next to the data that has just been read out in the punch data storage area is stored is specified. Then, when the last address of the punch data storage area is specified and the two match, a print command is sent to the printer 6,
For example, print "NO ERROR". When performing a series of matching operations, if a mismatched part is found in any part, immediately stop this matching operation, send a print command to the printer 6, print out, for example, "ERROR", and print the data. Indicates that an error occurred in the punching operation or data reading operation.

なお、プリンタへの印字は、上記のように
「NO ERROR」、「ERROR」の表示に限ること
はなく、たとえば「〇」、「×」など、他の適当な
表示を用いることもできる。
Note that the printing on the printer is not limited to the display of "NO ERROR" or "ERROR" as described above, and other appropriate display such as "○" or "x" may also be used.

以上詳細に説明したように、本発明は、データ
入出力装置がホスト・コンピユータからの指令で
動作し紙テープの作成、転送データのプリントア
ウト、データの入力が実行できるだけでなく、該
装置の中に、独自にプログラミングして紙テープ
を作成でき、かつ紙テープのデータを印字するこ
とができるような処理機能を備えているので、数
台の数値制御装置を掛持ちできる可搬型のデータ
入出力装置を、所定の数値制御装置に接続し一括
して自己診断が行なえる自己診断装置として好適
なものである。
As explained in detail above, the present invention not only enables a data input/output device to operate in response to commands from a host computer to create paper tapes, print out transferred data, and input data, but also allows , has a processing function that allows you to create paper tapes with your own programming and print data on paper tapes, so it is a portable data input/output device that can hold several numerical control devices. It is suitable as a self-diagnosis device that can be connected to a predetermined numerical control device and perform self-diagnosis all at once.

本発明のデータ入出力装置における自己診断で
は、テープパンチヤがプログラムに従つて自己診
断用に作成した紙テープから、テープリーダがデ
ータを読み取つて、その読み取つたデータと、内
部のメモリに記憶されている所定のパターンデー
タとを比較して自己診断を行なうようにしている
ので、1回の操作だけで、テープリーダとテープ
パンチヤとがともに正常であるかどうかの判定が
できる。また、テープリーダが読み取つたデータ
と、メモリに記憶されている所定のパターンデー
タとの一致・不一致の判定の結果を、プリンタに
プリントアウトしているから、プリンタについて
の自己診断も同時に行なわれることになる。プリ
ンタの印字により正常である旨の判定結果が出力
された時、テープパンチヤ、テープリーダ、プリ
ンタの全てが正常であると判断できるからであ
る。
In the self-diagnosis of the data input/output device of the present invention, the tape reader reads data from a paper tape created by the tape puncher for self-diagnosis according to a program, and the read data and the data are stored in the internal memory. Since self-diagnosis is performed by comparing the data with predetermined pattern data, it is possible to determine whether both the tape reader and tape puncher are normal with just one operation. Additionally, since the results of determining whether the data read by the tape reader matches the predetermined pattern data stored in memory are printed out on the printer, self-diagnosis of the printer is also performed at the same time. become. This is because when a determination result indicating that the printer is normal is output by printing, it can be determined that the tape puncher, tape reader, and printer are all normal.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明に係るデータ入出力装置の構成
を示すブロツク図、第2図は紙テープの穿孔状態
を示す図、第3図および第4図は第1と第2のサ
ブプログラムを説明するための流れ図である。 1…制御装置、2…ROM、3…RAM、4…
テープリーダ、5…テープパンチヤ、6…プリン
タ、7…操作盤。
FIG. 1 is a block diagram showing the configuration of a data input/output device according to the present invention, FIG. 2 is a diagram showing the perforation state of a paper tape, and FIGS. 3 and 4 explain the first and second subprograms. This is a flowchart for 1...control device, 2...ROM, 3...RAM, 4...
Tape reader, 5... tape puncher, 6... printer, 7... operation panel.

Claims (1)

【特許請求の範囲】 1 数値制御装置本体から分離可能なテープパン
チヤ、テープリーダを所定の数値制御装置にデー
タ入出力装置として接続して、これらデータ入出
力装置の自己診断を行なう自己診断装置におい
て、 所定のテストパターンデータと、前記テープパ
ンチヤに対して前記テストパターンデータを紙テ
ープにパンチアウトさせる出力プログラムと、前
記テープリーダに対して前記テストパターンがパ
ンチされた紙テープからテストパターンデータの
読込み動作を行なわせる読取りプログラムとを記
憶せしめたメモリ、 前記テープパンチヤが前記出力プログラムに従
つて自己診断用にパンチアウトした紙テープから
前記テープリーダにて読み取られたテストパター
ンデータと、前記メモリに記憶されているテスト
パターンデータとを比較する比較手段、および この比較手段の判定結果を前記テープパンチ
ヤ、テープリーダの自己診断データとして出力す
る出力手段 を具備することを特徴とする自己診断装置。 2 前記テープリーダが読み取つたデータと、前
記メモリに記憶されているテストパターンデータ
との一致・不一致の判定結果を、前記所定の数値
制御装置にデータ出力装置として接続されたプリ
ンタにプリントアウトすることを特徴とする特許
請求の範囲第1項に記載の自己診断装置。
[Scope of Claims] 1. A self-diagnosis device that connects a tape puncher and a tape reader that are separable from a numerical control device main body to a predetermined numerical control device as data input/output devices, and performs self-diagnosis of these data input/output devices. Predetermined test pattern data, an output program that causes the tape puncher to punch out the test pattern data onto a paper tape, and an output program that causes the tape reader to read the test pattern data from the paper tape punched with the test pattern. a memory storing a reading program for performing an operation; test pattern data read by the tape reader from a paper tape punched out by the tape puncher for self-diagnosis according to the output program; and test pattern data stored in the memory. What is claimed is: 1. A self-diagnosis device comprising: comparison means for comparing test pattern data that has been tested; and output means for outputting the determination result of the comparison means as self-diagnosis data for the tape puncher and tape reader. 2. Printing out a determination result of whether the data read by the tape reader matches or does not match the test pattern data stored in the memory to a printer connected to the predetermined numerical control device as a data output device. A self-diagnosis device according to claim 1, characterized in that:
JP57184151A 1982-10-20 1982-10-20 Data input/output device Granted JPS5972531A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57184151A JPS5972531A (en) 1982-10-20 1982-10-20 Data input/output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57184151A JPS5972531A (en) 1982-10-20 1982-10-20 Data input/output device

Publications (2)

Publication Number Publication Date
JPS5972531A JPS5972531A (en) 1984-04-24
JPH048836B2 true JPH048836B2 (en) 1992-02-18

Family

ID=16148252

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57184151A Granted JPS5972531A (en) 1982-10-20 1982-10-20 Data input/output device

Country Status (1)

Country Link
JP (1) JPS5972531A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4929041A (en) * 1972-07-12 1974-03-15
JPS50108483A (en) * 1974-02-05 1975-08-26
JPS521138A (en) * 1973-10-24 1977-01-06 Crosrol Ltd Carding method and carder
JPS5492066A (en) * 1977-12-29 1979-07-20 Takeda Riken Ind Co Ltd Test pattern generator
JPS55163700A (en) * 1979-06-07 1980-12-19 Mitsubishi Electric Corp Memory circuit tester

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57137061U (en) * 1981-02-18 1982-08-26
JPS57144159U (en) * 1981-03-05 1982-09-10

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4929041A (en) * 1972-07-12 1974-03-15
JPS521138A (en) * 1973-10-24 1977-01-06 Crosrol Ltd Carding method and carder
JPS50108483A (en) * 1974-02-05 1975-08-26
JPS5492066A (en) * 1977-12-29 1979-07-20 Takeda Riken Ind Co Ltd Test pattern generator
JPS55163700A (en) * 1979-06-07 1980-12-19 Mitsubishi Electric Corp Memory circuit tester

Also Published As

Publication number Publication date
JPS5972531A (en) 1984-04-24

Similar Documents

Publication Publication Date Title
JPH048836B2 (en)
EP0070184A2 (en) A method of testing memory
JPS5969839A (en) Input/output device of data
US4676674A (en) Data input/output unit
JPH0113150B2 (en)
JP2570995B2 (en) Disk controller
EP0545396A2 (en) Apparatus and method for information processing
US4636937A (en) Data input/output unit
US4677543A (en) Transportable and detachable data input/output unit providing automatic character insertion or deletion
JPS642180Y2 (en)
JPS5969874A (en) Input-output device of data
JPS6010673B2 (en) Message alternative output control method
JPS62196167A (en) Printer
JPH057722B2 (en)
JPS5969872A (en) Input-output device of data
WO1984001636A1 (en) Data input/output apparatus
JPS5971512A (en) Data input and output device
JPH0452481B2 (en)
JPS6037937B2 (en) Initial program loading method
JPS61204648A (en) Copying machine with self-diagnosing function
JPS5975308A (en) Data input/output device
JPS61156341A (en) Electronic device
JPH03197062A (en) Image forming device
JPH05216604A (en) Information processing system
JPH0296854A (en) Memory capacity measuring system