JPS5951004B2 - Check system in the control system of numerical control equipment - Google Patents

Check system in the control system of numerical control equipment

Info

Publication number
JPS5951004B2
JPS5951004B2 JP52100194A JP10019477A JPS5951004B2 JP S5951004 B2 JPS5951004 B2 JP S5951004B2 JP 52100194 A JP52100194 A JP 52100194A JP 10019477 A JP10019477 A JP 10019477A JP S5951004 B2 JPS5951004 B2 JP S5951004B2
Authority
JP
Japan
Prior art keywords
circuit
pulse distribution
tape
computer
pulses
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
Application number
JP52100194A
Other languages
Japanese (ja)
Other versions
JPS5433982A (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.)
Komatsu Ltd
Original Assignee
Komatsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Komatsu Ltd filed Critical Komatsu Ltd
Priority to JP52100194A priority Critical patent/JPS5951004B2/en
Publication of JPS5433982A publication Critical patent/JPS5433982A/en
Publication of JPS5951004B2 publication Critical patent/JPS5951004B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Numerical Control (AREA)

Description

【発明の詳細な説明】 本発明は所定の動作シーケンスを印加されたテープによ
つて指令されテープリーダー、演算機能と記憶機能を持
つコンピューター、パルス分配回路を内蔵した数値制御
装置の制御系におけるチニツクシステムに関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides a control system for a numerical control device that is commanded by a tape to which a predetermined operation sequence is applied, and includes a tape reader, a computer with calculation and storage functions, and a pulse distribution circuit. It is related to the Nikku system.

クランクシャフトのピン部を加工するにはクランクシャ
フトの回転と工具の送りとを同期制御して所望の加工を
実施している。
To machine the pin portion of the crankshaft, the rotation of the crankshaft and the feed of the tool are synchronously controlled to perform the desired machining.

例えば、テープからの動作シーケンスを読み取るテープ
リーダー ・演算機能と記憶機能とを持つて指令(入力
されたシーケンス)に基づいて演算・記憶するコンピュ
ーター ・コンピューターの出力に基づいて駆動回路に
パルスを分配するパルス分配回路を内蔵した数値制御装
置(以下NC装置とする)によつてクランクシャフトの
回転駆動体と工具の送り駆動体とを動作制御しクランク
シャフトの回転と工具の送りとを同期制御している。
For example, a tape reader that reads the operating sequence from a tape. - A computer that has calculation and storage functions and calculates and stores them based on commands (input sequences). - Distributes pulses to the drive circuit based on the computer's output. A numerical control device (hereinafter referred to as an NC device) with a built-in pulse distribution circuit controls the operation of the crankshaft rotation drive body and the tool feed drive body, and synchronously controls the rotation of the crankshaft and the feed of the tool. There is.

しかし、このような制御系では次のような不具合を有す
る。
However, such a control system has the following problems.

1 テープによつてNC装置に機械の動作シーケンスが
入力されるがテープリーダーが読取りミスをすると動作
シーケンスが正常に進まない。
1. The machine operation sequence is input to the NC device via tape, but if the tape reader makes a reading error, the operation sequence will not proceed normally.

2NC装置の演算回路において、クランクシャフトの回
転角に対して、ある関数にもとずき、工具の送り量を計
算するが、計算ミスが生じると正常な加工ができない。
In the arithmetic circuit of the 2NC device, the feed amount of the tool is calculated based on a certain function with respect to the rotation angle of the crankshaft, but if a calculation error occurs, normal machining cannot be performed.

フ3 演算回路からの計算結果にもとずいて駆動回路に
パルス分配を行なうが、駆動回路にパルスの歯抜け及び
パルス数がオーバーすると、正常な加工ができない。
F3 Pulses are distributed to the drive circuit based on the calculation results from the arithmetic circuit, but if the drive circuit has missing pulses or exceeds the number of pulses, normal machining cannot be performed.

