JPH04109319A - Method for positioning phase of waveform outputted from machine tool positioning device - Google Patents

Method for positioning phase of waveform outputted from machine tool positioning device

Info

Publication number
JPH04109319A
JPH04109319A JP22667490A JP22667490A JPH04109319A JP H04109319 A JPH04109319 A JP H04109319A JP 22667490 A JP22667490 A JP 22667490A JP 22667490 A JP22667490 A JP 22667490A JP H04109319 A JPH04109319 A JP H04109319A
Authority
JP
Japan
Prior art keywords
phase
positioning device
machine tool
output
positioning
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
Application number
JP22667490A
Other languages
Japanese (ja)
Inventor
Yoshiaki Sekiya
関谷 良明
Shigeru Hishinuma
菱沼 繁
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.)
Hitachi Seiki Co Ltd
Original Assignee
Hitachi Seiki Co 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 Hitachi Seiki Co Ltd filed Critical Hitachi Seiki Co Ltd
Priority to JP22667490A priority Critical patent/JPH04109319A/en
Publication of JPH04109319A publication Critical patent/JPH04109319A/en
Pending legal-status Critical Current

Links

Landscapes

  • Automatic Control Of Machine Tools (AREA)
  • Control Of Position Or Direction (AREA)

Abstract

PURPOSE:To effectively position a machine tool by moving a piece of machinery at fixed speed and executing checking work on such as timing or existence of change between two waveforms by means of an NC device. CONSTITUTION:When measurement is started, a timer in a RAM 8 is initialized. When current time is included within a measuring time, i.e. a set sampling time, whether a change exists in the input of A or B phase is judged, and when the change exists, its changing time is counted by the number of oscillation clock pulses oscillated from an oscillator 9a, and the counted value and the waveform data are stored in the RAM 8. When the measured value reaches the set value, a measured result is displayed on a CRT 4 as S6 independently of the intervals of clock pulses as shown in Fig.2 (a), (b).

Description

【発明の詳細な説明】 「産業上の利用分野] この発明は、工作機械の位置決め装置における出力波形
の相位置決め方法に関する。更に詳しくは、数値制御工
作機械の各種軸の角度位置決め用などに用いられ、相が
異なる2相のパルス列である出力波形の位置決め方法に
関する。
Detailed Description of the Invention [Field of Industrial Application] The present invention relates to a method for phase positioning of an output waveform in a positioning device for a machine tool. The present invention relates to a method for positioning an output waveform that is a two-phase pulse train having different phases.

[従来技術] 数値制御(NC)工作機械のテーブル、刃物台などの位
置決め装置として近接スイッチやマイクロスイッチなど
のセンサが用いられている。これらのセンサはスリット
または突起などを持った回転円盤の回転数、回転方向、
回転角度を検出することができる。センサは2個用意さ
れ、回転軸の回転に伴い、互いに90度位相の異なるA
、B2相のパルス列(または近似正弦波)を出力とじて
いる。また、A、B相2相の位相関係から回転方向を判
別できる。
[Prior Art] Sensors such as proximity switches and microswitches are used as positioning devices for tables, tool rests, etc. of numerically controlled (NC) machine tools. These sensors measure the rotation speed, rotation direction, and
Rotation angle can be detected. Two sensors are prepared, and as the rotation axis rotates, A with a phase difference of 90 degrees from each other.
, B2 phase pulse train (or approximate sine wave) is output. Further, the rotation direction can be determined from the phase relationship between the two phases A and B.

この位置決め装置は、通常円周方向に精密に90度の位
相差を生じるように円盤およびセンサーが配置されてい
る。このA、B相信号を発生させる円盤およびセンサー
の取付位置などの調整には、実際に機械装置を動作させ
、センサーにオシロスコープを接続して、オシロスコー
プのCRT画面から目視観測を行う必要があった。この
方法は、オシロスコープを必要とする上、調整時間を要
する。
In this positioning device, a disk and a sensor are usually arranged so as to produce a precise phase difference of 90 degrees in the circumferential direction. To adjust the disks that generate the A and B phase signals and the mounting positions of the sensors, it was necessary to actually operate the mechanical equipment, connect an oscilloscope to the sensor, and perform visual observation from the oscilloscope's CRT screen. . This method requires an oscilloscope and requires time for adjustment.

