Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS5837562B2 - position control device - Google Patents
[go: Go Back, main page]

JPS5837562B2 - position control device - Google Patents

position control device

Info

Publication number
JPS5837562B2
JPS5837562B2 JP52034953A JP3495377A JPS5837562B2 JP S5837562 B2 JPS5837562 B2 JP S5837562B2 JP 52034953 A JP52034953 A JP 52034953A JP 3495377 A JP3495377 A JP 3495377A JP S5837562 B2 JPS5837562 B2 JP S5837562B2
Authority
JP
Japan
Prior art keywords
controlled object
origin
displacement
command
command data
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
JP52034953A
Other languages
Japanese (ja)
Other versions
JPS53131377A (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.)
Shinmaywa Industries Ltd
Original Assignee
Shin Meiva Industry 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 Shin Meiva Industry Ltd filed Critical Shin Meiva Industry Ltd
Priority to JP52034953A priority Critical patent/JPS5837562B2/en
Publication of JPS53131377A publication Critical patent/JPS53131377A/en
Publication of JPS5837562B2 publication Critical patent/JPS5837562B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Measurement Of Length, Angles, Or The Like Using Electric Or Magnetic Means (AREA)
  • Control Of Position Or Direction (AREA)

Description

【発明の詳細な説明】 この発明は位置制御装置に関し、特にインクリメンタル
方式で被制御体の位置を制御する場合の原点位置規正を
簡単になし得る位置制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a position control device, and more particularly to a position control device that can easily adjust the origin position when controlling the position of a controlled object in an incremental manner.

第1図はこの発明の背景となる、かつこの発明の実施さ
れる自動溶接装置を示す全体斜視図である。
FIG. 1 is an overall perspective view showing an automatic welding apparatus that forms the background of this invention and in which this invention is implemented.

以下にはこの発明の理解を容易にする目的で、この自動
溶接装置を簡単に説明する。
This automatic welding device will be briefly explained below in order to facilitate understanding of the present invention.

ワークが載せられるテーブル1両端には、長さ方向(X
軸方向)に、水平ガイド2,2がテーブル1の上方に固
定的に設けられる。
The length direction (X
In the axial direction) horizontal guides 2, 2 are fixedly provided above the table 1.

この水平ガイド2,2上には、それぞれ、レール3,3
が配設される。
On these horizontal guides 2, 2, there are rails 3, 3, respectively.
will be placed.

また、この水平ガイド2,2上には、前記レール3,3
上をX軸方向に移動自在とされ、かつモータ5によって
走行駆動される走行梁4が載せられる。
Moreover, on the horizontal guides 2, 2, the rails 3, 3
A traveling beam 4 is mounted thereon, which is movable in the X-axis direction and is driven to travel by a motor 5.

そして、この走行梁4は、前記テーブル1の幅方向(Y
軸方向)に移動可能な、かつモータ7によって移動駆動
される移動体6を支承する。
This traveling beam 4 is arranged in the width direction (Y
It supports a moving body 6 which is movable in the axial direction) and which is driven to move by a motor 7.

さらに、前記移動体6に支承されて上下方向(Z軸方向
)に移動可能な、かつモータ9によって昇降駆動される
コラム8が設けられる。
Further, a column 8 is provided which is supported by the movable body 6 and movable in the vertical direction (Z-axis direction) and is driven up and down by a motor 9.

前記コラム8の下端部には、トーチ取付具10が、垂直
軸まわりに回動自在に設けられる。
A torch mount 10 is provided at the lower end of the column 8 so as to be rotatable around a vertical axis.

このトーチ取付具10は、トーテTを保持し、モータ1
1によって回動駆動されて該トーナTのワークに対する
向き角度を調整する。
This torch fixture 10 holds a tote T and a motor 1.
1 to adjust the orientation angle of the toner T with respect to the workpiece.

この実施例では、同様の装置が同様の組合わせでさらに
l組設けられる。
In this embodiment, l additional sets of similar devices are provided in similar combinations.

なお、各モータ5,7,9,11の回転速度ないしトー
ナTに与えられる溶接電流およびトーナ位置は、図示し
ない(位置決め)制御装置により制御されることは周知
の通りである。
It is well known that the rotational speed of each motor 5, 7, 9, 11, the welding current applied to the toner T, and the toner position are controlled by a (positioning) control device (not shown).

このような自動溶接装置において、前記トーナTは、前
記X,Y,Z軸に関して予めプログラムされた点位置へ
、たとえばFTP方式によって位置制御される。
In such an automatic welding apparatus, the position of the toner T is controlled to a preprogrammed point position with respect to the X, Y, and Z axes, for example, by an FTP method.

このような自動溶接装置における位置制御のためのサー
ボ系として、いわゆるインクリメンタル( Incre
mental )方式が用いられ得る。
As a servo system for position control in such automatic welding equipment, so-called incremental
mental) method may be used.

インクリメンタル方式で位置制御する場合、一旦装置の
電源を切れば、被制御体の現在位置を表わすフィードバ
ックバツファ(カウンタ)の数値も消滅し、再起動して
もこのバッツァ内の数値はそのままでは再現されない。
When performing position control using the incremental method, once the power to the device is turned off, the value in the feedback buffer (counter) that represents the current position of the controlled object also disappears, and even if the device is restarted, the value in the feedback buffer (counter) will not reappear. Not done.

このため、再起動時に被制御体を原点位置に規正し、そ
こから位置制御を再開する必要があることは周知である
For this reason, it is well known that upon restart, it is necessary to adjust the controlled object to the original position and restart position control from there.

従来、この原点位置規正のためには、被制御体を直接手
動で原点位置に戻すか、あるいは位置制御装置を手動操
作して原点位置に戻さなければならない。
Conventionally, in order to adjust the home position, it is necessary to directly manually return the controlled object to the home position or manually operate a position control device to return the controlled body to the home position.