ということが発生し、ワークの回転と工具送りとiの同
期が乱れて正常な加工動作ができないと同時に、工具が
暴走し、工具を破損したり、ワークを破損したりして生
産上又経済上極めて不都合である。
When this occurs, the synchronization between the rotation of the workpiece, the tool feed, and i is disrupted, making it impossible to perform normal machining operations. At the same time, the tool may run out of control, damaging the tool or damaging the workpiece, resulting in production and economic problems. This is extremely inconvenient.

すなわち、従来の制御系ではテープリーダーの読み取り
ミス、コンピユータ一の演算回路の演算ミス、パルス分
配回路のミス等が発生すると駆動体を正しい動作シーケ
ンスに基づいて動作させることができないとの不具合を
有している。
In other words, in conventional control systems, if a reading error occurs in the tape reader, a calculation error in the computer's arithmetic circuit, or an error in the pulse distribution circuit occurs, the drive unit cannot be operated according to the correct operation sequence. are doing.

本発明は上記の事情に鑑みなされたものであり、その目
的はテープリーダーの読み取りミス、コンピユータ一の
演算回路の演算ミス、パルス分配回路のミス等が発生し
たことを検出できるようにした数値制御装置の制御系に
おけるチエツクシステムを提供することである。
The present invention was made in view of the above circumstances, and its purpose is to provide a numerical control system that can detect the occurrence of reading errors in a tape reader, calculation errors in a computer's arithmetic circuit, errors in a pulse distribution circuit, etc. An object of the present invention is to provide a check system in a control system of an apparatus.

以下図面を参照して本発明の実施例を説明する。Embodiments of the present invention will be described below with reference to the drawings.

NC装置2のテープリーダー13はテープ1に印加され
た動作シーケンス(指令)を読取りするがテープ1には
第2図のように、同一内容の指令を2度入れてあつて、
テープリーダー13では、この内容を2度読取りする。
The tape reader 13 of the NC device 2 reads the operation sequence (command) applied to the tape 1, but as shown in FIG.
The tape reader 13 reads this content twice.

このとき、2回読み回路14は、テープリーダー13が
例えば最初のDを読取りしているとき、この指令値Dを
受けて記憶し、次にテープリーダー13が後のDを読取
りするときには2回読み回路14は最初のDの記憶値と
比較して、テープリーダー13が読取りミスしなく最初
のDと後のDとが正確に読取りしているかどうか比較照
合する。同様にしてテープ1の指令は全部2重に同一内
容を入れてあり、2回読み回路14は、その全部の指令
についてテープリーダー13に読取りミスがないかどう
かチエツクするものであり、もしミスがあればアラーム
,(警告)Aを発生することになる。すなわち第3図に
示す如く、テープリーダー13からのデータ(指令)は
NC装置2内のデコーダ30に接続されているとともに
第1メモリM1、第2メモリM2に接続されている。
At this time, the twice reading circuit 14 receives and stores this command value D when the tape reader 13 is reading the first D, and then twice when the tape reader 13 reads the next D. The reading circuit 14 compares the stored value of the first D to check whether the tape reader 13 is correctly reading the first D and the subsequent D without making a reading error. Similarly, all the commands on tape 1 have the same contents twice, and the double reading circuit 14 checks whether there are any mistakes in reading the tape reader 13 for all the commands. If so, an alarm (warning) A will be generated. That is, as shown in FIG. 3, data (commands) from the tape reader 13 are connected to a decoder 30 in the NC device 2, and also to a first memory M1 and a second memory M2.

C1は2進カウンタで゛、テープ1のプロツタを指令す
るCR符号がくるごとに反転する。
C1 is a binary counter which is inverted every time the CR code commanding the plotter of tape 1 comes.

最初2進カウンタC1はりセツトされているからR端子
が1となる様にしてある。
Since the binary counter C1 is initially reset, the R terminal is set to 1.