[発明が解決しようとする課題] この発明の目的は、A、B相信号のオン−オフ変化の時
間間隔を測定し、その波形を表示させる工作機械の位置
決め装置の出力波形の相位置決め方法を提供することに
ある。
[Problems to be Solved by the Invention] An object of the present invention is to provide a phase positioning method for the output waveform of a positioning device of a machine tool, which measures the time interval of on-off changes of A and B phase signals and displays the waveform. It is about providing.

この発明の他の目的は、A、B相センサーの取付位置な
どの調整を容易に行うために工作機械の位置決め装置の
出力波形をNC装置に表示する方法を提供することにあ
る。
Another object of the present invention is to provide a method for displaying the output waveform of a positioning device of a machine tool on an NC device in order to easily adjust the mounting positions of A and B phase sensors.

[前記課題を解決するための手段および作用]前記課題
を解決するために次のような手段を採る。
[Means and actions for solving the above problems] In order to solve the above problems, the following measures are taken.

NC工作機械を構成する要素の位置決め装置と、この位
置決め装置から出力される第1の相の第1出力信号と、
前記位置決め装置から出力され前記第1出力信号と位相
が異なる第2の相の第2出力信号と、前記第]および第
2出力信号の波形変化を検知し、その検知された経過時
間を一時記憶手段に記憶し、前記経過時間の大小に関係
なく一定幅に前記第1および第2出力信号を表示手段に
表示し、前記位置決め装置を調整する工作機械の位置決
め装置の出力波形の相位置決め方法である。
a positioning device for an element constituting an NC machine tool; a first output signal of a first phase output from the positioning device;
A second output signal of a second phase outputted from the positioning device and having a phase different from the first output signal, and a waveform change of the second output signal and the second output signal are detected, and the detected elapsed time is temporarily stored. A phase positioning method of an output waveform of a positioning device of a machine tool, wherein the first and second output signals are stored in a means, and the first and second output signals are displayed in a constant width on a display means regardless of the magnitude of the elapsed time, and the positioning device is adjusted. be.

前記表示手段は、前記NC工作機械を制御するNC装置
のための表示手段である。
The display means is a display means for an NC device that controls the NC machine tool.

[実施例] 以下、この発明の実施例を図面にしたがって説明する。[Example] Embodiments of the present invention will be described below with reference to the drawings.