しかしながら、前者はその操作が面倒であり、後者は正
確に原点位置に停止させることが困難である。
However, the former is troublesome to operate, and the latter is difficult to stop accurately at the origin position.

そこで、本発明者等は、例えば特願昭50−37588
号に示すように、改良された原点位置規正方法を提案し
た。
Therefore, the present inventors, for example,
As shown in this issue, we proposed an improved origin positioning method.

これは、被制御体を原点方向に移動せしめるための原点
復帰手段を設け、被制御体をこの原点復帰手段を手動操
作することによって原点を通過せしめ、このオーバラン
位置においてはフィードバックバツファをクリアし、さ
らにその後において指令された適宜の位置に被制御体を
自動的に位置せしめるようにした自動位置制御装置であ
る。
This is provided with an origin return means for moving the controlled object in the direction of the origin, and the controlled object is made to pass the origin by manually operating this origin return means, and the feedback buffer is cleared at this overrun position. This is an automatic position control device that automatically positions a controlled object at an appropriate commanded position after that.

この改良された装置lこおいても、さらに、被制御体を
オーバランさせるための原点復帰手段としての、手動操
作のためのオープンのサーボ系が必要であるという解決
すべき問題点を残すものである。
Even with this improved device, there still remains the problem of requiring an open servo system for manual operation as a home return means for overrunning the controlled object. be.

このような問題点を解決するために、すなわち特別のサ
ーボ系を不要とするために、電源再投入時に前記位置フ
ィードバックバツファ(カウンタ)に相当大きな適宜の
数値をロードし、それによって原点方向に移動させるこ
とが考えられる。
In order to solve this problem, that is, to eliminate the need for a special servo system, a fairly large appropriate value is loaded into the position feedback buffer (counter) when the power is turned on again. It is possible to move it.

しかしながら、そのためには、それだけ大容量のレジス
タを必要とし、高価である。
However, this requires a register with a correspondingly large capacity and is expensive.

また、通常の位置制御のために必要な桁数だけで行なお
うとすれば、オーバランさせることができず、あるいは
エンコーダの出力が原点を越えて被制御体が暴走してし
まうことがある、等の問題点がある。
Also, if you try to perform normal position control using only the required number of digits, you may not be able to overrun, or the encoder output may exceed the origin and the controlled object may go out of control. There is a problem with this.

それゆえに、この発明の主たる目的は、上述のととくの
問題点を解消し、簡単かつ確実に原点位置規正の可能な
かつより安価なインクリメント方式による位置制御装置
を提供することである。
SUMMARY OF THE INVENTION Therefore, the main object of the present invention is to solve the above-mentioned particular problems and to provide a position control device using an incremental method that is capable of simply and reliably regulating the origin position and is less expensive.

この発明は、要約すれば、電源再投入時に、被制御体の
位置指令として適宜の定められた数値を与え、この数値
に基づく位置制御を反復し、それによって被制御体を原
点位置を越えてオーバランさせ、つづいてこのオーバラ
ン位置から戻って再び原点を越えるように位置指令し、
この位置指令による位置制御の際に被制御体が原点位置
を通過したことをこ応答してその位置を原点とするよう
にした位置制御装置である。
In summary, when the power is turned on again, this invention gives an appropriately determined numerical value as a position command for the controlled object, repeats position control based on this numerical value, and thereby moves the controlled object beyond the origin position. overrun, then return from this overrun position and issue a position command to cross the origin again,
This position control device responds to the fact that the controlled object has passed the origin position during position control based on the position command, and sets that position as the origin.

この発明の上述の目的およびその他の目的と特徴は図面
を参照して行なう以下の詳細な説明から一層明らかとな
ろう。
The above objects and other objects and features of the invention will become more apparent from the following detailed description with reference to the drawings.

第2図はこの発明の一実施例の位置制御装置の概略を示
すブロック図である。
FIG. 2 is a block diagram schematically showing a position control device according to an embodiment of the present invention.

制御装置CNTは、指令データ発生手段の一例の中央処
理装置CPUを含み、各軸X,Y,Zの指令回路ODx
,ODy,ODzを備える。
The control device CNT includes a central processing unit CPU, which is an example of a command data generation means, and a command circuit ODx for each axis X, Y, and Z.
, ODy, ODz.

以下には、代表的にX軸指令回路ODxについて説明す
るが、この指令回路ODx ,ODy ,ODz はと
もに同様の回路構成をとることを予め指摘する。
In the following, the X-axis command circuit ODx will be described as a representative example, but it should be pointed out in advance that the command circuits ODx, ODy, and ODz all have the same circuit configuration.

X軸指令回路ODxは、後述のインクリメンタルエンコ
ーダからのパルス信号をカウントして被制御体の現在位
置情報を示す位置フィードバックカウンタFCxと、前
記処理装置CPUからのX軸についての指令位置情報を
ロードする指令データストア手段の一例の指令位置バツ
ファO B xとを含む。
The X-axis command circuit ODx loads a position feedback counter FCx that counts pulse signals from an incremental encoder (described later) and indicates the current position information of the controlled object, and command position information regarding the X-axis from the processing unit CPU. and a command position buffer OBx, which is an example of command data storage means.

前記位置フィードバックカウンタFCxは、処理装置C
PUからの指令位置をロードし得るとともに、該処理装
置CPUに対して現在位置を与える。
The position feedback counter FCx is processed by a processing device C.
It can load the commanded position from the PU and provides the current position to the processing unit CPU.

そして、位置フィードバックカウンタFCxと指令位置
バツファOBxとは、ともに、引算器SBxの2人力に
接続される。
Both the position feedback counter FCx and the command position buffer OBx are connected to two terminals of the subtracter SBx.