この状態でテープリーダー13がテープ1のデzータを
読込むとそのデータがNC装置2のデコーダ30に入る
とともに2進カウンタC1のRが7rであるとき第1メ
モリM1に記憶される様にしておく。
In this state, when the tape reader 13 reads data from tape 1, the data is input to the decoder 30 of the NC device 2, and is stored in the first memory M1 when R of the binary counter C1 is 7r. I'll keep it.

1プロツクのデータの読み込み終了するとテープ1には
プロツクの終了指令であるCR符号が打たれてあるため
この指令がデコーダー30にて解読されて2進カウンタ
C1にCR信号を与えC1は反転しRが″O″となりS
が7 「となる。
When the reading of data for one block is completed, since a CR code is written on the tape 1 to indicate the end of the block, this command is decoded by the decoder 30 and a CR signal is given to the binary counter C1, which is inverted and R is input. becomes “O” and S
becomes 7.

テープリーダー13は続けて次のデータを読込むが2進
カウンタC1のS端子が1となるからテープリーダー]
3のデータはNC装置2と第2メモリM2に入力されこ
のデータが記憶される。
The tape reader 13 continues reading the next data, but since the S terminal of the binary counter C1 becomes 1, the tape reader 13 continues reading the next data.
The data of No. 3 is input to the NC device 2 and the second memory M2, and this data is stored.

1プロツクのデータが終了するとテープ1にはプロツク
の終了指令である。
When the data of one proc is completed, the tape 1 receives a proc end command.

CR符号が打たれているため、このCR符号と2進カウ
ンタC1のS端子とがゲートG1に接続されているから
このゲートG1を0Nにして比較器31に比較指令を与
えこのとき比較器31は第1メモリM]と第2メモリM
2とのデータを比較し各々のデータに異が発見されたと
きアラーム信号A″が発生される。
Since the CR code is input, this CR code and the S terminal of the binary counter C1 are connected to the gate G1, so this gate G1 is set to 0N and a comparison command is given to the comparator 31. At this time, the comparator 31 is the first memory M] and the second memory M
2 and when a difference is found in each data, an alarm signal A'' is generated.

テープリーダー13は2進カウンタS端子が1のときR
符号を読みこむとStOpする様にしてある。
The tape reader 13 is R when the binary counter S terminal is 1.
When the code is read, StOp is performed.

2進カウンタC1はCR信号の立下り時反転する様に考
慮されている。
The binary counter C1 is designed to be inverted when the CR signal falls.

また、各信号のタイミングは第4図の通りとなる。次に
テープリーダー13からの信号はコンピユータ一15に
入力され、これにもとずき、クランクシヤフトの回転角
に対する工具の送り量が演算、記憶されて、その結果が
パルス分配回路の方へ必要に応じて送られるが、前記コ
ンピユータ一15の演算回路]5aは第5図に示す如く
y=f (θ)に従つて演算するが1回目は回転角(0
゜〜180゜)の範囲で任意の角度における送り量Y1
を算出し、次に回転角(180゜〜360゜)の範囲で
任意の角度における送り量Y2を算出する。
Further, the timing of each signal is as shown in FIG. Next, the signal from the tape reader 13 is input to the computer 15, and based on this, the feed amount of the tool relative to the rotation angle of the crankshaft is calculated and stored, and the result is necessary for the pulse distribution circuit. The arithmetic circuit of the computer 15] 5a calculates according to y=f (θ) as shown in FIG.
Feed amount Y1 at any angle within the range of ゜~180゜
is calculated, and then the feed amount Y2 at an arbitrary angle within the rotation angle range (180° to 360°) is calculated.