第1図(a)、(b)は、位置決め装置のA相、B相の
出力波形を示すタイムチャート図である。第1図(c)
は、A相、B相がら作ったクロック・パルスを示すタイ
ムチャート図である。第1図(d)は、発振器の出力パ
ルスを示すタイムチャート図である。第1図(a>は進
み信号であるA相を示し、第1図(b)は遅れ信号であ
るB相を示す。
FIGS. 1(a) and 1(b) are time charts showing A-phase and B-phase output waveforms of the positioning device. Figure 1(c)
1 is a time chart diagram showing clock pulses generated from A phase and B phase. FIG. 1(d) is a time chart showing the output pulses of the oscillator. FIG. 1(a) shows the A phase which is a leading signal, and FIG. 1(b) shows the B phase which is a delayed signal.

第1図(c)はクロック・パルス信号であり、このクロ
ック・パルスの数をカウントすることで円盤10(第3
図参照)の回転量が分かる。エンコーダか正常に作動し
ていれば、A相とB相の出力波形の位相差は90度であ
る。NC装置またはプログラマブルコントローラを作動
させ、円盤10が取り付けられているシャツI・を一定
速度で回転させる。測定開始点を0として、A相あるい
はB相のいずれかが変化した時点すなわちT I 、 
TJ。
FIG. 1(c) shows a clock pulse signal, and by counting the number of clock pulses, the disk 10 (third
(see figure) shows the amount of rotation. If the encoder is operating normally, the phase difference between the A-phase and B-phase output waveforms is 90 degrees. The NC device or programmable controller is activated to rotate the shirt I to which the disk 10 is attached at a constant speed. With the measurement starting point as 0, the time when either phase A or phase B changes, that is, T I ,
T.J.

・・・T8を0点からの各経過時間データとをカウント
回路9において計測し、これをA、B相の状態とともに
位置決め装置内のRAM8に記憶させる。
. . . Each elapsed time data from T8 and 0 point is measured in the counting circuit 9, and this is stored in the RAM 8 in the positioning device together with the states of the A and B phases.

第1図(c)に示すクロックは、A相、B相信号の変化
した時点すなわち立ち上がりと立ち下がりの時点でクロ
ック パルスを作ったものである。このクロック・パル
スは、フリップフロップを用いた周知の回路で実現でき
る。したがって、この回路は詳記しない。このクロック
・パルスの信号の時間間隔の計測は次のように行う。ク
ロック・パルスの時間間隔内に発振器9a(第3図参照
)からの発振クロック・パルスがカウント回路9に何個
入るかを数えることによって、クロックパルスの時間間
隔の測定を行う。
In the clock shown in FIG. 1(c), clock pulses are generated at the times when the A-phase and B-phase signals change, that is, at the rising and falling points. This clock pulse can be realized with a well-known circuit using flip-flops. Therefore, this circuit will not be described in detail. The time interval of this clock pulse signal is measured as follows. The time interval of the clock pulses is measured by counting how many oscillating clock pulses from the oscillator 9a (see FIG. 3) enter the counting circuit 9 within the time interval of the clock pulses.

すなわち、クロック・パルスの信号でカウント回路9の
ゲートを制御し、クロック・パルス間隔中の発振器9a
から正確に発信されているパルス数をカウントすること
により、円盤10の回転速度を計測し、これを順次T、
、T2・・・T8とRAMメモリ内に記憶する。同時に
波形の形状も一定時間間隔ごとにサンプリングして取り
込み、RAM5内に記憶しておく。
That is, the clock pulse signal controls the gate of the counting circuit 9, and the oscillator 9a during the clock pulse interval.
The rotational speed of the disk 10 is measured by accurately counting the number of pulses emitted from T,
, T2...T8 and are stored in the RAM memory. At the same time, the shape of the waveform is also sampled and captured at regular time intervals and stored in the RAM 5.

記憶された各経過時間データと、A、B相の波形変化か
らデイスプレィに次のような表示を行う。記憶された前
記の波形変化と、経過時間データとT、、T2・・・T
8の経過時間を時間の長短を問わずに等間隔で表示させ
る。第2図(a)(b)は、その表示例である。すなわ
ち表示された時間軸は、実時間軸と比例させない。この
ため長時間A、B相の変化が生じないシステムにおいて
も、一定の表示範囲で相変化を表示できることになる。
The following display is made from the stored elapsed time data and the waveform changes of the A and B phases. The stored waveform change, elapsed time data and T, , T2...T
To display the elapsed time of 8 at equal intervals regardless of the length of time. FIGS. 2(a) and 2(b) are examples of the display. That is, the displayed time axis is not proportional to the real time axis. Therefore, even in a system in which the A and B phases do not change for a long time, phase changes can be displayed within a fixed display range.

この表示により、円i10、センサ11.12などが正
常に作動しているか否か判断できる。
From this display, it can be determined whether the circle i10, sensors 11, 12, etc. are operating normally.

また、この表示を見ながらセンサ11,12あるいは円
盤10の取付は位置などの調整を容易に行うことができ
る。
Further, while viewing this display, the mounting position of the sensors 11, 12 or the disk 10 can be easily adjusted.

A、B相位置法め制御装置 第3図に示すものは、A、B相位置法め制御装置の機能
ブロック図である。CPU1は、NC装置およびこのA
、B相位置法め制御装置の全体を統括制御するための中
央処理装置である。CPU1には、バス2を介してRO
M3が接続されている。ROM3は、A、B相位置法め
制御装置を駆動し、後記するような表示を行うためのプ
ログラムが記憶保持されている。CBr4には、前記し
た第2図(a>、(b)の波形とT、、T2.・・T8
の経過時間が表示される。
A, B phase positioning control device FIG. 3 is a functional block diagram of the A, B phase positioning control device. CPU1 is connected to the NC device and this A.
, a central processing unit for controlling the entire B-phase positioning control device. CPU1 is connected to RO via bus 2.
M3 is connected. The ROM 3 stores a program for driving the A and B phase positioning control devices and for displaying as will be described later. CBr4 has the waveforms shown in FIG. 2 (a>, (b)) and T, , T2...T8.
The elapsed time is displayed.

(、RTコントローラ5は、CBr4に表示するための
駆動回路である。キーホード6は、A、R相位置法め装
置に入力するための各種キーが装備されたボー1<であ
る。RA M 8は、A相あるいはB相の波形変化およ
びいずれかが変化した時点TL。
(The RT controller 5 is a drive circuit for displaying on the CBr 4. The keyboard 6 is a board 1 equipped with various keys for inputting to the A and R phase positioning device. RAM 8 is the waveform change of the A phase or B phase and the time TL when either one changes.

T2.・・T8の経過時間データおよび波形を記憶して
おくためのものである。カウント回路9は、デジタルカ
ウンタであり円盤]OのA相、B相の信号をセンサ11
,12から受は取り、カウントするためのものである。
T2. ...This is for storing the elapsed time data and waveform of T8. The count circuit 9 is a digital counter and outputs the A-phase and B-phase signals of the disc] O to the sensor 11.
, 12 is for taking and counting.

カウント回路9は、センサ1.1.12がらA相、B相
の出力出力信号を受は取り、内蔵したフリップフロップ
を用いた回路により前記したようなりロック・パルス信
号を作る(第1図(c)参照)。更に、カラン1−回i
9は、このクロックパルス信号の時間間隔内に発振器9
aがらの発振クロック・パルスが何個入るか数えてクロ
ック・パルス信号間の時間間隔を測定する。
The count circuit 9 receives and receives the A-phase and B-phase output signals from the sensors 1, 1, and 12, and generates a lock pulse signal as described above using a circuit using built-in flip-flops (see Fig. 1). c). Furthermore, Karan 1-times i
9 is the oscillator 9 within the time interval of this clock pulse signal.
The time interval between clock pulse signals is measured by counting how many oscillation clock pulses are received.

本実施例のセンサ11,12は、円盤]0に設けられた
突起13を検出してA相、B相の波形を出力させる。更
に、A相、B相の出力信号は、入カポ−I−14を介し
てバス2に入力される。駆動部15は、円盤10を回転
駆動するためのモータなどの駆動手段または被駆動手段
に連結されている。駆動部]5は、出カポ−1〜]6を
介して右回転、左回転などの駆動指令が発せられる。
The sensors 11 and 12 of this embodiment detect the protrusion 13 provided on the disc]0 and output A-phase and B-phase waveforms. Furthermore, the A-phase and B-phase output signals are input to the bus 2 via the input capo-I-14. The drive unit 15 is connected to drive means or driven means such as a motor for rotationally driving the disc 10 . Drive commands such as clockwise rotation and counterclockwise rotation are issued to the drive unit ]5 via the output capos 1 to ]6.