引算器SBxの出力は、指令リミツタ回路OIxに与え
られる。
The output of the subtracter SBx is given to the command limiter circuit OIx.

この指令リミツタ回路OLxは、処理装置CPUからの
X軸方向の分速度情報を受け、移動速度を制限する。
This command limiter circuit OLx receives minute speed information in the X-axis direction from the processing device CPU, and limits the moving speed.

また、CLo ck t Nu 11信号(後述第7図
)検出回路DExは、図示しないX軸サーボ系からの出
力を受け、被制御体がCLock幅内又はNull領域
に入ったことを検出し、信号を発生する。
In addition, the CLock t Nu 11 signal (described later in FIG. 7) detection circuit DEx receives the output from the X-axis servo system (not shown), detects that the controlled object has entered the CLock width or the Null region, and outputs the signal. occurs.

この信号検出回路DExからのCLock又はNu l
l信号は、ともに前記処理装置CPUに与えられ、つ
ぎの位置指令を要請するとともlこ、前記X軸サーボ系
に対して位置決め指令を与える。
CLock or Nu l from this signal detection circuit DEx
Both signals are given to the processing device CPU, requesting the next position command, and giving a positioning command to the X-axis servo system.

なお、引算器SBxはX軸サーボ系(たとえば第1図の
モータ5などを含む)と協働して変位駆動手段の一例を
構或している。
Note that the subtracter SBx constitutes an example of displacement driving means in cooperation with an X-axis servo system (including, for example, the motor 5 in FIG. 1).

ここで、上記CLock t Nu 11について説明
する。
Here, the above CLock t Nu 11 will be explained.

この実施例のようにリミツタを用いるサーボ系の飽和特
性(第7図によく示される)において、非飽和領域が前
記CLock幅に相当し、サーボ系がこの非飽和領域に
入ったことを示す信号が、前記CLock信号(非飽和
領域信号)である。
In the saturation characteristics of a servo system using a limiter as in this embodiment (as clearly shown in FIG. 7), the non-saturation region corresponds to the CLock width, and a signal indicating that the servo system has entered this non-saturation region. is the Clock signal (non-saturation region signal).

このようなCLock信号は、たとえば、指令位置と現
在位置とを加算し、そのときの速度を指令速度で弁別す
ることによって得られる。
Such a CLock signal is obtained, for example, by adding the commanded position and the current position, and then distinguishing the speed at that time from the commanded speed.

なお、上述の飽和特性は、非線形自動制御の分野におい
てよく知られていることを予め指摘しておく。
It should be noted in advance that the saturation characteristics described above are well known in the field of nonlinear automatic control.

一方、前記Null信号は上述のようなサーボ系に含ま
れるサーボアンプから得られる零信号であり、目標位置
のごく近い領域で導出される。
On the other hand, the Null signal is a zero signal obtained from a servo amplifier included in the servo system as described above, and is derived in a region very close to the target position.

したがって、前記Nu l l領域は目標位置のごく近
傍の領域である。
Therefore, the Null area is an area very close to the target position.

なお、上述のような零信号は、従来からよく知られてい
ることを予め指摘しておく。
It should be noted in advance that the above-mentioned zero signal is well known.

従って、前記X軸サーボ系は、第3図に示すように、被
制御体OBJをX軸上に移動制御する。
Therefore, the X-axis servo system controls the movement of the controlled object OBJ on the X-axis, as shown in FIG.

このX軸サーボ系は、インクリメンタルエンコーダEN
xを含み、前記制御装置CNTのX軸指令回路ODx内
の位置フィードバックカウンタ■\に対して、その移動
に応じてパルス信号を与える。
This X-axis servo system is an incremental encoder EN
x, and provides a pulse signal to the position feedback counter \\ in the X-axis command circuit ODx of the control device CNT in accordance with its movement.

X軸上の原点位置XOには、前記被制御体OBJが当該
原点位置に達した(あるいは存在する)か否かを検知す
るための、被制御体検出手段の一例の原点センサOSx
が配設される。
At the origin position XO on the X axis, there is an origin sensor OSx, which is an example of a controlled object detection means, for detecting whether the controlled object OBJ has reached (or exists in) the origin position.
will be placed.

この原点センサOSxは、例えば光電スイッチあるいは
近接スイッチ又はその他の機械式スイツナ等から成り、
被制御体OBJがセンサ位置上にあるとき、オンとなり
、その信号を前記制御装置CNT内の処理装置CPUに
与える。
This origin sensor OSx consists of, for example, a photoelectric switch, a proximity switch, or other mechanical switch,
When the controlled object OBJ is on the sensor position, it is turned on and the signal is given to the processing device CPU in the control device CNT.

また、この制御装置CNTには、手動操作のための操作
盤OPが関連して設けられる。
The control device CNT is also provided with an operation panel OP for manual operation.

この操作盤OPには、図示しないが各軸X,Y,Zにつ
いて手動的に位置指令を与えるためのトグルスイツナが
設けられるとともに、原点復帰を指令するための原点復
帰指令手段の一例の原点復帰スイツナSWが設けられる
This operation panel OP is provided with a toggle switch (not shown) for manually giving position commands for each axis X, Y, and Z, and a toggle switch that is an example of a home return command means for commanding home return. A SW is provided.

前記各軸トグルスイッチは、下に倒すと原点XO方向に
移動し、上に倒すと逆方向に移動し、かつ倒している時
間に関連する長さだけ移動できるようにする。
Each axis toggle switch moves in the direction of the origin XO when pushed down, moves in the opposite direction when pushed up, and can be moved by a length related to the time it is pushed down.

そして、ニュートラル位置では手動制御が停止される。Manual control is then stopped at the neutral position.