一方データーチエツク回路16は演算回路15aにお(
する1回目のデーターと2回目のデーターとを比較チエ
ツクするが、チエツクの仕方は回転角θ゜ (0゜≦θ
≦180゜)で゛のY1と回転角(360−θ)゜での
−Y2とにおいてY1一Y2とどうかを比較し同一でな
ければアラーム(警告)Bを発生することになる。
On the other hand, the data check circuit 16 is connected to the arithmetic circuit 15a (
Compare and check the data of the first time and the data of the second time, but the method of checking is based on the rotation angle θ゜
≦180°) and -Y2 at a rotation angle (360-θ)° are compared to see if Y1 - Y2 are the same, and if they are not the same, an alarm (warning) B is generated.

同一であれば、データーYl,Y2は記憶回路15bに
入力されて必要に応じて、呼び出されパルス分配回路1
7に送られることになる。
If they are the same, the data Yl and Y2 are input to the memory circuit 15b and are called out as necessary to the pulse distribution circuit 1.
It will be sent to 7th.

パルス分配回路17はコンピユータ一15から信号を受
けると、その信号にもとずいてワーク回転モーター5、
工具送りモータ一3に信号をパルス分配して、ある数の
パルス数を各々のモーター駆動回路3a,5aに送る。
When the pulse distribution circuit 17 receives a signal from the computer 15, it operates the work rotation motor 5, based on the signal.
A signal is pulse-distributed to the tool feed motor 13, and a certain number of pulses are sent to each motor drive circuit 3a, 5a.

18はパルス分配チエツク回路であり、このパルス分配
チエツク回路18にはパルス分配回路17から出力され
るパルス数Ntが入力され、一方コンピユータ一15か
らパルス分配回路17に入力された信号(パルス,数)
N,を受けとり記憶し、又パルス分配回路17から、モ
ーター駆動回路へ出力されたあとの残りのパルス数NS
(残移動量)を受けとり、パルス分配チエツク回路18
ではNS+Nt=NOを計算しパルス分配回路17から
、1パルス出力されるごとにN,=NOかどうか、全パ
ルスN,出力されるまで゛チエツクを行ない、N,−N
Oが維持されていれば、正常であるが、N,\NOであ
ればアラーム(警告)Cを発生する。
Reference numeral 18 denotes a pulse distribution check circuit, into which the number Nt of pulses output from the pulse distribution circuit 17 is input, and on the other hand, the signal (pulse number Nt) input from the computer 15 to the pulse distribution circuit 17 is input. )
N, is received and stored, and the remaining number of pulses NS after being output from the pulse distribution circuit 17 to the motor drive circuit.
(remaining movement amount) and pulse distribution check circuit 18
Then, calculate NS+Nt=NO, and check whether N,=NO every time one pulse is output from the pulse distribution circuit 17 until all pulses N are output, and then calculate N, -N.
If O is maintained, it is normal, but if N or \NO, an alarm (warning) C is generated.

すなわち、第6図に示す如く NtはN,の分配データーにもとずきパルス分配回路1
7にて作成された分配パルスであり、このパルスNtが
パルス分配チエツク回路18内のカウンター32で計数
される。
That is, as shown in FIG. 6, Nt is N, based on the distribution data of the pulse distribution circuit 1.
This pulse Nt is counted by a counter 32 in the pulse distribution check circuit 18.

この計数値をアダー .33のP,端子に入力し、また
パルス分配回路17からの残移動量のデーターNsをア
ダー33のP。端子に入力する。分配データーN,はパ
ルス分配チエツク回路18内のメモリ34に記憶されて
いる。比較器35ではメモリ34の内容とアダー33の
出力0,との内容をたえず比較チエツクし、メモリ34
の出力MOがアダー33の出力0,と等しくなくなつた
ときはパルス分配回路17に何んらかの異常が生じたた
めでありアラームCを発するものである。またカウンタ
ー32はメモリ34にデーターを記憶するとき一担クリ
アされる様に信号C,にてクリアされる。
Add this count value. 33, and input the remaining movement amount data Ns from the pulse distribution circuit 17 to the P terminal of the adder 33. input to the terminal. Distribution data N, is stored in memory 34 within pulse distribution check circuit 18. The comparator 35 constantly compares and checks the contents of the memory 34 and the contents of the output 0 of the adder 33.
When the output MO of the adder 33 becomes no longer equal to the output 0 of the adder 33, it is because some abnormality has occurred in the pulse distribution circuit 17, and an alarm C is generated. Further, the counter 32 is cleared by a signal C so that it is cleared once when data is stored in the memory 34.