A、B相位置法め装 の動作フロー 第4図(a)は、NC装置内に設けられたA。Operation flow of A and B phase position method FIG. 4(a) shows A provided in the NC device.

B相位置法め制御装置がA、B相を測定し、NC装置の
CBr4に表示するための動作の概要を示す動作フロー
図である。測定を開始すると、RAM5内のタイマーを
イニシャライズする(Sl)。測定時間内、すなわちセ
ットされたサンプリングの時間内であれば、AまたはB
相の入力に変化があるか否かを判断しくS3)、変化が
あればその変化時間をカウント回路9で発振器9aから
発せられる発振クロック・パルスの数でカウントし、そ
の数および波形データをRA、 M 8にストアして置
< (S4 )。この測定した数が、設定数に達してい
れば(S5)、第2図(a)、(b)に示すように、ク
ロック・パルスの間隔に関係なく測定結果をCBr4に
表示する(S6)。
FIG. 3 is an operation flow diagram showing an outline of an operation for the B-phase position measurement control device to measure the A and B phases and display them on CBr4 of the NC device. When measurement starts, a timer in RAM 5 is initialized (Sl). A or B within the measurement time, that is, within the set sampling time
To judge whether there is a change in the phase input (S3), if there is a change, the change time is counted by the number of oscillation clock pulses emitted from the oscillator 9a in the counting circuit 9, and the number and waveform data are sent to the RA. , store it in M8 (S4). If the measured number reaches the set number (S5), the measurement result is displayed on the CBr4 regardless of the clock pulse interval as shown in Figure 2 (a) and (b) (S6). .