なお、上述の原点スイッチSWは、制御装置CNT側に
設けるようにしてもよい。
Note that the origin switch SW described above may be provided on the control device CNT side.

第4図および第5図は、第2図に示す処理装置CPUの
動作を説明するためのフロー図であり、特に、第4図は
メインフローを示し、第5図は第4図のフロー図におけ
るカウントルーナンを示す。
4 and 5 are flow diagrams for explaining the operation of the processing device CPU shown in FIG. 2, in particular, FIG. 4 shows the main flow, and FIG. 5 is a flow diagram of FIG. 4. shows the count lunan in.

ここで、第4図のフロー図における各動作ステップにス
テップ番号S401〜S417を付し、この発明の特許
請求の範囲との対応関係について説明する。
Here, step numbers S401 to S417 are assigned to each operation step in the flowchart of FIG. 4, and the correspondence with the claims of the present invention will be explained.

まず、動作ステップ8407〜S410は、原点方向変
位手段の一例を構成する。
First, operation steps 8407 to S410 constitute an example of origin direction displacement means.

また、動作ステップ8411〜S413は、変位停止手
段の一例を構成する。
Further, operation steps 8411 to S413 constitute an example of displacement stopping means.

また、動作ステップS414は、原点方向再変位手段の
一例を構成する。
Further, the operation step S414 constitutes an example of origin direction redisplacement means.

さらに、動作ステップ8415〜S417は、リセット
手段の一例を構成する。
Furthermore, operation steps 8415 to S417 constitute an example of a reset means.

以下、第4図および第5図のフロー図を参照してその動
作を説明する。
The operation will be described below with reference to the flowcharts of FIGS. 4 and 5.

なお;動作についても、X軸方向のみを代表的に説明し
、Y軸,Z軸方向についての説明は省略するものとする
As for the operation, only the X-axis direction will be representatively explained, and the explanation about the Y-axis and Z-axis directions will be omitted.

動作において、電源再投入時に発生される何らかの信号
に応答して、処理装置CPU内のカウントフラグCXを
「0」とする。
In operation, the count flag CX in the processing unit CPU is set to "0" in response to some signal generated when the power is turned on again.

同時に、該処理装置CPUから、X軸方向の任意の値X
aを指令する。
At the same time, the processing device CPU sends an arbitrary value X in the X-axis direction.
Command a.

すなわち、第6図に示すX軸のほぼ中間の値Xaを、指
令位置バツファOBxおよび位置フィードバックカウン
タFCxにロード(’ O B x −Xa ,FCx
=Xa )する。
That is, a value Xa approximately in the middle of the X axis shown in FIG. 6 is loaded into the command position buffer OBx and the position feedback counter FCx ('OB
=Xa).

つづいて、処理装置CPUは、前記操作盤OP上のX軸
手動トグルスイツナ(図示せず)を読込む。
Subsequently, the processing device CPU reads the X-axis manual toggle switch (not shown) on the operation panel OP.

そして、該X軸手動トグルスイッチがアップ(上)又は
ダウン(下)のいずれかに倒されているかどうかを判定
する。
Then, it is determined whether the X-axis manual toggle switch is turned up (up) or down (down).

IYESJなら、すなわち手動位置制御モードであれば
、前記カウントフラグCXをアップで「1」に、ダウン
でr−IJに変える。
If IYESJ, that is, if it is manual position control mode, the count flag CX is changed to "1" when it is up and to r-IJ when it is down.

そして、第5図に示すカウントルーチンに移る。Then, the process moves to the counting routine shown in FIG.

手動モードであれば、処理装置CPUは、まずカウント
フラグCXが「−1」かどうか、すなわちダウン(原点
方向への移動)かどうかを判定する。
In the manual mode, the processing device CPU first determines whether the count flag CX is "-1", that is, whether it is down (movement toward the origin).

l−NOJなら、つづいてcx=iかどうか、すなわち
アップ(遠端方向への移動)かどうかを判定する。
If l-NOJ, then it is determined whether cx=i, that is, whether it is up (movement toward the far end).

このように、原点復帰スイッチSWのオンによって被制
御体を原点位置に復帰させる前に、トグルスイッチの操
作によって被制御体の移動方向を正負2様に手動制御す
るのは、電源投入時には、位置決め装置(サーボ系)の
状態かつ従って被制御体の位置は不定であり、そのまま
原点位置へ移動させると、他の被制御体ないしワークと
干渉することがあるためである。
In this way, before turning on the home return switch SW to return the controlled object to the home position, the movement direction of the controlled object is manually controlled in two directions, positive and negative, by operating the toggle switch. This is because the state of the device (servo system) and therefore the position of the controlled object are uncertain, and if it is moved to the origin position as it is, it may interfere with other controlled objects or workpieces.

したがって、被制御体が他の被制御体やワークと干渉す
るおそれがないときは、すぐに原点復帰スイツナSWを
オンすればよい。
Therefore, when there is no risk that the controlled object will interfere with other controlled objects or workpieces, it is sufficient to turn on the home return switcher SW immediately.