以上のようであるから制御系において各々のチエツクを
くり返しながら、テープ指令にもとずいて工具送りモー
ターを制御しているので、前記した8ケ所のステツプで
異常があれば、アラームを発生し、機械を停止しうるの
で、従来のようなテープリーダー13による読取りミス
、演算回路15aによる演算ミス、パルス分配回路17
における分配ミスを防止することができて、ワークの回
転と工具の送りとを完全に同期させることができ、より
生産能率の良い機械動作ができる。
As described above, the tool feed motor is controlled based on the tape command while repeating each check in the control system, so if there is an abnormality in the eight steps mentioned above, an alarm is generated. Since the machine can be stopped, reading errors by the tape reader 13, calculation errors by the arithmetic circuit 15a, and pulse distribution circuit 17, as in the conventional case, are avoided.
The rotation of the workpiece and the feed of the tool can be completely synchronized, allowing machine operation with higher production efficiency.

以上の実施例はクランクシヤフトの加工の場合について
述べたが、これに限定されることなく駆動体をテープに
印加された動作シーケンスに基づいて動作制御する場合
のNc装置の制御系におけるチエツクシステムとしても
利用できること勿論である。本発明は前述のように構成
したので、テープリーダー13による読み取りミス、コ
ンピユータ一15による演算ミス、パルス分配ミスを検
出できる。
Although the above embodiment has been described in the case of machining a crankshaft, the present invention is not limited to this, but can be used as a check system in the control system of an Nc device when controlling the operation of a drive body based on the operation sequence applied to the tape. Of course, it can also be used. Since the present invention is configured as described above, reading errors by the tape reader 13, calculation errors by the computer 15, and pulse distribution errors can be detected.

したがつて、駆動体が動作シーケンス以外の動作をする
ことを未然に感知してそれを防止できる。
Therefore, it is possible to detect and prevent the driver from performing an operation other than the operation sequence.

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