しその他の実施例コ 前記実施例は、円盤10に設けた突起13を近接センサ
11,12により誘電式に検出し、出力波形を得るもの
であったがこれに限定されるものではない。円盤にスリ
ットを設けて、このスリットに光を透過させるタイプの
光電スイッチ方式または磁気を検出する磁気スイッチ方
式など他の方式にも適用できる。また、アブソリュート
型、インクリメンタル型のいずれにもこの発明は適用で
きる。
Other Embodiments In the embodiment described above, the protrusion 13 provided on the disc 10 is detected in an inductive manner using the proximity sensors 11 and 12 to obtain an output waveform, but the present invention is not limited thereto. It can also be applied to other methods such as a photoelectric switch method in which a slit is provided in a disk and light is transmitted through the slit, or a magnetic switch method in which magnetism is detected. Further, the present invention is applicable to both absolute type and incremental type.

[発明の効果] 以上詳記したように、この発明のA、B相のセンサーや
ドックの取付は位置などの調整は、機械装置を一定の速
度で動かし、その時のA、Bの波形をオシロなどで観察
して、波形のタイミング、割れの有無などを確認してい
たが、これらの作業が、NC装置上で行え、別途測定器
を接続することなく達成できる。
[Effects of the Invention] As detailed above, in order to adjust the position of the A and B phase sensors and docks of this invention, the mechanical device is moved at a constant speed, and the A and B waveforms at that time are measured using an oscilloscope. The timing of the waveform and the presence or absence of cracks were checked by observing the waveform using a computer, etc., but these tasks can be performed on an NC device and can be accomplished without connecting a separate measuring device.

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

第1図(a)、(1))は位置決め装置の実際の波形の
例を示す図、第1図(c)はクロック図信号のタイムチ
ャート図、第1図(d)は発振クロックを図示するタイ
ムチャー1〜図、第2図(a)、(b)はCRTに表示
する波形を示ずタイムチャー1〜図、第3図はA、B相
位方決め装置の機能ブロック図、第4図はA、B相位方
決め装置の動作を示すフロー図である。 1・・・CPU、3・・・ROM、4・・・CRT、5
・・・OR,Tコントローラ、6・・・キーボード、8
・・・RAM、9・・・カランI・回路、10・・・円
盤、11.12・・センサ、14・・・入力ボート、1
5・・・駆動部、16・・出力ボート
Figures 1 (a) and (1)) are diagrams showing examples of actual waveforms of the positioning device, Figure 1 (c) is a time chart diagram of a clock signal, and Figure 1 (d) is a diagram showing an oscillation clock. Time charts 1 to 1, and Figures 2 (a) and (b) do not show the waveforms displayed on the CRT. The figure is a flow diagram showing the operation of the A and B phase determining device. 1...CPU, 3...ROM, 4...CRT, 5
...OR, T controller, 6...keyboard, 8
...RAM, 9...Karan I circuit, 10...Disk, 11.12...Sensor, 14...Input board, 1
5... Drive unit, 16... Output boat