そして、「CX=−1か?」の判断ステップにおいて、
rYEsJなら、処理装置CP[Jは、つぎの指令位置
Xnを求める。
Then, in the judgment step of “Is CX=-1?”
If rYEsJ, the processing device CP[J obtains the next commanded position Xn.

これは、現在位置Xから或る定められたカウント数(ピ
ッチ)DXを減じる(Xn=OBx−DX)ことによっ
て求められる。
This is obtained by subtracting a certain predetermined count number (pitch) DX from the current position X (Xn=OBx-DX).

つづいて、処理装置CPUでは、判別式D一Xn −X
mi n (第6図)を計算する。
Next, in the processing device CPU, the discriminant D-Xn-X
Calculate min (Figure 6).

この場合、Xminは、適宜の値Xaよりも小さく決め
られている。
In this case, Xmin is determined to be smaller than an appropriate value Xa.

そこで、この判別式Dが負か(D<0か)を判断する。Therefore, it is determined whether this discriminant D is negative (D<0).

ここで、初期状態においては、ピツナDXは極く小さい
ものであり、この判別式Dは正、すなわちrNOJとな
る。
Here, in the initial state, Pituna DX is extremely small, and this discriminant D is positive, that is, rNOJ.

そのため、処理装置CPUは、位置指令バツファOBx
に対して前記求めた指令位置Xnをロードする。
Therefore, the processing device CPU uses the position command buffer OBx
The command position Xn obtained above is loaded.

応じて、X軸サーボ系(位置決め装置)は、被制御体O
BJを前記位置Xnまで移動させる。
Accordingly, the X-axis servo system (positioning device)
Move BJ to the position Xn.

そして、信号検出回路D E xは前記移動において第
7図のCLock幅(サーボ系の非飽和領域)内に入っ
たかどうかを判断する。
Then, the signal detection circuit D Ex determines whether or not the movement has entered the CLock width (non-saturation region of the servo system) shown in FIG.

第7図はサーボ系の速度状態を示す、かつ前記CLoc
k信号(非飽和領域信号)またはNu l l信号(零
信号)を説明するための図解図である。
FIG. 7 shows the speed state of the servo system, and the CLoc
FIG. 2 is an illustrative diagram for explaining a k signal (non-saturation region signal) or a Null signal (zero signal).

ここで横軸は位置ないしタイミングを示し、縦軸は速度
を示す。
Here, the horizontal axis indicates position or timing, and the vertical axis indicates speed.

この第7図からも理解され得るように、前記CLock
信号は、位置決め装置がサーボ系のサーボ領域に入り、
その速度が低下し始める点の信号である。
As can be understood from FIG. 7, the Clock
The signal is generated when the positioning device enters the servo area of the servo system.
This is the signal at which the speed begins to decrease.

また、前記Null信号は、サーボ系によって位置制御
されたときにサーボアンプから得られる零信号であり、
目標位置のごく近い領域(殆んど停止するタイミング)
で導出される。
Further, the Null signal is a zero signal obtained from the servo amplifier when the position is controlled by the servo system,
Area very close to the target position (timing to almost stop)
It is derived as

換言すれば、Nu 11信号は速度に関係なくほぼ一定
の位置で導出され、CLock信号は速度に応じてその
導出タイミングが変わる(破線)ものである。
In other words, the Nu 11 signal is derived at a substantially constant position regardless of the speed, and the timing of the CLock signal's derivation changes depending on the speed (dashed line).

従って、この実施例においては、このCLock信号又
はNull信号を検出するようにしている。
Therefore, in this embodiment, this CLock signal or Null signal is detected.

そして、上述の場合は、つぎの位置指令を現在位置に必
ず先行させるために、CLock信号を検出する。
In the above case, the CLock signal is detected in order to ensure that the next position command precedes the current position.

このCLock信号が得られれば、処理装置CPUは、
カウントフラグCX=Oとする。
If this CLock signal is obtained, the processing device CPU will:
Set the count flag CX=O.

その後、処理装置CPUは、再び第4図のメインルーナ
ンに戻って、手動トグルスイッチが操作されているか否
かを読込む。
Thereafter, the processing device CPU returns to the main routine shown in FIG. 4 again and reads whether or not the manual toggle switch is operated.

すなわち、手動トグルスイッチが操作されている限り、
この第5図のサブルーナンを繰返す。
That is, as long as the manual toggle switch is operated,
This sub runn of FIG. 5 is repeated.

そして、何回かの繰返しの後は、被制御体OBJは、第
6図に示す位置Xminに達し、その次の位置Xnはこ
の点Xminを越える。
After several repetitions, the controlled object OBJ reaches the position Xmin shown in FIG. 6, and the next position Xn exceeds this point Xmin.

従って、前述の判別式Dは負に転じる。Therefore, the above-mentioned discriminant D becomes negative.

このように、前記判別式Dが負なら、すなわちIYES
Jなら、処理装置CPUは、位置フィードバックカウン
タFCxに対してFCx+(Xa一Xm i n )を
ロードし、指令位置バツファOBxに対してXaをロー
ドする。
In this way, if the discriminant D is negative, that is, IYES
J, the processing unit CPU loads FCx+(Xa - Xmin) into the position feedback counter FCx, and loads Xa into the command position buffer OBx.

これは、被制御体OBJの現在位置Xminと指令位置
との相対的な関係を変えることなく、手動トグルスイッ
チが操作されている限り、同様の操作を何回か繰返すた
めである。
This is because the same operation is repeated several times as long as the manual toggle switch is operated without changing the relative relationship between the current position Xmin of the controlled object OBJ and the command position.

また、このサブルーチン(カウントルーチン)において
、「CX=−1?jに対して「NO」なら、つづいてこ
のカウントフラグCXが「1」かどうかを判断する。
Further, in this subroutine (count routine), if "NO" to "CX=-1?j", it is then determined whether this count flag CX is "1".

そして、「NO」ならこのルーチンを終了してメインル
ーナンに戻る。
If "NO", this routine ends and returns to the main routine.

そして、「CX=1か?」の判断ステップにおいて、r
YEsjなら、処理装置CPUは、つぎの指令位置Xn
を求める。
Then, in the judgment step “Is CX=1?”, r
If YESj, the processing device CPU selects the next command position Xn
seek.

これは、現在位置Xに或る定められたカウント数(ビツ
ナ)DXを加える(Xn=OBx+DX)ことによって
求められる。
This is obtained by adding a certain predetermined count number (bits) DX to the current position X (Xn=OBx+DX).

つづいて、処理装置CPUでは、判別式D = X n
一Xma x (第6図)を計算する。
Next, in the processing unit CPU, the discriminant D = X n
- Calculate Xmax (Figure 6).

この場合、Xmaxは、適宜の値Xaよりも大きく決め
られている。
In this case, Xmax is determined to be larger than the appropriate value Xa.

そこで、この判別式Dが正か(D>Oか)を判断する。Therefore, it is determined whether this discriminant D is positive (D>O).

ここで、初期状態においては、ビツナDXは極く小さい
ものであり、この判別式Dは負、すなわちlNOjとな
る。
Here, in the initial state, bituna DX is extremely small, and this discriminant D is negative, that is, lNOj.

そのため、処理装置CP[Jは、位置指令バツファOB
xに対して前記求めた指令位置Xnをロードする。
Therefore, the processing device CP[J is the position command buffer OB
The command position Xn obtained above is loaded to x.

応じて、X軸サーボ系(位置決め装置)は、被制御体O
BJを前記位置Xnまで移動させる。
Accordingly, the X-axis servo system (positioning device)
Move BJ to the position Xn.

そして、この移動において、つぎの位置指令を現在位置
に必ず先行させるために、CLock信号を検出する。
During this movement, a CLock signal is detected in order to ensure that the next position command precedes the current position.

このCLock信号が得られれば、処理装置CPUは、
カウントフラグCX=Oとする。
If this CLock signal is obtained, the processing device CPU will:
Set the count flag CX=O.

その後、処理装置CPUは、再び第4図のメインルーナ
ンに戻って、手動トグルスイッチが操作されているか否
かを読込む。
Thereafter, the processing device CPU returns to the main routine shown in FIG. 4 again and reads whether or not the manual toggle switch is operated.

すなわち、手動トグルスイッチが操作されている限り、
この第5図のサブルーナンを繰返す。
That is, as long as the manual toggle switch is operated,
This sub runn of FIG. 5 is repeated.

そして、伺回かの繰返しの後は、被制御体OBJは、第
6図に示す位置Xmaxに達し、その次の位置xnはこ
の点Xmaxを越える。
After repeating the rounds, the controlled object OBJ reaches the position Xmax shown in FIG. 6, and the next position xn exceeds this point Xmax.

従って、前述の判別式Dは正に転じる。Therefore, the above-mentioned discriminant D becomes positive.

このように、前記判別式Dが正なら、すなわちrYEs
Jなら、処理装置CPUは、位置フィードバックカウン
タFCxに対してFCx−(Xmax−Xa )をロー
ドし、指令位置バツファOBxに対してXaをロードす
る。
In this way, if the discriminant D is positive, that is, rYEs
J, the processing unit CPU loads FCx-(Xmax-Xa) into the position feedback counter FCx, and loads Xa into the commanded position buffer OBx.

これは、被制御体OBJの現在位置Xm a xと指令
位置との相対的な関係を変えることなく、手動トグルス
イッチが操作されている限り、同様の操作を何回か繰返
すためである。
This is because the same operation is repeated several times as long as the manual toggle switch is operated without changing the relative relationship between the current position Xmax of the controlled object OBJ and the command position.

上述のカウントルーチンが終了すると、すなわち手動操
作が終了すると、前記手動トグルスイツナはニュートラ
ル位置に戻される。
At the end of the above-mentioned counting routine, ie, at the end of the manual operation, the manual toggle switcher is returned to the neutral position.

従って、前記判断ステップ「アップ又はダウンか?」に
おいて、「NO」となる。
Therefore, in the judgment step "Up or down?", the answer is "NO".

次に、原点復帰スイッチSWがオンされ、この実施例に
特に興味ある原点復帰動作が開始される。
Next, the return-to-home switch SW is turned on, and the return-to-home operation, which is of particular interest to this embodiment, is started.

まず、処理装置CPUは、操作盤OPの原点復帰スイッ
チSWが操作されたか否かを読込む。
First, the processing device CPU reads whether or not the origin return switch SW of the operation panel OP has been operated.

この場合、原点位置規正のためであり、当然この原点復
帰スイツナSWはオンである。
In this case, the purpose is to regulate the origin position, and naturally the origin return switch SW is on.

原点復帰スイッチSWがオンなら、処理装置CPUは、
必ず原点方向(ダウン方向)への移動を行なわなければ
ならないことから、カウントフラグCX−−1とする。
If the home return switch SW is on, the processing unit CPU will
Since movement in the direction of the origin (down direction) must be performed, the count flag is set as CX--1.

そして、第5図のサブルーナンに入る。このカウントル
ーチンにおいて、前述のicX−−1か?」のステップ
でrYEsJに応じた処理が逐行される。
Then, it enters the subrunan shown in Figure 5. In this counting routine, is the above-mentioned icX--1? '', the process according to rYEsJ is executed one by one.

その後、処理装置CPUは、第3図に示すような、原点
センサOSxの状態を読込む。
Thereafter, the processing device CPU reads the state of the origin sensor OSx as shown in FIG.

ここで、「原点センサオンか?」の判断ステップにおい
て「NO」なら、処理装置CPUは再びカウントフラグ
CXを「−1」として上述のサブルーチンを繰返す。
Here, if "NO" in the determination step "Is the origin sensor on?", the processing unit CPU sets the count flag CX to "-1" again and repeats the above-mentioned subroutine.

このとき、原点XOに近づいて、かつ原点センサOSx
がオフのままであるその次のステップにおいては、位置
指令をCLock信号に応答して出すようにしているた
め、現在位置が指令位置に到達する前に次の位置指令が
出され、必ず、たとえば第6図に示す原点Xoを越えて
位置制御(オーバラン)される。
At this time, when approaching the origin XO and the origin sensor OSx
In the next step where remains OFF, the position command is issued in response to the CLock signal, so the next position command is issued before the current position reaches the command position, and it is guaranteed that, for example, The position is controlled (overrun) beyond the origin Xo shown in FIG.

原点センサOSxがオンとなれば、処理装置CP[Jは
、前述の位置制御において、Null信号が得られたか
否かを判定する。
When the origin sensor OSx is turned on, the processing device CP[J determines whether a Null signal is obtained in the position control described above.

「YEsJならば、良く知られたサーボ系の作用により
、被制御体OBJは停止され、第6図の原点位置Xoを
越えて例えばこの第6図における位置Xo′にまで移動
されるものである。
If YESJ, the controlled object OBJ is stopped by the action of a well-known servo system, and is moved beyond the origin position Xo in FIG. 6 to, for example, position Xo' in FIG. .

そして、処理装置CPUは、位置フィードバックカウン
タFCxに対して予め定められた位置情報xi(第6図
)をロードし、指令位置バツファOBxに対して予め定
められた位置精報X2(第6図)をロードする。
Then, the processing device CPU loads predetermined position information xi (FIG. 6) to the position feedback counter FCx, and loads predetermined position information X2 (FIG. 6) to the command position buffer OBx. Load.

この位置X1,X2は、被制御体OBJが最大のオーバ
ランを生じて停止しても「X2−X1」が必ず現在位置
X。
For these positions X1 and X2, even if the controlled object OBJ causes the maximum overrun and stops, "X2-X1" is always the current position X.

′から原点位置X。' to origin position X.

までの長さ以上になるように決められている。It is determined that the length should be at least the length of .

したがってX軸位置決め装置は、引算器SBxからの値
IX2−X11に基づいて、被制御体OBJを再び原点
X。
Therefore, the X-axis positioning device returns the controlled object OBJ to the origin X based on the value IX2-X11 from the subtracter SBx.

方向に移動させるが、この移動によって被制御体OBJ
は必ず原点位置を越えるように移動駆動される。
This movement causes the controlled object OBJ to
is always driven to move beyond the origin position.

このとき、処理装置CPUは、原点センサOSxの状態
(オン,オフ)を読込んでいる。
At this time, the processing device CPU is reading the state (on, off) of the origin sensor OSx.

なお、被制御体OBJは或る幅を有していて、現在位置
Xo′に存在するときもこの原点センサOSXをオンと
したままである。
Note that the controlled object OBJ has a certain width, and the origin sensor OSX remains on even when it exists at the current position Xo'.

そして、原点センサO S xがオフとなれば、これは
被制御体OBJが、原点方向に戻されて、第3図に示す
2点鎖線位置に達したということである。
When the origin sensor O S x is turned off, this means that the controlled object OBJ has been returned toward the origin and has reached the position shown by the two-dot chain line in FIG. 3.

すなわち、被制御体OBJがX軸上の機械的な原点Xo
位置に規正されたことを示す。
That is, the controlled object OBJ is at the mechanical origin Xo on the X axis.
Indicates that the position has been adjusted.

応じて、処理装置CPUは、位置フィードバックカウン
タFCxを「0」にクリアする。
In response, the processing device CPU clears the position feedback counter FCx to "0".

このようにして、被制御体OBJの原点位置規正が達成
される。
In this way, the origin position regulation of the controlled object OBJ is achieved.

なお、上述の実施例においては、自動溶接装置を例に挙
げて説明したが、これは他の同様の位置制御装置ないし
工作機においても同様に実施され得ることはいうまでも
ない。
Although the above-mentioned embodiment has been described using an automatic welding device as an example, it goes without saying that this can be similarly implemented in other similar position control devices or machine tools.

以上のように、この発明によれば、インクリメンタル方
式の位置制御装置において、特別な付加装置を必要とし
ないで、被制御体の原点位置規正を簡単かつ自動的lこ
行ない得る。
As described above, according to the present invention, in an incremental type position control device, the origin position of a controlled object can be easily and automatically corrected without requiring any special additional equipment.

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

第1図はこの発明の背景となる、かつこの発明が実施さ
れ得る自動溶接装置の一例を示す全体斜視図である。 第2図はこの発明の一実施例の位置制御装置の概略を示
すブロック図である。 第3図はX軸方向を示す図解図である。 第4図は処理装置CP[Jの動作を説明するためのフロ
ー図である。 第5図はカウントルーチンを示すフロー図である。 第6図はX軸上の各点位置関係を示す図解図である。 第7図はサーボ系の速度状態(CLock ,Null
)を説明するための図解図である。 図において、CNTは制御装置、OPは操作盤、SWは
原点復帰スイツナ、CPUは処理装置、ODx t O
Dy + ODz は指令回路、OBJは被制御体であ
る。
FIG. 1 is an overall perspective view showing an example of an automatic welding device that forms the background of the present invention and in which the present invention can be implemented. FIG. 2 is a block diagram schematically showing a position control device according to an embodiment of the present invention. FIG. 3 is an illustrative view showing the X-axis direction. FIG. 4 is a flow diagram for explaining the operation of the processing device CP[J. FIG. 5 is a flow diagram showing the counting routine. FIG. 6 is an illustrative diagram showing the positional relationship of each point on the X-axis. Figure 7 shows the speed status of the servo system (CLock, Null).
) is an illustrative diagram for explaining. In the figure, CNT is a control device, OP is an operation panel, SW is a return-to-origin switcher, CPU is a processing device, and ODx t O
Dy + ODz is a command circuit, and OBJ is a controlled object.

Claims (1)

【特許請求の範囲】 1 被制御体の変位に伴なってインクリメンタルのフィ
ードバックパルスを発生するフィードバックパルス発生
手段ENx 1 前記フィードバックパルスをカウントして前記被制御体
の現在位置を表わすデータを与えるカウンタFCx, 前記被制御体を変位制御すべき指令データを発生する指
令データ発生手段CPU1 前記指令データをストアする指令データストア手段OB
x,および 前記カウンタの現在位置を表わすデータと前記指令デー
タストア手段の指令データとを比較して、前記被制御体
を、原点位置の定められた変位軸に沿って、変位駆動す
る変位駆動手段SBxを備える位置制御装置であって、 前記被制御体を前記原点位置に復帰させたいときそのた
めの指令信号を与える原点復帰指令千段SW1および 前記変位軸の前記原点位置Iこ関連して設けられ、前記
被制御体が前記原点位置に存在することを検出する被制
御体検出手段OSxをさらに備え、前記指令データ発生
手段は、 前記原点復帰指令手段からの指令信号に応答して、前記
被制御体の一定の変位量に相当する変位量データを発生
して前記指令データストア手段に順次与え、前記変位駆
動手段1こよって前記被制御体を前記一定の変位量ずつ
順次に前記原点位置方向に変位させる原点方向変位手段
8407,8408 ,8409 ,8410と、 前記被制御体検出手段の出力に応答して、前記被制御体
の前記原点位置方向の変位を停止させる変位停止手段8
411 ,8412,8413と、前記停止に応じて、
前記被制御体が前記原点位置を再び越えるように適当な
指令データを発生して前記指令データストア手段に与え
、前記変位駆動手段によって前記被制御体を再び原点位
置方向に変位駆動させる原点方向再変位手段S414と
、前記原点方向再変位手段により前記被制御体が前記原
点位置方向へ再変位されているとき、前記被制御体検出
手段の出力に応答して、前記カウンタを初期状態にリセ
ットするリセット手段8415 ,8416,8417
とを含む、位置制御装置。
[Claims] 1. Feedback pulse generating means ENx that generates incremental feedback pulses in accordance with the displacement of the controlled object. 1. A counter FCx that counts the feedback pulses and provides data representing the current position of the controlled object. , a command data generating means CPU1 for generating command data for displacing and controlling the controlled object; a command data storing means OB for storing the command data;
x, and displacement driving means for displacing and driving the controlled object along a displacement axis having a determined origin position by comparing data representing the current position of the counter with command data of the command data storage means; The position control device includes an SBx, and is provided in association with the origin position I of the displacement axis and an origin return command SW1 that provides a command signal for returning the controlled object to the origin position. , further comprising a controlled object detection means OSx for detecting that the controlled object exists at the origin position, and the command data generation means, in response to a command signal from the origin return command means, detects the presence of the controlled object at the origin position. Displacement data corresponding to a constant displacement of the body is generated and sequentially supplied to the command data storage means, and the displacement drive means 1 sequentially moves the controlled body by the constant displacement in the direction of the origin position. Displacement means 8407, 8408, 8409, 8410 for displacing the controlled object in the direction of the origin, and displacement stopping means 8 for stopping the displacement of the controlled object in the direction of the origin in response to the output of the controlled object detection means.
411, 8412, 8413, and in response to said stop,
Generate appropriate command data to cause the controlled object to exceed the origin position again, and apply it to the command data storage means, and cause the displacement drive means to displace and drive the controlled object again in the direction of the origin position. When the controlled object is being redisplaced toward the origin position by the displacement means S414 and the origin direction redisplacement means, the counter is reset to an initial state in response to the output of the controlled object detection means. Resetting means 8415, 8416, 8417
and a position control device.
JP52034953A 1977-03-28 1977-03-28 position control device Expired JPS5837562B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP52034953A JPS5837562B2 (en) 1977-03-28 1977-03-28 position control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP52034953A JPS5837562B2 (en) 1977-03-28 1977-03-28 position control device

Publications (2)

Publication Number Publication Date
JPS53131377A JPS53131377A (en) 1978-11-16
JPS5837562B2 true JPS5837562B2 (en) 1983-08-17

Family

ID=12428516

Family Applications (1)

Application Number Title Priority Date Filing Date
JP52034953A Expired JPS5837562B2 (en) 1977-03-28 1977-03-28 position control device

Country Status (1)

Country Link
JP (1) JPS5837562B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58208612A (en) * 1982-05-31 1983-12-05 Fanuc Ltd Measuring system
JPH0792700B2 (en) * 1987-06-16 1995-10-09 三菱電機株式会社 Electric motor controller

Also Published As

Publication number Publication date
JPS53131377A (en) 1978-11-16

Similar Documents

Publication Publication Date Title
CN105388852B (en) Numerical control device, lathe and control method
US4233491A (en) Method and apparatus for controlling increment type position control apparatus
US5231335A (en) Double spindle synchronous driving apparatus
EP0172486A2 (en) Tracking robot apparatus
JPS5837562B2 (en) position control device
JP3063562B2 (en) Moving body speed control method and its control device
JP3433817B2 (en) Feed control device
WO1989001388A1 (en) Axis switching device
JPS6315098B2 (en)
JPH0869326A (en) Positioning controller
JPH048485A (en) Teaching method of robot system with conveyor
JPH1015864A (en) Manual pulse generator
JP3224783B2 (en) Automatic work equipment
JPH11170122A (en) Positioning control device
JPH044405A (en) numerical control device
JP2507957B2 (en) Movement control device for industrial robot
JP2712881B2 (en) Numerical control unit
JPH0650005Y2 (en) CNC device
JPS6294245A (en) Device for returning to starting point for numerically controlled machine tool
JPH0580833A (en) Controller for industrial robots
JPS60191308A (en) Controller of industrial machine
JPS63269212A (en) Servo device
JPS63803B2 (en)
JPH01142805A (en) Numerical controller
JPH03108008A (en) Industrial robot speed control method