JPH0647635A - Screw tightening control device - Google Patents
Screw tightening control deviceInfo
- Publication number
- JPH0647635A JPH0647635A JP6527793A JP6527793A JPH0647635A JP H0647635 A JPH0647635 A JP H0647635A JP 6527793 A JP6527793 A JP 6527793A JP 6527793 A JP6527793 A JP 6527793A JP H0647635 A JPH0647635 A JP H0647635A
- Authority
- JP
- Japan
- Prior art keywords
- screw tightening
- program
- screw
- unit
- cpu
- 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.)
- Granted
Links
Landscapes
- Details Of Spanners, Wrenches, And Screw Drivers And Accessories (AREA)
Abstract
(57)【要約】
【目的】 途中まで締め付けられたねじを自動で締め付
け可能にする。
【構成】 ねじ締めプログラムの各ステップに番号S0
01,S002,S003,S004等を付す。PCか
らのステップNo信号を入力し、この信号により示され
るステップをスタートポイントとしてねじ締めプログラ
ムを実行する。ステップNoを記憶しておき、再起動時
にねじのストロークを測定し、あるいは再起動時にID
を入力することにより、スタートポイントを特定しても
良い。ステップに代え、ねじ穴に対応するブロックから
再起動させてもよい
【効果】 再起動時にスタートポイントをねじ締めプロ
グラム中途に設定できる。
(57) [Summary] [Purpose] A screw that has been partially tightened can be automatically tightened. [Configuration] Number S0 for each step of the screw tightening program
01, S002, S003, S004, etc. are attached. The step No signal from the PC is input, and the screw tightening program is executed with the step indicated by this signal as the starting point. Memorize the step number and measure the stroke of the screw when restarting, or ID when restarting.
The start point may be specified by inputting. Instead of the step, the block corresponding to the screw hole may be restarted. [Effect] At restart, the start point can be set in the middle of the screw tightening program.
Description
【0001】[0001]
【産業上の利用分野】本発明は、電動ねじ締め装置(電
動ナットランナー)に関し、特にその動作を制御するね
じ締め制御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electric screw tightening device (electric nutrunner), and more particularly to a screw tightening control device for controlling the operation thereof.
【0002】[0002]
【従来の技術】電動ナットランナーは、ねじ締めの自動
化のため広く用いられている装置である。この装置にお
いては、ねじの慣性を排除して所望のトルクでねじ締め
を行うべくねじ締めコントローラが用いられる。また、
ねじ締めコントローラとしては、ねじの締め付け不良を
検出する構成も知られている。2. Description of the Related Art Electric nutrunners are widely used devices for automating screw tightening. In this device, a screw tightening controller is used to eliminate the inertia of the screw and tighten the screw with a desired torque. Also,
As a screw tightening controller, a configuration that detects a screw tightening failure is also known.
【0003】図39には、一従来例に係るねじ締め装置
の構成が示されている。この図は、特開平2−1527
33号に開示された装置の要部を簡略化して表したもの
である。FIG. 39 shows the structure of a screw tightening device according to a conventional example. This figure shows Japanese Patent Laid-Open No. 2-1527.
33 is a simplified representation of the essential parts of the device disclosed in No. 33.
【0004】この図に示される装置は、モータ10によ
りドライバビット12を回転させ、ドライバビット12
先端に篏着されたねじを締め付ける構成を有しており、
モータ10からドライバビット12までの動力伝達経路
上には回転検出器14が設けられている。この回転検出
器14は、ドライバビット12の回転数を検出し出力す
るセンサである。すなわち、回転検出器14は、ドライ
バビット12が回転すると、回転速度に応じたパルス幅
を有するパルス信号を出力し、これをカウンタ16及び
ANDゲート18に入力する。カウンタ16からの出力
が“H”の状態では回転検出器14から出力されるパル
ス信号が停止判断部20に入力され、カウンタ16から
の出力が“L”の状態では入力されない。In the device shown in this figure, a motor 10 rotates a driver bit 12 to drive the driver bit 12
It has a structure that tightens the screw attached to the tip,
A rotation detector 14 is provided on the power transmission path from the motor 10 to the driver bit 12. The rotation detector 14 is a sensor that detects and outputs the rotation speed of the driver bit 12. That is, when the driver bit 12 rotates, the rotation detector 14 outputs a pulse signal having a pulse width according to the rotation speed, and inputs this to the counter 16 and the AND gate 18. When the output from the counter 16 is "H", the pulse signal output from the rotation detector 14 is input to the stop determination unit 20, and when the output from the counter 16 is "L", the pulse signal is not input.
【0005】カウンタ16からの出力が“H”の状態で
は、停止判断部20により、パルス信号のパルス幅に基
づく判定が実行される。上述のように、回転検出器14
から出力されるパルス信号のパルス幅はモータ10の出
力軸の回転速度を表しており、ねじの締め付けが終了に
近付くと出力軸の回転速度が低下する結果、パルス幅が
長くなる。停止判断部20は、パルス幅の判定によりね
じ締めを停止させるべきか否かを判断し、停止させるべ
きと判断した場合には、正転制御部22に対し正転電圧
の遮断を、逆転制御部24に逆転電圧の供給を指令す
る。正転制御部22及び逆転制御部24は、この指令に
応じて切換手段26を制御し、図示しない電源からモー
タ10に供給する正転電圧を遮断すると共に当該電源か
らモータ10に逆転電圧を供給させる。切換手段26
は、従って、ねじ締めの際には正転電圧をモータ10に
供給する一方、ねじ締めが終了すると逆転電圧をモータ
10に供給し、僅かの時間が経過した後にモータ10を
停止させる。When the output from the counter 16 is "H", the stop judging section 20 makes a judgment based on the pulse width of the pulse signal. As described above, the rotation detector 14
The pulse width of the pulse signal output from the motor 10 indicates the rotation speed of the output shaft of the motor 10. When the tightening of the screw approaches the end, the rotation speed of the output shaft decreases, resulting in a longer pulse width. The stop determination unit 20 determines whether or not the screw tightening should be stopped by determining the pulse width, and when it is determined that the screw tightening should be stopped, the normal rotation control unit 22 is cut off the normal rotation voltage and the reverse rotation control is performed. The section 24 is instructed to supply the reverse voltage. The forward rotation control unit 22 and the reverse rotation control unit 24 control the switching means 26 in response to this command to cut off the forward rotation voltage supplied from the power source (not shown) to the motor 10 and supply the reverse rotation voltage from the power source to the motor 10. Let Switching means 26
Therefore, the forward rotation voltage is supplied to the motor 10 when tightening the screw, while the reverse rotation voltage is supplied to the motor 10 when the screw tightening is completed, and the motor 10 is stopped after a short time has elapsed.
【0006】このように、図39の従来例においては、
ねじ締めの進行に伴い反力が発生しこの反力によりドラ
イバビット12の回転速度が低下すると、これに応じて
ねじ締めが終了される。この結果、所望トルクでねじ締
めを行うことが可能になる。さらに、この従来例では、
カウンタ16によってANDゲート18を開閉する動作
により、締め付け不良の検出を行うことが可能になる。As described above, in the conventional example of FIG.
A reaction force is generated as the screw tightening progresses, and when the rotation speed of the driver bit 12 decreases due to this reaction force, the screw tightening is ended accordingly. As a result, it becomes possible to tighten the screw with a desired torque. Furthermore, in this conventional example,
The operation of opening and closing the AND gate 18 by the counter 16 makes it possible to detect a tightening failure.
【0007】すなわち、モータ10やその電源に異常が
生じたり、ドライバビット12に曲りが生じ正常に回転
しなくなっていたり、あるいは回転検出器14に異常が
生じている場合等、回転検出器14から正常にパルス信
号出力が得られない場合、ANDゲート18が閉じられ
る。このため、カウンタ16はねじ締め開始後所定時間
内におけるパルス信号の発生個数を計数し、所定個数に
至った場合のみ出力を“H”としてANDゲート18を
開かせる。従って、この従来例においては、異常が発生
した場合にこれを検出して対応することができる。In other words, when the motor 10 or its power source has an abnormality, the driver bit 12 is bent and cannot rotate normally, or the rotation detector 14 has an abnormality, the rotation detector 14 detects When the pulse signal output is not normally obtained, the AND gate 18 is closed. Therefore, the counter 16 counts the number of pulse signals generated within a predetermined time after the start of screw tightening and sets the output to "H" to open the AND gate 18 only when the number reaches the predetermined number. Therefore, in this conventional example, when an abnormality occurs, it can be detected and dealt with.
【0008】[0008]
【発明が解決しようとする課題】しかし、この従来例に
は、すでに締め付けを一度行っているねじについて再度
締め付けを行う場合等に問題点が発生する。However, this conventional example has a problem when a screw that has already been tightened once is tightened again.
【0009】まず、ねじ締めプログラムを搭載する電動
ナットランナーを用いて自動でねじ締めを行う際には、
所定の設備条件を満たしていなければならない。設備条
件としては、例えばワークのクランプ確認がある。ワー
クのクランプが確認されない状態では、そのままねじの
締め付けを実行するのは好ましくない。従って、上に述
べた従来例と類似の異常検出機能を用い、設備条件の不
備を異常として検出し、ねじ締めプログラムの実行を中
断する必要がある。また、ワークの不良が発生した場合
等にも、ねじ締めが中断される。First, when automatically tightening a screw using an electric nut runner equipped with a screw tightening program,
It must meet the specified equipment requirements. The equipment conditions include, for example, confirmation of a work clamp. If the work clamp is not confirmed, it is not preferable to directly tighten the screws. Therefore, it is necessary to interrupt the execution of the screw tightening program by using the abnormality detection function similar to the above-described conventional example to detect an inadequate equipment condition as an abnormality. In addition, screw tightening is interrupted when a defective work occurs.
【0010】ここに、ねじ締めが中途まで行われた状態
でねじ締めプログラムを再起動すると、仮締め、本締め
等のステップを含むねじ締め動作全体が実行されるた
め、仮締め判定や最終値判定の不良となってしまう。電
動ナットランナーに搭載されるねじ締めプログラムは、
通常、例えば仮締めから本締めに移行する際にある条件
が満たされたか否かを判定(仮締め判定)しており、ま
た、ねじ締め動作を終了する際にある条件が満たされた
か否かを判定(最終値判定)している。従って、従来
は、ねじ締めが中途まで行われた状態でねじ締めプログ
ラムを再起動させることができず、電動ナットランナー
を用いるに当たって手工具、インパクトレンチ等を用い
て予めねじを完全に緩めなければならなかった。When the screw tightening program is restarted in the state where the screw tightening is performed halfway, the entire screw tightening operation including steps such as temporary tightening and final tightening is executed. The judgment is bad. The screw tightening program installed on the electric nutrunner is
Usually, for example, it is determined whether or not a certain condition is satisfied when transitioning from temporary tightening to final tightening (temporary tightening determination), and whether or not a certain condition is satisfied when the screw tightening operation is finished. Is determined (final value determination). Therefore, conventionally, the screw tightening program cannot be restarted in the state where the screw tightening is performed halfway, and when using the electric nut runner, the screw must be completely loosened in advance using a hand tool, an impact wrench, etc. did not become.
【0011】本発明は、このような問題点を解決するこ
とを課題としてなされたものであり、ねじ締めプログラ
ムを再起動させてもねじを好適に締め付けることができ
るようにすることを目的とする。The present invention has been made to solve the above problems, and an object of the present invention is to enable a screw to be properly tightened even if a screw tightening program is restarted. .
【0012】[0012]
【課題を解決するための手段】このような目的を達成す
るために、本発明は、ねじ締めプログラムを構成する複
数のステップの中から実行開始に係るステップを特定す
るステップ特定手段と、特定されたステップからねじ締
めプログラムを再起動させる再起動手段と、を備え、再
起動時にねじ締めプログラムの中途のステップからねじ
締め制御を実行されることを特徴とする。In order to achieve such an object, the present invention is specified as step specifying means for specifying a step related to execution start from a plurality of steps constituting a screw tightening program. Restarting means for restarting the screw tightening program from the step described above, and the screw tightening control is executed from the middle step of the screw tightening program at the time of restart.
【0013】また、本発明の請求項2は、ステップ特定
手段が、ねじの状態を検出測定する手段と、検出測定結
果に基づき実行開始に係るステップを特定する手段と、
を備えることを特徴とする。According to a second aspect of the present invention, the step specifying means includes means for detecting and measuring the state of the screw, and means for specifying the step related to the start of execution based on the detection measurement result.
It is characterized by including.
【0014】本発明の請求項3は、ステップ特定手段
が、各ねじ毎に付与された情報を入力する手段と、入力
される情報に基づき実行開始に係るステップを特定する
手段と、を備えることを特徴とする。According to a third aspect of the present invention, the step specifying means comprises means for inputting information given to each screw, and means for specifying a step related to execution start based on the input information. Is characterized by.
【0015】そして、本発明の請求項4は、前記ねじ締
めプログラムが、それぞれねじ穴に対応する複数のブロ
ックから構成されると共に、前記ステップ特定手段に代
え、前記複数のブロックの中から実行開始に係るブロッ
クを特定するブロック特定手段を備え、前記再起動手段
が、特定されたブロックからねじ締めプログラムを再起
動させることにより、再起動時にねじ締めプログラムの
中途のブロックからねじ締め制御を実行することを特徴
とする。According to a fourth aspect of the present invention, the screw tightening program is composed of a plurality of blocks respectively corresponding to the screw holes, and the execution is started from the plurality of blocks instead of the step specifying means. The block specifying means for specifying the block according to the above is provided, and the restarting means restarts the screw tightening program from the specified block, thereby executing the screw tightening control from the block in the middle of the screw tightening program at the time of restart. It is characterized by
【0016】[0016]
【作用】本発明においては、ねじ締めプログラムを再起
動させる際、当該ねじ締めプログラムを構成する複数の
ステップの中から1個のステップが特定される。さら
に、特定されたステップからねじ締めプログラムの実行
が開始される。従って、ねじが途中まで締め付けられて
いる場合に、中途のステップからねじの締め付けを行う
ことが可能になる。In the present invention, when the screw tightening program is restarted, one step is specified from a plurality of steps constituting the screw tightening program. Further, the execution of the screw tightening program is started from the specified step. Therefore, when the screw is partially tightened, it is possible to tighten the screw from an intermediate step.
【0017】また、請求項2においては、実行開始に係
るステップが、ねじの状態の検出測定により特定され
る。従って、ステップの特定に当たって例えばステップ
番号を入力する等の操作が不要となり、より自動化され
る。Further, in claim 2, the step relating to the execution start is specified by the detection measurement of the state of the screw. Therefore, when specifying a step, an operation such as inputting a step number becomes unnecessary, and the step is further automated.
【0018】請求項3においては、実行開始に係るステ
ップを特定するに当たって、各ねじ毎に付与された情報
が入力される。入力する情報は、ステップを特定可能な
情報であれば良く、ねじの状態を表す情報の他、測定等
によっては得られない要素(締め付け時間、締め付けを
行った装置の番号等)を含む情報であっても良い。従っ
て、請求項2と同様に自動化されると共に、より詳細・
多岐に亘る情報に基づきステップの特定を行っているた
め、後工程、他のライン等でねじ締めを行うことも可能
になる。According to the third aspect of the present invention, the information given to each screw is input to specify the step related to the execution start. The information to be entered may be any information that can identify the step, and in addition to the information indicating the screw state, information that includes elements that cannot be obtained by measurement (tightening time, number of the tightening device, etc.). It may be. Therefore, it is automated in the same manner as in claim 2, and more detailed
Since the step is specified based on a wide variety of information, it is possible to perform screw tightening in a post process, another line, or the like.
【0019】請求項4においては、ねじ締めプログラム
を再起動させる際、当該ねじ締めプログラムを構成する
複数のブロックの中から1個のブロックが特定される。
ブロックは、ねじ締めに係るねじ穴に対応しており、例
えば上記ステップを複数個含んでいる。ねじ締めプログ
ラムは特定されたブロックから実行開始される。従っ
て、例えばねじ締めに係る異常の発生に伴いねじを除去
した上でねじ締めを再開する場合に、ねじ締めプログラ
ムを対応するブロックから起動することが可能になる。According to another aspect of the present invention, when the screw tightening program is restarted, one block is specified from among a plurality of blocks constituting the screw tightening program.
The block corresponds to a screw hole for tightening a screw and includes, for example, a plurality of steps described above. The screw tightening program starts from the specified block. Therefore, for example, when the screw is restarted after removing the screw due to the occurrence of an abnormality related to the screw tightening, the screw tightening program can be started from the corresponding block.
【0020】[0020]
【実施例】以下、本発明の好適な実施例について図面に
基づき説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT A preferred embodiment of the present invention will be described below with reference to the drawings.
【0021】図1には、本発明の第1実施例に係るねじ
締め装置の構成が示されている。この図に示される装置
は、コントローラ28及び速度アンプ30から構成さ
れ、設備PC(プログラマブルコントローラ)32から
の締付指令に応じてモータ34を制御する構成である。FIG. 1 shows the structure of a screw tightening device according to the first embodiment of the present invention. The device shown in this figure is composed of a controller 28 and a speed amplifier 30, and is configured to control a motor 34 in accordance with a tightening command from an equipment PC (programmable controller) 32.
【0022】まず、設備PC32は工場内に設置される
工作機械等の設備を統括する。設備PC32は、設備の
条件が整うと、図2に示されるように設備動作プログラ
ムに従いコントローラ28に対して締付指令を与え、コ
ントローラ28に搭載されているねじ締めプログラムを
起動させる。コントローラ28においてねじ締めプログ
ラムの実行が終了すると、コントローラ28はその旨を
設備PC32に通知する。これに応じ、設備PC32は
必要な処理を実行する。First, the equipment PC 32 controls equipment such as machine tools installed in the factory. When the condition of the equipment is satisfied, the equipment PC 32 gives a tightening command to the controller 28 according to the equipment operation program as shown in FIG. 2, and starts the screw tightening program installed in the controller 28. When the controller 28 finishes executing the screw tightening program, the controller 28 notifies the facility PC 32 of that fact. In response to this, the equipment PC 32 executes necessary processing.
【0023】コントローラ28は、総合部36及び速度
コントロール部38を有している。総合部36はコント
ローラ28の全体動作を制御する手段であり、速度コン
トロール部38は速度アンプに対して速度指令を与える
手段である。The controller 28 has an overall unit 36 and a speed control unit 38. The overall unit 36 is a unit that controls the overall operation of the controller 28, and the speed control unit 38 is a unit that gives a speed command to the speed amplifier.
【0024】総合部36は、後述するようにねじ締めプ
ログラムを記憶しており、設備PC32からの締付指令
に応じてこれを実行する。ねじ締めプログラムは、例え
ば図3に示されるようにステップS001,S002,
S003及びS004から構成されている。この例で
は、ステップS001は、“早回転(350rpm)で
モータ34を回転(SPEED)させ、スタートからの
時間(TIME)が3秒(I3)を経過するかモータ3
4の軸トルク(TORQ)が50kgcmを越えるか、
いずれの条件が満たされた場合にステップS002に移
行する”動作に係るステップである。同様に、ステップ
S002は、“50rpmでモータ34を回転させ、軸
トルクが200kgcmを越えた場合にステップS00
3に移行する”動作に係るステップである。ステップS
003は、“5rpmでモータ34を回転させ、軸トル
クが500kgcmを越えた場合にステップS004に
移行する”動作に係るステップである。そして、ステッ
プS004は、“ねじ締め終了を示す通知を設備PC3
2に出力する”動作に係るステップである。このような
ねじ締めプログラムが先頭のステップS001から正常
に実行された場合、モータ34の速度は図4(a)に示
されるように、その軸トルクは図4(b)に示されるよ
うに、それぞれ制御される。The comprehensive unit 36 stores a screw tightening program as will be described later, and executes the screw tightening program in response to a tightening command from the equipment PC 32. The screw tightening program is, for example, as shown in FIG. 3, steps S001, S002,
It is composed of S003 and S004. In this example, in step S001, the motor 34 is rotated (SPEED) at a high speed (350 rpm), and the time (TIME) from the start is 3 seconds (I3) or the motor 3 is rotated.
Whether the shaft torque (TORQ) of 4 exceeds 50 kgcm,
This is a step related to the operation of "if any condition is satisfied, shift to step S002". Similarly, step S002 is "step S00 when the motor 34 is rotated at 50 rpm and the axial torque exceeds 200 kgcm.
This is a step related to the operation of "shifting to 3." Step S
003 is a step related to the operation of “rotating the motor 34 at 5 rpm and shifting to step S004 when the axial torque exceeds 500 kgcm”. Then, in step S004, a notification indicating the end of screw tightening is sent to the equipment PC 3
2 is a step relating to the operation. When such a screw tightening program is normally executed from the first step S001, the speed of the motor 34 is as shown in FIG. Are controlled as shown in FIG. 4 (b).
【0025】上記制御を実行するためには、モータ34
の軸トルクを検出するトルクセンサ40、及びモータ3
4の回転角度や回転速度を検出する角度・速度センサ4
2を、モータ34の出力軸に設ける必要がある。また、
トルクセンサ40及び角度・速度センサ42の出力を取
り込むために、コントローラ28にAD変換部44及び
角度・速度検出部46を設ける必要がある。AD変換部
44は、トルクセンサ40のアナログ出力をモータ34
の軸トルクを示すディジタルデータに変換して総合部3
6に供給する。角度・速度検出部46は、角度・速度セ
ンサ42(例えばモータ34に設けられたエンコーダ)
の出力に所定の処理を施し、やはり総合部36に供給す
る。In order to execute the above control, the motor 34
Sensor 40 for detecting the axial torque of the motor and the motor 3
Angle / speed sensor 4 that detects the rotation angle and rotation speed of 4
2 must be provided on the output shaft of the motor 34. Also,
In order to capture the outputs of the torque sensor 40 and the angle / speed sensor 42, the controller 28 needs to be provided with the AD conversion unit 44 and the angle / speed detection unit 46. The AD converter 44 converts the analog output of the torque sensor 40 into the motor 34.
Converted to digital data showing the shaft torque of
Supply to 6. The angle / speed detection unit 46 is an angle / speed sensor 42 (for example, an encoder provided in the motor 34).
The output of the above is subjected to a predetermined process and is also supplied to the comprehensive unit 36.
【0026】速度アンプ30は、速度コントロール部3
8から速度指令が与えられると、これに応じてモータ3
4の電流を制御する。すなわち、速度アンプ30は、速
度指令を電流指令に変換する電流指令発生部48及び電
流指令に応じてモータ34に電流を供給する電流アンプ
50を有している。速度指令はモータ34の回転速度の
制御目標値を示しており、電流指令はこの目標値に相当
する電流値を示している。従って、速度アンプ30によ
り、モータ34の回転速度を所定の目標値に制御でき
る。また、速度指令は図3に一例が示されるねじ締めプ
ログラムに従って生成されるものであり、これにより、
モータ34の回転速度をねじ締めプログラムに従って制
御できる。なお、図中52はトルクカット制御部であ
り、電流アンプ50の出力を電流指令発生部48にフィ
ードバックしてモータ34に過大なトルクが発生するこ
とを防止する。The speed amplifier 30 includes a speed control unit 3
When a speed command is given from 8, the motor 3
4 current is controlled. That is, the speed amplifier 30 has a current command generator 48 that converts the speed command into a current command, and a current amplifier 50 that supplies a current to the motor 34 according to the current command. The speed command indicates a control target value of the rotation speed of the motor 34, and the current command indicates a current value corresponding to this target value. Therefore, the speed amplifier 30 can control the rotation speed of the motor 34 to a predetermined target value. The speed command is generated according to the screw tightening program, an example of which is shown in FIG.
The rotation speed of the motor 34 can be controlled according to the screw tightening program. Reference numeral 52 in the figure is a torque cut control unit that feeds back the output of the current amplifier 50 to the current command generation unit 48 to prevent excessive torque from being generated in the motor 34.
【0027】図5には、コントローラ28の構成がより
詳細に示されている。この図に示されるように、本実施
例のコントローラ28は、総合部36、速度コントロー
ル部38、AD変換部44及び角度・速度検出部46の
他、入出力部54及び56が内部バス58を介して接続
された構成である。入出力部54は、前述の設備PC3
2とのインタフェース機能の他、プログラマとのインタ
フェース機能を有している。入出力部56は、速度アン
プ30とのインタフェース機能を有している。なお、図
中60は外部電源から電力の供給を受けこれを適宜変換
してコントローラ28の各部構成に供給する電源部であ
り、62はこの電力供給に係る電源配線である。The structure of the controller 28 is shown in more detail in FIG. As shown in this figure, in the controller 28 of this embodiment, in addition to the general section 36, the speed control section 38, the AD conversion section 44 and the angle / speed detection section 46, the input / output sections 54 and 56 use the internal bus 58. It is the structure connected through. The input / output unit 54 is the equipment PC 3 described above.
In addition to the interface function with 2, the interface function with the programmer is provided. The input / output unit 56 has an interface function with the speed amplifier 30. In the figure, reference numeral 60 denotes a power supply unit that receives power supplied from an external power supply, converts the power appropriately, and supplies the power to each unit configuration of the controller 28, and reference numeral 62 denotes a power supply wiring related to this power supply.
【0028】図6には、この実施例における総合部36
及び入出力部54の構成が示されている。この図に示さ
れるように、総合部36はCPU64、ROM66及び
RAM68を備えている。ROM66はシステムプログ
ラムを格納するメモリであり、RAM68はねじ締めプ
ログラム(ユーザプログラム)を格納するメモリであ
る。CPU64はこれらに係る処理を実行する。すなわ
ち、CPU64は、RAM68上のねじ締めプログラム
をシステムプログラムにより機械語に変換し、翻訳され
たねじ締めプログラムを設備PC32からの締付指令に
応じシステムプログラム下で実行する。FIG. 6 shows the general unit 36 in this embodiment.
Also, the configuration of the input / output unit 54 is shown. As shown in this figure, the comprehensive unit 36 includes a CPU 64, a ROM 66, and a RAM 68. The ROM 66 is a memory that stores a system program, and the RAM 68 is a memory that stores a screw tightening program (user program). The CPU 64 executes the processing related to these. That is, the CPU 64 converts the screw tightening program on the RAM 68 into a machine language by the system program, and executes the translated screw tightening program under the system program according to the tightening command from the equipment PC 32.
【0029】また、入出力部54は対PCインタフェー
ス70及び対プログラマインタフェース72を備えてい
る。設備PC32とコントローラ28の間のやり取り
は、入出力部54の対PCインタフェース70を介して
行われる。設計者、保全者等が装置内部の状態を知る際
には、入出力部54の対プログラマインタフェース72
を介してコントローラ28の内部を調べる。The input / output unit 54 also includes a PC interface 70 and a programmer interface 72. Communication between the equipment PC 32 and the controller 28 is performed via the PC interface 70 of the input / output unit 54. When the designer or maintenance person knows the internal state of the device, the programmer interface 72 of the input / output unit 54 is used.
The inside of the controller 28 is examined via.
【0030】この実施例が特徴とするところは、ROM
66がステップNo処理ルーチン1000を搭載し、こ
れに対応して対PCインタフェース70がステップNo
信号入力部74を有している点である。ステップNo信
号入力部74は設備PC32からステップNo信号を入
力する手段であり、ステップNo処理ルーチン1000
はこれを処理する手段である。図7には、ROM66上
に格納されるシステムプログラムのうち、ねじ締めプロ
グラムの実行に係りステップNo処理ルーチン1000
を含む部分の流れが示されている。また、図8には、こ
の処理に係る動作が示されている。The feature of this embodiment is that the ROM
66 has a step number processing routine 1000, and the corresponding PC interface 70 has a step number corresponding to this.
The point is that it has a signal input section 74. The step No signal input unit 74 is means for inputting a step No signal from the equipment PC 32, and the step No processing routine 1000.
Is the means to handle this. FIG. 7 shows a step No processing routine 1000 relating to the execution of the screw tightening program of the system programs stored in the ROM 66.
The flow of the part including is shown. Further, FIG. 8 shows the operation related to this processing.
【0031】本実施例の装置に電源が投入されると(1
100)、CPU64は、まず自己診断を実行する(1
102)。この自己診断は、RAM68や入出力部54
等の状態をチェックし、正常に動作し得るか否かを判断
するものである。この診断の結果異常であるとされた場
合には、CPU64は異常が生じた旨を設備PC32や
使用者等に報知する一方で現状を維持する。正常であれ
ば、ステップ1104以降に進む。When the apparatus of this embodiment is powered on (1
100), the CPU 64 first executes a self-diagnosis (1
102). This self-diagnosis is performed by the RAM 68 and the input / output unit 54.
It is to judge whether or not it can operate normally by checking the states such as. If the result of this diagnosis is abnormal, the CPU 64 keeps the current state while notifying the equipment PC 32, the user, etc. that the abnormality has occurred. If normal, the process proceeds to step 1104 and thereafter.
【0032】ステップ1104においては、CPU64
は、設備PC32からステップNo信号が入力されてい
るか否かを判定する。すなわち、ステップNo入力部7
4を介してステップNo信号が入力されているか否かを
判定する。通常の起動の場合にはステップNo信号は入
力されない。この場合、CPU64は、プログラムスタ
ート位置をプログラムの先頭とする(1106)。In step 1104, the CPU 64
Determines whether the step No. signal is input from the equipment PC 32. That is, the step No input unit 7
It is determined whether or not the step No. signal is input via 4. In the case of normal startup, the step No signal is not input. In this case, the CPU 64 sets the program start position to the beginning of the program (1106).
【0033】CPU64は、次に、設備PC32から締
付指令(プログラムスタート信号)が入力されたか否か
を判定する(1108)。入力されていない場合、入力
されるまで待ち状態をとるべく、CPU64はステップ
1104に戻る。入力された場合、CPU64はステッ
プ1110に移行する。Next, the CPU 64 determines whether or not a tightening command (program start signal) has been input from the equipment PC 32 (1108). If not, the CPU 64 returns to step 1104 so as to wait until it is input. When input, the CPU 64 proceeds to step 1110.
【0034】ステップ1110においては、CPU64
は、プログラムスタート信号によって示されるねじ締め
プログラムをステップ1106において設定されたプロ
グラムスタート位置、すなわち先頭から実行する。例え
ば5種類のねじ締めプログラムPGS1〜PGS5が総
合部36のRAM68上に格納されている場合、図8に
示されるように、設備PC32がプログラムスタート信
号によって5種類のねじ締めプログラムPGS1〜PG
S5のうちいずれかを指定する。In step 1110, the CPU 64
Executes the screw tightening program indicated by the program start signal from the program start position set in step 1106, that is, from the beginning. For example, when five types of screw tightening programs PGS1 to PGS5 are stored in the RAM 68 of the general unit 36, as shown in FIG. 8, the equipment PC 32 sends five types of screw tightening programs PGS1 to PG in response to a program start signal.
Any one of S5 is designated.
【0035】このような処理の結果、指定されたねじ締
めプログラムの実行が終了した場合、CPU64はその
旨を設備PC32に報知し(1112)、ステップ11
04に戻る。このように、本実施例によれば、ねじ締め
プログラムを好適に実行できる。When the execution of the designated screw tightening program is completed as a result of such processing, the CPU 64 notifies the equipment PC 32 of that fact (1112), and step 11
Return to 04. As described above, according to this embodiment, the screw tightening program can be suitably executed.
【0036】さらに、この実施例によれば、RAM68
上に格納されているねじ締めプログラムを中途から実行
することも可能である。この動作は本実施例の特徴とす
るところであり、次のようにステップ1114により実
現される。Further, according to this embodiment, the RAM 68
It is also possible to execute the screw tightening program stored above from the middle. This operation is a feature of this embodiment, and is realized by step 1114 as follows.
【0037】すなわち、ステップ1104において設備
PC32からステップNo信号が入力されていると判定
された場合、プログラムスタート位置として、このステ
ップNo信号によって指定されるステップが設定され
る。図8に示すように、設備PC32は、ステップNo
信号SN1〜SN5のうち実行開始に係る信号を出力
し、CPU64はステップNo入力部74を介してこれ
を入力する。CPU64は、プログラムスタート位置の
設定を実行した後、ステップ308に移行する。That is, when it is determined in step 1104 that the step No signal is input from the equipment PC 32, the step designated by the step no signal is set as the program start position. As shown in FIG. 8, the equipment PC 32 has a step No.
The signal related to the start of execution is output from the signals SN1 to SN5, and the CPU 64 inputs the signal via the step No input unit 74. After executing the setting of the program start position, the CPU 64 proceeds to step 308.
【0038】続くステップ1110においては、プログ
ラムスタート信号によって示されるねじ締めプログラム
が、設定されたプログラムスタート位置から実行され
る。これにより、例えば図3の例であればステップS0
02から実行するといった処理が可能になる。In the following step 1110, the screw tightening program indicated by the program start signal is executed from the set program start position. Thereby, for example, in the case of the example of FIG. 3, step S0
It is possible to execute the processing from 02.
【0039】このように、本実施例によれば、ねじ締め
プログラムを必要に応じて中途のステップから実行開始
できる。従って、ねじの締め付け不良等が発生した場合
に、同一のねじ締めプログラムを用いることができる。
すなわち、仮締め開始から最終までのプログラムと、仮
締め終了時から最終までのプログラムとを準備する必要
がなく、設定値管理も1個で良い。As described above, according to this embodiment, the screw tightening program can be started from an intermediate step as needed. Therefore, the same screw tightening program can be used when a screw tightening failure or the like occurs.
That is, it is not necessary to prepare a program from the start of the temporary fastening to the final and a program from the end of the temporary fastening to the final, and only one set value management is required.
【0040】図9には、本発明の第2実施例に係るねじ
締め装置、特にそのコントローラ28の総合部36及び
入出力部54の構成が示されている。この実施例は、そ
の他の部分に関しては、図1及び図5の第1実施例と同
様の構成である。また、図6と比較した場合に相違する
点は、ROM68上にプログラム進行管理ルーチン10
02が搭載され、RAM68上においてプログラムカウ
ンタ1004が実現され、対PCインタフェース70が
ステップNo入力部74に代えリスタート入力部76を
有している点である。FIG. 9 shows the structure of the screw tightening device according to the second embodiment of the present invention, particularly the general part 36 and the input / output part 54 of the controller 28 thereof. The other parts of this embodiment have the same structure as the first embodiment of FIGS. 1 and 5. 6 is different from that of FIG. 6 in that the program progress management routine 10 is stored in the ROM 68.
02 is mounted, a program counter 1004 is implemented on the RAM 68, and the PC interface 70 has a restart input section 76 instead of the step No input section 74.
【0041】図10には、この実施例におけるCPU6
4の動作、特にステップNo処理ルーチン1000及び
プログラム進行管理ルーチン1002に係る処理を含む
部分の流れが示されている。FIG. 10 shows the CPU 6 in this embodiment.
4 shows the flow of a part including the operation relating to No. 4, particularly the processing relating to the step No processing routine 1000 and the program progress management routine 1002.
【0042】本実施例の装置に電源が投入されると(1
200)、CPU64は、第1実施例と同様の自己診断
を実行し(1202)、異常である場合にはその旨を設
備PC32や使用者等に報知し、正常である場合にはス
テップ1204以降に進む。ステップ1204において
は、CPU64は、設備PC32から対PCインタフェ
ース70を介して締付指令、すなわちプログラムスター
ト信号が入力されているか、それともそのリスタート入
力部76を介してリスタート信号が入力されているかを
判定する。When the apparatus of this embodiment is powered on (1
200), the CPU 64 executes the same self-diagnosis as in the first embodiment (1202), and when it is abnormal, informs the fact to the equipment PC 32 or the user, and when it is normal, after step 1204. Proceed to. In step 1204, the CPU 64 inputs a tightening command, that is, a program start signal from the facility PC 32 via the PC interface 70, or a restart signal is input via the restart input unit 76. To judge.
【0043】通常の起動の場合には、設備PC32はス
タート信号を出力する。この場合、CPU64は、プロ
グラムスタート位置をねじ締めプログラムの先頭とし
(1206)、実行開始に係るステップNo、すなわち
この場合にはねじ締めプログラムの先頭のステップのN
oを、プログラムカウンタ1004に書き込む(120
8)。CPU64は、プログラムカウンタ1004上の
プログラムスタート位置、すなわち先頭から、ねじ締め
プログラムを実行する(1210)。なお、RAM68
上に複数のねじ締めプログラムが搭載されている場合、
実行すべきプログラムは第1実施例と同様スタート信号
により設備PC32が指定する。ねじ締めプログラムの
実行が終了するまでは(1212)、CPU64は逐
次、次に実行すべきステップのNoをプログラムカウン
タ1004に書き込み(1208)、実行する(121
0)。このような処理の結果ねじ締めプログラムの実行
が終了した場合(1212)、CPU64はその旨を設
備PC32に報知し(1214)、ステップ1204に
戻る。このように、本実施例によれば、ねじ締めプログ
ラムを好適に実行できる。In the case of normal start-up, the equipment PC 32 outputs a start signal. In this case, the CPU 64 sets the program start position to the beginning of the screw tightening program (1206), and the step No related to the execution start, that is, N in the first step of the screw tightening program in this case.
write o to the program counter 1004 (120
8). The CPU 64 executes the screw tightening program from the program start position on the program counter 1004, that is, from the beginning (1210). The RAM 68
If multiple screw tightening programs are installed on the
The program to be executed is designated by the equipment PC 32 by the start signal as in the first embodiment. Until the execution of the screw tightening program is completed (1212), the CPU 64 sequentially writes the No of the step to be executed next to the program counter 1004 (1208) and executes it (121).
0). When the execution of the screw tightening program is completed as a result of such processing (1212), the CPU 64 notifies the equipment PC 32 of that fact (1214), and returns to step 1204. As described above, according to this embodiment, the screw tightening program can be suitably executed.
【0044】さらに、この実施例によれば、第1実施例
と同様、RAM68上に格納されているねじ締めプログ
ラムを中途から実行することも可能である。この動作は
ステップNo処理ルーチン1000により実行される。
さらに、プログラム進行管理ルーチン1002により、
ステップNoを設備PC32から指定することなくねじ
締めプログラムを中途のステップから実行可能にしてい
る。Further, according to this embodiment, as in the first embodiment, it is possible to execute the screw tightening program stored in the RAM 68 from the middle. This operation is executed by the step No processing routine 1000.
Further, by the program progress management routine 1002,
The screw tightening program can be executed from an intermediate step without specifying the step number from the equipment PC 32.
【0045】すなわち、ステップ1204において設備
PC32からリスタート信号が入力されていると判定さ
れた場合、CPU64は、プログラムカウンタ1004
上のステップNoを読み出し(1216)、読み出した
ステップNoからねじ締めプログラムを実行する(12
10)。プログラムカウンタ1004上にステップNo
がない場合、例えば前サイクルが存在しないとき(12
18)、CPU64はプログラムスタート位置としてプ
ログラムの先頭を設定し(1206)、先に説明した動
作を実行する。That is, when it is determined in step 1204 that the restart signal is input from the equipment PC 32, the CPU 64 causes the program counter 1004
The above step No. is read (1216), and the screw tightening program is executed from the read step No. (12
10). Step No. on the program counter 1004
, If there is no previous cycle (12
18), the CPU 64 sets the beginning of the program as the program start position (1206) and executes the operation described above.
【0046】このように、本実施例によれば、ねじ締め
プログラムを必要に応じて中途のステップから実行開始
できる。従って、ねじの締め付け不良等が発生した場合
に、同一のねじ締めプログラムを用いることができる。
すなわち、仮締め開始から最終までのプログラムと、仮
締め終了時から最終までのプログラムとを、両方準備す
る必要がなく、設定値管理も1個で良い。As described above, according to this embodiment, the screw tightening program can be started from an intermediate step as needed. Therefore, the same screw tightening program can be used when a screw tightening failure or the like occurs.
That is, it is not necessary to prepare both the program from the start of the temporary fastening to the final and the program from the end of the temporary fastening to the final, and one set value management is sufficient.
【0047】さらに、本実施例によれば、設備PC32
からリスタート信号を入力することにより、前サイクル
において実行したねじ締め動作を継続することが可能に
なる。また、前サイクルの記憶(プログラムカウンタ2
04上の記憶)は、リセット信号を用いることにより消
す構成とすれば良い。リセット信号は、例えば治具を緩
めてワークを入れ替え可能な状態としたときに発生させ
れば良い。Further, according to this embodiment, the equipment PC 32
It is possible to continue the screw tightening operation executed in the previous cycle by inputting the restart signal from. Also, the memory of the previous cycle (program counter 2
The memory on 04) may be erased by using a reset signal. The reset signal may be generated, for example, when the jig is loosened and the work can be replaced.
【0048】図11には、本発明の第3実施例に係るね
じ締め装置、特にそのコントローラ28の要部構成が示
されている。この図に示されるように、本実施例におい
ては、対PCインタフェース70上に、2個のリスター
ト入力部76及び76が搭載されている。リスター
ト入力部76は、第2実施例におけるリスタート入力
部76と同様のリスタート信号を設備PC32から入力
する手段である。すなわち、この実施例において設備P
C32から供給される2種類のリスタート信号のうち、
プログラムカウンタ上のステップNoからねじ締めプロ
グラムを再起動させる旨のリスタート信号が供給され
た場合には、このリスタート信号はリスタート入力部
76によってコントローラ28に入力される。一方、
本実施例の特徴に係るリスタート入力部76は、設備
PC32から供給される2種類のリスタート信号のう
ち、あらかじめ設定されている戻り数だけ戻ったステッ
プからねじ締めプログラムを再起動させる旨のリスター
ト信号を入力するための手段である。すなわち、設備
PC32からリスタート信号が供給されると、このリ
スタート信号はリスタート入力部76によってコン
トローラ28に入力される。FIG. 11 shows the main configuration of the screw tightening device according to the third embodiment of the present invention, particularly the controller 28 thereof. As shown in this figure, in this embodiment, two restart input sections 76 and 76 are mounted on the PC interface 70. The restart input unit 76 is means for inputting a restart signal similar to that of the restart input unit 76 in the second embodiment from the equipment PC 32. That is, in this embodiment, the equipment P
Of the two types of restart signals supplied from C32,
When a restart signal for restarting the screw tightening program is supplied from the step No. on the program counter, the restart signal is input to the controller 28 by the restart input unit 76. on the other hand,
The restart input unit 76 according to the feature of the present embodiment restarts the screw tightening program from the step in which the preset number of returns is returned from the two types of restart signals supplied from the equipment PC 32. It is a means for inputting a restart signal. That is, when the restart signal is supplied from the equipment PC 32, this restart signal is input to the controller 28 by the restart input unit 76.
【0049】図12には、この実施例におけるCPU6
4の動作、特にステップNo処理ルーチン1000及び
プログラム進行管理ルーチン1002を含む動作の流れ
が示されている。FIG. 12 shows the CPU 6 in this embodiment.
4 shows the flow of operations including step No. processing routine 1000 and program progress management routine 1002.
【0050】本実施例の装置に電源が投入されると(1
200)、CPU64は、まず第1及び第2実施例と同
様の自己診断を実行し(1202)、異常である場合に
はその旨を設備PC32や使用者等に報知し、正常であ
る場合にはステップ1220に進む。When the power of the apparatus of this embodiment is turned on (1
200), the CPU 64 first executes the same self-diagnosis as in the first and second embodiments (1202), and when it is abnormal, informs the fact to the equipment PC 32 or the user, and when it is normal, Proceeds to step 1220.
【0051】ステップ1220においては、CPU64
は、ステップNoの戻り数を設定する。後述のように、
設備PC32からリスタート信号が供給されている場
合、プログラムカウンタ1004上のステップNoから
所定ステップ戻り、戻ったステップNoからプログラム
の実行を開始する。ステップ1220において設定され
るステップNoの戻り数とは、このようなステップNo
の戻し処理の際に、ねじ締めプログラム上において戻る
ステップ数をいう。In step 1220, the CPU 64
Sets the number of returns in step No. As described below,
When the restart signal is supplied from the equipment PC 32, the program returns from the step No. on the program counter 1004 to the predetermined step, and the execution of the program is started from the returned step No. The return number of the step No. set in step 1220 is such a step number
The number of steps to be returned on the screw tightening program during the returning process of.
【0052】ステップ1220実行後は、ステップ12
04以降の動作に移行する。すなわち、ステップ120
4においては、CPU64は、設備PC32から対PC
インタフェースを介して締付指令、すなわちプログラム
スタート信号が入力されているか、それともリスタート
信号またはが入力されているか、を判定する。After executing step 1220, step 12
The operation shifts to 04 and later. That is, step 120
In 4, CPU 64 is from the equipment PC 32 to the PC
It is determined whether a tightening command, that is, a program start signal or a restart signal is input via the interface.
【0053】通常の起動の場合には、設備PC32はス
タート信号を出力する。この場合、CPU64はプログ
ラムスタート位置をプログラムの先頭とし(120
6)、実行開始に係るステップNo、すなわちこの場合
にはねじ締めプログラムの先頭のステップのNoを、プ
ログラムカウンタ1004に書き込む(1208)。C
PU64は、プログラムカウンタ1004上のプログラ
ムスタート位置、すなわちこの場合にはプログラムの先
頭から、ねじ締めプログラムを実行する(1210)。
なお、RAM68上に複数のねじ締めプログラムが搭載
されている場合、実行すべきプログラムはスタート信号
により設備PC32が指定する。ねじ締めプログラムの
実行が終了するまでは(1212)、CPU64は逐
次、次に実行すべきステップのNoをプログラムカウン
タ1004上に書き込み(1208)、実行する(12
10)。このような処理の結果ねじ締めプログラムの実
行が終了した場合(1212)、CPU64はその旨を
設備PC32に報知し(1214)、ステップ1204
に戻る。また、設備PC32からのスタート信号がオフ
した場合にも(1222)、ステップ1204に戻る。
このように、本実施例によれば、ねじ締めプログラムを
好適に実行できる。In the case of normal start-up, the equipment PC 32 outputs a start signal. In this case, the CPU 64 sets the program start position to the beginning of the program (120
6), the step No. related to the start of execution, that is, the No. of the first step of the screw tightening program in this case is written in the program counter 1004 (1208). C
The PU 64 executes the screw tightening program from the program start position on the program counter 1004, that is, from the beginning of the program in this case (1210).
When a plurality of screw tightening programs are installed on the RAM 68, the facility PC 32 designates the program to be executed by the start signal. Until the execution of the screw tightening program is completed (1212), the CPU 64 sequentially writes the No of the next step to be executed on the program counter 1004 (1208) and executes it (12).
10). When the execution of the screw tightening program is completed as a result of such processing (1212), the CPU 64 notifies the equipment PC 32 of that fact (1214), and step 1204.
Return to. Also, when the start signal from the equipment PC 32 is turned off (1222), the process returns to step 1204.
As described above, according to this embodiment, the screw tightening program can be suitably executed.
【0054】さらに、本実施例においても、RAM68
上に格納されているねじ締めプログラムを中途から実行
することも可能である。この動作は、ステップNo処理
ルーチン1000により実行される。さらに、プログラ
ム進行管理ルーチン1002により、ステップNoを設
備PC32から指定することなくねじ締めプログラムを
中途のステップから実行可能にしている。Further, also in this embodiment, the RAM 68
It is also possible to execute the screw tightening program stored above from the middle. This operation is executed by the step No processing routine 1000. Further, the program progress management routine 1002 enables the screw tightening program to be executed from an intermediate step without designating a step number from the equipment PC 32.
【0055】すなわち、ステップ1204において設備
PC32からリスタート信号またはが入力されてい
ると判定された場合、CPU64は、プログラムカウン
タ1004上のステップNoを読み出す(1216)。
プログラムカウンタ1004上にステップNoが書き込
まれていない場合には(1218)、CPU64の動作
はステップ1206に移行し、プログラムの先頭からね
じ締めプログラムが実行開始される。プログラムカウン
タ1004上にステップNoが書き込まれている場合に
は(1218)、CPU64の動作はステップ1224
に移行する。That is, when it is determined in step 1204 that the restart signal or is input from the equipment PC 32, the CPU 64 reads the step number on the program counter 1004 (1216).
If the step number is not written in the program counter 1004 (1218), the operation of the CPU 64 proceeds to step 1206, and the screw tightening program is started from the beginning of the program. When the step number is written in the program counter 1004 (1218), the operation of the CPU 64 is step 1224.
Move to.
【0056】ステップ1224においては、CPU64
は、設備PC32から供給されるリスタート信号が、リ
スタート入力部76を介して入力されるリスタート信
号であるか、それともリスタート入力部76を介し
て入力されるリスタート信号であるかを判定する。こ
の判定の結果、リスタート信号とされた場合、CPU
64の動作はステップ1210に移行する。すなわち、
ステップ1216において読み出したステップNoから
ねじ締めプログラムを実行する(1210)。これに対
し、リスタート信号であるとされた場合には、CPU
64はステップNoの戻し処理(1226)を実行す
る。すなわちステップ1216において読み出したプロ
グラムカウンタ1004上のステップNoから、ステッ
プ1220において設定した戻り数を減ずる。この後、
ステップ1210を実行することにより、ねじ締めプロ
グラムは、プログラムカウンタ1004上のステップN
oに対し、あらかじめ設定されている戻り数だけ戻った
ステップから実行を開始されることとなる。In step 1224, the CPU 64
Indicates whether the restart signal supplied from the equipment PC 32 is the restart signal input via the restart input section 76 or the restart signal input via the restart input section 76. judge. If the result of this determination is a restart signal, the CPU
The operation of 64 moves to step 1210. That is,
The screw tightening program is executed from the step No read in step 1216 (1210). On the other hand, if the signal is a restart signal, the CPU
64 executes the step No return processing (1226). That is, the return number set in step 1220 is subtracted from the step number on the program counter 1004 read in step 1216. After this,
By executing the step 1210, the screw tightening program is executed at the step N on the program counter 1004.
The execution is started from the step returned by a preset return number for o.
【0057】このように、本実施例によれば、ねじ締め
プログラムを必要に応じて中途もブロックから実行開始
できる。従って、ねじの締め付け不良などが発生した場
合に、同一のねじ締めプログラムを用いることができ
る。すなわち、仮締め開始から最終までのプログラムと
仮締め終了時から最終までのプログラムを、両方準備す
る必要がなく、設定値管理も1個でよい。As described above, according to the present embodiment, the screw tightening program can be started from the block midway as needed. Therefore, the same screw tightening program can be used when screw tightening failure occurs. That is, it is not necessary to prepare both the programs from the start to the final tightening and the programs from the end to the final tightening, and one set value management is sufficient.
【0058】これに加え、本実施例においては、設備P
C32からリスタート信号を入力することにより、前
サイクルにおいて実行したねじ締め動作を継続すること
が可能である。加えて、設備PC32からリスタート信
号を入力することにより、前サイクルにおいて実行し
たねじ締め行為を中断し、新しいねじを途中まで手で締
めた後にねじ締め動作を継続することが可能となる。In addition to this, in the present embodiment, the equipment P
By inputting the restart signal from C32, the screw tightening operation executed in the previous cycle can be continued. In addition, by inputting the restart signal from the equipment PC 32, it becomes possible to interrupt the screw tightening action executed in the previous cycle and continue the screw tightening operation after manually tightening the new screw halfway.
【0059】なお、前サイクルの記憶は、リセット信号
を用いることにより消す構成とすれば良い。例えば、治
具を緩めてワークを入れ替えた時にこのリセット信号を
発生させるようにすればよい。The memory of the previous cycle may be erased by using a reset signal. For example, this reset signal may be generated when the jig is loosened and the work is replaced.
【0060】図13には、本発明の第4実施例に係るね
じ締め装置、特にそのコントローラ28の要部構成が示
されている。この図に示されるように、本実施例におい
ては、リスタート入力部としてリスタート入力部76
のみが搭載されている。すなわち、この実施例の場合、
設備PC32からは、プログラムカウンタ1004上の
ステップNoから更に戻ったステップから、ねじ締めプ
ログラムを実行開始させる旨のリスタート信号のみが
供給される。FIG. 13 shows the main configuration of the screw tightening device according to the fourth embodiment of the present invention, particularly the controller 28 thereof. As shown in this figure, in this embodiment, the restart input section 76 is used as the restart input section.
Only installed. That is, in the case of this embodiment,
From the equipment PC 32, only the restart signal for starting the execution of the screw tightening program is supplied from the step returned from the step No. on the program counter 1004.
【0061】図14には、この実施例におけるCPU6
4の動作、特にステップNo処理ルーチン1000及び
プログラム進行管理ルーチン1002に係る処理を含む
動作の流れが示されている。FIG. 14 shows the CPU 6 in this embodiment.
4 shows the flow of operations including the operations relating to Step No. 4, particularly the step No processing routine 1000 and the program progress management routine 1002.
【0062】この図に示されるように、本実施例におけ
るCPU64の動作は、第3実施例における動作からス
テップ1224を除いた動作である。すなわち、設備P
C32から供給されうるリスタート信号がリスタート信
号のみであるから、ステップ1218においてステッ
プNoがあると判定された場合に、ステップ1224を
減ることなくステップ1226が実行される。As shown in this figure, the operation of the CPU 64 in this embodiment is the operation obtained by removing the step 1224 from the operation in the third embodiment. That is, the equipment P
Since the restart signal that can be supplied from C32 is only the restart signal, when it is determined in step 1218 that there is a step No, step 1224 is executed without reducing step 1224.
【0063】従って、本実施例によれば、ねじ締めプロ
グラムを必要に応じて中途のステップから実行開始でき
る。従って、ねじの締め付け不良などが発生した場合
に、同一のねじ締めプログラムを用いることができる。
すなわち、仮締め開始から最終までのプログラムと仮締
め終了時から最終までのプログラムとを、両方準備する
必要がなく、設定値管理も1個で良い。Therefore, according to this embodiment, the screw tightening program can be started from an intermediate step as needed. Therefore, the same screw tightening program can be used when screw tightening failure occurs.
That is, it is not necessary to prepare both the program from the start to the final fastening and the program from the end to the final fastening, and one set value management is sufficient.
【0064】さらに、本実施例によれば、設備PC32
からリスタート信号を入力することにより、前サイク
ルにおいて実行したねじ締め行為を中断し、新しいねじ
を途中まで手で締めた上で、動作を継続することが可能
になる。なお、前サイクルの記憶は、リセット信号を用
いることにより消す構成とすればよい。例えば治具を緩
めワークを入れ替えた時に、このリセット信号を発生さ
せるようにすればよい。Further, according to this embodiment, the equipment PC 32
By inputting the restart signal from, the screw tightening action executed in the previous cycle can be interrupted, the new screw can be half tightened by hand, and the operation can be continued. Note that the memory of the previous cycle may be erased by using a reset signal. For example, this reset signal may be generated when the jig is loosened and the work is replaced.
【0065】図15には、本発明の第5実施例に係るね
じ締め装置の構成が示されている。この図に示されるよ
うに、本実施例においてはモータ34の出力軸側にスト
ロークセンサ78が設けられている。これと対応するよ
うに、コントローラ28には、さらにストローク検出部
80が付加されている。FIG. 15 shows the structure of a screw tightening device according to the fifth embodiment of the present invention. As shown in this figure, in this embodiment, a stroke sensor 78 is provided on the output shaft side of the motor 34. In response to this, the controller 28 is further provided with a stroke detection unit 80.
【0066】図16には、この実施例におけるストロー
クセンサ78の構成が示されている。ただし角度・速度
センサ42は省略されている。特に(a)は着座前の、
(b)は着座後の、状態をそれぞれ示している。FIG. 16 shows the structure of the stroke sensor 78 in this embodiment. However, the angle / speed sensor 42 is omitted. Especially (a) is before sitting
(B) shows the respective states after sitting.
【0067】この実施例におけるストロークセンサ78
は、ソケット82とモータ34の出力軸の位置関係を検
出するセンサである。ソケット82はモータ34の出力
軸と連結するよう設けられた部材であり、下部には締め
付けるべきねじ84の頭部86が篏着される。ストロー
クセンサ78は、ソケット82上に設けたヘッド88
と、モータ34に対して固定しているセンサ部90と、
から構成されている。モータ34の回転駆動によってワ
ーク92上でのねじ84の締め付けが進むと、上部に設
けられているバネ94によりソケット82、すなわちヘ
ッド88とセンサ部90との位置関係が変化する。セン
サ部90は、ヘッド88との位置関係の変化量を検出
し、当該変化量を示す信号をストローク検出部80に出
力する。The stroke sensor 78 in this embodiment
Is a sensor that detects the positional relationship between the socket 82 and the output shaft of the motor 34. The socket 82 is a member provided so as to be connected to the output shaft of the motor 34, and the head portion 86 of the screw 84 to be tightened is fixedly attached to the lower portion. The stroke sensor 78 is a head 88 provided on the socket 82.
And a sensor unit 90 fixed to the motor 34,
It consists of When the screw 84 is tightened on the work 92 by the rotational driving of the motor 34, the spring 94 provided at the upper portion changes the positional relationship between the socket 82, that is, the head 88 and the sensor unit 90. The sensor unit 90 detects the amount of change in the positional relationship with the head 88, and outputs a signal indicating the amount of change to the stroke detection unit 80.
【0068】なお、図中96はソケットセンサであり、
ねじ84の頭部86がソケット82に完全に篏着してい
るかどうかを検出する。In the figure, 96 is a socket sensor,
It is detected whether the head 86 of the screw 84 is completely attached to the socket 82.
【0069】図17には、この実施例におけるコントロ
ーラ28の構成が示されている。この図に示されるよう
に、本実施例においてはストローク検出部80が付加さ
れている。さらに、図18にはこの実施例における総合
部36の構成が示されている。この図に示されるよう
に、本実施例においてはROM66がストローク検出処
理ルーチン1006を搭載しており、RAM68上にお
いてストローク設定部1008が設けられている。これ
ら、ストローク検出部80、ストローク検出処理ルーチ
ン1006及びストローク設定部1008は、本実施例
の特徴に係るものである。FIG. 17 shows the configuration of the controller 28 in this embodiment. As shown in this figure, a stroke detector 80 is added in this embodiment. Further, FIG. 18 shows the configuration of the general unit 36 in this embodiment. As shown in this figure, in the present embodiment, the ROM 66 is equipped with a stroke detection processing routine 1006, and a stroke setting unit 1008 is provided on the RAM 68. The stroke detection unit 80, the stroke detection processing routine 1006, and the stroke setting unit 1008 are the features of this embodiment.
【0070】図19には、この実施例におけるCPU6
4の動作、特にステップNoルーチン1000、ステッ
プ進行管理ルーチン1002及びストローク検出処理ル
ーチン1006を含む動作の流れが示されている。FIG. 19 shows the CPU 6 in this embodiment.
4 shows a flow of operations including the step No routine 1000, the step progress management routine 1002, and the stroke detection processing routine 1006.
【0071】本実施例の装置に電源が投入されると(1
300)、CPU64は、第1乃至第4実施例と同様の
自己診断を実行し(1302)、異常である場合にはそ
の旨を設備PC32や使用者等に報知し、正常である場
合にはステップ1304以降に進む。When the apparatus of this embodiment is powered on (1
300), the CPU 64 executes the same self-diagnosis as in the first to fourth embodiments (1302), and when it is abnormal, informs the fact to the equipment PC 32 or the user, and when it is normal, Proceed to step 1304 and subsequent steps.
【0072】ステップ1304においては、CPU64
は、ストローク設定部1008上にストローク検出処理
を実行する旨のフラグが立っているかどうかを判定す
る。立っていない場合、CPU64は、プログラムスタ
ート位置をねじ締めプログラムの先頭に設定し(130
6)、設備PC32からのスタート信号に応じて(13
08)、設定したプログラムスタート位置からねじ締め
プログラムを実行する(1310)。このとき、実行す
べきねじ締めプログラムはプログラムスタート信号によ
って指定される。プログラムの実行を終了した場合(1
312)、CPU64は、その旨を設備PC32に報知
し、ステップ1304に移行する。このように、本実施
例によれば、ねじ締めプログラムを好適に実行できる。In step 1304, the CPU 64
Determines whether a flag indicating that the stroke detection process is to be executed is set on the stroke setting unit 1008. When not standing, the CPU 64 sets the program start position to the beginning of the screw tightening program (130
6) In response to the start signal from the equipment PC 32 (13
08), the screw tightening program is executed from the set program start position (1310). At this time, the screw tightening program to be executed is designated by the program start signal. When program execution is completed (1
312), the CPU 64 notifies the equipment PC 32 to that effect, and proceeds to step 1304. As described above, according to this embodiment, the screw tightening program can be suitably executed.
【0073】さらに、この実施例によれば、第1乃至第
4実施例と同様、RAM68上に格納されているねじ締
めプログラムを中途から実行することも可能である。本
実施例においては、この動作をねじ84のストロークに
よって実行している。このため、ストローク設定部10
08には、予めねじ84のストロークが書き込まれてい
る。ストローク設定部1008に書き込まれたストロー
クに基づくねじ締め制御動作は、ストローク検出処理ル
ーチン1006により実行される。Furthermore, according to this embodiment, as in the first to fourth embodiments, it is possible to execute the screw tightening program stored in the RAM 68 midway. In this embodiment, this operation is executed by the stroke of the screw 84. Therefore, the stroke setting unit 10
The stroke of the screw 84 is written in advance in 08. The screw tightening control operation based on the stroke written in the stroke setting unit 1008 is executed by the stroke detection processing routine 1006.
【0074】まず、ステップ1304においてストロー
ク設定部1008にフラグの設定があるとされると、ス
テップ1314が実行される。ステップ1314におい
ては、ワーク92が定位置に到来しておりソケット82
にねじ84の頭部86が完全に篏着している旨の信号、
すなわちストロークセンサ78のソケットセンサ96か
らの信号が得られているか否か判定される。この条件が
成立すると、CPU64は、ステップ1316に移行す
る。First, when it is determined in step 1304 that the stroke setting unit 1008 has set a flag, step 1314 is executed. In step 1314, the workpiece 92 has arrived at the fixed position and the socket 82
A signal that the head 86 of the screw 84 is completely attached,
That is, it is determined whether or not the signal from the socket sensor 96 of the stroke sensor 78 is obtained. When this condition is satisfied, the CPU 64 proceeds to step 1316.
【0075】ステップ1316においては、CPU64
は、ソケット82とセンサ部90の位置関係、すなわち
センサ部90に対するヘッド88の位置変化量を、スト
ローク検出部80によりストロークセンサ78から読み
込む。読み込んだ位置変化量は、CPU64により、ス
トローク設定部1008上のストロークと比較参照され
(1318)、これによりねじ84の締め付け状態が把
握される。例えば、現在、ねじ84が仮締め状態である
か着座してからの本締め状態であるかが、判定される。
なお、ストロークセンサ78は、仮締めまで(着座ま
で)のストロークを読み取るもので足りる。ストローク
センサ78から読み込んだ位置変化量がストローク設定
部208上のストロークより小さい場合、ねじ84は着
座しておらず、仮締め状態であると見なすことができ、
ねじ締めプログラムを仮締めに係るステップ(前述の例
ではS001,S002等)から実行すればよいことが
わかる。読み込んだ位置変化量がストローク設定部20
8上のストローク以上である場合、ねじ84はすでに着
座しており、ねじ締めプログラムを本締めに係るステッ
プ(前述の例ではS003)から実行すればよいことが
わかる。In step 1316, the CPU 64
Reads the positional relationship between the socket 82 and the sensor unit 90, that is, the positional change amount of the head 88 with respect to the sensor unit 90 from the stroke sensor 78 by the stroke detection unit 80. The read position change amount is compared and referred to by the stroke on the stroke setting unit 1008 by the CPU 64 (1318), whereby the tightened state of the screw 84 is grasped. For example, it is determined whether the screw 84 is currently in the temporarily tightened state or in the fully tightened state after seated.
The stroke sensor 78 is sufficient to read the stroke up to temporary tightening (up to seating). When the position change amount read from the stroke sensor 78 is smaller than the stroke on the stroke setting unit 208, it can be considered that the screw 84 is not seated and is in the temporarily tightened state,
It will be understood that the screw tightening program may be executed from the steps related to temporary tightening (S001, S002, etc. in the above example). The read position change amount is the stroke setting unit 20.
If the stroke is 8 or more, the screw 84 is already seated, and it is understood that the screw tightening program may be executed from the step (S003 in the above example) related to the final tightening.
【0076】この後、ステップNo処理ルーチン100
0に係るステップ1320が実行される。すなわち、C
PU64は、ステップ1318において把握した締め付
け状態からプログラムスタート位置に係るステップNo
を特定し、ステップ1308に移行する。Thereafter, the step No processing routine 100
Step 1320 relating to 0 is executed. That is, C
The PU 64 determines the step number related to the program start position from the tightened state grasped in step 1318.
Is specified, and the process proceeds to step 1308.
【0077】このように、本実施例によれば、ねじ締め
プログラムを中途のステップから実行開始できる。従っ
て、ねじ84の締め付け不良等が発生した場合に、同一
のねじ締めプログラムを用いることができる。すなわ
ち、仮締め開始から最終までのプログラムと、仮締め終
了時から最終までのプログラムとを、両方準備する必要
がなく、設定値管理も1個で良い。As described above, according to the present embodiment, the screw tightening program can be started from the middle step. Therefore, the same screw tightening program can be used when a tightening failure or the like of the screw 84 occurs. That is, it is not necessary to prepare both the program from the start of the temporary fastening to the final and the program from the end of the temporary fastening to the final, and one set value management is sufficient.
【0078】さらに、本実施例によれば、ストロークの
検出値に基づきねじ84の締め付け状態を把握している
ため、ステップNoを予め設定しておく必要がなく、よ
り自動化された動作となる。なお、本実施例におけるス
トローク検出に代え、その他ねじ締めの進行度合いを示
す物理量を測定検出するようにしても同様の効果を実現
することができる。Further, according to the present embodiment, since the tightening state of the screw 84 is grasped based on the detected value of the stroke, it is not necessary to set the step No in advance, and the operation is more automated. The same effect can be realized by measuring and detecting a physical quantity indicating the degree of progress of screw tightening instead of the stroke detection in this embodiment.
【0079】図20には、本発明の第6実施例に係るね
じ締め装置の構成が示されている。この実施例は、ワー
ク92と共に搬送されねじ84の締め付け状態を示す情
報を有するI/Dキャリア98を設けると共に、I/D
キャリア98からねじ84の締め付け状態を示す情報を
読み取りコントローラ28に供給するI/Dコントロー
ラ100を設けた点を特徴としている。また、I/Dコ
ントローラ100は、I/Dキャリア98から情報を受
信するためにI/Dアンテナ102を有しており、コン
トローラ28は、I/Dコントローラ100からの情報
を総合部36に入力するための通信制御部104を有し
ている。FIG. 20 shows the structure of a screw tightening device according to the sixth embodiment of the present invention. This embodiment is provided with an I / D carrier 98 which is conveyed together with the work 92 and has information indicating the tightened state of the screw 84, and the I / D carrier 98 is provided.
It is characterized in that an I / D controller 100 for reading information indicating the tightened state of the screw 84 from the carrier 98 and supplying it to the controller 28 is provided. Further, the I / D controller 100 has an I / D antenna 102 for receiving information from the I / D carrier 98, and the controller 28 inputs the information from the I / D controller 100 to the general unit 36. It has a communication control unit 104 for performing.
【0080】図21にはこの実施例におけるコントロー
ラ28の構成が、図22には総合部36の構成が、それ
ぞれ示されている。これらの図に示されるように、本実
施例の総合部36は通信制御部104との情報授受のた
めにROM66上に通信処理ルーチン1010を搭載し
ており、RAM68上にはI/D設定部1012が構成
されている。FIG. 21 shows the configuration of the controller 28 in this embodiment, and FIG. 22 shows the configuration of the general unit 36. As shown in these figures, the general unit 36 of this embodiment has a communication processing routine 1010 mounted on the ROM 66 for exchanging information with the communication control unit 104, and an I / D setting unit on the RAM 68. 1012 are configured.
【0081】図23には、この実施例におけるCPU6
4の動作のうち、ステップNo処理ルーチン1000、
プログラム進行管理ルーチン1002及び通信処理ルー
チン1004に係る動作の流れが示されている。FIG. 23 shows the CPU 6 in this embodiment.
Of the operations of 4, the step No processing routine 1000,
The flow of operations relating to the program progress management routine 1002 and the communication processing routine 1004 is shown.
【0082】本実施例の装置に電源が投入されると(1
400)、CPU64は、第1乃至第5実施例と同様の
自己診断を実行し(1402)、異常である場合にはそ
の旨を設備PC32や使用者等に報知し、正常である場
合にはステップ1404以降に進む。When the power of the apparatus of this embodiment is turned on (1
400), the CPU 64 executes the same self-diagnosis as in the first to fifth embodiments (1402), and when it is abnormal, informs the fact to the equipment PC 32 or the user, and when it is normal, Proceed to step 1404 and subsequent steps.
【0083】ステップ1404においては、CPU64
は、RAM68上のI/D設定部1012からフラグを
読取る。I/D設定部1012において、I/Dの読み
取り及び処理に係るフラグが立っていない場合、CPU
64は、第5実施例と同様、プログラムスタート位置を
ねじ締めプログラムの先頭に設定し(1406)、設備
PC32からのスタート信号に応じて(1408)、プ
ログラムスタート信号によって指定されるねじ締めプロ
グラムを設定したプログラムスタート位置から実行し
(1410)、プログラムの実行の終了に応じ(141
2)、その旨を設備PC32に報知してステップ141
4に移行する。CPU64は、ねじ84の締め付け状態
を示す情報を、I/Dコントローラ100によりI/D
キャリア98に書き込み(1414)、ステップ140
4に移行する。このように、本実施例によれば、ねじ締
めプログラムを好適に実行できる。なお、ねじ締めプロ
グラムを最後まで実行できず終了する場合にも、I/D
キャリア98への書き込みは行う。In step 1404, the CPU 64
Reads the flag from the I / D setting unit 1012 on the RAM 68. In the I / D setting unit 1012, when the flag related to I / D reading and processing is not set, the CPU
Similarly to the fifth embodiment, 64 sets the program start position at the beginning of the screw tightening program (1406), and according to the start signal from the equipment PC 32 (1408), sets the screw tightening program specified by the program start signal. The program is executed from the set program start position (1410), and upon completion of the program execution (141
2) Then, the facility PC 32 is notified of this and step 141
Go to 4. The CPU 64 uses the I / D controller 100 to input information indicating the tightened state of the screw 84 to the I / D.
Write to carrier 98 (1414), step 140
Go to 4. As described above, according to this embodiment, the screw tightening program can be suitably executed. Even if the screw tightening program cannot be executed to the end and ends, the I / D
Writing to the carrier 98 is performed.
【0084】さらに、この実施例によれば、第1乃至第
5実施例と同様、RAM68上に格納されているねじ締
めプログラムを中途から実行することも可能である。本
実施例においては、この動作をI/Dキャリア98上の
情報によって実行している。まず、ステップ1404に
おいてストローク設定部1008にフラグの設定がある
とされると、ステップ1416が実行される。ステップ
1416においては、ワーク92が定位置に到来してお
りI/Dキャリア98上の情報を読み取れる状態か否か
が判定される。この条件が成立すると、CPU64は、
ステップ1418に移行する。Further, according to this embodiment, as in the first to fifth embodiments, the screw tightening program stored in the RAM 68 can be executed midway. In this embodiment, this operation is executed by the information on the I / D carrier 98. First, when it is determined in step 1404 that the stroke setting unit 1008 has set a flag, step 1416 is executed. In step 1416, it is determined whether the work 92 has arrived at the fixed position and the information on the I / D carrier 98 can be read. When this condition is satisfied, the CPU 64
The process moves to step 1418.
【0085】ステップ1418においては、CPU64
は、通信処理ルーチン1010を実行することによりI
/Dキャリア98上の情報を読み込み、さらにねじ84
の締め付け状態を把握する(1420)。I/Dキャリ
ア98上に書き込まれている情報は、先にステップ14
14において書き込まれている情報であり、例えばねじ
84の締め付けトルクである。例えば図3のねじ締めプ
ログラムを実行する際I/Dキャリア98から読み込ん
だ締め付けトルクが300kgcmである場合、ねじの
締め付け状態はすでにステップS003に進んでいるこ
とがわかる。In step 1418, the CPU 64
Is executed by executing the communication processing routine 1010.
/ D Read the information on the carrier 98, and then screw 84
The tightening state of the is grasped (1420). The information written on the I / D carrier 98 is previously stored in step 14
The information written in 14 is, for example, the tightening torque of the screw 84. For example, when the tightening torque read from the I / D carrier 98 when executing the screw tightening program of FIG. 3 is 300 kgcm, it can be seen that the tightening state of the screw has already proceeded to step S003.
【0086】CPU64は、ねじ84の締め付け状態を
読み込んだ後、これに応じてプログラムスタートに係る
ステップNoを例えばS003等と設定し(142
2)、この後ステップ1408に移行する。After reading the tightening state of the screw 84, the CPU 64 sets the step number related to the program start to, for example, S003 or the like in accordance with this (142)
2) Then, the process proceeds to step 1408.
【0087】このように、本実施例によれば、ねじ締め
プログラムを中途のステップから実行開始できる。従っ
て、ねじ84の締め付け不良等が発生した場合に、同一
のねじ締めプログラムを用いることができる。すなわ
ち、仮締め開始から最終までのプログラムと、仮締め終
了時から最終までのプログラムとを、両方準備する必要
がなく、設定値管理も1個で良い。As described above, according to this embodiment, the screw tightening program can be started from the middle step. Therefore, the same screw tightening program can be used when a tightening failure or the like of the screw 84 occurs. That is, it is not necessary to prepare both the program from the start of the temporary fastening to the final and the program from the end of the temporary fastening to the final, and one set value management is sufficient.
【0088】さらに、本実施例によれば、I/Dキャリ
ア98への情報の書き込み/読取りによりねじ84の締
め付け状態を記録/把握しているため、ステップNoを
予め設定しておく必要がなく、より自動化された動作と
なる。さらに、ストローク等の測定の必要もない。加え
て、I/Dキャリア98に記録する情報は、トルク等の
計測可能な情報に限られないため、より詳細かつ多岐に
亘る情報とすることができる。例えば、ねじ84の締め
付けの際のモータ34の回転数、締め付けを行った時
間、締め付けを行ったナットランナーの番号等を有する
情報としても良い。Further, according to the present embodiment, since the tightening state of the screw 84 is recorded / understood by writing / reading information to / from the I / D carrier 98, it is not necessary to preset the step No. , It becomes a more automated operation. Furthermore, there is no need to measure strokes and the like. In addition, the information recorded on the I / D carrier 98 is not limited to measurable information such as torque, and thus can be more detailed and diversified information. For example, the information may include the number of revolutions of the motor 34 when the screw 84 is tightened, the time when the screw is tightened, the number of the nut runner that is tightened, and the like.
【0089】また、本発明は、ねじ締め装置がワーク管
理機能を有する自動組付機に適用できる。自動車等の製
造工程において用いられる自動組付機は、直交3軸型の
位置決め装置と、電動ねじ締め装置を組み合わせた構成
を有している。図24には、本発明の第7実施例に係る
自動組付機の一例構成が示されている。Further, the present invention can be applied to an automatic assembly machine in which the screw tightening device has a work management function. An automatic assembly machine used in a manufacturing process of an automobile or the like has a configuration in which an orthogonal three-axis type positioning device and an electric screw tightening device are combined. FIG. 24 shows an example of the structure of an automatic assembly machine according to the seventh embodiment of the present invention.
【0090】この図に示される装置は、設備PC32、
位置決め装置106、ねじ締め装置108及び品質管理
用パソコン110から構成されている。設備PC32
は、自動組付機全体の制御を管理し、位置決め装置10
6はねじ締め装置108の位置を製品のボルト、ナット
の位置に合わせる。ねじ締め装置108は、ねじ締めプ
ログラムに従って動作しワークに対してねじ締めを行う
装置である。設備PC332、位置決め装置106及び
ねじ締め装置108は互いに信号の授受を行いつつ動作
する。また、品質管理用パソコン110は、ねじ締め装
置108の動作状況を適宜入力し、ワークに対するねじ
締め品質を管理する。The apparatus shown in this figure is a facility PC 32,
It comprises a positioning device 106, a screw tightening device 108, and a quality control personal computer 110. Equipment PC 32
Manages the control of the entire automatic assembly machine and controls the positioning device 10
6, the position of the screw tightening device 108 is aligned with the position of the bolt and nut of the product. The screw tightening device 108 is a device that operates according to a screw tightening program and tightens a screw on a workpiece. The equipment PC 332, the positioning device 106, and the screw tightening device 108 operate while exchanging signals with each other. Further, the quality control personal computer 110 appropriately inputs the operation status of the screw tightening device 108 and manages the screw tightening quality for the work.
【0091】図25には、設備PC32の内部構成が示
されている。設備PC32は、電源部112、CPU部
114、メモリ部116、入力部118、120及び1
22、並びに出力部124、126及び128から構成
されている。電源部112は、外部電源を取り込み設備
PC32の各部に電源を供給する。CPU部114は、
メモリ部116に格納されているプログラムに従って設
備PC32の各部を制御する。FIG. 25 shows the internal structure of the equipment PC 32. The equipment PC 32 includes a power supply unit 112, a CPU unit 114, a memory unit 116, input units 118, 120 and 1.
22 and output units 124, 126 and 128. The power supply unit 112 takes in an external power supply and supplies power to each unit of the equipment PC 32. The CPU section 114
Each unit of the equipment PC 32 is controlled according to the program stored in the memory unit 116.
【0092】入力部118及び出力部124は、位置決
め装置106に係る入出力部を構成する。すなわち、C
PU部118は、メモリ部116上のプログラムに従っ
て位置決め装置106により位置決めを行う際、出力部
124を介して位置決め装置106に対し位置決め装置
スタート信号または位置決め装置再スタート信号を与え
る。位置決め装置106は、位置決めが完了すると、そ
の旨の信号を入力部118を介してCPU部114に供
給する。同様に、入力部120及び出力部126は、ね
じ締め装置108に対する入出力部を構成しており、C
PU部114はねじ締め装置108に対し出力部126
を介してねじ締め装置スタートの信号を与えると共に、
ねじ締め装置108からのねじ締め完了の信号を入力部
120を介して受け取る。そして、CPU部114は、
入力部122及び出力部128を介して製造装置各部位
の制御及び状態把握を行う。入力部122は、人間によ
って操作される各部位の押しボタンスイッチ(SW)や
各部位の位置確認のためのリミットスイッチ(SW)の
状態を入力するための入力部であり、出力部128は、
各部位を動作させるためのソレノイド(SOL)バルブ
やモータのオン、オフのためのリレーに対する出力のた
めの出力部である。The input unit 118 and the output unit 124 form an input / output unit related to the positioning device 106. That is, C
The PU unit 118 gives a positioning device start signal or a positioning device restart signal to the positioning device 106 via the output unit 124 when the positioning device 106 performs positioning according to the program on the memory unit 116. When the positioning is completed, the positioning device 106 supplies a signal to that effect to the CPU section 114 via the input section 118. Similarly, the input unit 120 and the output unit 126 constitute an input / output unit for the screw tightening device 108, and
The PU unit 114 outputs the output unit 126 to the screw tightening device 108.
A signal to start the screw tightening device is given via
A signal of completion of screw tightening is received from the screw tightening device 108 via the input unit 120. Then, the CPU unit 114
Through the input unit 122 and the output unit 128, the control and state grasp of each part of the manufacturing apparatus are performed. The input unit 122 is an input unit for inputting the state of the push button switch (SW) of each site operated by a human and the limit switch (SW) for confirming the position of each site, and the output unit 128 is
It is an output unit for outputting to a relay for turning on and off a solenoid (SOL) valve for operating each part and a motor.
【0093】図26には、位置決め装置106の内部構
成が示されている。この図に示されるように、位置決め
装置106は、電源部130、CPU部132、メモリ
部134、軸制御部136、出力部138及び入力部1
40から構成されるコントローラを有している。すなわ
ち、位置決め装置106は、設備PC32と類似した構
成のコントローラを有している。電源部130は、外部
電源を取り込みコントローラの各部に電源を供給する部
材であり、入力部140及び出力部138は設備PC3
2に対する入出力部を構成する。CPU部132は、メ
モリ部134上に格納されている位置決めプログラムに
従い軸制御部136に信号を与え後述するような構成に
よってワークに対する位置決めを行わせる。その際、C
PU部132は、入力部140を介して設備PC32か
らスタートまたは再スタート信号が与えられるのに応じ
てこのプログラムを実行し、また、位置決めが完了した
場合には信号を出力部138を介して設備PC32に対
し与えることによりその旨を報知する。FIG. 26 shows the internal structure of the positioning device 106. As shown in this figure, the positioning device 106 includes a power supply unit 130, a CPU unit 132, a memory unit 134, an axis control unit 136, an output unit 138, and an input unit 1.
It has a controller composed of 40. That is, the positioning device 106 has a controller having a configuration similar to that of the equipment PC 32. The power supply unit 130 is a member that takes in an external power supply and supplies power to each unit of the controller, and the input unit 140 and the output unit 138 are the equipment PC 3
An input / output unit for 2 is configured. The CPU section 132 gives a signal to the axis control section 136 in accordance with a positioning program stored in the memory section 134, and causes the axis control section 136 to perform positioning with respect to the work by a configuration described later. At that time, C
The PU unit 132 executes this program in response to a start or restart signal given from the equipment PC 32 via the input unit 140, and when the positioning is completed, outputs a signal via the output unit 138 to the equipment. It is notified to the PC 32 by giving it.
【0094】軸制御部136は、CPU部132の制御
の下に位置決めに係る直交3軸(X,Y,Z軸)の制御
を行う部分である。軸制御部136は、各軸に係る速度
アンプ142−X,142−Y及び142−Zに対し速
度指令を与え、速度アンプ142−X,142−Y,1
42−Zは、駆動電源から電力供給を受けつつ、この指
令に応じて対応するモータ146−X,146−Y及び
146−Zに駆動電流を供給する。モータ146−X,
146−Y及び146−Zの回転角・速度は角度・速度
センサ144−X,144−Y及び144−Zにより検
出され軸制御部136にフィードバックされる。これに
より、各軸は、軸制御部136の下に制御され、ワーク
とねじ締め装置108との位置決めが行われることにな
る。The axis control section 136 is a section for controlling the orthogonal three axes (X, Y, Z axes) relating to positioning under the control of the CPU section 132. The axis control unit 136 gives a speed command to the speed amplifiers 142-X, 142-Y and 142-Z related to each axis, and the speed amplifiers 142-X, 142-Y, 1
42-Z receives a power supply from the drive power supply and supplies a drive current to the corresponding motors 146-X, 146-Y and 146-Z in response to this command. Motor 146-X,
The rotation angle and speed of 146-Y and 146-Z are detected by the angle / speed sensors 144-X, 144-Y and 144-Z and fed back to the axis controller 136. As a result, each axis is controlled under the axis control unit 136, and the work and the screw tightening device 108 are positioned.
【0095】図27には、ねじ締め装置108の内部構
成(1軸分)が示されている。この図から明らかな通
り、ねじ締め装置108も、位置決め装置106とほぼ
同様の構成を有し第1乃至第6実施例と共通する機能を
有するコントローラ28を有している。このコントロー
ラ28は、電源部60、CPU部148、メモリ部15
0、軸制御部152、出力部154、入力部156及び
通信部158から構成されている。電源部60は、外部
電源を取り込んでコントローラ28各部に電源を供給す
る。CPU部148は、内蔵するROM66上に格納さ
れているシステムプログラムに従ってコントローラ28
の各部を制御する。CPU部148は、設備PC32か
らのスタート信号を入力部156を介して取り込み、こ
れに応じてメモリ部150上のねじ締めプログラムをス
タートさせる。ねじ締め動作が完了すると、CPU部1
48は出力部154を介して設備PC32に対しその旨
の信号を出力する。通信部158は、CPU部148と
品質管理用パソコン110との通信のための回路であ
る。FIG. 27 shows the internal structure (for one axis) of the screw tightening device 108. As is clear from this figure, the screw tightening device 108 also has a controller 28 having substantially the same configuration as the positioning device 106 and having the same functions as those of the first to sixth embodiments. The controller 28 includes a power supply unit 60, a CPU unit 148, and a memory unit 15.
0, axis control unit 152, output unit 154, input unit 156, and communication unit 158. The power supply unit 60 takes in an external power supply and supplies power to each unit of the controller 28. The CPU unit 148 controls the controller 28 according to the system program stored in the built-in ROM 66.
Control each part of. The CPU unit 148 takes in a start signal from the equipment PC 32 via the input unit 156, and accordingly starts the screw tightening program on the memory unit 150. When the screw tightening operation is completed, the CPU unit 1
48 outputs a signal to that effect to the equipment PC 32 via the output unit 154. The communication unit 158 is a circuit for communication between the CPU unit 148 and the quality control personal computer 110.
【0096】軸制御部152は、CPU部148の制御
の下にねじ締め動作を制御する。すなわち、軸制御部1
52は、速度アンプ30に対して速度指令を与え、これ
によりモータ34を駆動してねじ締めを行わせる。モー
タ34には、角度・速度センサ42及びトルクセンサ4
0が設けられており、これらの出力は軸制御部152に
フィードバックされる。すなわち、角度・速度センサ4
2によって検出されるモータ34の回転角及び速度並び
にトルクセンサ40によって検出されるモータ34の出
力トルクは、軸制御部152を介してCPU部148に
供給される。なお、ねじ締め装置108においても、速
度アンプ30、モータ34はコントローラ28と別の駆
動電源によって駆動される。The axis controller 152 controls the screw tightening operation under the control of the CPU 148. That is, the axis control unit 1
The reference numeral 52 gives a speed command to the speed amplifier 30 to drive the motor 34 to tighten the screw. The motor 34 includes an angle / speed sensor 42 and a torque sensor 4
0 is provided, and these outputs are fed back to the axis control unit 152. That is, the angle / speed sensor 4
The rotation angle and speed of the motor 34 detected by 2 and the output torque of the motor 34 detected by the torque sensor 40 are supplied to the CPU unit 148 via the axis control unit 152. In the screw tightening device 108 as well, the speed amplifier 30 and the motor 34 are driven by a drive power source different from the controller 28.
【0097】図28には、この実施例におけるコントロ
ーラ28の内部構成が示されている。この図に示される
ように、電源部60を除く各部材は内部バス58によっ
て相互に接続されており、それぞれ信号または情報の授
受を行いつつ動作する。FIG. 28 shows the internal structure of the controller 28 in this embodiment. As shown in this figure, the respective members except the power supply unit 60 are connected to each other by an internal bus 58, and operate while exchanging signals or information.
【0098】まず、軸制御部152は、演算部160、
A/D変換部44及び角度・速度検出部46から構成さ
れている。A/D変換部44及び角度・速度検出部46
は、それぞれトルクセンサ40及び角度・速度センサ4
2の出力を取り込む部材である。A/D変換部44は、
トルクセンサ40の出力をディジタルデータに変換して
演算部160に入力する。角度・速度検出部46は、角
度・速度センサ42の出力からモータ34の回転角・速
度を検出し、やはり演算部160に入力する。演算部1
60は、CPU162、ROM164、RAM166及
び速度指令演算部168から構成されている。速度指令
演算部160は、A/D変換部44及び角度・速度検出
部46の出力に基づき速度指令を演算し、速度アンプ3
0に出力する。その際、速度指令演算部168はCPU
162の制御下に当該演算を実行する。CPU162
は、CPU部148との間で信号を授受しつつ、速度指
令演算処理を管理する。ROM164及びRAM166
は、演算部160において、速度指令演算に係るプログ
ラムや係数等の記憶に用いられる。First, the axis control unit 152 includes a calculation unit 160,
It is composed of an A / D converter 44 and an angle / speed detector 46. A / D converter 44 and angle / speed detector 46
Are torque sensor 40 and angle / speed sensor 4 respectively.
It is a member that takes in the output of 2. The A / D converter 44
The output of the torque sensor 40 is converted into digital data and input to the arithmetic unit 160. The angle / speed detection unit 46 detects the rotation angle / speed of the motor 34 from the output of the angle / speed sensor 42, and inputs it to the calculation unit 160 as well. Computing unit 1
The reference numeral 60 includes a CPU 162, a ROM 164, a RAM 166, and a speed command calculation unit 168. The speed command calculation unit 160 calculates the speed command based on the outputs of the A / D conversion unit 44 and the angle / speed detection unit 46, and the speed amplifier 3
Output to 0. At this time, the speed command calculation unit 168 is the CPU
The calculation is executed under the control of 162. CPU 162
Manages the speed command calculation process while exchanging signals with the CPU unit 148. ROM 164 and RAM 166
Is used for storing programs, coefficients and the like relating to speed command calculation in the calculation unit 160.
【0099】また、メモリ部150は、ねじ締めプログ
ラム部1014、ワーク状態記憶部1016及びプログ
ラムカウンタ1004を搭載するRAM68を有してい
る。CPU部148は、判定部1018を搭載するCP
U170及びROM66から構成されている。ねじ締め
動作に必要なプログラムのうち、ユーザによって作成さ
れるねじ締めプログラムはRAM68上にねじ締めプロ
グラム部1014として搭載され、システムプログラム
はROM66等に搭載される。CPU170は、ROM
66上のシステムプログラムに従い、設備PC32から
の信号に応じて、RAM68にねじ締めプログラム部1
014として格納されているねじ締めプログラムを実行
する。これにより、CPU170は、軸制御部152に
対して指令を与え、また、軸制御部152によるねじ締
め動作の結果を判定部1018によって良否判定する。The memory section 150 also has a RAM 68 in which a screw tightening program section 1014, a work state storage section 1016 and a program counter 1004 are mounted. The CPU unit 148 is a CP that mounts the determination unit 1018.
It is composed of a U 170 and a ROM 66. Of the programs necessary for the screw tightening operation, the screw tightening program created by the user is installed in the RAM 68 as the screw tightening program unit 1014, and the system program is installed in the ROM 66 or the like. CPU 170 is a ROM
In accordance with the system program on 66, the screw tightening program section 1 is stored in the RAM 68 in response to a signal from the equipment PC 32.
The screw tightening program stored as 014 is executed. As a result, the CPU 170 gives a command to the axis control unit 152, and determines whether the result of the screw tightening operation by the axis control unit 152 is good or bad by the determination unit 1018.
【0100】また、ROM66上には、さらに、ワーク
管理部1020、ブロック処理部1022及びプログラ
ム進行管理ルーチン1002が搭載されている。ワーク
管理部1020及び前述のワーク状態記憶部1016
は、この実施例の第1の特徴であるねじ締め状態のワー
ク管理に関する構成である。ワーク管理については、本
願出願人は、先に特願平4−194326号により開示
している。また、ROM6上のブロック処理部1022
及びプログラム進行管理ルーチン1002と、RAM6
8上のプログラムカウンタ1004は、後述のブロック
スタート入力部1024とともに、本実施例の第2の特
徴であるブロックスタートに関する構成である。これら
ワーク管理及びブロックスタートに関しては、後に詳細
に説明する。A work management unit 1020, a block processing unit 1022, and a program progress management routine 1002 are further mounted on the ROM 66. The work management unit 1020 and the work state storage unit 1016 described above.
Is a configuration relating to work management in a screw tightened state, which is the first feature of this embodiment. Regarding the work management, the applicant of the present application has previously disclosed it in Japanese Patent Application No. 4-194326. Also, the block processing unit 1022 on the ROM 6
And a program progress management routine 1002 and the RAM 6
The program counter 1004 on the No. 8 has a configuration related to the block start, which is the second feature of the present embodiment, together with a block start input unit 1024 described later. The work management and block start will be described in detail later.
【0101】通信部158は、CPU172、ROM1
74、RAM176及び通信処理部178から構成され
ている。CPU172は、CPU部148からの指令に
応じて品質管理用パソコン110との通信に係るプログ
ラムを実行し、通信処理部178は、通信に必要なデー
タ処理等を実行する。ROM174、RAM176は、
その際に必要なプログラムや係数を格納する。The communication unit 158 includes the CPU 172 and the ROM 1
74, RAM 176 and communication processing unit 178. The CPU 172 executes a program related to communication with the quality control personal computer 110 in response to a command from the CPU unit 148, and the communication processing unit 178 executes data processing and the like necessary for communication. The ROM 174 and the RAM 176 are
At that time, the necessary programs and coefficients are stored.
【0102】そして、入力部154は、前述のように設
備PC32からスタート信号を入力する機能の他、当該
設備PC32からブロックスタート信号を入力する手段
としてブロックスタート入力部1024を搭載してい
る。設備PC32からスタート信号が供給された場合、
入力部154はこれを入力し、CPU170は、ROM
66上のシステムプログラムに従い、RAM68上にね
じ締めプログラム部1014として格納されているねじ
締めプログラムを実行する。その際、ROM66上のワ
ーク管理部1020が起動され、ワークに対するねじ締
めの状態が、各ワーク毎に管理される。このとき、RA
M68上のワーク状態記憶部1016が使用され、締め
付けトルクの最終値(最終トルク値)やその判定結果が
各ワーク毎に記憶される。これに対し、設備PC32か
らブロックスタート信号が供給された場合、入力部15
4のブロックスタート入力部1024によりこのブロッ
クスタート信号が入力され、CPU170がROM66
上のシステムプログラムに従いRAM68上にねじ締め
プログラム部1014として格納されているねじ締めプ
ログラムを実行する。その際、CPU170はROM6
6上のブロック処理部1022及びプログラム進行管理
ルーチン1002を起動させ、適宜プログラムカウンタ
1004の内容の読み出し/書き込みを行いつつねじ締
めプログラムを中途のブロックから起動させる。このよ
うな動作、すなわち、ねじ締めプログラムのブロックス
タートにあたっても、CPU170は、通常のスタート
時と同様、ワーク管理部1020を起動させ、ねじ締め
状態を各ワーク毎に管理する。The input section 154 has the function of inputting a start signal from the equipment PC 32 as described above, and is equipped with the block start input section 1024 as means for inputting a block start signal from the equipment PC 32. When the start signal is supplied from the equipment PC 32,
The input unit 154 inputs this, and the CPU 170 stores the ROM
According to the system program on 66, the screw tightening program stored in the RAM 68 as the screw tightening program unit 1014 is executed. At that time, the work management unit 1020 on the ROM 66 is activated, and the screw tightening state for the work is managed for each work. At this time, RA
The work state storage unit 1016 on M68 is used to store the final value of the tightening torque (final torque value) and its determination result for each work. On the other hand, when the block start signal is supplied from the equipment PC 32, the input unit 15
This block start signal is input from the block start input unit 1024 of the No. 4, and the CPU 170 causes the ROM 66 to
The screw tightening program stored in the RAM 68 as the screw tightening program unit 1014 is executed according to the above system program. At that time, the CPU 170 uses the ROM 6
6 starts the block processing unit 1022 and the program progress management routine 1002, and while appropriately reading / writing the contents of the program counter 1004, starts the screw tightening program from the middle block. Even in such an operation, that is, in the block start of the screw tightening program, the CPU 170 activates the work management unit 1020 to manage the screw tightening state for each work, as in the normal start.
【0103】図29には、本実施例の要部構成、すなわ
ちCPU部148におけるワーク管理部1020の構成
と、メモリ部150におけるワーク状態記憶部1016
の構成が示されている。この図に示されるように、ワー
ク管理部1020はワーク管理処理部1026及び穴位
置処理部1028を有しており、ワーク状態記憶部10
16は、最終トルク値記憶部1030、トルク過程記憶
部1032及び判定結果記憶部1034から構成される
穴位置状態記憶部1036を有している。穴位置状態記
憶部1036は、ワーク状態記憶部1016において、
穴位置の個数に応じて通常複数個存在している。最終ト
ルク値記憶部は、後述する最終トルク値表のトルク値を
記憶し、判定結果記憶部1034は判定記憶表の判定内
容を記憶する。トルク過程記憶部1032は最終トルク
に至るまでの過程を記憶する。FIG. 29 is a block diagram showing the construction of the main part of this embodiment, that is, the construction of the work management section 1020 in the CPU section 148 and the work state storage section 1016 in the memory section 150.
The configuration of is shown. As shown in this figure, the work management unit 1020 has a work management processing unit 1026 and a hole position processing unit 1028, and the work state storage unit 1020.
16 includes a hole position state storage unit 1036 including a final torque value storage unit 1030, a torque process storage unit 1032, and a determination result storage unit 1034. The hole position state storage unit 1036 is the same as the work state storage unit 1016.
There are usually a plurality of holes depending on the number of hole positions. The final torque value storage unit stores the torque values in the final torque value table described later, and the determination result storage unit 1034 stores the determination content in the determination storage table. The torque process storage unit 1032 stores the process up to the final torque.
【0104】図30乃至図32には、この実施例におけ
るCPU170の動作、特にワーク管理部1020、ブ
ロック管理部1022及びプログラム進行管理ルーチン
1002に係る処理を含む動作の流れが示されている。
また、図33乃至35には、この実施例におけるねじ締
め動作の一例が示されている。特に、図33は設備の1
サイクルを各制御要素の分担毎に示したサイクル線図で
あり、図34はこのサイクル線図による装置の動きを概
念的に示した図であり、図35はその際の設備PC3
2、位置決め装置106及びねじ締め装置108間の信
号の授受形態(プログラムの実行形態)を示した図であ
る。30 to 32 show the flow of the operation of the CPU 170 in this embodiment, particularly the operation including the work management unit 1020, the block management unit 1022 and the program progress management routine 1002.
33 to 35 show an example of the screw tightening operation in this embodiment. In particular, FIG. 33 shows equipment 1
FIG. 35 is a cycle diagram showing a cycle for each division of control elements, FIG. 34 is a diagram conceptually showing the movement of the apparatus according to this cycle diagram, and FIG. 35 is a facility PC 3 at that time.
FIG. 2 is a diagram showing a signal transmission / reception mode (program execution mode) between the positioning device 106 and the screw tightening device 108.
【0105】図23に示されるサイクル線図では、設備
PC32によって、上昇、前進、下降、後退の順でトラ
ンスファ装置が動作する。トランスファ後退に入りジグ
締めが行われると、設備PC32はスタート信号を位置
決め装置106に与え、動作を開始させる。図33に示
される例ではねじ締めの対象となる穴位置としてA,
B,Cの3箇所があるので、位置決め装置106は、ま
ず、穴位置Aのねじ締めに係る位置決めを行う。この場
合、X,Y軸を図34に示されるように(XA ,YA )
に位置決めし、その後にZ軸をZA に位置決めする。位
置決めが終了すると、位置決め装置106は設備PC3
2に信号を送る。設備PC32は、これを受け取るとね
じ締め装置108に信号を与え、ねじ締めを実行させ
る。ねじ締め装置108は、仮締め、本締めの順でねじ
締めを行う。本締めが終了すると、ねじ締め装置108
は設備PC32にこれを信号で知らせる。設備PC32
はこれに応じて位置決め装置106に信号を与える。こ
の信号に応じ、位置決め装置106によってZ軸がZ0
に位置決めされる。Z0 はZ軸の原点である。なお、図
34では、ねじ締めに係るモータ34が2個対で用いら
れている。In the cycle diagram shown in FIG. 23, the transfer device operates in the order of ascending, advancing, descending and retracting by the equipment PC 32. When the transfer retreat is entered and the jig is tightened, the equipment PC 32 gives a start signal to the positioning device 106 to start the operation. In the example shown in FIG. 33, the hole positions targeted for screw tightening are A,
Since there are three positions B and C, the positioning device 106 first performs positioning related to screw tightening at the hole position A. In this case, the X and Y axes are as shown in FIG. 34 (X A , Y A ).
Then, the Z axis is positioned at Z A. When the positioning is completed, the positioning device 106 sets the equipment PC 3
Send a signal to 2. Upon receiving this, the equipment PC 32 gives a signal to the screw tightening device 108 to execute screw tightening. The screw tightening device 108 tightens screws in the order of temporary tightening and final tightening. When the final tightening is completed, the screw tightening device 108
Informs the equipment PC 32 of this. Equipment PC 32
Responsively provides a signal to the positioning device 106. In response to this signal, the Z axis of the positioning device 106 is Z 0.
Be positioned at. Z 0 is the origin of the Z axis. In FIG. 34, two motors 34 for screw tightening are used in pairs.
【0106】このような一連の動作、すなわちX,Y軸
の位置決めからZ軸の原点への位置決めまでの動作は、
各穴位置A,B,C毎に繰り返される。穴位置Cに係る
Z軸の原点への位置決めが終了すると、さらにX軸及び
Y軸が原点(X0 ,Y0 )に位置決めされると共に、こ
れと同時にジグ緩めが実行され、設備の1サイクルが終
了する。Such a series of operations, that is, the operation from the positioning of the X and Y axes to the positioning to the origin of the Z axis,
This is repeated for each hole position A, B, C. When the positioning of the Z-axis related to the hole position C to the origin is completed, the X-axis and the Y-axis are further positioned at the origin (X 0 , Y 0 ), and at the same time, the jig loosening is executed and one cycle of the equipment is completed. Ends.
【0107】このような一連の動作において、設備PC
32、位置決め装置106及びねじ締め装置108によ
る信号の授受の流れは、より詳細には図35に示される
ようなものとなる。In such a series of operations, the equipment PC
The flow of signal transmission / reception by the 32, the positioning device 106, and the screw tightening device 108 is as shown in FIG. 35 in more detail.
【0108】この動作の際、位置決め装置106はその
メモリ部134に格納されている位置決めプログラムに
従って動作し、ねじ締め装置108は、そのメモリ部1
50に格納されているねじ締めプログラム1,2,3,
…に従って動作する。In this operation, the positioning device 106 operates according to the positioning program stored in the memory section 134, and the screw tightening device 108 operates in the memory section 1.
Screw tightening programs 1, 2, 3, stored in 50
Operates according to.
【0109】まず、設備PC32は、上昇、前進、下
降、後退の順でトランスファ装置を制御する。トランス
ファ後退に至ると、設備PC32はジグ締めを行った上
で位置決め装置106に対してスタート信号を与える。
位置決め装置106は、このスタート信号に応じてX,
Y軸を(XA ,YA )に位置決めし、さらにZ軸をZA
に位置決めする。位置決めが終了すると、位置決め装置
106はその旨の信号を設備PC32に与える。設備P
C32は、この信号に応じてねじ締め装置108に対し
てスタート信号を与える。ねじ締め装置108は、この
信号に応じて所定のプログラムを実行する。図において
1038−1で示されるプログラムが実行され、このプ
ログラムによってねじ締め動作が完了すると、ねじ締め
装置108はその旨の信号を設備PC32に対して与え
る。First, the equipment PC 32 controls the transfer device in the order of ascending, advancing, descending and retracting. When the transfer is retreated, the equipment PC 32 performs a jig tightening and then gives a start signal to the positioning device 106.
The positioning device 106 responds to the X,
Position the Y axis at (X A , Y A ), and set the Z axis at Z A
To position. When the positioning is completed, the positioning device 106 gives a signal to that effect to the equipment PC 32. Equipment P
C32 gives a start signal to the screw tightening device 108 in response to this signal. The screw tightening device 108 executes a predetermined program in response to this signal. When the program indicated by 1038-1 in the figure is executed and the screw tightening operation is completed by this program, the screw tightening device 108 gives a signal to that effect to the equipment PC 32.
【0110】設備PC32は、ねじ締め装置108から
ねじ締めが完了した旨の信号が与えられると、これに応
じ位置決め装置106に対して再スタート信号を与え
る。この後、同様の動作が各穴位置について繰り返され
ると、図33に示されるような設備動作が実現される。When the screw tightening device 108 gives a signal indicating that the screw tightening is completed, the equipment PC 32 gives a restart signal to the positioning device 106 in response to the signal. After that, when the same operation is repeated for each hole position, the equipment operation as shown in FIG. 33 is realized.
【0111】さらに、図34及び図35に示されるよう
に、この実施例においては、プログラムが各ワーク単位
で作成されている。すなわち、各プログラム1038−
1,…1038−nは、各穴位置毎のブロックから構成
されている。例えば、プログラム1038−1は、ブロ
ック1040−1,1040−2,1040−3から構
成されており、このプログラム1038−1を実行する
ことにより3個の穴位置A,B,Cに係るねじ締めを行
うことができる。Further, as shown in FIGS. 34 and 35, in this embodiment, the program is created for each work unit. That is, each program 1038-
1, ..., 1038-n are composed of blocks for each hole position. For example, the program 1038-1 is composed of blocks 1040-1, 1040-2 and 1040-3, and by executing this program 1038-1, the screw tightening relating to the three hole positions A, B and C is performed. It can be performed.
【0112】図30に示されるように、ねじ締め装置1
08に電源が投入されると(1500)、CPU170
によりメモリ部150、入力部154、出力部156等
の自己診断が実行される(1502)。この診断の結果
異常と判定された場合には、その旨が設備PC32に報
知され、コントローラ28は動作を中断して現状を維持
する。正常と判定された場合には、コントローラ28の
動作は、ステップ1504以降に移行する。As shown in FIG. 30, the screw tightening device 1
When the power of 08 is turned on (1500), the CPU 170
Thereby, self-diagnosis of the memory unit 150, the input unit 154, the output unit 156, etc. is executed (1502). When it is determined as abnormal as a result of this diagnosis, the fact is notified to the equipment PC 32, and the controller 28 suspends the operation and maintains the current state. If it is determined to be normal, the operation of the controller 28 proceeds to step 1504 and subsequent steps.
【0113】ステップ1504においては、CPU17
0は、RAM68上にねじ締めプログラム部1014と
して格納されているねじ締めプログラム(ユーザプログ
ラム)を読み取る。その際、ワーク管理部1020を構
成するワーク管理処理部1026及び穴位置処理部10
28は、読み取ったねじ締めプログラムのブロック構成
及び軸構成をそれぞれ把握し(1506)、その結果に
基づき、最終トルク値表及び判定記憶表をそれぞれ作成
する(1508)。In step 1504, the CPU 17
0 reads the screw tightening program (user program) stored in the RAM 68 as the screw tightening program unit 1014. At that time, the work management processing unit 1026 and the hole position processing unit 10 which constitute the work management unit 1020.
28 grasps the block configuration and axis configuration of the read screw tightening program respectively (1506), and based on the results, creates a final torque value table and a judgment memory table respectively (1508).
【0114】図36には、最終トルク値表の一例が示さ
れている。また、図37には判定記憶表の一例が示され
ている。これらの図に示される最終トルク値表及び判定
記憶表は、モータ34が2本(すなわち2軸)の場合の
例であり、さらに、3個のブロック1〜3から構成され
るプログラム1に係る例である。最終トルク値表及び判
定記憶表は、ねじ締めプログラムの各ブロック毎にかつ
各軸(モータ34)毎に、ねじ締めに係る最終トルク値
と判定結果を記憶するための表である。すなわち、ある
ブロックの実行を終了した時点で、トルクセンサ40か
ら出力される最終トルク値を各軸毎に最終トルク値表に
書き込み、さらに、この最終トルク値が所定のねらいト
ルク値に対して所定範囲内に入っているか(OK)それ
とも入っていないか(NG)を判定して、その判定結果
を判定記憶表に書き込む。例えばねらいトルク値が50
0kgcmであった場合には、このねらいトルク値に対
し上下10kgcmであればOK、そうでなければNG
とする。最終トルク値表及び判定記憶表は、このように
最終トルク値及びその判定結果を後述するステップにお
いて書き込み管理するための表であり、実際には、穴位
置状態記憶部1036の集合である。ステップ1508
においては、ブロック構成及び軸構成の分析・把握結果
に基づいて、まずその枠組みが例えば図36に示される
ように構成される。FIG. 36 shows an example of the final torque value table. Further, FIG. 37 shows an example of the judgment storage table. The final torque value table and the determination memory table shown in these figures are examples in the case of two motors 34 (that is, two axes), and further relate to the program 1 configured from three blocks 1 to 3. Here is an example. The final torque value table and the determination storage table are tables for storing the final torque value related to screw tightening and the determination result for each block of the screw tightening program and for each axis (motor 34). That is, when the execution of a certain block is completed, the final torque value output from the torque sensor 40 is written in the final torque value table for each axis, and the final torque value is set to a predetermined target torque value. It is judged whether it is within the range (OK) or not (NG), and the judgment result is written in the judgment storage table. For example, the target torque value is 50
If it is 0 kgcm, it is OK if the target torque value is 10 kgcm above and below, otherwise it is NG.
And The final torque value table and the determination storage table are tables for writing and managing the final torque value and the determination result thereof in the steps described below, and are actually a set of the hole position state storage unit 1036. Step 1508
In FIG. 36, the framework is first constructed, for example, as shown in FIG. 36, based on the analysis and grasping result of the block configuration and the axis configuration.
【0115】CPU170は、このような最終トルク値
表及び判定記憶表を、各プログラム毎に作成する。すな
わちステップ1506に先立ちプログラムNoを1に初
期設定し(1510)、ステップ1508実行後に他に
プログラムがあると認められれば(1512)、プログ
ラムNoをインクリメントして(1514)、ステップ
1506及び1508を繰り返し実行する。The CPU 170 creates such a final torque value table and a judgment storage table for each program. That is, prior to step 1506, the program number is initialized to 1 (1510), and if it is recognized that there is another program after executing step 1508 (1512), the program number is incremented (1514) and steps 1506 and 1508 are repeated. Run.
【0116】すべてのプログラムに対してこれらの処理
が終了すると、CPU170は、プログラムスタート位
置がねじ締めプログラムの先頭となるよう、プログラム
の先頭のブロックNo及びステップNoをプログラムカ
ウンタ1004上に書き込む(1515)。CPU17
0は、この後、設備PC32からスタート信号が発せら
れるのを待つ(1516)。When these processes are completed for all programs, the CPU 170 writes the block No. and step No. at the beginning of the program on the program counter 1004 so that the program start position will be the beginning of the screw tightening program (1515). ). CPU17
After that, 0 waits for a start signal to be issued from the equipment PC 32 (1516).
【0117】設備PC32は、図35に示されるよう
に、位置決め装置106に対してスタート信号を与え、
位置決め装置106によって各軸が所定の位置に位置決
めされたのちに、ねじ締め装置108に対しスタート信
号を与える。ねじ締め装置108のCPU170は、こ
のスタート信号に含まれるプログラムNoに基づき、実
行すべきプログラムを判定し、該当するプログラムの実
行を介する(1518)。その際、CPU170は図3
1に示されるように、プログラムカウンタ1004上に
書き込まれているブロックNo及びステップNoを読み
出す(1520)。The equipment PC 32 gives a start signal to the positioning device 106, as shown in FIG.
After each axis is positioned at a predetermined position by the positioning device 106, a start signal is given to the screw tightening device 108. The CPU 170 of the screw tightening device 108 determines the program to be executed based on the program No. included in the start signal, and executes the corresponding program (1518). At that time, the CPU 170 causes the CPU of FIG.
As shown in 1, the block number and step number written on the program counter 1004 are read (1520).
【0118】設備PC32からのスタート信号により与
えられるプログラムNoが例えば図35に示されるプロ
グラム1038−1を示している場合、CPU170
は、その第1のブロック1040−1から実行を開始す
る。プログラムを実行する際、現在実行すべき命令がね
じ締め命令であれば(1522)、CPU170は軸制
御部152に指令を与えねじ締めを実行させる(152
4)。このねじ締めを行った段階で、対応する穴位置に
係る一連のねじ締め行為が終了していなければ(152
6)、CPU170は次のブロックNo及びステップN
oをプログラムカウンタ1004に書き込み(152
8)、設備PC32からのスタート信号がオンのままで
あれば(1530)、ステップ1522に戻る。逆に、
スタート信号がオフに代わっている場合、CPU170
の動作は1532に移行する。これによりCPU170
の状態は、設備PC32からの信号入力待ち状態とな
る。When the program No given by the start signal from the equipment PC 32 indicates the program 1038-1 shown in FIG. 35, for example, the CPU 170
Begins execution at its first block 1040-1. When executing the program, if the command to be executed at present is a screw tightening command (1522), the CPU 170 gives a command to the axis control unit 152 to execute screw tightening (152).
4). At the stage where this screw tightening is performed, if a series of screw tightening actions related to the corresponding hole positions are not completed (152
6), the CPU 170 determines the next block No. and step N
write o to the program counter 1004 (152
8) If the start signal from the equipment PC 32 remains ON (1530), the process returns to step 1522. vice versa,
When the start signal is turned off, the CPU 170
The operation moves to 1532. This allows the CPU 170
In this state, a signal input from the equipment PC 32 is awaited.
【0119】ステップ1532においては、CPU17
0は、設備PC32から入力部154にスタート信号が
入力されるかそれともブロックスタート入力部1024
にブロックスタート信号が入力されるかを判定する。設
備PC32からスタート信号が入力されている場合、C
PU170は、プログラムカウンタ1004から読みだ
したブロックNo及びステップNoにより表されるステ
ップからねじ締めプログラムの実行を開始し(153
4)、ステップ1522に戻る。In step 1532, the CPU 17
0 indicates that a start signal is input from the equipment PC 32 to the input unit 154 or the block start input unit 1024.
It is determined whether a block start signal is input to. When the start signal is input from the equipment PC 32, C
The PU 170 starts execution of the screw tightening program from the step represented by the block number and the step number read from the program counter 1004 (153).
4) and returns to step 1522.
【0120】逆に、設備PC32からブロックスタート
入力部1024にブロックスタート信号が入力されてい
る場合、CPU170は、プログラムカウンタ1004
の内容を、このブロックスタート信号によって示される
ブロックの先頭ステップに修正する(1536)。CP
U170は、プログラムカウンタ1004の内容を修正
したうえで、この修正したブロックNo及びステップN
oからねじ締めプログラムの実行を開始する(153
8)。この後、CPU170の動作は1522に戻る。On the contrary, when the block start signal is input from the equipment PC 32 to the block start input unit 1024, the CPU 170 causes the program counter 1004
Is corrected to the head step of the block indicated by the block start signal (1536). CP
The U170 modifies the contents of the program counter 1004, and then modifies the modified block No. and step N
Start the screw tightening program from o (153
8). After that, the operation of the CPU 170 returns to 1522.
【0121】ステップ1526において、対応する穴位
置に係る一連のねじ締め行為が終了したと判定された場
合、CPU170は、図32に示されるステップ154
0に移行する。ステップ1540においては、CPU1
70は、ねじ締め行為を終了したブロックが最初のブロ
ックであるか否かを判定する。この判定の結果、最初の
ブロックであるとされた場合、CPU170はブロック
Noを1に設定する(1542)。逆に、最初のブロッ
クでない場合にはブロックNoに1を加算する(154
4)。ステップ1544実行後CPU170は、最終ト
ルク値表に最終トルク値を、判定記憶表に判定結果をそ
れぞれ書き込む(1546)。すなわち、ステップ15
46実行時点でのNoが1である場合には、最終トルク
値表及び判定記憶表の第1のブロックに係る欄に最終ト
ルク値及び判定結果を書き込み、ブロックNoが2であ
る場合には第2のブロックに係る欄に書き込む、という
ように、最終トルク値表及び判定記憶表に書き込みを行
う。If it is determined in step 1526 that the series of screw tightening actions relating to the corresponding hole positions have been completed, the CPU 170 causes the CPU 170 to execute step 154 shown in FIG.
Move to 0. In step 1540, CPU1
70 determines whether or not the block that has completed the screw tightening action is the first block. If the result of this determination is that it is the first block, the CPU 170 sets the block number to 1 (1542). On the contrary, if it is not the first block, 1 is added to the block number (154).
4). After executing step 1544, the CPU 170 writes the final torque value in the final torque value table and the determination result in the determination storage table (1546). That is, step 15
46 When the No at the time of execution is 1, the final torque value and the determination result are written in the column relating to the first block of the final torque value table and the determination storage table, and when the block No is 2, The final torque value table and the judgment storage table are written, such as writing in the column related to the block of No. 2.
【0122】前述の図36及び37の例の場合、軸の本
数が2、プログラムを構成するブロックの個数が3であ
る。第1の軸に係る最終トルク値が505kgcmであ
り、第2の軸に係る最終トルク値が510kgcmであ
る場合、図9(a)に示されるように、最終トルク値表
にこれら505kgcm及び510kgcmの値が書き
込まれる。ねらいトルク値が500kgcmでありOK
と判定される範囲が±10kgcmである場合、これら
の値はいずれもOKと判定され、その旨が判定記憶表に
書き込まれる。また、ブロックNoが2であり従って実
行しているブロックが1040−2である場合には、図
9(b)に示されるように最終トルク値及び判定記憶表
のブロック2の欄への最終トルク値及び判定結果の書き
込みが実行される。同様に、ブロックNoが3であり実
行に係るブロックが1040−3である場合には、図9
(c)に示されるようにブロック3の欄への書き込みが
実行される。これらの書き込みにおいて、ブロック2実
行の際の第2の軸に係る最終トルク値が480kgcm
であり500kgcm±10kgcmの範囲を逸してい
るため、判定記憶表の対応する欄にはNGが書き込まれ
る。In the case of the examples shown in FIGS. 36 and 37, the number of axes is 2 and the number of blocks constituting the program is 3. When the final torque value related to the first axis is 505 kgcm and the final torque value related to the second axis is 510 kgcm, as shown in FIG. 9 (a), the final torque value table shows these 505 kgcm and 510 kgcm. The value is written. The target torque value is 500 kgcm and it is OK.
When the range determined to be ± 10 kgcm is ± 10 kgcm, all of these values are determined to be OK, and that effect is written in the determination storage table. Further, when the block No is 2 and therefore the block being executed is 1040-2, as shown in FIG. 9B, the final torque value and the final torque in the column of the block 2 of the determination storage table are shown. The value and the judgment result are written. Similarly, when the block No. is 3 and the execution block is 1040-3, FIG.
As shown in (c), writing to the column of block 3 is executed. In these writings, the final torque value related to the second axis when executing block 2 is 480 kgcm.
Since it is out of the range of 500 kgcm ± 10 kgcm, NG is written in the corresponding column of the determination memory table.
【0123】ステップ1546の実行後、CPU170
は、実行したブロックが最後のブロックであるか否かを
判定する(1548)。最後のブロックでない場合、C
PU170の動作は、図31に示されるステップ153
2に移行し、設備PC32からの信号待ち状態となる。
また、最後のブロックである場合、プログラム終了にか
かる処理、例えば通信部158による品質管理用パソコ
ン110への通信処理等を実行し(1550)、図30
に示されるステップ1516に戻り設備PC32からの
スタート信号を待つ。なお、ステップ1522において
ねじ締め命令でないと判定された場合には、さらに待ち
命令であるか否かが判定され(1552)、待ち命令で
ある場合には最後のブロックでないと判定された場合と
同様、設備PC32からの信号待ち状態に移行し(15
32)、待ち命令でないとされた場合にはエラー表示を
実行する(1554)。After execution of step 1546, the CPU 170
Determines whether the executed block is the last block (1548). C if not the last block
The operation of PU 170 is step 153 shown in FIG.
The process shifts to 2 and the system waits for a signal from the equipment PC 32.
If it is the last block, the process related to the end of the program, for example, the communication process to the quality control personal computer 110 by the communication unit 158 is executed (1550), and FIG.
The process returns to step 1516 shown in FIG. 9 to wait for a start signal from the equipment PC 32. If it is determined in step 1522 that it is not the screw tightening instruction, it is further determined whether or not it is a waiting instruction (1552). If it is the waiting instruction, it is the same as when it is determined that it is not the last block. , Transition to the state of waiting for a signal from the equipment PC 32 (15
32) If the instruction is not a wait instruction, an error display is executed (1554).
【0124】このように、本実施例においては、各穴位
置に係るねじ締め動作が、プログラム上合計3個のブロ
ックを形成し、各ワーク毎に1個のプログラムを作成す
るようにしたため、穴位置に係るねじ締め行為をブロッ
ク概念により、1個のワークに係るねじ締め行為をプロ
グラム概念により、それぞれ管理することができる。さ
らに、各ブロックを実行する際に当該ブロックにおける
各軸の最終トルク値及びその良否判定結果を最終トルク
値及び判定記憶表に書き込むようにしており、この最終
トルク値表及び判定記憶表は、穴位置状態記憶部103
6によって各ワーク毎に作成されている。従って、本実
施例によれば、各ワーク毎にねじ締め状態を管理するこ
とができる。As described above, in the present embodiment, the screw tightening operation for each hole position forms a total of three blocks on the program and one program is created for each work. The screw tightening action related to the position can be managed by the block concept, and the screw tightening action related to one work can be managed by the program concept. Further, when each block is executed, the final torque value of each axis in the block and the pass / fail judgment result are written in the final torque value and the judgment storage table. Position state storage unit 103
6 is created for each work. Therefore, according to the present embodiment, the screw tightening state can be managed for each work.
【0125】また、ねじ締め状態をワーク管理できない
装置の場合、ねじ締めサイクルを実行する前に判定部1
018をリセットしておく必要がある。このリセットに
必要な処理時間は、設備PC32からねじ締め装置10
8へ授受に要する時間(0.1s〜0.2s程度)と、
この信号によって判定部1018をクリア状態するため
の時間(0.3s程度)の合計、すなわち0.5s程度
である。このような行為を各穴位置毎に実行すると、例
えば穴位置が3個所である場合には合計1.5s程度、
設備のサイクルタイムに影響が生じることとなる。しか
し、本実施例のように各ワーク毎に判定結果を記憶する
するようにしている場合、穴位置毎に判定部1018を
リセットする必要がない。従って、各ワーク毎に一回リ
セットを行うのみで足り、設備のサイクルタイムへの影
響がより小さくなる。Further, in the case of a device in which the screw tightening state cannot be managed as a work, the judging unit 1 is executed before the screw tightening cycle is executed.
It is necessary to reset 018. The processing time required for this reset is from the equipment PC 32 to the screw tightening device 10
8 time required for transfer (about 0.1 s to 0.2 s),
The total time (about 0.3 s) for clearing the determination unit 1018 by this signal, that is, about 0.5 s. When such an action is executed for each hole position, for example, when there are three hole positions, a total of about 1.5 s,
This will affect the cycle time of the equipment. However, when the determination result is stored for each work as in the present embodiment, it is not necessary to reset the determination unit 1018 for each hole position. Therefore, it is sufficient to perform the reset once for each work, and the influence on the cycle time of the equipment becomes smaller.
【0126】さらに、本実施例においては、このような
ワーク管理に係る効果に加え、ブロックスタートに係る
効果をも享受することができる。すなわち、ねじ締めプ
ログラムを必要に応じて中途のブロックから実行開始す
ることができる。従って、例えばねじの締め付け不良が
発生した場合においても、同一のねじ締めプログラムを
用いることができ、仮締め開始から最終までのプログラ
ムと仮締め終了時から最終迄のプログラムとを両方準備
する必要がなく、設定値管理も1個でよい。Furthermore, in the present embodiment, in addition to the effect related to such work management, the effect related to block start can be enjoyed. That is, the screw tightening program can be started from an intermediate block as needed. Therefore, for example, even when a screw tightening failure occurs, the same screw tightening program can be used, and it is necessary to prepare both the program from the temporary tightening start to the final tightening and the program from the temporary tightening end to the final tightening. Instead, only one set value management is required.
【0127】さらに、ねじ締め装置108の動作が途中
停止した状態で、設備PC32からブロックスタート信
号を供給することにより、前サイクルにおいて実行した
ねじ締め動作を継続することが可能になる。設備PC3
2は、このブロックスタート信号により、実行開始に係
る穴位置(ブロック)を指定することが出来るため、ね
じ締め装置108の途中停止後作業者がねじの手直し等
を行った場合においても、該当する穴位置(ブロック)
の先頭から、ねじ締めプログラムを実行することが可能
になる。前サイクルの記憶(プログラムカウンタ100
4上の記憶)は、リセット信号により消去すればよい。
リセット信号は、例えば、治具をゆるめてワークを入れ
替える際に発生させればよい。Furthermore, by supplying a block start signal from the equipment PC 32 while the operation of the screw tightening device 108 is stopped midway, the screw tightening operation executed in the previous cycle can be continued. Equipment PC3
In No. 2, since the hole position (block) related to the execution start can be designated by this block start signal, it is applicable even when the worker performs screw rework or the like after the screw tightening device 108 is stopped halfway. Hole position (block)
It is possible to execute the screw tightening program from the beginning. Memory of previous cycle (program counter 100
4) may be erased by a reset signal.
The reset signal may be generated, for example, when loosening the jig and replacing the work.
【0128】なお、以上の説明では、コントローラ28
が設備PC32により制御されていたが、これは他の装
置により制御されていても構わない。In the above description, the controller 28
Was controlled by the equipment PC 32, but it may be controlled by another device.
【0129】[0129]
【発明の効果】以上説明したように、本発明によれば、
実行開始に係るステップを特定してねじ締めプログラム
を再起動させるようにしたため、ねじが途中まで締め付
けられている場合にも、中途のステップからねじの締め
付けを好適に実行可能である。この結果、途中まで締め
付けられたねじの締め付けに係る工数が低減する。As described above, according to the present invention,
Since the step related to the start of execution is specified and the screw tightening program is restarted, even when the screw is tightened halfway, it is possible to preferably perform tightening of the screw from the middle step. As a result, the number of steps involved in tightening a screw that has been tightened halfway is reduced.
【0130】また、請求項2によれば、実行開始に係る
ステップをねじの状態の検出測定により特定するように
したため、ステップの特定に当たって例えばステップ番
号を入力する等の操作が不要となり、より自動化が進ん
だ装置が得られる。Further, according to claim 2, since the step related to the execution start is specified by detecting and measuring the state of the screw, an operation such as inputting a step number is not necessary for specifying the step, which is more automated. An advanced device can be obtained.
【0131】請求項3によれば、各ねじ毎に付与された
情報を入力することにより実行開始に係るステップを特
定するようにしたため、請求項2と同様に自動化が進む
と共に、より詳細・多岐に亘る情報に基づきステップの
特定を行っているため、後工程、他のライン等でねじ締
めを行うことも可能になる。According to the third aspect, since the step related to the execution start is specified by inputting the information given to each screw, the automation is promoted as in the second aspect, and more detailed / diversified information is obtained. Since the step is specified on the basis of the information on the above, it is possible to perform the screw tightening in the post process, another line, or the like.
【0132】そして、請求項4によれば、実行開始に係
るブロック、すなわちねじ穴を特定してねじ締めプログ
ラムを再起動させるようにしたため、ねじを取り去って
締め直す場合にも、対応するねじ穴からねじの締め付け
を再開できる。従って、異常が発生したワークの手直し
等を行った後に、対応するブロックの最初から、好適に
ねじ締めを再開できる。According to the fourth aspect, since the block related to the execution start, that is, the screw hole is specified and the screw tightening program is restarted, even when the screw is removed and the screw is tightened again, the corresponding screw hole is removed. The screw tightening can be restarted from. Therefore, after the work in which the abnormality has occurred is repaired, the screw tightening can be preferably restarted from the beginning of the corresponding block.
【図1】本発明の第1乃至第4実施例に係るねじ締め装
置の概略構成を示すブロック図である。FIG. 1 is a block diagram showing a schematic configuration of a screw tightening device according to first to fourth embodiments of the present invention.
【図2】設備PCによるねじ締めプログラム(ユーザプ
ログラム)の起動を説明する図である。FIG. 2 is a diagram illustrating activation of a screw tightening program (user program) by an equipment PC.
【図3】ステップ化されたねじ締めプログラム(ユーザ
プログラム)の一例を示す図である。FIG. 3 is a diagram showing an example of a stepped screw tightening program (user program).
【図4】図3のプログラムによるねじ締め動作を示す図
であり、図4(a)は速度の変化を、図4(b)はトル
クの変化を、それぞれ示す図である。FIG. 4 is a diagram showing a screw tightening operation by the program of FIG. 3, FIG. 4 (a) is a diagram showing a change in speed, and FIG. 4 (b) is a diagram showing a change in torque.
【図5】第1乃至第4実施例におけるコントローラの内
部構成を示すブロック図である。FIG. 5 is a block diagram showing an internal configuration of a controller in the first to fourth embodiments.
【図6】第1実施例の要部構成を示すブロック図であ
る。FIG. 6 is a block diagram showing a main configuration of the first embodiment.
【図7】第1実施例におけるCPUの動作を示すフロー
チャートである。FIG. 7 is a flowchart showing the operation of the CPU in the first embodiment.
【図8】第1実施例におけるねじ締めプログラム(ユー
ザプログラム)の再起動を説明する図である。FIG. 8 is a diagram illustrating restart of a screw tightening program (user program) according to the first embodiment.
【図9】第2実施例の要部構成を示すブロック図であ
る。FIG. 9 is a block diagram showing a main configuration of a second embodiment.
【図10】第2実施例におけるCPUの動作を示すフロ
ーチャートである。FIG. 10 is a flowchart showing the operation of the CPU in the second embodiment.
【図11】本発明の第3実施例に係るねじ締め装置の要
部構成を示すブロック図である。FIG. 11 is a block diagram showing a main configuration of a screw fastening device according to a third exemplary embodiment of the present invention.
【図12】第3実施例におけるCPUの動作を示すフロ
ーチャートである。FIG. 12 is a flowchart showing the operation of the CPU in the third embodiment.
【図13】本発明の第4実施例に係るねじ締め装置の要
部構成を示すブロック図である。FIG. 13 is a block diagram showing a main configuration of a screw tightening device according to a fourth exemplary embodiment of the present invention.
【図14】第4実施例におけるCPUの動作を示すフロ
ーチャートである。FIG. 14 is a flowchart showing the operation of the CPU in the fourth embodiment.
【図15】本発明の第5実施例に係るねじ締め装置の概
略構成を示すブロック図である。FIG. 15 is a block diagram showing a schematic configuration of a screw tightening device according to a fifth exemplary embodiment of the present invention.
【図16】第5実施例におけるストローク検出動作を説
明する図である。FIG. 16 is a diagram illustrating a stroke detection operation in the fifth embodiment.
【図17】第5実施例におけるコントローラの内部構成
を示すブロック図である。FIG. 17 is a block diagram showing an internal configuration of a controller in the fifth embodiment.
【図18】第5実施例の要部構成を示すブロック図であ
る。FIG. 18 is a block diagram showing a main configuration of a fifth embodiment.
【図19】第5実施例におけるCPUの動作を示すフロ
ーチャートである。FIG. 19 is a flowchart showing the operation of the CPU in the fifth embodiment.
【図20】本発明の第6実施例に係るねじ締め装置の概
略構成を示すブロック図である。FIG. 20 is a block diagram showing a schematic configuration of a screw tightening device according to a sixth exemplary embodiment of the present invention.
【図21】第6実施例におけるコントローラの内部構成
を示すブロック図である。FIG. 21 is a block diagram showing an internal configuration of a controller in the sixth embodiment.
【図22】第6実施例の要部構成を示すブロック図であ
る。FIG. 22 is a block diagram showing a main configuration of a sixth embodiment.
【図23】第6実施例におけるCPUの動作を示すフロ
ーチャートである。FIG. 23 is a flowchart showing the operation of the CPU in the sixth embodiment.
【図24】本発明の第7実施例に係る自動組付機の一例
構成を示す図である。FIG. 24 is a diagram showing an example configuration of an automatic assembly machine according to a seventh embodiment of the present invention.
【図25】第7実施例における設備PC(プログラマブ
ルコントローラ)の構成を示すブロック図である。FIG. 25 is a block diagram showing the configuration of an equipment PC (programmable controller) in the seventh embodiment.
【図26】第7実施例における位置決め装置の一例構成
を示すブロック図である。FIG. 26 is a block diagram showing an example configuration of a positioning device according to a seventh embodiment.
【図27】第7実施例におけるねじ締め装置の一例構成
を示すブロック図である。FIG. 27 is a block diagram showing an example configuration of a screw tightening device according to a seventh embodiment.
【図28】第7実施例におけるねじ締め装置のコントロ
ーラの内部構成を示すブロック図である。FIG. 28 is a block diagram showing an internal configuration of a controller of the screw tightening device in the seventh exemplary embodiment.
【図29】第7実施例の要部構成を示すブロック図であ
る。FIG. 29 is a block diagram showing a main structure of a seventh embodiment.
【図30】第7実施例におけるCPUの動作の一部を示
すフローチャートである。FIG. 30 is a flowchart showing a part of the operation of the CPU in the seventh embodiment.
【図31】第7実施例におけるCPUの動作の一部を示
すフローチャートである。FIG. 31 is a flowchart showing a part of the operation of the CPU in the seventh embodiment.
【図32】第7実施例におけるCPUの動作の一部を示
すフローチャートである。FIG. 32 is a flowchart showing a part of the operation of the CPU in the seventh embodiment.
【図33】設備サイクルの一例を示すサイクル線図であ
る。FIG. 33 is a cycle diagram showing an example of an equipment cycle.
【図34】図33のサイクル線図を各軸と対応付けて示
した図である。FIG. 34 is a diagram showing the cycle diagram of FIG. 33 in association with each axis.
【図35】第7実施例におけるねじ締めプログラム(ユ
ーザプログラム)の実行形態を示す図である。FIG. 35 is a diagram showing an execution form of a screw tightening program (user program) in the seventh embodiment.
【図36】最終トルク値表の一例を示す図である。FIG. 36 is a diagram showing an example of a final torque value table.
【図37】判定記憶表の一例を示す図である。FIG. 37 is a diagram showing an example of a determination storage table.
【図38】最終トルク値表及び判定記憶表への最終トル
ク値及び判定結果の書込み過程を示す図であり、(a)
は第1のブロック実行時、(b)は第2のブロック実行
時、(c)は第3のブロック実行時の書き込み動作を説
明する図である。FIG. 38 is a diagram showing a process of writing the final torque value and the determination result in the final torque value table and the determination storage table, (a)
FIG. 3 is a diagram illustrating a write operation during execution of the first block, (b) during execution of the second block, and (c) illustrating a write operation during execution of the third block.
【図39】従来例に係るねじ締め装置の構成を示すブロ
ック図である。FIG. 39 is a block diagram showing a configuration of a screw tightening device according to a conventional example.
28 コントローラ 30 速度アンプ 32 設備PC 34 モータ 36 総合部 38 速度コントロール部 40 トルクセンサ 42 角度・速度センサ 44 AD変換部 46 角度・速度検出部 54,56 入出力部 64,162,170 CPU 66 ROM 68 RAM 70 対PCインタフェース 74 ブロックNo信号入力部 76,76,76 リスタート入力部 78 ストロークセンサ 80 ストローク検出部 82 ソケット 84 ねじ 86 ねじの頭部 88 ヘッド 90 センサ部 92 ワーク 96 ソケットセンサ 98 I/Dキャリア 100 I/Dコントローラ 102 I/Dアンテナ 104 通信処理部 106 位置決め装置 108 めじ締め装置 148 CPU部 150 メモリ部 152 軸制御部 154 出力部 156 入力部 158 通信部 160 演算部 168 速度指令演算部 1000 ステップNo処理ルーチン 1002 プログラム進行管理ルーチン 1004 プログラムカウンタ 1006 ストローク検出処理ルーチン 1008 ストローク設定部 1010 通信処理ルーチン 1012 I/D設定部 1014 ねじ締めプログラム部 1016 ワーク状態記憶部 1018 判定部 1020 ワーク管理部 1022 ブロック処理部 1024 ブロックスタート入力部 1026 ワーク管理処理部 1028 穴位置処理部 1030 最終トルク値記憶部 1032 トルク過程記憶部 1034 判定結果記憶部 1036 穴位置状態記憶部 1038−1,…1038−n プログラム 1040−1,1040−2,1040−3 ブロック S001,S002,S003,S004 ねじ締めプ
ログラムのステップ PGS1,PGS2,PGS3,PGS4,PGS5プ
ログラムスタート信号 SN1,SN2,SN3,SN4,SN5 ステップN
o信号28 controller 30 speed amplifier 32 equipment PC 34 motor 36 general section 38 speed control section 40 torque sensor 42 angle / speed sensor 44 AD conversion section 46 angle / speed detection section 54,56 input / output section 64,162,170 CPU 66 ROM 68 RAM 70 PC interface 74 Block No. signal input section 76, 76, 76 Restart input section 78 Stroke sensor 80 Stroke detection section 82 Socket 84 Screw 86 Screw head 88 Head 90 Sensor section 92 Work 96 Socket sensor 98 I / D Carrier 100 I / D controller 102 I / D antenna 104 Communication processing unit 106 Positioning device 108 Margining device 148 CPU unit 150 Memory unit 152 Axis control unit 154 Output unit 156 Input unit 158 Communication unit 160 calculation unit 168 speed command calculation unit 1000 step No processing routine 1002 program progress management routine 1004 program counter 1006 stroke detection processing routine 1008 stroke setting unit 1010 communication processing routine 1012 I / D setting unit 1014 screw tightening program unit 1016 work state storage unit 1018 Judgment unit 1020 Work management unit 1022 Block processing unit 1024 Block start input unit 1026 Work management processing unit 1028 Hole position processing unit 1030 Final torque value storage unit 1032 Torque process storage unit 1034 Judgment result storage unit 1036 Hole position state storage unit 1038- 1, ... 1038-n Program 1040-1, 1040-2, 1040-3 Block S001, S002, S003, S004 Screw tightening Program of step PGS1, PGS2, PGS3, PGS4, PGS5 program start signal SN1, SN2, SN3, SN4, SN5 step N
o signal
───────────────────────────────────────────────────── フロントページの続き (72)発明者 江口 隆志 愛知県豊田市トヨタ町1番地 トヨタ自動 車株式会社内 (72)発明者 竹内 彰浩 愛知県豊田市トヨタ町1番地 トヨタ自動 車株式会社内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Takashi Eguchi, 1 Toyota Town, Toyota City, Aichi Prefecture, Toyota Motor Co., Ltd. (72) Inventor, Akihiro Takeuchi 1, Toyota Town, Aichi Prefecture, Toyota Motor Co., Ltd.
Claims (4)
ム記憶手段と、起動信号を入力する手段と、起動信号に
応じねじ締めプログラムを起動させる起動手段と、当該
ねじ締めプログラムに従いねじ締めを制御する手段と、
を備えるねじ締め制御装置において、 ねじ締めプログラムを構成する複数のステップの中から
実行開始に係るステップを特定するステップ特定手段
と、 特定されたステップからねじ締めプログラムを再起動さ
せる再起動手段と、 を備え、 再起動時にねじ締めプログラムの中途のステップからね
じ締め制御を実行することを特徴とするねじ締め制御装
置。1. A program storage means for storing a screw tightening program, a means for inputting a start signal, a starting means for starting the screw tightening program according to the start signal, and a means for controlling screw tightening according to the screw tightening program. ,
In a screw tightening control device comprising: a step specifying means for specifying a step related to execution start from a plurality of steps constituting the screw tightening program, and a restart means for restarting the screw tightening program from the specified step, And a screw tightening control device that executes the screw tightening control from the middle step of the screw tightening program at the time of restart.
て、 ステップ特定手段が、ねじの状態を検出測定する手段
と、検出測定結果に基づき前記実行開始に係るステップ
を特定する手段と、を備えることを特徴とするねじ締め
制御装置。2. The screw tightening control device according to claim 1, wherein the step specifying means includes means for detecting and measuring the state of the screw, and means for specifying the step related to the execution start based on the detection measurement result. A screw tightening control device characterized in that
て、 ステップ特定手段が、各ねじ毎に付与された情報を入力
する手段と、入力される情報に基づき前記実行開始に係
るステップを特定する手段と、を備えることを特徴とす
るねじ締め制御装置。3. The screw tightening control device according to claim 1, wherein the step specifying unit specifies a unit for inputting information given to each screw and a step related to the execution start based on the input information. And a means for controlling screw tightening.
ためのねじ締めプログラムを記憶するプログラム記憶手
段と、起動信号を入力する手段と、起動信号に応じねじ
締めプログラムを起動させる起動手段と、当該ねじ締め
プログラムに従いねじ締めを制御する手段と、を備える
ねじ締め制御装置において、 ねじ締めプログラムを構成しそれぞれねじ穴に対応する
複数のブロックの中から実行開始に係るブロックを特定
するブロック特定手段と、 特定されたブロックからねじ締めプログラムを再起動さ
せる再起動手段と、 を備え、 再起動時にねじ締めプログラムの中途のブロックからね
じ締め制御を実行することを特徴とするねじ締め制御装
置。4. A program storing means for storing a screw tightening program for executing screw tightening for a plurality of screw holes, a means for inputting a start signal, and a starting means for starting the screw tighten program according to the start signal. A block tightening control device comprising: a means for controlling screw tightening according to the screw tightening program; and a block specifying block for specifying execution start among a plurality of blocks corresponding to the screw holes, each of which composes the screw tightening program. A screw tightening control device comprising: a means and a restarting means for restarting the screw tightening program from the specified block, wherein the screw tightening control is executed from a block in the middle of the screw tightening program at the time of restart.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6527793A JP2953243B2 (en) | 1992-06-04 | 1993-03-24 | Screw tightening control device |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14453192 | 1992-06-04 | ||
| JP4-144531 | 1992-06-04 | ||
| JP6527793A JP2953243B2 (en) | 1992-06-04 | 1993-03-24 | Screw tightening control device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0647635A true JPH0647635A (en) | 1994-02-22 |
| JP2953243B2 JP2953243B2 (en) | 1999-09-27 |
Family
ID=26406410
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6527793A Expired - Lifetime JP2953243B2 (en) | 1992-06-04 | 1993-03-24 | Screw tightening control device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2953243B2 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007210041A (en) * | 2006-02-07 | 2007-08-23 | Makita Corp | Screw fastening machine |
| JP2013107172A (en) * | 2011-11-22 | 2013-06-06 | Hi-P Tech Corp | Thread fastening device, and control method |
| CN107866782A (en) * | 2016-09-26 | 2018-04-03 | 株式会社牧田 | Electric tool |
-
1993
- 1993-03-24 JP JP6527793A patent/JP2953243B2/en not_active Expired - Lifetime
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007210041A (en) * | 2006-02-07 | 2007-08-23 | Makita Corp | Screw fastening machine |
| JP2013107172A (en) * | 2011-11-22 | 2013-06-06 | Hi-P Tech Corp | Thread fastening device, and control method |
| CN107866782A (en) * | 2016-09-26 | 2018-04-03 | 株式会社牧田 | Electric tool |
| JP2018051638A (en) * | 2016-09-26 | 2018-04-05 | 株式会社マキタ | Electric tool |
| US11065754B2 (en) | 2016-09-26 | 2021-07-20 | Makita Corporation | Electric power tool configured to operate in a normal mode with a specific stage, and in a measurement mode with a common stage |
| CN107866782B (en) * | 2016-09-26 | 2022-02-11 | 株式会社牧田 | Electric tool |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2953243B2 (en) | 1999-09-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI517932B (en) | Control device and operation control method of machine tool | |
| JPH04278605A (en) | Trouble foresetting device for machine tool | |
| CN100585525C (en) | Numerical control system | |
| JP2005327191A (en) | Servo control device | |
| JP3855322B2 (en) | Screw inspection device | |
| JP2009113618A (en) | Electric power steering device | |
| US20040236462A1 (en) | Numerical control apparatus for machine tool | |
| JP4280241B2 (en) | Numerical control device having learning control function | |
| WO2016111041A1 (en) | Machining device | |
| JPH0647635A (en) | Screw tightening control device | |
| JP7639188B2 (en) | Method and apparatus for computer-implemented monitoring of a bolt tightening process using a tightening system - Patents.com | |
| CN116300674A (en) | A high-precision automatic dividing device control system and its control method | |
| JP4131078B2 (en) | Robot controller | |
| JP2956403B2 (en) | Screw tightening control device | |
| JP3018757B2 (en) | Screw tightening control device | |
| JP2021094602A5 (en) | ||
| JPH0569656B2 (en) | ||
| JP7741307B2 (en) | Display device and computer-readable storage medium | |
| JP2585750B2 (en) | Nut runner tightening quality judgment method | |
| JPH08106320A (en) | Automatic machine and automatic machine control method | |
| JP2760125B2 (en) | Robot controller | |
| JPH10309683A (en) | Method for analyzing error of robot and robot | |
| JPH01100603A (en) | Sequence program creation support system for sequence control equipment | |
| JP7427850B2 (en) | Machine Tools | |
| JPH08294886A (en) | Robot control device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 9 Free format text: PAYMENT UNTIL: 20080716 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 9 Free format text: PAYMENT UNTIL: 20080716 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 10 Free format text: PAYMENT UNTIL: 20090716 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090716 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100716 Year of fee payment: 11 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 12 Free format text: PAYMENT UNTIL: 20110716 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110716 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120716 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 14 Free format text: PAYMENT UNTIL: 20130716 |