Claims (1)

【特許請求の範囲】 1、NC工作機械を構成する要素の位置決め装置と、こ
の位置決め装置から出力される第1の相の第1出力信号
と、前記位置決め装置から出力され前記第1出力信号と
位相が異なる第2の相の第2出力信号と、前記第1およ
び第2出力信号の波形変化を検知し、その検知された経
過時間を一時記憶手段に記憶し、前記経過時間の大小に
関係なく一定幅に前記第1および第2出力信号を表示手
段に表示し、前記位置決め装置を調整する工作機械の位
置決め装置の出力波形の相位置決め方法。 2、請求項1において、前記表示手段は前記NC工作機
械を制御するNC装置のための表示手段であることを特
徴とする工作機械の位置決め装置の出力波形の相位置決
め方法。
[Claims] 1. A positioning device for an element constituting an NC machine tool, a first output signal of a first phase output from the positioning device, and a first output signal output from the positioning device. Detecting waveform changes of a second output signal of a second phase having different phases and the first and second output signals, storing the detected elapsed time in a temporary storage means, and determining whether the detected elapsed time is related to the magnitude of the elapsed time. A method for positioning a phase of an output waveform of a positioning device of a machine tool, the method comprising: displaying the first and second output signals on a display means with a constant width, and adjusting the positioning device. 2. A method for positioning a phase of an output waveform of a positioning device for a machine tool according to claim 1, wherein the display means is a display means for an NC device that controls the NC machine tool.
JP22667490A 1990-08-30 1990-08-30 Method for positioning phase of waveform outputted from machine tool positioning device Pending JPH04109319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22667490A JPH04109319A (en) 1990-08-30 1990-08-30 Method for positioning phase of waveform outputted from machine tool positioning device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22667490A JPH04109319A (en) 1990-08-30 1990-08-30 Method for positioning phase of waveform outputted from machine tool positioning device

Publications (1)

Publication Number Publication Date
JPH04109319A true JPH04109319A (en) 1992-04-10

Family

ID=16848881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22667490A Pending JPH04109319A (en) 1990-08-30 1990-08-30 Method for positioning phase of waveform outputted from machine tool positioning device

Country Status (1)

Country Link
JP (1) JPH04109319A (en)

Similar Documents

Publication Publication Date Title
KR930008332B1 (en) Spindle position and speed control device
JP3234177B2 (en) Position control device
US4831510A (en) Encoder and resolver signal processing circuit
NO842324L (en) AUTOMATIC, DYNAMIC ERROR COMPENSATOR
KR830000030B1 (en) Numerical control resolver position measuring device
EP0779131A1 (en) Method and apparatus for torque wrench non-contact angle measurement
US4710770A (en) Phase modulation type digital position detector
JPH04109319A (en) Method for positioning phase of waveform outputted from machine tool positioning device
GB2073880A (en) Digital measuring instrument
JPH0565827B2 (en)
JPH0638593A (en) Indicating instrument
JPS6110715A (en) Absolute-position detecting system
JP3401971B2 (en) Digital servo device
JP3201238B2 (en) Speed detector
JPH09179630A (en) Method and device for detecting original point of pulse motor
JPS61173162A (en) Velocity detecting circuit
JPS6234210A (en) Detector for original point position
JPH0839298A (en) Slide stop time measuring instrument of press machine
SU654907A1 (en) Rotational speed measuring device
SU1264340A1 (en) Device for measuring shaft turn angle
JPS62163108A (en) Original point resetting system for numerical controller
JPH0283708A (en) Setting method for coordinate original point of traveling object
JPH06230019A (en) Position/speed detecting circuit
JPH0669730U (en) RPM detector
JPH0469079A (en) Apparatus for sensing motor speed