JPH074649Y2 - Numerical control device - Google Patents

Numerical control device

Info

Publication number
JPH074649Y2
JPH074649Y2 JP10749587U JP10749587U JPH074649Y2 JP H074649 Y2 JPH074649 Y2 JP H074649Y2 JP 10749587 U JP10749587 U JP 10749587U JP 10749587 U JP10749587 U JP 10749587U JP H074649 Y2 JPH074649 Y2 JP H074649Y2
Authority
JP
Japan
Prior art keywords
pulse
deviation
work
output
angle
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
JP10749587U
Other languages
Japanese (ja)
Other versions
JPS6413520U (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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor 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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP10749587U priority Critical patent/JPH074649Y2/en
Publication of JPS6413520U publication Critical patent/JPS6413520U/ja
Application granted granted Critical
Publication of JPH074649Y2 publication Critical patent/JPH074649Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Control Of Position Or Direction (AREA)

Description

【考案の詳細な説明】 (産業上の利用分野) 本考案は、たとえば、工作機械等において、ワーク等の
移動量を角度によって指令し、当該ワーク等を所定の角
度に設定するようにした数値制御装置に関する。
[Detailed Description of the Invention] (Industrial field of application) The present invention is, for example, in a machine tool or the like, a numerical value for commanding the movement amount of a work or the like by an angle and setting the work or the like at a predetermined angle. Regarding the control device.

(従来の技術) 近年、時代の要請による生産ラインの自動化、省力化に
伴い、たとえば、従来熟練工によって行なわれていた精
密部品の組立て、生産加工の分野においても、NC工作機
械が導入されるに至り、これらの分野における作業も人
手によらず比較的容易に行なわれるようになった。
(Prior Art) In recent years, with the automation and labor saving of production lines due to the demands of the times, NC machine tools are introduced even in the fields of assembling precision parts and production processing, which were conventionally performed by skilled workers. In addition, work in these fields has become relatively easy to perform without human intervention.

このNC工作機械にあっては、ワークの高精度位置決めが
高精度加工を行なう上での重要な要素になっていること
から、その位置決めを行なう制御装置は第5図に示すよ
うに構成され、高精度の加工が可能なようになってい
る。
In this NC machine tool, since high-precision positioning of the work is an important element for performing high-precision machining, the control device for performing the positioning is configured as shown in FIG. High precision machining is possible.

同図に示すように、ワーク3の必要移動角度θとその回
転方向とを選択するセレクタ10には、ワーク3における
複数の必要移動角データを格納した回転角記憶部16か
ら、前記セレクタ10によって選択された所定の必要移動
角データを取出す回転角取出部17が接続されており、こ
の回転角取出部17には、回転角記憶部16から取り出され
た必要移動角度θを、その角度に応じた指令パルスDに
変換するパルス変換部18が接続されている。
As shown in the figure, the selector 10 for selecting the required movement angle θ of the workpiece 3 and the rotation direction thereof is stored in the rotation angle storage unit 16 storing a plurality of required movement angle data of the workpiece 3 by the selector 10. A rotation angle extraction unit 17 for extracting the selected predetermined required movement angle data is connected to the rotation angle extraction unit 17, and the required movement angle θ extracted from the rotation angle storage unit 16 is determined according to the angle. A pulse converter 18 for converting the command pulse D into the command pulse D is connected.

一方、モータ6には、位置決めされるワーク3が図示し
ない駆動機構を介して接続されると共に、このモータ6
の一回転当りBパルス(例えば、1000あるいは2000パル
ス)を発生するパルスジェネレータ9が設けられてい
る。
On the other hand, the work 6 to be positioned is connected to the motor 6 via a drive mechanism (not shown), and
A pulse generator 9 for generating B pulses (for example, 1000 or 2000 pulses) per one rotation is provided.

このパルスジェネレータ9と前記したパルス変換部18
は、パルス変換部18から出力された指令パルスDとパル
スジェネレータ9から出力される帰還パルスPkとの差で
ある偏差パルスPcを算出する偏差レジスタ19に接続され
ている。
This pulse generator 9 and the above-mentioned pulse converter 18
Is connected to a deviation register 19 which calculates a deviation pulse Pc which is the difference between the command pulse D output from the pulse converter 18 and the feedback pulse Pk output from the pulse generator 9.

偏差レジスタ19には、偏差レジスタ19において算出され
た偏差パルスPcを電圧値に変換するD/A変換部20が接続
されており、D/A変換部20には、前記モータ6を作動さ
せるサーボアンプ15が接続されている。
The deviation register 19 is connected with a D / A conversion section 20 for converting the deviation pulse Pc calculated in the deviation register 19 into a voltage value. The D / A conversion section 20 has a servo for operating the motor 6. Amplifier 15 is connected.

このように構成された従来の数値制御装置の動作を第6
図に示す動作フローチャートに基づいて説明する。
The operation of the conventional numerical control device thus configured is
Description will be made based on the operation flowchart shown in the figure.

まず、ワーク3の必要移動角度θとその回転方向とがセ
レクタ10により選択される。この選択が成されると、回
転角取出部17は、回転角記憶部16に記憶されている必要
移動角データの中から選択されたデータを読み出して指
令値Aとする(ステップ1)。次に、パルス変換部18
は、指令値Aに対応する指令パルスDに変換する演算を
行う。この指令パルスDは、偏差レジスタ19に送られる
(ステップ2)。
First, the required movement angle θ of the work 3 and its rotation direction are selected by the selector 10. When this selection is made, the rotation angle extraction unit 17 reads out the data selected from the required movement angle data stored in the rotation angle storage unit 16 and sets it as the command value A (step 1). Next, the pulse converter 18
Performs a calculation for converting into a command pulse D corresponding to the command value A. This command pulse D is sent to the deviation register 19 (step 2).

そして、偏差レジスタ19は、パルスジェネレータ9から
逐次送られてくる帰還パルスPkを入力し(ステップ
3)、指令パルスDと帰還パルスPkとの減算を行ない、
偏差パルスPcを算出する(ステップ4)。偏差レジスタ
19は、ステップ4における演算の結果、偏差パルスPcが
ゼロでなければステップ6の処理をし、偏差パルスPcが
ゼロならばステップ9の処理をする(ステップ5)。
Then, the deviation register 19 receives the feedback pulses Pk sequentially sent from the pulse generator 9 (step 3), subtracts the command pulse D from the feedback pulse Pk,
The deviation pulse Pc is calculated (step 4). Deviation register
In step 19, if the deviation pulse Pc is not zero as a result of the calculation in step 4, the process of step 6 is performed, and if the deviation pulse Pc is zero, the process of step 9 is performed (step 5).

D/A変換部20は、偏差パルスPcを、この偏差パルスPcに
対応する電圧値VCに変換し(ステップ6)、サーボアン
プ15は、この電圧値VCを増幅してモータ6に印加する
(ステップ7)。そして、モータ6はこの印加電圧に応
じた速度で回転し、ワーク3を回転させる。このとき
に、パルスジェネレータ9は、モータ6の回転角度に対
応する帰還パルスPkを発生し、この帰還パルスPkは偏差
レジスタ19にフィードバックされる(ステップ8)。
The D / A converter 20 converts the deviation pulse Pc into a voltage value V C corresponding to the deviation pulse Pc (step 6), and the servo amplifier 15 amplifies this voltage value V C and applies it to the motor 6. (Step 7). Then, the motor 6 rotates at a speed according to the applied voltage to rotate the work 3. At this time, the pulse generator 9 generates a feedback pulse Pk corresponding to the rotation angle of the motor 6, and this feedback pulse Pk is fed back to the deviation register 19 (step 8).

一方、ステップ4において算出される偏差パルスPcが偏
差レジスタ19においてゼロであると判断されると、サー
ボアンプ15の出力電圧はゼロとなり、モータ6は停止す
る(ステップ9)。
On the other hand, when the deviation pulse Pc calculated in step 4 is judged to be zero in the deviation register 19, the output voltage of the servo amplifier 15 becomes zero and the motor 6 stops (step 9).

このようにして、ワーク3をセレクタ10によって設定さ
れた角度に設定するようになっている。
In this way, the work 3 is set to the angle set by the selector 10.

(考案が解決しようとする問題点) しかして、前述したような従来の数値制御装置にあって
は、セレクタ10によって設定したワーク3の必要移動角
度θとこのワーク3が実際に設定される角度θ′との間
に誤差εが発生するという問題点がある。
(Problems to be solved by the invention) In the conventional numerical control device as described above, however, the required movement angle θ of the work 3 set by the selector 10 and the angle at which the work 3 is actually set. There is a problem that an error ε is generated between it and θ ′.

すなわち、従来では、コストが安価であること、入手が
容易であること等の理由により、モータ6一回転当りに
発生するパルス数が500〜2,000パルス程度の分解能のパ
ルスジェネレータ9が使用されているが、例えば、モー
タ6一回転当りに1000パルス発生するパルスジェネレー
タ9を使用した場合には、この分解能は、1000パルス/3
60度=2.777パルス/度となり、セレクタ10によってワ
ーク3を60度回転させる選択をすると、パルス変換部18
は、偏差レジスタ19に2.777……×60=166.666……パル
スを出力しなればならないことになるが、小数点以下の
端数パルスは偏差レジスタ19へ出力されない為に、偏差
レジスタ19へは166パルスが出力されることになり、こ
の切り捨てられた端数パルスがワーク3の実際の設定角
度に誤差を生じさせることになる。
That is, conventionally, the pulse generator 9 having a resolution of about 500 to 2,000 pulses generated per one rotation of the motor 6 is used for reasons such as low cost and easy availability. However, for example, when the pulse generator 9 that generates 1000 pulses per one rotation of the motor 6 is used, this resolution is 1000 pulses / 3
60 degrees = 2.777 pulses / degree, and when the workpiece 10 is selected to rotate by 60 degrees, the pulse conversion unit 18
Must output 2.777 ... × 60 = 166.666 ... pulses to the deviation register 19, but since the fractional pulse below the decimal point is not output to the deviation register 19, 166 pulses are sent to the deviation register 19. As a result, the truncated fractional pulse causes an error in the actual set angle of the work 3.

この誤差は、ワーク3への移動指令が繰り返しなされる
と、累積的に大きな誤差となり、この誤差によりワーク
3の精密加工ができなくなる虞れがある。このような不
具合を除くために、例えば、モータ6一回転当りに360
°の所定の整数倍のパルスを発生するパルスジェネレー
タを使用すれば、パルス変換部18における角度からパル
スへの変換の際の端数パルスの発生は防止できるが、こ
のようなパルスジェネレータは量産品にはない為特別注
文となり、入手コストが高くなる(通常の2〜3倍)と
いう別の問題点が発生してしまう。
This error becomes a cumulatively large error when the movement command to the work 3 is repeated, and there is a possibility that the precision machining of the work 3 cannot be performed due to this error. In order to eliminate such problems, for example, 360 revolutions per revolution of the motor 6
If a pulse generator that generates a pulse of a predetermined integer multiple of ° is used, it is possible to prevent the generation of a fractional pulse at the time of conversion from an angle to a pulse in the pulse conversion unit 18, but such a pulse generator is a mass-produced product. Since it is not available, it will be a special order, and another problem will occur that the acquisition cost will be high (2 to 3 times higher than usual).

本考案は、上記不具合に鑑みて成されたもので、既設の
装置によって、その指令値にしたがって、ワークを所定
の角度に高精度で設定することができる数値制御装置を
提供することを目的とする。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a numerical control device capable of highly accurately setting a workpiece at a predetermined angle according to a command value of the existing device. To do.

(問題点を解決するための手段) 上記目的を達成するための本考案は、ワークの必要移動
角度[θ]を設定する設定手段と、前記ワークを駆動す
る駆動手段と、前記駆動手段一回転当り[B]パルスを
出力するパルス発生手段と、前記駆動手段の回転量に応
じて当該パルス発生手段から出力されたパルスを、B及
び360の公倍数をBで割った値[C]倍して出力する逓
倍手段と、前記設定手段によって設定された前記ワーク
の必要移動角度[θ]に相当する指令パルス[D]を、
B・C・θ/360を計算することによって出力する変換手
段と、前記変換手段から出力された指令パルス[D]か
ら前記逓倍手段から出力されるパルス[Pk]を逐次減算
し、偏差パルス[Pc]を算出する偏差パルス算出手段
と、当該偏差パルス算出手段によって算出された偏差パ
ルス[Pc]に応じて前記駆動手段の作動を制御する制御
手段とを有することを特徴とするものである。
(Means for Solving the Problems) The present invention for achieving the above-mentioned object includes a setting means for setting a necessary movement angle [θ] of a work, a driving means for driving the work, and one rotation of the driving means. A pulse generator that outputs a hit [B] pulse and a pulse that is output from the pulse generator according to the rotation amount of the drive unit are multiplied by a value [C] obtained by dividing the common multiple of B and 360 by B. A multiplying means for outputting, and a command pulse [D] corresponding to the required movement angle [θ] of the work set by the setting means,
The conversion means that outputs by calculating B.C..theta. / 360 and the command pulse [D] output from the conversion means are successively subtracted from the pulse [Pk] output from the multiplication means to obtain a deviation pulse [ Pc] is calculated by the deviation pulse calculating means, and the control means controls the operation of the driving means according to the deviation pulse [Pc] calculated by the deviation pulse calculating means.

(作用) 第1図に基づいて本考案の作用を説明する。まず、設定
手段23において設定された必要移動角度θは、変換手段
18によってB・C・θ/360の計算が行なわれ、所定の指
定パルスDに変換される。そして、この指令パルスDは
偏差パルス算出手段19に出力される。
(Operation) The operation of the present invention will be described with reference to FIG. First, the required movement angle θ set by the setting means 23 is converted by the converting means.
Calculation of B.C..theta. / 360 is performed by 18 and converted into a predetermined designated pulse D. Then, the command pulse D is output to the deviation pulse calculating means 19.

一方、パルス発生手段9において出力された帰還パルス
Pkが逓倍手段21においてC倍されて、偏差パルス算出手
段19に出力される。
On the other hand, the feedback pulse output from the pulse generating means 9
Pk is multiplied by C in the multiplication means 21 and output to the deviation pulse calculation means 19.

偏差パルス算出手段19は、変換手段18によって変換され
た指令パルスDと逓倍手段21から逐次出力される帰還パ
ルスPk′との差を演算し、偏差パルスPcを算出し、この
偏差パルスPcを制御手段24に出力する。なお、この偏差
パルスPcを算出する際には、逓倍手段21から逐次出力さ
れる帰還パルスPk′と変換手段18によって変換された指
令パルスDとは、整合を取られているので、偏差パルス
Pcのカウント値は常に整数パルスとなり端数パルスが生
じることはない。
The deviation pulse calculation means 19 calculates the difference between the command pulse D converted by the conversion means 18 and the feedback pulse Pk ′ sequentially output from the multiplication means 21, calculates the deviation pulse Pc, and controls this deviation pulse Pc. Output to the means 24. When the deviation pulse Pc is calculated, the feedback pulse Pk 'sequentially output from the multiplying means 21 and the command pulse D converted by the converting means 18 are matched with each other.
The count value of Pc is always an integer pulse and no fractional pulse occurs.

したがって、制御手段24は、前記端数パルスを含まない
整数パルスである偏差パルスのカウント値に応じて駆動
手段6の回転角度、回転方向及び回転速度を制御してワ
ーク3の位置決めを行なうので、ワーク3の位置決めを
行う場合に生じる、指令位置と実際に設定される位置と
の誤差を防止することができる。
Therefore, the control means 24 positions the work 3 by controlling the rotation angle, the rotation direction and the rotation speed of the drive means 6 according to the count value of the deviation pulse which is an integer pulse not including the fraction pulse. It is possible to prevent an error between the commanded position and the actually set position, which occurs when the positioning of No. 3 is performed.

(実施例) 次に、本考案に係る一実施例を図面に基づいて詳細に説
明する。
(Embodiment) Next, an embodiment according to the present invention will be described in detail with reference to the drawings.

第2図には、ワークの移動距離を角度によって指令して
ワークの位置決め制御を行う数値制御装置の概略構成図
が示されている。
FIG. 2 shows a schematic configuration diagram of a numerical control device that commands the movement distance of a work by an angle to control the positioning of the work.

同図に示すように、筐体1上には、円盤形状のテーブル
2が回動可能に設けられており、このテーブル2上にワ
ーク3を固定してテーブル2と共にワーク3が回転する
ようになっている。テーブル2の中心部にはテーブル支
持軸4がテーブル2に対して垂直に取付けられており、
また、テーブル支持軸4にはウォーム歯車5が固着され
ている。ウォーム歯車5はモータ6の駆動軸7に設けら
れたウォーム8と噛み合っており、モータ6の回転力を
テーブル2へ伝えるようになっている。モータ6には、
この駆動軸7の回転角度に応じたパルスを発生するパル
ス発生手段としてのパルスジェネレータ9が取り付けら
れている。上記部材より成る本考案に係る装置の筐体1
は、実際には、直交する2軸方向への位置決めを行うX
−Yテーブル上に固定されており、XとYとの2軸方向
とテーブル2の回転軸方向との3軸方向にワーク3を位
置決めできるようになっている。このモータ6は、図示
するような制御部に接続されており、この制御部は次の
ように構成されている。
As shown in the figure, a disk-shaped table 2 is rotatably provided on the housing 1, and a work 3 is fixed on the table 2 so that the work 3 rotates together with the table 2. Has become. A table support shaft 4 is attached to the center of the table 2 perpendicularly to the table 2,
A worm gear 5 is fixed to the table support shaft 4. The worm gear 5 meshes with the worm 8 provided on the drive shaft 7 of the motor 6, and transmits the rotational force of the motor 6 to the table 2. The motor 6 has
A pulse generator 9 is installed as a pulse generating means for generating a pulse according to the rotation angle of the drive shaft 7. A casing 1 of an apparatus according to the present invention, which is composed of the above-mentioned members
Is actually X which performs positioning in two orthogonal directions.
-Y is fixed on the table so that the work 3 can be positioned in the three axial directions of the two axial directions of X and Y and the rotational axis direction of the table 2. The motor 6 is connected to a control unit as shown in the figure, and the control unit is configured as follows.

ワーク3の必要移動角度θを選択する設定手段としての
セレクタ10は、入出力インターフェース11に接続されて
いる。入出力インターフェース11には、CPU12が接続さ
れ、また、CPU12には、プログラム等を格納するROM13と
データ等を格納するRAM14とが接続されている。さら
に、入出力インターフェース11には、これを介して入力
した電圧を増幅するサーボアンプ15が接続され、また、
サーボアンプ15には駆動手段としてのモータ6が接続さ
れている。そして、モータ6に内蔵され、その回転角度
に応じたパルスを発生するパルスジェネレータ9も入出
力インターフェース11に接続しており、これにより、モ
ータ6の回転角度をCPU12へフィードバックしている。
The selector 10 as a setting means for selecting the required movement angle θ of the work 3 is connected to the input / output interface 11. A CPU 12 is connected to the input / output interface 11, and a ROM 13 for storing programs and the like and a RAM 14 for storing data and the like are connected to the CPU 12. Further, the input / output interface 11 is connected with a servo amplifier 15 that amplifies the voltage input via the input / output interface 11, and
The servo amplifier 15 is connected to a motor 6 as a driving means. A pulse generator 9 which is built in the motor 6 and generates a pulse according to the rotation angle of the motor 6 is also connected to the input / output interface 11, and the rotation angle of the motor 6 is fed back to the CPU 12.

次いで、第3図には、前述した制御部周辺のブロック図
が示してある。
Next, FIG. 3 shows a block diagram around the control unit described above.

同図に示すように、ワーク3の必要移動角度とその回転
方向とを選択するセレクタ10には、ワーク3における複
数の必要移動角データを格納した回転角記憶部16から、
前記セレクタ10によって選択された所定の必要移動角デ
ータを取出す回転角取出部17が接続されており、この回
転角取出部17には、回転角記憶部16から取り出された必
要移動角度θを、その角度に応じた指令パルスDに変換
する変換手段としてのパルス変換部18が接続されてい
る。なお、このセレクタ10,回転角記憶部16及び回転角
取出部17によって設定手段23を構成している。
As shown in the figure, the selector 10 for selecting the required movement angle of the work 3 and the rotation direction thereof includes a rotation angle storage unit 16 storing a plurality of required movement angle data of the work 3,
A rotation angle extraction unit 17 for extracting the predetermined required movement angle data selected by the selector 10 is connected, and the rotation angle extraction unit 17 stores the required movement angle θ extracted from the rotation angle storage unit 16, A pulse converter 18 is connected as a converter for converting the command pulse D according to the angle. The selector 10, the rotation angle storage unit 16, and the rotation angle extraction unit 17 constitute setting means 23.

一方、モータ6には、位置決めされるワーク3が図示し
ない駆動機構を介して接続されると共に、このモータ6
の一回転当りBパルス(例えば、1000あるいは2000パル
ス)を発生するパルスジェネレータ9が設けられてい
る。
On the other hand, the work 6 to be positioned is connected to the motor 6 via a drive mechanism (not shown), and
A pulse generator 9 for generating B pulses (for example, 1000 or 2000 pulses) per one rotation is provided.

このパルスジェネレータ9には、ここから出力される帰
還パルスPkを所定倍して出力する逓倍手段としての逓倍
部21が接続されており、この逓倍部21とパルス変換部18
は、偏差パルス算出手段としての偏差レジスタ19に接続
されている。
The pulse generator 9 is connected with a multiplication unit 21 as a multiplication unit for multiplying the feedback pulse Pk output from the pulse generator 9 by a predetermined number and outputting the feedback pulse Pk. The multiplication unit 21 and the pulse conversion unit 18 are connected.
Is connected to a deviation register 19 as deviation pulse calculating means.

また、偏差レジスタ19には、ここで算出された偏差パル
スPcを所定倍率に分周する分周部22が接続されており、
分周部22には、分周部22において分周後の偏差パルスP
k′を電圧値に変換するD/A変換部20が接続され、また、
D/A変換部20にはサーボアンプ15が接続されている。な
お、分周部22、D/A変換部20及びサーボアンプ15によっ
て制御手段24を構成している。
Further, the deviation register 19 is connected to a frequency divider 22 that divides the deviation pulse Pc calculated here into a predetermined magnification,
The frequency divider 22 includes a deviation pulse P after frequency division by the frequency divider 22.
A D / A converter 20 for converting k ′ into a voltage value is connected, and
The servo amplifier 15 is connected to the D / A converter 20. The frequency dividing section 22, the D / A converting section 20, and the servo amplifier 15 constitute the control means 24.

このように構成したワークの数値制御装置の動作を第4
図に示す動作フローチャートに基づいて説明する。
The operation of the work numerical control apparatus configured as described above is described in the fourth section.
A description will be given based on the operation flowchart shown in the figure.

まず、ワーク3の必要移動角度θと回転方向との指令値
がセレクタ10により選択される。回転角取出部17は、回
転角記憶部16より前記指令値を読み出して指令値Aとす
る(ステップ10)。パルス変換部18は、指令値Aに対応
する指令パルス数Dに変換する演算を行う(ステップ1
1)。ここで、指令値Aを指令パルスDに変換する演算
について説明する。まず、セレクタ10によって選択する
ことのできる角度の最小単位をa度とし、テーブル2一
回転当りにパルスジェネレータ9が発生するパルス数を
Bパルスとする。次に、テーブル2の1パルス当りの分
割数をNとすると、Nは次式により算出される。
First, the selector 10 selects command values for the required movement angle θ and the rotation direction of the work 3. The rotation angle extraction unit 17 reads the command value from the rotation angle storage unit 16 and sets it as the command value A (step 10). The pulse converter 18 performs an operation of converting the command value A into a command pulse number D corresponding to the command value A (step 1
1). Here, the calculation for converting the command value A into the command pulse D will be described. First, the minimum unit of the angle that can be selected by the selector 10 is a degrees, and the number of pulses generated by the pulse generator 9 per one rotation of the table 2 is B pulses. Next, assuming that the number of divisions per pulse in Table 2 is N, N is calculated by the following equation.

N=360/a さらに、テーブル2一回転当りにパルスジェネレータ9
が発生するパルス数Bとテーブル2の分割数Nとの最小
公倍数を算出して、その算出結果をEとする。そして、
セレクタ10によって選択された必要移動角度をθ度と
し、指令パルスをDした時の前記両者の関係は次式のよ
うに表わされる。
N = 360 / a Furthermore, the pulse generator 9 per one rotation of the table 2
Is calculated and the least common multiple of the number of pulses B generated by and the number N of divisions of the table 2 is calculated, and the calculation result is set to E. And
When the required movement angle selected by the selector 10 is θ degrees and the command pulse is D, the relationship between the two is expressed by the following equation.

D=θ・E/N このようにして算出された指令パルスDがRAM14の所定
アドレスに格納される。また、逓倍器21を介して出力さ
れた帰還パルスPk′もRAM14の所定アドレスに格納され
る(ステップ12)。偏差レジスタ19は、ステップ11,12
においてRAM14の所定アドレスに格納された指令パルス
Dと帰還パルスPk′とを読み出して、偏差パルスPcを算
出する演算を行う(ステップ13)。ステップ13における
演算の結果、偏差レジスタ19が、偏差パルスPcはゼロで
あると判断した場合にはステップ20へ進みモータを停止
させ、一方、偏差パルスPcはゼロでないと判断した場合
には、ステップ15へ進む(ステップ14)。次に、分周部
22は、偏差パルスPcを所定倍率に分周して(ステップ1
5)、D/A変換部20は、この分周後のパルスPc′に対応す
る電圧値VCに変換する演算を行う(ステップ16)。ステ
ップ16において演算された電圧値VCは、サーボアンプ15
によって増幅されて電圧値VDとなる(ステップ17)。電
圧値VDがモータ6に印加されると、モータ6は印加電圧
に応じた速度で駆動を開始してテーブル2を回動させ、
指令された必要移動角度θと回転方向とに基づいてワー
ク3を駆動する。一方、パルスジェネレータ9は、モー
タ6の回転角と回転方向とに対応する帰還パルスPkを発
生させる(ステップ18)。逓倍部21は、帰還パルスPkを
所定倍率に逓倍して(ステップ19)、この逓倍後の帰還
パルスPk′を偏差レジスタ19へフィードバックする。こ
こで、逓倍部21と分周部22とのそれぞれの逓倍或いは分
周の所定倍率について説明する。
D = θ · E / N The command pulse D calculated in this manner is stored in a predetermined address of the RAM 14. Further, the feedback pulse Pk 'output via the multiplier 21 is also stored in a predetermined address of the RAM 14 (step 12). The deviation register 19 is set in steps 11 and 12.
At step S13, the command pulse D and the feedback pulse Pk 'stored in the RAM 14 at a predetermined address are read out, and the deviation pulse Pc is calculated (step 13). As a result of the calculation in step 13, the deviation register 19 proceeds to step 20 when the deviation pulse Pc is determined to be zero, and stops the motor, while the deviation register Pc is determined to be not zero, the step Proceed to step 15 (step 14). Next, the frequency division
In step 22, the deviation pulse Pc is divided by a predetermined magnification (step 1
5), the D / A converter 20 performs an operation for converting the voltage value V C corresponding to the pulse Pc ′ after the frequency division (step 16). The voltage value V C calculated in step 16 is the servo amplifier 15
Is amplified to a voltage value V D (step 17). When the voltage value V D is applied to the motor 6, the motor 6 starts driving at a speed according to the applied voltage to rotate the table 2,
The work 3 is driven based on the commanded required movement angle θ and the rotation direction. On the other hand, the pulse generator 9 generates the feedback pulse Pk corresponding to the rotation angle and the rotation direction of the motor 6 (step 18). The multiplication unit 21 multiplies the feedback pulse Pk to a predetermined multiplication factor (step 19), and feeds back the feedback pulse Pk ′ thus multiplied to the deviation register 19. Here, the respective predetermined multiplication or division ratios of the multiplication unit 21 and the frequency division unit 22 will be described.

まず、逓倍部21の逓倍率T1について述べると、これは、
指令パルスDと帰還パルスPkとの角度に対する発生パル
ス数を整合させるための倍率であり、次のように定めら
れる。
First, the multiplication rate T1 of the multiplication unit 21 will be described as follows.
It is a magnification for matching the number of generated pulses with respect to the angle between the command pulse D and the feedback pulse Pk, and is determined as follows.

T1=E/B ただし、Bはテーブル2一回転当りにパルスジェネレー
タ9が発生するパルス数、Nはテーブル2の分割数であ
り、EはBとNとの最小公倍数である。また、帰還パル
スPkはモータ6の回転角度をa′度とすると次式のよう
に算出される。
T1 = E / B where B is the number of pulses generated by the pulse generator 9 per one rotation of the table 2, N is the number of divisions of the table 2, and E is the least common multiple of B and N. Further, the feedback pulse Pk is calculated by the following equation when the rotation angle of the motor 6 is a ′ degree.

Pk=B・a′/360 したがって、偏差レジスタ19へフィードバックされる帰
還パルスPk′は次式により算出される。
Pk = B · a ′ / 360 Therefore, the feedback pulse Pk ′ fed back to the deviation register 19 is calculated by the following equation.

Pk′=Pk・T1=Pk・E/B 一方、分周部22の分周率T2について述べると、これは、
逓倍部21において逓倍した分を補償するための倍率であ
り、次式のようにT1の逆数となる。
Pk ′ = Pk · T1 = Pk · E / B On the other hand, the frequency division ratio T2 of the frequency division unit 22 is described as follows.
It is a multiplication factor for compensating for the multiplied amount in the multiplication unit 21, and is the reciprocal of T1 as in the following equation.

T2=1/T1=B/E 理解を容易にするために、具体例を用いて説明を加え
る。例えば、セレクタ10によって選択することのできる
角度の最小単位a度を1度とし、テーブル一回転当りに
パルスジェネレータ9が発生するパルス数Bを2000パル
スとした場合について考える。まず、テーブル2の分割
数Nは次式のように算出される。
T2 = 1 / T1 = B / E In order to facilitate understanding, a description will be added using a specific example. For example, consider the case where the minimum unit a of the angle that can be selected by the selector 10 is 1 degree and the number of pulses B generated by the pulse generator 9 per one rotation of the table is 2000 pulses. First, the division number N of the table 2 is calculated by the following equation.

N=360/a=360 また、パルス数B(=2000)と分割数N(=360)との
最小公倍数Eは、18,000となる。
N = 360 / a = 360 Further, the least common multiple E of the pulse number B (= 2000) and the division number N (= 360) is 18,000.

ここで、必要移動角度θを20°とすると、指定パルスD
は、次式のように算出される。
If the required movement angle θ is 20 °, the designated pulse D
Is calculated by the following equation.

D=θ・E/N=1000 すなわち、パルス変換部18は、必要移動角度20°を1000
パルスの指令パルスDに変換して、この1000パルスを偏
差レジスタ19へ出力する。
D = θ · E / N = 1000 That is, the pulse converter 18 changes the required movement angle 20 ° to 1000.
The pulse is converted into a command pulse D, and this 1000 pulses are output to the deviation register 19.

一方、必要移動角度20°に対してテーブル2が10°回転
した時のパルスジェネレータ9が発生する帰還パルスPk
は、次のように算出される。
On the other hand, the feedback pulse Pk generated by the pulse generator 9 when the table 2 rotates 10 ° with respect to the required movement angle 20 °
Is calculated as follows.

Pk=B・a′/360=500/9 また、逓倍率T1は次式のように算出される。Pk = B · a ′ / 360 = 500/9 Further, the multiplication rate T1 is calculated by the following equation.

T1=E/B=9 したがって、偏差レジスタ19へ出力する帰還パルスPk′
のパルス数は500パルスとなり、この500パルスが偏差レ
ジスタ19へ出力される。すなわち、偏差レジスタ19に
は、1000パルスの指令パルスDと500パルスの帰還パル
スPk′とが入力され、このDとPk′との偏差パルスであ
る500パルスが偏差レジスタ19より出力される。500パル
スの偏差パルスは、分周部22において1/9分周部されて5
00/9パルスとなり、この500/9パルスがD/A変換部20にお
いて電圧値に変換され、さらにこの電圧値がサーボアン
プ15において増幅される。サーボアンプ15は、D/A変換
部20よりの出力電圧に応じてモータ6の回転角度と回転
速度とを制御しつつワーク3の位置決めを行い、一方、
パルスジェネレータ9はモータ6の回転角度と回転方向
とに応じた帰還パルスPkを発生させ、この帰還パルスPk
を逓倍部21が逓倍して偏差レジスタ19へ出力し、以下前
述と同様の動作を、偏差パルスPcがゼロになるまで繰り
返す。
T1 = E / B = 9 Therefore, the feedback pulse Pk ′ output to the deviation register 19
The number of pulses is 500, and the 500 pulses are output to the deviation register 19. That is, the deviation register 19 receives the command pulse D of 1000 pulses and the feedback pulse Pk 'of 500 pulses, and the deviation pulse of 500 which is the deviation pulse of D and Pk' is output from the deviation register 19. The deviation pulse of 500 pulses is divided by 1/9 in divider 22 and divided by 5
It becomes 00/9 pulse, and this 500/9 pulse is converted into a voltage value in the D / A conversion section 20, and this voltage value is further amplified in the servo amplifier 15. The servo amplifier 15 positions the work 3 while controlling the rotation angle and the rotation speed of the motor 6 according to the output voltage from the D / A conversion unit 20, while
The pulse generator 9 generates a feedback pulse Pk according to the rotation angle and the rotation direction of the motor 6, and the feedback pulse Pk
Is multiplied by the multiplication unit 21 and output to the deviation register 19, and the same operation as described above is repeated until the deviation pulse Pc becomes zero.

(考案の効果) 以上詳細に説明したように、本考案によれば、変換手段
と逓倍手段とにおいて指令パルスDと帰還パルスPk′と
を整合させることにより、偏差パルス算出手段において
算出される偏差パルスPcを常に端数パルスを含まない整
数パルスとし、この端数パルスを含まない整数パルスで
ある偏差パルスPcに応じて制御手段が駆動手段の回転方
向と回転速度とを制御してワークの位置決めを行うよう
にしたので、ワークの位置決めを行う場合に生じる、必
要移動角度θと実際に設定される角度との誤差を低コス
トで防止することができ、ワークを任意の必要移動角度
θに高精度で位置決めすることが可能になる。さらに
は、モータ一回転当りに帰還パルス発生手段が発生する
帰還パルス数が変更になった場合でも、変換手段におけ
る所定の変換率と逓倍手段における逓倍率とを変更する
のみでこの変更に容易に対応することができる。
(Effect of the Invention) As described in detail above, according to the present invention, the deviation calculated by the deviation pulse calculating means by matching the command pulse D and the feedback pulse Pk ′ in the converting means and the multiplying means. The pulse Pc is always an integer pulse that does not include a fractional pulse, and the control means controls the rotation direction and rotation speed of the drive means in accordance with the deviation pulse Pc that is an integer pulse that does not include a fractional pulse to position the workpiece. Therefore, the error between the required movement angle θ and the actually set angle, which occurs when positioning the work, can be prevented at low cost, and the work can be accurately moved to the desired movement angle θ. It becomes possible to position. Further, even if the number of feedback pulses generated by the feedback pulse generating means per one rotation of the motor is changed, this change can be easily performed only by changing the predetermined conversion rate in the conversion means and the multiplication rate in the multiplication means. Can respond.

【図面の簡単な説明】 第1図は本考案に係る数値制御装置のブロック図、第2
図は本考案と従来例に係るの数値制御装置の概略構成
図、第3図は本考案に係る数値制御装置の制御部周辺を
示すブロック図、第4図は本考案に係る数値制御装置の
動作フローチャート図、第5図は従来例に係る数値制御
装置の制御部周辺を示すブロック図、第6図は従来例に
係る数値制御装置の動作フローチャート図である。 3……ワーク、6……モータ(駆動手段)、9……パル
スジェネレータ(パルス発生手段)、10……セレクタ
(設定手段)、15……サーボアンプ(制御手段)、16…
…回転角記憶部(設定手段)、17……回転角取出部(設
定手段)、18……パルス変換部(パルス変換手段)、19
……偏差レジスタ(偏差パルス算出手段)、20……D/A
変換部(制御手段)、21……逓倍部(逓倍手段)、22…
…分周器(制御手段)。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a numerical controller according to the present invention, and FIG.
FIG. 3 is a schematic configuration diagram of a numerical control device according to the present invention and a conventional example, FIG. 3 is a block diagram showing a control unit periphery of the numerical control device according to the present invention, and FIG. 4 is a numerical control device according to the present invention. FIG. 5 is a block diagram showing the periphery of the control unit of the numerical control device according to the conventional example, and FIG. 6 is an operational flowchart diagram of the numerical control device according to the conventional example. 3 ... Work, 6 ... Motor (driving means), 9 ... Pulse generator (pulse generating means), 10 ... Selector (setting means), 15 ... Servo amplifier (control means), 16 ...
... rotation angle storage section (setting means), 17 ... rotation angle extraction section (setting means), 18 ... pulse conversion section (pulse conversion means), 19
…… Deviation register (deviation pulse calculation means), 20 …… D / A
Conversion unit (control means), 21 ... Multiplication unit (multiplication means), 22 ...
… Divider (control means).

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 【請求項1】ワークの必要移動角度[θ]を設定する設
定手段と、 前記ワークを駆動する駆動手段と、 前記駆動手段一回転当り[B]パルスを出力するパルス
発生手段と、 前記駆動手段の回転量に応じて当該パルス発生手段から
出力されたパルスを、B及び360の公倍数をBで割った
値[C]倍して出力する逓倍手段と、 前記設定手段によって設定された前記ワークの必要移動
角度[θ]に相当する指令パルス[D]を、B・C・θ
/360を計算することによって出力する変換手段と、 前記変換手段から出力された指令パルス[D]から前記
逓倍手段から出力される帰還パルス[Pk]を逐次減算
し、偏差パルス[Pc]を算出する偏差パルス算出手段
と、 当該偏差パルス算出手段によって算出された偏差パルス
[Pc]に応じて前記駆動手段の作動を制御する制御手段
とを有することを特徴とする数値制御装置。
1. A setting means for setting a required movement angle [θ] of a work, a drive means for driving the work, a pulse generation means for outputting a [B] pulse per one rotation of the drive means, and the drive means. A multiplication unit for multiplying the pulse output from the pulse generation unit according to the rotation amount of No. 1 by a value [C] obtained by dividing the common multiple of B and 360 by B, and outputting the pulse of the work set by the setting unit. Command pulse [D] corresponding to the required movement angle [θ]
A conversion unit that outputs by calculating / 360, and a feedback pulse [Pk] that is output from the multiplication unit is sequentially subtracted from the command pulse [D] that is output from the conversion unit, and a deviation pulse [Pc] is calculated. And a control means for controlling the operation of the drive means in accordance with the deviation pulse [Pc] calculated by the deviation pulse calculation means.
JP10749587U 1987-07-15 1987-07-15 Numerical control device Expired - Lifetime JPH074649Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10749587U JPH074649Y2 (en) 1987-07-15 1987-07-15 Numerical control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10749587U JPH074649Y2 (en) 1987-07-15 1987-07-15 Numerical control device

Publications (2)

Publication Number Publication Date
JPS6413520U JPS6413520U (en) 1989-01-24
JPH074649Y2 true JPH074649Y2 (en) 1995-02-01

Family

ID=31341961

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10749587U Expired - Lifetime JPH074649Y2 (en) 1987-07-15 1987-07-15 Numerical control device

Country Status (1)

Country Link
JP (1) JPH074649Y2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2592856Y2 (en) * 1992-03-25 1999-03-31 株式会社東海理化電機製作所 Mounting structure for movable contacts

Also Published As

Publication number Publication date
JPS6413520U (en) 1989-01-24

Similar Documents

Publication Publication Date Title
US4093904A (en) Multi-axis motion generator utilizing feedforward control
US4530062A (en) Method and apparatus for controlling industrial robots
EP0177060B1 (en) Digital servo-control system
EP0139769B1 (en) System of detecting absolute position of servo control system
EP0120068A1 (en) Control and force-sensing method and apparatus for motors
US5299477A (en) Method of selecting a tool in a punching press machine
US5374883A (en) Method and apparatus for position error compensation
JPH074649Y2 (en) Numerical control device
JPS6239114A (en) Method and apparatus for controlling main shaft speed of cutting disc
JPH07107643B2 (en) NC synchronous control system
EP0593760B1 (en) Gear pitch error correction system of numerical controller
US3148317A (en) Tool radius correction computer
JP2670871B2 (en) Flexible feedback method
US6658317B2 (en) Method for setting a moving position in a machine tool
US5231340A (en) Servomotor control method
WO1986000430A1 (en) Apparatus for detecting absolute position of servo control system
JP3427800B2 (en) Numerical control unit
US2933244A (en) Tool radius correction computer utilizing a resolver
JP2813352B2 (en) Positioning device
JPH0916261A (en) Positioning controller
JPH1165625A (en) Method for correcting feeding position error for numerical control feeding device and the numerical control feeding device
KR890002434B1 (en) Numerical control apparatus
JPH06301423A (en) Control system for multiple axes
JP2687639B2 (en) Motor control device
JP4417315B2 (en) Operation command method for drive control means