図面は本発明の実施例を示すもので、第1図は全体説明
図、第2図はテープのデータ印加状態説明図、第3図は
2回読取回路の詳細説明図、第4図は第3図における各
種信号のタイミングを示す表図である。 第5図は演算回路15aにおける演算データーを示す説
明図、第6図はパルス分配チエツク回路の詳細図である
。1はテープ、13はテープリーダー、14は2回読取
回路、15はコンピユータ一、16はデーターチエツク
回路、17はパルス分配回路、18はパルス分配チエツ
ク回路。
The drawings show an embodiment of the present invention, and FIG. 1 is an overall explanatory diagram, FIG. 2 is an explanatory diagram of the data application state of the tape, FIG. 3 is a detailed explanatory diagram of the two-time reading circuit, and FIG. FIG. 4 is a table showing timings of various signals in FIG. 3; FIG. FIG. 5 is an explanatory diagram showing calculation data in the calculation circuit 15a, and FIG. 6 is a detailed diagram of the pulse distribution check circuit. 1 is a tape, 13 is a tape reader, 14 is a two-time reading circuit, 15 is a computer, 16 is a data check circuit, 17 is a pulse distribution circuit, and 18 is a pulse distribution check circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 テープ1に印加された指令を読み取るテープリーダ
ー13、演算機能と記憶機能をもつコンピュータ15及
びパルス分配回路17を内臓した数値制御装置の制御系
において、種々の指令内容を各々の指令内容毎に連続し
て与えられているテープ1と、テープリーダー13が前
記テープ1の指令内容を2回読取り、2回読取つた内容
が同一かどうかチェックする2回読取回路14と、前記
テープリーダー13からの指令内容にもとずいて、コン
ピューター15で2回演算させ、2回とも同一の演算結
果かどうかチェックするデーターチェック回路16と、
前記コンピューター15からの指令内容にもとずいてパ
ルス分配回路17が駆動回路に出力されるパルス数Nt
をカウントするカウンター32、前記コンピューター1
5からのパルス数N_1を記憶するメモリ34、パルス
分配回路17から駆動回路へ出力した時点でのパルス分
配回路17内での残りのパルス数NSと前記パルス数N
tとを加算するアダー33、このアダー33の出力と前
記メモリ34内の値とを比較して不一致の時に信号を出
力する比較器35より成るパルス分配チェック回路18
とを設けたことを特徴とする数値制御装置の制御系にお
けるチェックシステム。
1. In the control system of the numerical control device, which includes a tape reader 13 that reads commands applied to the tape 1, a computer 15 with calculation and storage functions, and a pulse distribution circuit 17, various command contents are processed for each command content. The tape reader 13 reads the command contents of the tape 1 twice, and the double reading circuit 14 checks whether the contents read twice are the same. a data check circuit 16 that causes the computer 15 to perform calculations twice based on the command contents and checks whether the calculation results are the same both times;
The number of pulses Nt that the pulse distribution circuit 17 outputs to the drive circuit based on the command content from the computer 15.
a counter 32 for counting the computer 1;
A memory 34 that stores the number N_1 of pulses from 5, the remaining number NS of pulses in the pulse distribution circuit 17 at the time of output from the pulse distribution circuit 17 to the drive circuit, and the number N of pulses
a pulse distribution check circuit 18 comprising an adder 33 for adding t and a comparator 35 for comparing the output of the adder 33 with the value in the memory 34 and outputting a signal when there is a mismatch;
A check system for a control system of a numerical control device, characterized in that it is provided with:
JP52100194A 1977-08-23 1977-08-23 Check system in the control system of numerical control equipment Expired JPS5951004B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP52100194A JPS5951004B2 (en) 1977-08-23 1977-08-23 Check system in the control system of numerical control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP52100194A JPS5951004B2 (en) 1977-08-23 1977-08-23 Check system in the control system of numerical control equipment

Publications (2)

Publication Number Publication Date
JPS5433982A JPS5433982A (en) 1979-03-13
JPS5951004B2 true JPS5951004B2 (en) 1984-12-12

Family

ID=14267484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP52100194A Expired JPS5951004B2 (en) 1977-08-23 1977-08-23 Check system in the control system of numerical control equipment

Country Status (1)

Country Link
JP (1) JPS5951004B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61114315A (en) * 1984-11-08 1986-06-02 Okuma Mach Works Ltd Tape input system for numerical controller

Also Published As

Publication number Publication date
JPS5433982A (en) 1979-03-13

Similar Documents

Publication Publication Date Title
US11048227B2 (en) Abnormality detection device of machine tool
US4748554A (en) Machine monitoring system using motion detection for synchronization
US4131836A (en) Interference prevention system for machine tool movable members
US11099542B2 (en) Input error detection device
US7890800B2 (en) Method, operating system and computing hardware for running a computer program
JPS5947322B2 (en) Stroke over detection method
JP2685962B2 (en) Encoder error detection device
JPS5951004B2 (en) Check system in the control system of numerical control equipment
JP4945471B2 (en) Numerical control device with relocation prevention function
US9703672B2 (en) Method for verifying the processing of software
EP0412164A4 (en)
KR890000578B1 (en) Spindle Speed Check Device
JPS63181007A (en) Numerical control system with high reliability
EP0915403A1 (en) Numerical control unit
JPS6237704A (en) Numerical controller
JPH11154006A (en) Numerical controller with malfunction preventing function
JPS6016395A (en) Monitor device for abnormality of operation of robot
JPS6364108A (en) Numerical controller having malfunction checking function
JPS6257005A (en) Robot control system
JPS6238906A (en) Numerical controller
JPS6166497A (en) Recognition of dead lock
KR0165444B1 (en) How to prevent malfunction in position control equipment
JPH0895622A (en) Numerical control system
JP3881882B2 (en) Servo controller
JPS62245404A (en) Numerical control system