JP2019191003A - Control system, control method, and program - Google Patents

Control system, control method, and program Download PDF

Info

Publication number
JP2019191003A
JP2019191003A JP2018084394A JP2018084394A JP2019191003A JP 2019191003 A JP2019191003 A JP 2019191003A JP 2018084394 A JP2018084394 A JP 2018084394A JP 2018084394 A JP2018084394 A JP 2018084394A JP 2019191003 A JP2019191003 A JP 2019191003A
Authority
JP
Japan
Prior art keywords
calibration parameter
visual sensor
vector
coordinate
data set
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
Application number
JP2018084394A
Other languages
Japanese (ja)
Other versions
JP6813000B2 (en
Inventor
功征 川又
Isayuki Kawamata
功征 川又
橋本 直哉
Naoya Hashimoto
直哉 橋本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP2018084394A priority Critical patent/JP6813000B2/en
Priority to PCT/JP2019/013198 priority patent/WO2019208074A1/en
Publication of JP2019191003A publication Critical patent/JP2019191003A/en
Application granted granted Critical
Publication of JP6813000B2 publication Critical patent/JP6813000B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J13/00Controls for manipulators
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Manipulator (AREA)
  • Image Analysis (AREA)

Abstract

To prevent a reduction in operating ratio of a control system caused by repetition of calibration.SOLUTION: A correction unit corrects a calibration parameter on the basis of a data set indicating the coordinates of a first position that are measured by a visual sensor at the start of positioning processing and on which coordinate transformation is performed by a coordinate transformation unit, and the coordinates of a third position obtained by subtracting the amount of movement of a moving mechanism from the start to the end of the positioning processing, from a second position measured by the visual sensor at the end of the positioning processing and on which coordinate transformation is performed by the coordinate transformation unit.SELECTED DRAWING: Figure 2

Description

本技術は、視覚センサを用いた制御システム、制御方法およびプログラムに関する。   The present technology relates to a control system, a control method, and a program using a visual sensor.

FA(ファクトリー オートメーション)において、対象物の位置を目標位置に合わせる技術(位置決め技術)が各種実用化されている。この際、対象物の位置と目標位置との偏差(距離)を計測する方法として、視覚センサによって撮像された画像を用いる方法がある。当該方法では、視覚センサの座標系と対象物を移動させる移動機構の座標系とを対応付ける処理であるキャリブレーションが行なわれる。   In FA (Factory Automation), various techniques (positioning techniques) for aligning the position of an object with a target position have been put into practical use. At this time, as a method for measuring the deviation (distance) between the position of the object and the target position, there is a method using an image captured by a visual sensor. In this method, calibration, which is processing for associating the coordinate system of the visual sensor with the coordinate system of the moving mechanism that moves the object, is performed.

特開2003−50106号公報(特許文献1)には、以下のステップ(a)〜(e)を行なうことによりキャリブレーションパラメータを決定する技術が開示されている。ステップ(a)は、テーブル又は撮像部を移動させ、テーブルと撮像部との位置関係を算出する。ステップ(b)は、テーブル又は撮像部を移動させ、テーブルとテーブルの所定部分との位置関係を算出する。ステップ(c)は、テーブル又は撮像部を移動させ、補正量を求めてテーブルとテーブルの所定部分との位置関係を補正する。ステップ(d)は、テーブル又は撮像部を移動させ、テーブルと撮像部との位置関係を再算出する。ステップ(e)は、ステップ(c)において求められた補正量が所定の値以下となるまで、ステップ(c)及びステップ(d)を繰り返す。   Japanese Patent Laying-Open No. 2003-50106 (Patent Document 1) discloses a technique for determining a calibration parameter by performing the following steps (a) to (e). In step (a), the table or the imaging unit is moved, and the positional relationship between the table and the imaging unit is calculated. In step (b), the table or the imaging unit is moved, and the positional relationship between the table and a predetermined portion of the table is calculated. In step (c), the table or the imaging unit is moved, the correction amount is obtained, and the positional relationship between the table and a predetermined portion of the table is corrected. In step (d), the table or the imaging unit is moved, and the positional relationship between the table and the imaging unit is recalculated. Step (e) repeats step (c) and step (d) until the correction amount obtained in step (c) is equal to or less than a predetermined value.

特開2003−50106号公報JP 2003-50106 A

キャリブレーションは、装置の立ち上げ段階に行なわれる。しかしながら、機械の経年変化に伴って、視覚センサの座標系を移動機構の座標系に精度良く変換することができなくなる。このような場合、再度キャリブレーションを行なう必要がある。特定のキャリブレーション動作によって行なわれる従来のキャリブレーション方法を用いて再度キャリブレーションを行なう場合、対象物の位置決め処理を一旦停止する必要がある。そのため、位置決め処理を行なうシステムの稼働率が低下する。   Calibration is performed at the start-up stage of the apparatus. However, with the aging of the machine, the coordinate system of the visual sensor cannot be accurately converted to the coordinate system of the moving mechanism. In such a case, it is necessary to perform calibration again. When performing calibration again using a conventional calibration method performed by a specific calibration operation, it is necessary to temporarily stop the object positioning process. Therefore, the operating rate of the system that performs the positioning process is reduced.

本発明は、上記の問題を鑑みてなされたものであり、その目的は、キャリブレーションの繰り返しによる稼働率の低下が抑制可能な制御システム、制御方法およびプログラムを提供することである。   The present invention has been made in view of the above problems, and an object of the present invention is to provide a control system, a control method, and a program capable of suppressing a reduction in operating rate due to repeated calibration.

本開示の一例によれば、対象物の位置決め処理を行なう制御システムは、対象物を撮像して、対象物の位置を計測するための視覚センサと、対象物を移動させるための移動機構と、座標変換部と、フィードバック制御部と、補正部とを備える。座標変換部は、視覚センサの第1座標系を移動機構の第2座標系に変換するためのキャリブレーションパラメータを用いて、視覚センサによって計測された位置の座標変換を行なう。フィードバック制御部は、座標変換部によって座標変換された位置が目標位置に近づくように移動機構に対するフィードバック制御を行なう。補正部は、位置決め処理を開始するときに視覚センサによって計測され、座標変換部により座標変換された第1位置の座標と、位置決め処理を開始してから完了するまでの移動機構の移動量を、位置決め処理を完了するときに視覚センサによって計測され、座標変換部により座標変換された第2位置から差し引くことにより得られる第3位置の座標とを示すデータセットに基づいて、キャリブレーションパラメータを補正する。   According to an example of the present disclosure, a control system that performs an object positioning process images a target and measures a visual sensor for measuring the position of the target; a moving mechanism for moving the target; A coordinate conversion unit, a feedback control unit, and a correction unit are provided. The coordinate conversion unit performs coordinate conversion of the position measured by the visual sensor, using a calibration parameter for converting the first coordinate system of the visual sensor to the second coordinate system of the moving mechanism. The feedback control unit performs feedback control on the moving mechanism so that the position coordinate-converted by the coordinate conversion unit approaches the target position. The correction unit measures the coordinates of the first position measured by the visual sensor when starting the positioning process and coordinate-converted by the coordinate conversion unit, and the movement amount of the moving mechanism from the start to the completion of the positioning process. The calibration parameter is corrected based on a data set indicating the coordinates of the third position obtained by subtracting from the second position measured by the visual sensor when the positioning process is completed and transformed by the coordinate transformation unit. .

この開示によれば、補正部によって補正されたキャリブレーションパラメータを用いることにより、第1座標系から第2座標系に精度良く座標変換することができ、位置決めの精度を高めることができる。さらに、第1位置の座標,第2位置の座標、および、位置決め処理を開始してから完了するまでの移動機構の移動量は、通常の対象物の位置決め処理から得られる。そのため、キャリブレーションパラメータの補正のために、対象部の位置決め処理を停止する必要がない。その結果、キャリブレーションによる稼働率の低下を抑制できる。   According to this disclosure, by using the calibration parameter corrected by the correction unit, coordinate conversion from the first coordinate system to the second coordinate system can be performed with high accuracy, and positioning accuracy can be improved. Further, the coordinates of the first position, the coordinates of the second position, and the movement amount of the moving mechanism from the start to the completion of the positioning process are obtained from the normal object positioning process. Therefore, it is not necessary to stop the positioning process of the target portion for correcting the calibration parameter. As a result, a reduction in operating rate due to calibration can be suppressed.

上記の開示において、補正部は、第1位置を第3位置に変換するための変換パラメータをキャリブレーションパラメータに乗ずることにより、キャリブレーションパラメータを補正する。   In the above disclosure, the correction unit corrects the calibration parameter by multiplying the calibration parameter by the conversion parameter for converting the first position to the third position.

この開示によれば、第1位置と第3位置との偏差を補償するためのキャリブレーションパラメータの補正を容易に実行できる。   According to this disclosure, calibration parameters can be easily corrected to compensate for the deviation between the first position and the third position.

上記の開示において、補正部は、第1位置を第1位置と第3位置とを結ぶ線分上の第4位置に変換するための変換パラメータをキャリブレーションパラメータに乗ずることにより、キャリブレーションパラメータを補正する。キャリブレーションパラメータが大きく変化するとは、制御システムに悪影響を及ぼす可能性がある。しかしながら、この開示によれば、キャリブレーションパラメータは、一回で大きく変化しない。その結果、制御システムに悪影響を抑制できる。   In the above disclosure, the correction unit multiplies the calibration parameter by the conversion parameter for converting the first position to the fourth position on the line segment connecting the first position and the third position, thereby calculating the calibration parameter. to correct. A large change in calibration parameters can adversely affect the control system. However, according to this disclosure, the calibration parameters do not change significantly at one time. As a result, adverse effects on the control system can be suppressed.

上記の開示において、キャリブレーションパラメータは、第1座標系と第2座標系との間の回転および倍率の変換量を規定する第1〜第4パラメータを含む。補正部は、少なくとも4回の位置決め処理からそれぞれ得られる少なくとも4つのデータセットを用いて、第1〜第4パラメータを補正する。この開示によれば、回転および倍率の変換量を規定する第1〜第4パラメータを容易に補正することができる。   In the above disclosure, the calibration parameters include first to fourth parameters that define the amount of rotation and magnification conversion between the first coordinate system and the second coordinate system. The correction unit corrects the first to fourth parameters using at least four data sets obtained from at least four positioning processes. According to this disclosure, it is possible to easily correct the first to fourth parameters that define the conversion amounts of rotation and magnification.

上記の開示において、少なくとも4つのデータセットは、第1〜第4データセットを含む。第1データセットに対応する第1位置から第3位置への第1ベクトルと、第2データセットに対応する第1位置から第3位置への第2ベクトルと、第3データセットに対応する第1位置から第3位置への第3ベクトルと、第4データセットに対応する第1位置から第3位置への第4ベクトルとから選択される2つのベクトルは一次独立である。   In the above disclosure, the at least four data sets include first to fourth data sets. A first vector from the first position to the third position corresponding to the first data set, a second vector from the first position to the third position corresponding to the second data set, and a first vector corresponding to the third data set. Two vectors selected from the third vector from the first position to the third position and the fourth vector from the first position to the third position corresponding to the fourth data set are linearly independent.

この開示によれば、補正部は、第1〜第4データセットを用いることにより、第1〜第4パラメータの補正量を容易に算出することができる。   According to this disclosure, the correction unit can easily calculate the correction amounts of the first to fourth parameters by using the first to fourth data sets.

上記の開示において、補正部は、第1〜第4データセットをこの順に取得する取得処理を実行し、第1データセットを取得してから第4データセットを取得するまでの時間が規定時間内である場合に、当該第1〜第4データセットに基づいてキャリブレーションパラメータを補正し、第1データセットを取得してから第4データセットを取得するまでの時間が規定時間を超える場合に、当該第1〜第4データセットを破棄して、再度取得処理を行なう。   In the above disclosure, the correction unit executes an acquisition process for acquiring the first to fourth data sets in this order, and the time from acquiring the first data set to acquiring the fourth data set is within a specified time. When the calibration parameter is corrected based on the first to fourth data sets, and the time from acquiring the first data set to acquiring the fourth data set exceeds a specified time, The first to fourth data sets are discarded and the acquisition process is performed again.

この開示によれば、規定時間内に計測された第1〜第4データセットを取得できる。その結果、第1〜第4データセットが取得されたときの移動機構の状態は、略同一である。これにより、補正部は、現状の移動機構の状態に応じた、キャリブレーションパラメータの補正を行なうことができる。   According to this disclosure, the first to fourth data sets measured within a specified time can be acquired. As a result, the state of the moving mechanism when the first to fourth data sets are acquired is substantially the same. Thereby, the correction unit can correct the calibration parameter according to the current state of the moving mechanism.

上記の開示において、第1〜第4ベクトルは、第1条件および第2条件を満たす。第1条件は、第1〜第4ベクトルの長さが規定長さ以上であるという条件である。第2条件は、第2ベクトルと第1ベクトルとのなす角度が第1規定角度範囲内であり、第3ベクトルと第1ベクトルまたは第2ベクトルとのなす角度が第2規定角度範囲内であり、第4ベクトルと第1〜第3ベクトルのいずれか1つとのなす角度とが第3規定角度範囲内であるという条件である。この開示によれば、第1〜第4パラメータの補正量の演算誤差を抑制できる。   In the above disclosure, the first to fourth vectors satisfy the first condition and the second condition. The first condition is a condition that the lengths of the first to fourth vectors are not less than a specified length. The second condition is that the angle formed between the second vector and the first vector is within the first specified angle range, and the angle formed between the third vector and the first vector or the second vector is within the second specified angle range. The angle formed by the fourth vector and any one of the first to third vectors is within the third specified angle range. According to this disclosure, it is possible to suppress calculation errors in the correction amounts of the first to fourth parameters.

上記の開示において、キャリブレーションパラメータは、第1座標系から第2座標系への並進、回転および拡大縮小の変換量を規定する。補正部は、補正前のキャリブレーションパラメータを用いたときの変換量と補正後のキャリブレーションパラメータを用いたときの変換量との偏差が規定値を超える場合、キャリブレーションパラメータを補正しない。この開示によれば、キャリブレーションパラメータによる変換量を大きく変更することに伴う、移動機構への悪影響を抑制できる。   In the above disclosure, the calibration parameter defines the translation amount of translation, rotation, and enlargement / reduction from the first coordinate system to the second coordinate system. The correction unit does not correct the calibration parameter when the deviation between the conversion amount when using the calibration parameter before correction and the conversion amount when using the calibration parameter after correction exceeds a specified value. According to this disclosure, it is possible to suppress an adverse effect on the moving mechanism due to a large change in the conversion amount based on the calibration parameter.

上記の開示において、補正部は、補正後のキャリブレーションパラメータを用いたフィードバック制御により位置決め処理を完了するのに要する時間が補正前のキャリブレーションパラメータを用いたフィードバック制御により位置決め処理を完了するのに要する時間よりも長い場合、キャリブレーションパラメータを補正前の状態に戻す。この開示によれば、キャリブレーションパラメータの補正が不適切であった場合、キャリブレーションパラメータを補正前の状態に戻すことができる。   In the above disclosure, the correction unit completes the positioning process by feedback control using the calibration parameter before correction by the time required for completing the positioning process by feedback control using the corrected calibration parameter. If it is longer than the time required, the calibration parameter is returned to the state before correction. According to this disclosure, when calibration parameter correction is inappropriate, the calibration parameter can be returned to the state before correction.

上記の開示において、補正部は、移動機構からの位置関連情報に基づいて移動機構の異常の有無を判定し、移動機構に異常が無いと判定した場合に、キャリブレーションパラメータを補正し、移動機構に異常が有ると判定した場合に、キャリブレーションパラメータを補正しない。   In the above disclosure, the correction unit determines whether or not the moving mechanism is abnormal based on the position-related information from the moving mechanism, and corrects the calibration parameter when determining that the moving mechanism is normal. If it is determined that there is an abnormality in the calibration parameter, the calibration parameter is not corrected.

移動機構に異常が生じている状態においてキャリブレーションパラメータが補正されると、移動機構にストレスが加わり、移動機構が故障する可能性がある。しかしながら、この開示によれば、移動機構に異常が生じている状態においてキャリブレーションパラメータが補正されない。そのため、移動機構の故障の発生を抑制できる。   If the calibration parameter is corrected in a state where the moving mechanism is abnormal, the moving mechanism may be stressed and the moving mechanism may break down. However, according to this disclosure, the calibration parameter is not corrected in a state where the moving mechanism is abnormal. Therefore, it is possible to suppress the occurrence of a failure of the moving mechanism.

本開示の一例によれば、対象物の位置決め処理を行なう制御システムは、対象物を撮像して、対象物の位置を計測するための視覚センサと、対象物を移動させるための移動機構とを備える。制御システムの制御方法は、第1〜第3ステップとを備える。第1ステップは、視覚センサの第1座標系を移動機構の第2座標系に変換するためのキャリブレーションパラメータを用いて、視覚センサによって計測された位置の座標変換を行なうステップである。第2ステップは、座標変換された視覚センサによって計測された位置が目標位置に近づくように移動機構に対するフィードバック制御を行なう。第3ステップは、位置決め処理を開始するときに視覚センサによって計測され、前記座標変換が行なわれた第1位置の座標と、位置決め処理を開始してから完了するまでの移動機構の移動量を、位置決め処理を完了するときに視覚センサによって計測され、前記座標変換が行なわれた第2位置から差し引くことにより得られる第3位置の座標とを示すデータセットに基づいて、キャリブレーションパラメータを補正する。この開示によっても、キャリブレーションの繰り返しによる稼働率の低下を抑制できる。   According to an example of the present disclosure, a control system that performs positioning processing of an object includes a visual sensor that images the object and measures the position of the object, and a moving mechanism that moves the object. Prepare. The control method of the control system includes first to third steps. The first step is a step of performing coordinate conversion of the position measured by the visual sensor, using a calibration parameter for converting the first coordinate system of the visual sensor to the second coordinate system of the moving mechanism. The second step performs feedback control on the moving mechanism so that the position measured by the coordinate-converted visual sensor approaches the target position. In the third step, the coordinates of the first position measured by the visual sensor when starting the positioning process and subjected to the coordinate conversion, and the movement amount of the moving mechanism from the start to the completion of the positioning process, The calibration parameter is corrected based on a data set that is measured by the visual sensor when the positioning process is completed and indicates the coordinates of the third position obtained by subtracting from the second position on which the coordinate conversion has been performed. Also according to this disclosure, it is possible to suppress a reduction in operating rate due to repeated calibration.

本開示の一例によれば、対象物の制御システムにおける制御方法をコンピュータに実行させるためのプログラムは、上記の第1〜第3のステップをコンピュータに実行させる。この開示によっても、キャリブレーションの繰り返しによる稼働率の低下を抑制できる。   According to an example of the present disclosure, a program for causing a computer to execute a control method in an object control system causes the computer to execute the first to third steps. Also according to this disclosure, it is possible to suppress a reduction in operating rate due to repeated calibration.

本発明によれば、キャリブレーションの繰り返しによる稼働率の低下を抑制できる。   According to the present invention, it is possible to suppress a reduction in operating rate due to repeated calibration.

本実施の形態に係る制御システムの概要を示す模式図である。It is a schematic diagram which shows the outline | summary of the control system which concerns on this Embodiment. 位置決め処理を開始するときの計測位置Pm1,位置決め処理を完了するときの計測位置Pm2、および、位置決め処理を開始してから完了するまでのステージ装置の移動量の関係を示す図である。It is a figure which shows the relationship between the measurement position Pm1 when starting a positioning process, the measurement position Pm2 when completing a positioning process, and the movement amount of a stage apparatus from the start to the completion of a positioning process. 本実施の形態に係る制御システムを構成するステージ装置の一例を示す斜視図である。It is a perspective view which shows an example of the stage apparatus which comprises the control system which concerns on this Embodiment. 本実施の形態に係る制御システムを構成する画像処理部32のハードウェア構成を示す模式図である。It is a schematic diagram which shows the hardware constitutions of the image process part 32 which comprises the control system which concerns on this Embodiment. 本実施の形態に係る制御システムを構成するコントローラのハードウェア構成を示す模式図である。It is a schematic diagram which shows the hardware constitutions of the controller which comprises the control system which concerns on this Embodiment. カメラ座標系から機械座標系への並進変換および拡大縮小変換を示す図である。It is a figure which shows the translation conversion and expansion / contraction conversion from a camera coordinate system to a machine coordinate system. カメラ座標系から機械座標系への回転変換を示す図である。It is a figure which shows the rotation conversion from a camera coordinate system to a machine coordinate system. キャリブレーションパラメータの補正の概要を示す図である。It is a figure which shows the outline | summary of correction | amendment of a calibration parameter. ステージ装置の移動に伴う計測位置Pm1の移動を示す図である。It is a figure which shows the movement of measurement position Pm1 accompanying the movement of a stage apparatus. 位置決め処理を開始してから完了するまでのステージ装置の移動量を示す図である。It is a figure which shows the moving amount | distance of the stage apparatus until it completes from the positioning process. 第1〜第4ベクトルの一例を示す図である。It is a figure which shows an example of the 1st-4th vector. 計測位置Pm1,Pn1,Pm2,Pn2と、位置Pm3,Pn3と、重心位置Pg1,Pg3との一例を示す図である。It is a figure which shows an example of measurement position Pm1, Pn1, Pm2, Pn2, position Pm3, Pn3, and gravity center position Pg1, Pg3. 重心位置Pg1に対する計測位置Pm1の相対位置と、重心位置Pg3に対する位置Pm3の相対位置との関係を示す図である。It is a figure which shows the relationship between the relative position of measurement position Pm1 with respect to the gravity center position Pg1, and the relative position of position Pm3 with respect to the gravity center position Pg3. コントローラの位置決め処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the positioning process of a controller. 図14に示す推定位置決定処理のサブルーチンの処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the subroutine of the estimated position determination process shown in FIG. 図15に示す撮像時エンコーダ値の推定処理のサブルーチンの処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the subroutine of the estimation process of the encoder value at the time of imaging shown in FIG. キャリブレーションパラメータの補正処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of a correction process of a calibration parameter. 図17に示す4つのデータセットの取得処理のサブルーチンの処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the subroutine of an acquisition process of four data sets shown in FIG. 計測位置Pm1,Pm2と位置Pm3,Pm7との関係を示す図である。It is a figure which shows the relationship between measurement position Pm1, Pm2 and position Pm3, Pm7. 変形例1に係る補正部の処理の全体の流れを示すフローチャートである。10 is a flowchart showing an overall flow of processing of a correction unit according to Modification 1;

本発明の実施の形態について、図面を参照しながら詳細に説明する。なお、図中の同一または相当部分については、同一符号を付してその説明は繰返さない。   Embodiments of the present invention will be described in detail with reference to the drawings. Note that the same or corresponding parts in the drawings are denoted by the same reference numerals and description thereof will not be repeated.

§1 適用例
図1を参照して、本発明が適用される場面の一例について説明する。図1は、本実施の形態に係る制御システムの概要を示す模式図である。図1に示す制御システム1は、画像処理を用いて対象物(以下、「対象ワークW」という)の位置決めを行う。位置決めは、典型的には、工業製品の製造過程などにおいて、対象ワークWを生産ラインの本来の位置に配置する処理などを意味する。たとえば、制御システム1は、液晶パネルの生産ラインにおいて、ガラス基板に回路パターンの焼付処理(露光処理)前に、露光マスクに対するガラス基板の位置決めを行なう。
§1 Application example An example of a scene to which the present invention is applied will be described with reference to FIG. FIG. 1 is a schematic diagram showing an outline of a control system according to the present embodiment. The control system 1 shown in FIG. 1 positions an object (hereinafter referred to as “target work W”) using image processing. The positioning typically means a process of placing the target workpiece W at the original position on the production line in the manufacturing process of industrial products. For example, the control system 1 positions the glass substrate with respect to the exposure mask before the circuit pattern printing process (exposure process) on the glass substrate in the production line of the liquid crystal panel.

図1に示すように、制御システム1は、ステージ装置10と、サーボドライバ20と、視覚センサ30と、コントローラ40とを備える。   As shown in FIG. 1, the control system 1 includes a stage device 10, a servo driver 20, a visual sensor 30, and a controller 40.

ステージ装置10は、載置される対象ワークWを移動する。ステージ装置10は、サーボドライバ20からの動作制御を受けて動作する。   The stage apparatus 10 moves the target work W to be placed. The stage device 10 operates under operation control from the servo driver 20.

サーボドライバ20は、制御周期Tcごとに受ける移動指令MVに従って、ステージ装置10の動作制御を行う。サーボドライバ20は、ステージ装置10に含まれるサーボモータのエンコーダ値ENを取得して、コントローラ40に出力する。この際、サーボドライバ20は、制御周期Tcと同じ周期で、エンコーダ値ENをコントローラ40に出力する。   The servo driver 20 controls the operation of the stage device 10 according to the movement command MV received every control cycle Tc. The servo driver 20 acquires the encoder value EN of the servo motor included in the stage device 10 and outputs it to the controller 40. At this time, the servo driver 20 outputs the encoder value EN to the controller 40 at the same cycle as the control cycle Tc.

ステージ装置10およびサーボドライバ20は、対象ワークWを移動させるための移動機構を構成する。   The stage device 10 and the servo driver 20 constitute a moving mechanism for moving the target workpiece W.

視覚センサ30は、ステージ装置10上に載置された対象ワークWと目標点とを含む領域を撮像する。視覚センサ30は、撮像により得られた画像に対する処理を行なうことにより、対象ワークW上の特定点の位置(以下、「計測位置PVv」という)と目標点の位置(以下、「目標位置SP」という)とを計測する。特定点は、たとえば対象ワークWに印されたマーク、対象ワークWのコーナーなどである。目標点は、たとえば、固定された基準ワークW0に印されたマークまたはコーナーの位置である。目標点と視覚センサ30との相対位置は一定である。そのため、ステージ装置10が対象ワークWを移動させたとしても、視覚センサ30が撮像した画像において、目標位置SPは一定である。   The visual sensor 30 images a region including the target workpiece W placed on the stage device 10 and the target point. The visual sensor 30 performs a process on the image obtained by imaging, whereby a position of a specific point on the target workpiece W (hereinafter referred to as “measurement position PVv”) and a position of a target point (hereinafter referred to as “target position SP”). Measure). The specific point is, for example, a mark marked on the target work W, a corner of the target work W, or the like. The target point is, for example, the position of a mark or corner marked on the fixed reference workpiece W0. The relative position between the target point and the visual sensor 30 is constant. Therefore, even if the stage apparatus 10 moves the target workpiece W, the target position SP is constant in the image captured by the visual sensor 30.

視覚センサ30は、撮像部31と画像処理部32とを含む。撮像部31は、撮像視野に存在する被写体を撮像して画像データを生成する撮像処理を行なうものであり、対象ワークWを撮像する。撮像部31は、たとえばカメラである。撮像部31は、撮像周期Tpごとに撮像を行なう。撮像周期Tpは制御周期Tcよりも長い。画像処理部32は、撮像部31により生成された画像データに対して画像解析を行ない、計測位置PVvおよび目標位置SPを計測する。   The visual sensor 30 includes an imaging unit 31 and an image processing unit 32. The imaging unit 31 performs an imaging process of capturing an image of a subject existing in the imaging field and generating image data, and images the target workpiece W. The imaging unit 31 is a camera, for example. The imaging unit 31 performs imaging every imaging cycle Tp. The imaging cycle Tp is longer than the control cycle Tc. The image processing unit 32 performs image analysis on the image data generated by the imaging unit 31, and measures the measurement position PVv and the target position SP.

コントローラ40は、たとえばPLC(プログラマブル ロジック コントローラ)であり、各種のFA制御を行なう。コントローラ40は、座標変換部41と、フィードバック制御部42と、補正部46とを備える。   The controller 40 is a PLC (programmable logic controller), for example, and performs various FA controls. The controller 40 includes a coordinate conversion unit 41, a feedback control unit 42, and a correction unit 46.

視覚センサ30から出力される計測位置PVvは、視覚センサ30の座標系(以下、「カメラ座標系」という)で示される。サーボドライバ20は、ステージ装置10の座標系(以下、「機械座標系」という)で示される移動指令MVに従って、ステージ装置10の動作制御を行なう。そのため、座標変換部41は、カメラ座標系を機械座標系に変換するためのキャリブレーションパラメータを用いて、視覚センサ30によって計測された計測位置PVvおよび目標位置SPの座標変換を行なう。   The measurement position PVv output from the visual sensor 30 is indicated by a coordinate system of the visual sensor 30 (hereinafter referred to as “camera coordinate system”). The servo driver 20 controls the operation of the stage device 10 in accordance with a movement command MV indicated by the coordinate system of the stage device 10 (hereinafter referred to as “machine coordinate system”). Therefore, the coordinate conversion unit 41 performs coordinate conversion of the measurement position PVv and the target position SP measured by the visual sensor 30 using the calibration parameters for converting the camera coordinate system to the machine coordinate system.

フィードバック制御部42は、座標変換された計測位置PVvが目標位置SPに近づくようにサーボドライバ20に対してフィードバック制御を行なう。具体的には、フィードバック制御部42は、制御周期Tcごとに、計測位置PVvを目標位置SPに近づけるための移動指令MVを更新してサーボドライバ20に出力する。   The feedback control unit 42 performs feedback control on the servo driver 20 so that the coordinate-converted measurement position PVv approaches the target position SP. Specifically, the feedback control unit 42 updates the movement command MV for bringing the measurement position PVv closer to the target position SP and outputs it to the servo driver 20 for each control cycle Tc.

補正部46は、キャリブレーションパラメータの値を補正する。補正部46は、予め定められたタイミングあるいは指定されたタイミングで、キャリブレーションパラメータの値を補正する。たとえば、補正部46は、定期的にキャリブレーションパラメータの値を補正してもよいし、位置決め処理の時間が規定時間を超える場合にキャリブレーションパラメータの値を補正してもよい。   The correction unit 46 corrects the value of the calibration parameter. The correction unit 46 corrects the calibration parameter value at a predetermined timing or a designated timing. For example, the correction unit 46 may periodically correct the value of the calibration parameter, or may correct the value of the calibration parameter when the time of the positioning process exceeds a specified time.

補正部46は、ある対象ワークWの位置決め処理を開始するときの計測位置Pm1と、当該位置決め処理を完了するときの計測位置Pm2と、当該位置決め処理を開始してから完了するまでのステージ装置10の移動量とを用いて、キャリブレーションパラメータの値を補正する。計測位置Pm1は、当該位置決め処理を開始するときに視覚センサ30によって計測された対象ワークW上の特定点の計測位置PVvである。計測位置Pm2は、当該位置決め処理を完了するときに視覚センサ30によって計測された対象ワークW上の特定点の計測位置PVvである。   The correction unit 46 measures the measurement position Pm1 when starting the positioning process of a certain target workpiece W, the measurement position Pm2 when completing the positioning process, and the stage apparatus 10 from the start to the completion of the positioning process. Is used to correct the value of the calibration parameter. The measurement position Pm1 is a measurement position PVv of a specific point on the target workpiece W measured by the visual sensor 30 when starting the positioning process. The measurement position Pm2 is a measurement position PVv of a specific point on the target workpiece W measured by the visual sensor 30 when the positioning process is completed.

図2は、位置決め処理を開始するときの計測位置Pm1,位置決め処理を完了するときの計測位置Pm2、および、位置決め処理を開始してから完了するまでのステージ装置10の移動量の関係を示す図である。図2には、ステージ装置10が対象ワークWをXY平面に沿って移動する場合の、計測位置Pm1,Pm2およびステージ装置10の移動量の例が示される。図2には、機械座標系における計測位置Pm1,Pm2および移動量が示される。   FIG. 2 is a diagram illustrating the relationship between the measurement position Pm1 when the positioning process is started, the measurement position Pm2 when the positioning process is completed, and the movement amount of the stage apparatus 10 from the start to the completion of the positioning process. It is. FIG. 2 shows an example of the measurement positions Pm1, Pm2 and the amount of movement of the stage device 10 when the stage device 10 moves the target workpiece W along the XY plane. FIG. 2 shows the measurement positions Pm1, Pm2 and the movement amount in the machine coordinate system.

計測位置Pm1の機械座標は(Xm_a,Ym_a)であり、計測位置Pm2の機械座標は(Xm_b,Ym_b)である。上述したように、視覚センサ30から出力される計測位置PVvはカメラ座標系で示される。そのため、計測位置Pm1のカメラ座標をキャリブレーションパラメータを用いて変換することにより、計測位置Pm1の機械座標を得ることができる。同様に、計測位置Pm2のカメラ座標をキャリブレーションパラメータを用いて変換することにより、計測位置Pm2の機械座標を得ることができる。   The machine coordinates of the measurement position Pm1 are (Xm_a, Ym_a), and the machine coordinates of the measurement position Pm2 are (Xm_b, Ym_b). As described above, the measurement position PVv output from the visual sensor 30 is indicated by the camera coordinate system. Therefore, the machine coordinates of the measurement position Pm1 can be obtained by converting the camera coordinates of the measurement position Pm1 using the calibration parameters. Similarly, the machine coordinates of the measurement position Pm2 can be obtained by converting the camera coordinates of the measurement position Pm2 using the calibration parameters.

Xm_cは、位置決め処理を開始してから完了するまでのステージ装置10のX軸方向の移動量を示す。Ym_cは、位置決め処理を開始してから完了するまでのステージ装置10のY軸方向の移動量を示す。   Xm_c represents the amount of movement of the stage apparatus 10 in the X-axis direction from the start to the completion of the positioning process. Ym_c indicates the amount of movement of the stage apparatus 10 in the Y-axis direction from the start to the completion of the positioning process.

視覚センサ30によって撮像された画像から計測された計測位置PVvと目標位置SPとが一致するように、ステージ装置10がフィードバック制御されるため、位置決め処理が完了するときには、計測位置PVv(つまり、計測位置Pm2)と目標位置SPとが略一致している。   Since the stage apparatus 10 is feedback-controlled so that the measurement position PVv measured from the image captured by the visual sensor 30 matches the target position SP, when the positioning process is completed, the measurement position PVv (that is, the measurement position PVv) is measured. The position Pm2) and the target position SP are substantially coincident.

キャリブレーションパラメータが正確である場合、位置決め処理を開始してから完了するまでのステージ装置10の移動量は、位置決め処理を開始するときの計測位置Pm1から位置決め処理を完了するときの計測位置Pm2までの偏差と一致する。しかしながら、ステージ装置10の経年変化によりキャリブレーションパラメータが正確ではない場合、位置決め処理を開始してから完了するまでのステージ装置10の移動量は、計測位置Pm1から計測位置Pm2までの偏差と一致しない。すなわち、図2に示されるように、計測位置Pm2からステージ装置10の移動量を差し引いた位置Pm3は、計測位置Pm1からずれる。   When the calibration parameter is accurate, the moving amount of the stage apparatus 10 from the start to the completion of the positioning process is from the measurement position Pm1 when the positioning process is started to the measurement position Pm2 when the positioning process is completed. Is consistent with the deviation. However, when the calibration parameters are not accurate due to the aging of the stage apparatus 10, the movement amount of the stage apparatus 10 from the start to the completion of the positioning process does not coincide with the deviation from the measurement position Pm1 to the measurement position Pm2. . That is, as shown in FIG. 2, the position Pm3 obtained by subtracting the amount of movement of the stage apparatus 10 from the measurement position Pm2 deviates from the measurement position Pm1.

補正部46は、計測位置Pm1と位置Pm3との偏差を補償するために、計測位置Pm1の座標と位置Pm3の座標とを含むデータセットを取得し、当該データセットに基づいてキャリブレーションパラメータを補正する。   The correction unit 46 acquires a data set including the coordinates of the measurement position Pm1 and the coordinates of the position Pm3 in order to compensate for the deviation between the measurement position Pm1 and the position Pm3, and corrects the calibration parameter based on the data set. To do.

本実施の形態によれば、補正部46によって補正されたキャリブレーションパラメータを用いることにより、カメラ座標系から機械座標系に精度良く座標変換することができ、位置決めの精度を高めることができる。さらに、位置決め処理を開始するときの計測位置Pm1,位置決め処理を完了するときの計測位置Pm2、および、位置決め処理を開始してから完了するまでのステージ装置10の移動量は、通常の対象ワークWの位置決め処理から得られる。そのため、キャリブレーションパラメータの補正のために、対象ワークWの位置決め処理を停止する必要がない。その結果、キャリブレーションの繰り返しによる稼働率の低下を抑制できる。   According to the present embodiment, by using the calibration parameter corrected by the correction unit 46, coordinate conversion from the camera coordinate system to the machine coordinate system can be performed with high accuracy, and positioning accuracy can be improved. Furthermore, the measurement position Pm1 when the positioning process is started, the measurement position Pm2 when the positioning process is completed, and the movement amount of the stage apparatus 10 from the start to the completion of the positioning process are the normal target workpiece W Obtained from the positioning process. For this reason, it is not necessary to stop the positioning process of the target workpiece W in order to correct the calibration parameter. As a result, a reduction in operating rate due to repeated calibration can be suppressed.

§2 具体例
次に、本実施の形態に係る制御システムの一例について説明する。
§2 Specific example Next, an example of a control system according to the present embodiment will be described.

<2−1.ステージおよびモータ>
図3は、本実施の形態に係る制御システムを構成するステージ装置の一例を示す斜視図である。図3に示す例では、ステージ装置10は、Xステージ11と、Yステージ13と、θステージ15と、サーボモータ12,14,16とを含む。Xステージ11は、サーボモータ12の駆動によりX方向に沿って移動する。Yステージ13は、サーボモータ14の駆動によりY方向に沿って移動する。θステージ15は、サーボモータ16の駆動によりθ方向に回転する。
<2-1. Stage and Motor>
FIG. 3 is a perspective view showing an example of a stage apparatus constituting the control system according to the present embodiment. In the example illustrated in FIG. 3, the stage apparatus 10 includes an X stage 11, a Y stage 13, a θ stage 15, and servo motors 12, 14, and 16. The X stage 11 moves along the X direction by driving the servo motor 12. The Y stage 13 moves along the Y direction by driving the servo motor 14. The θ stage 15 is rotated in the θ direction by driving the servo motor 16.

サーボモータ12,14,16の各々にはエンコーダが設けられる。エンコーダは、対応するモータの回転位置を検出し、検出結果であるエンコーダ値ENを出力する。   Each of the servo motors 12, 14, 16 is provided with an encoder. The encoder detects the rotational position of the corresponding motor and outputs an encoder value EN that is a detection result.

θステージ15の上に対象ワークWが載置される。撮像部31は、対象ワークWと、定位置に固定された基準ワークW0とを撮像する。基準ワークW0は、透光性を有する素材で構成される。そのため、視覚センサ30は、対象ワークWの特定点であるマーク50m,50nと、基準ワークW0の特定点であるマーク60m、60nとを同時に撮像できる。画像処理部32は、マーク50mの計測位置PVv(以下、「計測位置Pm」という)と、マーク50nの計測位置PVv(以下、「計測位置Pn」という)を出力する。さらに、画像処理部32は、マーク60mの位置(以下、「目標位置SPm」という)、マーク60nの位置(以下、「目標位置SPn」という)を出力する。   The target workpiece W is placed on the θ stage 15. The imaging unit 31 images the target workpiece W and the reference workpiece W0 fixed at a fixed position. The reference workpiece W0 is made of a material having translucency. Therefore, the visual sensor 30 can simultaneously capture the marks 50m and 50n that are specific points of the target work W and the marks 60m and 60n that are specific points of the reference work W0. The image processing unit 32 outputs the measurement position PVv of the mark 50m (hereinafter referred to as “measurement position Pm”) and the measurement position PVv of the mark 50n (hereinafter referred to as “measurement position Pn”). Further, the image processing unit 32 outputs the position of the mark 60m (hereinafter referred to as “target position SPm”) and the position of the mark 60n (hereinafter referred to as “target position SPn”).

<2−2.画像処理部のハードウェア構成>
図4は、本実施の形態に係る制御システム1を構成する画像処理部32のハードウェア構成を示す模式図である。画像処理部32は、典型的には、汎用的なコンピュータアーキテクチャに従う構造を有しており、予めインストールされたプログラムをプロセッサが実行することで、後述するような各種の画像処理を実現する。
<2-2. Hardware configuration of image processing unit>
FIG. 4 is a schematic diagram illustrating a hardware configuration of the image processing unit 32 configuring the control system 1 according to the present embodiment. The image processing unit 32 typically has a structure according to a general-purpose computer architecture, and implements various types of image processing as will be described later by the processor executing a preinstalled program.

より具体的には、画像処理部32は、CPU(Central Processing Unit)やMPU(Micro-Processing Unit)などのプロセッサ310と、RAM(Random Access Memory)312と、表示コントローラ314と、システムコントローラ316と、I/O(Input Output)コントローラ318と、ハードディスク320と、カメラインターフェイス322と、入力インターフェイス324と、コントローラインターフェイス326と、通信インターフェイス328と、メモリカードインターフェイス330とを含む。これらの各部は、システムコントローラ316を中心として、互いにデータ通信可能に接続される。   More specifically, the image processing unit 32 includes a processor 310 such as a CPU (Central Processing Unit) or an MPU (Micro-Processing Unit), a RAM (Random Access Memory) 312, a display controller 314, a system controller 316, and the like. , An I / O (Input Output) controller 318, a hard disk 320, a camera interface 322, an input interface 324, a controller interface 326, a communication interface 328, and a memory card interface 330. These units are connected to each other so as to be capable of data communication with a system controller 316 as a center.

プロセッサ310は、システムコントローラ316との間でプログラム(コード)などを交換して、これらを所定順序で実行することで、目的の演算処理を実現する。   The processor 310 exchanges programs (codes) and the like with the system controller 316 and executes them in a predetermined order, thereby realizing the target arithmetic processing.

システムコントローラ316は、プロセッサ310、RAM312、表示コントローラ314、およびI/Oコントローラ318とそれぞれバスを介して接続されており、各部との間でデータ交換などを行うとともに、画像処理部32全体の処理を司る。   The system controller 316 is connected to the processor 310, the RAM 312, the display controller 314, and the I / O controller 318 via buses, and performs data exchange with each unit and the entire processing of the image processing unit 32. To manage.

RAM312は、典型的には、DRAM(Dynamic Random Access Memory)などの揮発性の記憶装置であり、ハードディスク320から読み出されたプログラムや、撮像部31によって撮像された画像(画像データ)、画像に対する処理結果、およびワークデータなどを保持する。画像に対する処理結果には、当該画像を撮像する際の露光開始時刻および露光終了時刻と、計測位置PVvとが含まれる。   The RAM 312 is typically a volatile storage device such as a DRAM (Dynamic Random Access Memory), a program read from the hard disk 320, an image (image data) captured by the imaging unit 31, and an image corresponding to the image. Holds processing results and work data. The processing result for the image includes the exposure start time and the exposure end time when the image is captured, and the measurement position PVv.

表示コントローラ314は、表示部70と接続されており、システムコントローラ316からの内部コマンドに従って、各種の情報を表示するための信号を表示部70へ出力する。   The display controller 314 is connected to the display unit 70, and outputs signals for displaying various information to the display unit 70 in accordance with internal commands from the system controller 316.

I/Oコントローラ318は、画像処理部32に接続される記録媒体や外部機器との間のデータ交換を制御する。より具体的には、I/Oコントローラ318は、ハードディスク320と、カメラインターフェイス322と、入力インターフェイス324と、コントローラインターフェイス326と、通信インターフェイス328と、メモリカードインターフェイス330と接続される。   The I / O controller 318 controls data exchange with a recording medium connected to the image processing unit 32 and an external device. More specifically, the I / O controller 318 is connected to the hard disk 320, the camera interface 322, the input interface 324, the controller interface 326, the communication interface 328, and the memory card interface 330.

ハードディスク320は、典型的には、不揮発性の磁気記憶装置であり、プロセッサ310で実行されるプログラムに加えて、各種設定値などが格納される。   The hard disk 320 is typically a nonvolatile magnetic storage device, and stores various setting values in addition to programs executed by the processor 310.

カメラインターフェイス322は、対象ワークWを撮影することで生成された画像データを受付ける入力部に相当し、プロセッサ310と撮像部31との間のデータ伝送を仲介する。カメラインターフェイス322は、撮像部31からの画像データをそれぞれ一時的に蓄積するための画像バッファを含む。   The camera interface 322 corresponds to an input unit that receives image data generated by photographing the target workpiece W, and mediates data transmission between the processor 310 and the imaging unit 31. The camera interface 322 includes an image buffer for temporarily storing image data from the imaging unit 31.

入力インターフェイス324は、プロセッサ310とキーボード334、マウス、タッチパネル、専用コンソールなどの入力装置との間のデータ伝送を仲介する。   The input interface 324 mediates data transmission between the processor 310 and an input device such as a keyboard 334, a mouse, a touch panel, and a dedicated console.

コントローラインターフェイス326は、プロセッサ310とコントローラ40との間のデータ伝送を仲介する。   The controller interface 326 mediates data transmission between the processor 310 and the controller 40.

通信インターフェイス328は、プロセッサ310と図示しない他のパーソナルコンピュータやサーバ装置などとの間のデータ伝送を仲介する。通信インターフェイス328は、典型的には、イーサネット(登録商標)やUSB(Universal Serial Bus)などからなる。   The communication interface 328 mediates data transmission between the processor 310 and another personal computer or server device (not shown). The communication interface 328 typically includes Ethernet (registered trademark), USB (Universal Serial Bus), or the like.

メモリカードインターフェイス330は、プロセッサ310と記録媒体50との間のデータ伝送を仲介する。   The memory card interface 330 mediates data transmission between the processor 310 and the recording medium 50.

<2−3.コントローラのハードウェア構成>
図5は、本実施の形態に係る制御システムを構成するコントローラのハードウェア構成を示す模式図である。図5に示されるように、コントローラ40は、主制御ユニット410と、複数のサーボユニット422,424,426とを含む。本実施の形態に係るコントローラ40は、ステージ装置10に含まれるサーボモータ12,14,16と同数のサーボユニット422,424,426を含む。
<2-3. Controller hardware configuration>
FIG. 5 is a schematic diagram showing a hardware configuration of a controller constituting the control system according to the present embodiment. As shown in FIG. 5, the controller 40 includes a main control unit 410 and a plurality of servo units 422, 424 and 426. The controller 40 according to the present embodiment includes the same number of servo units 422, 424, 426 as the servo motors 12, 14, 16 included in the stage device 10.

主制御ユニット410は、コントローラ40の全体制御を司る。主制御ユニット410は、内部バス419を介して、サーボユニット422,424,426と接続されており、互いにデータを遣り取りする。サーボユニット422,424,426は、主制御ユニット410からの内部指令などに従って、サーボドライバ22,24,26に対して制御コマンド(典型的には、駆動パルスなど)をそれぞれ出力する。サーボドライバ22,24,26は、接続されているサーボモータ12,14,16をそれぞれ駆動するドライバである。   The main control unit 410 governs overall control of the controller 40. The main control unit 410 is connected to the servo units 422, 424, and 426 via the internal bus 419, and exchanges data with each other. The servo units 422, 424, and 426 output control commands (typically drive pulses and the like) to the servo drivers 22, 24, and 26, respectively, in accordance with internal commands from the main control unit 410 and the like. The servo drivers 22, 24, and 26 are drivers that drive the connected servo motors 12, 14, and 16, respectively.

主制御ユニット410は、チップセット411と、プロセッサ412と、不揮発性メモリ413と、主メモリ414と、システムクロック415と、メモリカードインターフェイス416と、通信インターフェイス417と、内部バスコントローラ418とを含む。チップセット411と他のコンポーネントとの間は、各種のバスを介してそれぞれ結合されている。   The main control unit 410 includes a chip set 411, a processor 412, a nonvolatile memory 413, a main memory 414, a system clock 415, a memory card interface 416, a communication interface 417, and an internal bus controller 418. The chip set 411 and other components are coupled via various buses.

プロセッサ412およびチップセット411は、典型的には、汎用的なコンピュータアーキテクチャに従う構成を有している。すなわち、プロセッサ412は、チップセット411から内部クロックに従って順次供給される命令コードを解釈して実行する。チップセット411は、接続されている各種コンポーネントとの間で内部的なデータを遣り取りするとともに、プロセッサ412に必要な命令コードを生成する。システムクロック415は、予め定められた周期のシステムクロックを発生してプロセッサ412に提供する。チップセット411は、プロセッサ412での演算処理の実行の結果得られたデータなどをキャッシュする。   The processor 412 and the chipset 411 typically have a configuration according to a general-purpose computer architecture. That is, the processor 412 interprets and executes instruction codes sequentially supplied from the chipset 411 according to the internal clock. The chip set 411 exchanges internal data with various connected components and generates instruction codes necessary for the processor 412. The system clock 415 generates a system clock having a predetermined period and provides it to the processor 412. The chip set 411 caches data obtained as a result of execution of arithmetic processing by the processor 412.

主制御ユニット410は、記憶手段として、不揮発性メモリ413および主メモリ414を有する。不揮発性メモリ413は、OS、プロセッサ412で実行される制御プログラム430に加えて、データ定義情報、ログ情報などを不揮発的に保持する。制御プログラム430は、記録媒体51などに格納された状態で流通する。主メモリ414は、揮発性の記憶領域であり、プロセッサ412で実行されるべき各種プログラムを保持するとともに、各種プログラムの実行時の作業用メモリとしても使用される。   The main control unit 410 has a nonvolatile memory 413 and a main memory 414 as storage means. The nonvolatile memory 413 holds data definition information, log information, and the like in addition to the OS and the control program 430 executed by the processor 412. The control program 430 is distributed while being stored in the recording medium 51 or the like. The main memory 414 is a volatile storage area, holds various programs to be executed by the processor 412, and is also used as a working memory when executing the various programs.

主制御ユニット410は、通信手段として、通信インターフェイス417および内部バスコントローラ418を有する。これらの通信回路は、データの送信および受信を行う。通信インターフェイス417は、視覚センサ30との間でデータを遣り取りする。通信インターフェイス417は、視覚センサ30から、画像を撮像する際の露光開始時刻および露光終了時刻と、計測位置PVvとを受信する。内部バスコントローラ418は、内部バス419を介したデータの遣り取りを制御する。内部バスコントローラ418は、サーボドライバ22,24,26からエンコーダ値ENを受信する。内部バスコントローラ418は、バッファメモリ481と、DMA(Dynamic Memory Access)制御回路482と、内部バス制御回路483とを含む。   The main control unit 410 has a communication interface 417 and an internal bus controller 418 as communication means. These communication circuits transmit and receive data. The communication interface 417 exchanges data with the visual sensor 30. The communication interface 417 receives from the visual sensor 30 the exposure start time and the exposure end time when capturing an image, and the measurement position PVv. The internal bus controller 418 controls data exchange through the internal bus 419. The internal bus controller 418 receives the encoder value EN from the servo drivers 22, 24 and 26. The internal bus controller 418 includes a buffer memory 481, a DMA (Dynamic Memory Access) control circuit 482, and an internal bus control circuit 483.

メモリカードインターフェイス416は、主制御ユニット410に対して着脱可能な記録媒体51とプロセッサ412とを接続する。記録媒体51は、コンピュータその他装置、機械等が記録されたプログラム等の情報を読み取り可能なように、当該プログラム等の情報を、電気的、磁気的、光学的、機械的または化学的作用によって蓄積する媒体である。記録媒体51には、コントローラ40で実行される制御プログラム430などが格納された状態で流通し、メモリカードインターフェイス416は、記録媒体51から制御プログラムを読み出す。記録媒体51は、SD(Secure Digital)などの汎用的な半導体記憶デバイスや、フレキシブルディスク(Flexible Disk)などの磁気記録媒体や、CD−ROM(Compact Disk Read Only Memory)などの光学記録媒体等からなる。あるいは、通信インターフェイス417を介して、配信サーバなどからダウンロードしたプログラムをコントローラ40にインストールしてもよい。   The memory card interface 416 connects the recording medium 51 detachably attached to the main control unit 410 and the processor 412. The recording medium 51 stores information such as a program by an electrical, magnetic, optical, mechanical, or chemical action so that the information such as a program recorded by a computer or other device or machine can be read. It is a medium to do. The recording medium 51 is distributed in a state where a control program 430 executed by the controller 40 is stored, and the memory card interface 416 reads the control program from the recording medium 51. The recording medium 51 is a general-purpose semiconductor storage device such as SD (Secure Digital), a magnetic recording medium such as a flexible disk, or an optical recording medium such as a CD-ROM (Compact Disk Read Only Memory). Become. Alternatively, a program downloaded from a distribution server or the like may be installed in the controller 40 via the communication interface 417.

<2−4.座標変換部>
座標変換部41は、視覚センサ30から出力される計測位置PVv(Pm,Pn)の座標をカメラ座標系から機械座標系に変換する。座標変換部41は、たとえばアフィン変換を用いて座標変換を行なう。
<2-4. Coordinate transformation unit>
The coordinate conversion unit 41 converts the coordinates of the measurement position PVv (Pm, Pn) output from the visual sensor 30 from the camera coordinate system to the machine coordinate system. The coordinate conversion unit 41 performs coordinate conversion using, for example, affine conversion.

図6は、カメラ座標系から機械座標系への並進変換および拡大縮小変換を示す図である。図7は、カメラ座標系から機械座標系への回転変換を示す図である。図6および図7に示されるように、座標変換部41は、カメラ座標系を並進、回転および拡大縮小することにより、カメラ座標系を機械座標系に変換する。   FIG. 6 is a diagram illustrating translation conversion and enlargement / reduction conversion from the camera coordinate system to the machine coordinate system. FIG. 7 is a diagram illustrating rotation conversion from the camera coordinate system to the machine coordinate system. As shown in FIGS. 6 and 7, the coordinate conversion unit 41 converts the camera coordinate system into a machine coordinate system by translating, rotating, and enlarging / reducing the camera coordinate system.

カメラ座標系の座標をq=[x,y]、機械座標系の座標をQ=[X,Y]とする。tは転置行列を示す。このとき、アフィン変換Faは、以下の式(1)で示される。 Let the coordinates of the camera coordinate system be q = t [x, y], and the coordinates of the machine coordinate system be Q = t [X, Y]. t indicates a transposed matrix. At this time, the affine transformation Fa is expressed by the following formula (1).

Figure 2019191003
Figure 2019191003

式(1)において、パラメータA,B,C,D,E,Fは、カメラ座標系を機械座標系に変換するためのキャリブレーションパラメータである。パラメータA,B,D,Eは、カメラ座標系から機械座標系への回転および拡大縮小の変換量を規定する。パラメータC,Fは、カメラ座標系から機械座標系への並進の変換量を規定する。 In Expression (1), parameters A, B, C, D, E, and F are calibration parameters for converting the camera coordinate system to the machine coordinate system. Parameters A, B, D, and E define the amount of conversion for rotation and enlargement / reduction from the camera coordinate system to the machine coordinate system. The parameters C and F define the translation conversion amount from the camera coordinate system to the machine coordinate system.

<2−5.フィードバック制御部>
フィードバック制御部42は、計測位置PVvが目標位置SPに近づくようにサーボドライバ20に対してフィードバック制御を行なう。具体的には、フィードバック制御部42は、マーク50m(図3参照)の計測位置Pmが目標位置SPm(マーク60mの位置)に近づくとともに、マーク50n(図3参照)の計測位置Pnが目標位置SPn(マーク60nの位置)に近づくようにサーボドライバ20に対してフィードバック制御を行なう。ただし、計測位置PVv(Pm,Pn)は、制御周期Tcよりも長い撮像周期Tpごとに視覚センサ30から出力される。さらに、視覚センサ30の応答は、一般に遅い。そのため、視覚センサ30から得られた計測位置PVv(Pm,Pn)のみを用いてフィードバック制御が行なわれると、オーバシュートや振動が生じやすくなるため、フィードバック制御のゲインをあまり強くできない。そのため、フィードバック制御部42は、計測位置PVvとステージ装置10からのエンコーダ値ENとを用いて、対象ワークWの推定位置PVを決定する。具体的には、フィードバック制御部42は、計測位置Pmとエンコーダ値ENとを用いて、対象ワークWのマーク50mの推定位置PVmを決定する。同様に、フィードバック制御部42は、計測位置Pnとエンコーダ値ENとを用いて、対象ワークWのマーク50nの推定位置PVnを決定する。
<2-5. Feedback control unit>
The feedback control unit 42 performs feedback control on the servo driver 20 so that the measurement position PVv approaches the target position SP. Specifically, the feedback control unit 42 determines that the measurement position Pm of the mark 50m (see FIG. 3) approaches the target position SPm (position of the mark 60m) and the measurement position Pn of the mark 50n (see FIG. 3) is the target position. Feedback control is performed on the servo driver 20 so as to approach SPn (the position of the mark 60n). However, the measurement position PVv (Pm, Pn) is output from the visual sensor 30 at every imaging period Tp longer than the control period Tc. Furthermore, the response of the visual sensor 30 is generally slow. Therefore, if feedback control is performed using only the measurement position PVv (Pm, Pn) obtained from the visual sensor 30, overshoot and vibration are likely to occur, so the gain of feedback control cannot be increased very much. Therefore, the feedback control unit 42 determines the estimated position PV of the target workpiece W using the measurement position PVv and the encoder value EN from the stage apparatus 10. Specifically, the feedback control unit 42 determines the estimated position PVm of the mark 50m of the target workpiece W using the measurement position Pm and the encoder value EN. Similarly, the feedback control unit 42 determines the estimated position PVn of the mark 50n of the target work W using the measurement position Pn and the encoder value EN.

図1に示されるように、フィードバック制御部42は、たとえば、位置決定部43と、減算部44と、PID演算部45とを含む。   As shown in FIG. 1, the feedback control unit 42 includes, for example, a position determination unit 43, a subtraction unit 44, and a PID calculation unit 45.

位置決定部43は、視覚センサ30によって撮像周期Tpごとに計測された計測位置PVv(Pm,Pn)と制御周期Tcと同じ周期ごとに出力されるエンコーダ値ENとに基づいて、制御周期Tcごとに対象ワークWの推定位置PV(PVm,PVn)を決定する。推定位置PV(PVm,PVn)は、機械座標系で示される。推定位置PV(PVm,PVn)の決定方法の詳細については、後述する動作例において説明する。   The position determination unit 43 is based on the measurement position PVv (Pm, Pn) measured for each imaging cycle Tp by the visual sensor 30 and the encoder value EN output for each cycle that is the same as the control cycle Tc. Then, the estimated position PV (PVm, PVn) of the target workpiece W is determined. The estimated position PV (PVm, PVn) is indicated in the machine coordinate system. Details of the method of determining the estimated position PV (PVm, PVn) will be described in an operation example described later.

減算部44は、推定位置PVmと目標位置SPmとの偏差と、推定位置PVnと目標位置SPnとの偏差とを出力する。目標位置SPm,SPnの機械座標は、視覚センサ30によって計測された目標位置SPm,SPnのカメラ座標をキャリブレーションパラメータによって座標変換することによりそれぞれ得られる。   The subtracting unit 44 outputs a deviation between the estimated position PVm and the target position SPm and a deviation between the estimated position PVn and the target position SPn. The machine coordinates of the target positions SPm and SPn are obtained by converting the camera coordinates of the target positions SPm and SPn measured by the visual sensor 30 using calibration parameters.

PID演算部45は、推定位置PVmと目標位置SPmとの偏差と、推定位置PVnと目標位置SPnとの偏差とが0に収束するようにPID演算を行ない、制御周期Tcごとに移動指令MVを算出する。移動指令MVは、サーボドライバ22,24,26ごとに算出される。PID演算部45は、算出した移動指令MVを対応するサーボドライバに出力する。移動指令MVは、たとえば位置指令または速度指令である。   The PID calculation unit 45 performs PID calculation so that the deviation between the estimated position PVm and the target position SPm and the deviation between the estimated position PVn and the target position SPn converge to 0, and sends a movement command MV for each control cycle Tc. calculate. The movement command MV is calculated for each servo driver 22, 24, 26. The PID calculation unit 45 outputs the calculated movement command MV to the corresponding servo driver. The movement command MV is, for example, a position command or a speed command.

フィードバック制御部42は、上位装置から位置決め処理の開始指示を受けると、フィードバック制御を開始する。フィードバック制御部42は、推定位置PVmと目標位置SPmとの偏差および推定位置PVnと目標位置SPnとの偏差が閾値Th1未満になると、フィードバック制御を終了する。これにより、位置決め処理が完了する。   The feedback control unit 42 starts the feedback control when receiving a positioning processing start instruction from the host device. The feedback control unit 42 ends the feedback control when the deviation between the estimated position PVm and the target position SPm and the deviation between the estimated position PVn and the target position SPn are less than the threshold Th1. Thereby, the positioning process is completed.

<2−6.補正部>
<2−6−1.補正の概要>
図8は、キャリブレーションパラメータの補正の概要を示す図である。図8(a)にはカメラ座標系が示される。図8(b)には、図8(a)に示すカメラ座標を、不正確なアフィン変換Faを用いて座標変換することにより得られる機械座標を示す。図8(c)には、図8(b)の実線の座標を補正用のアフィン変換Fa’を用いて座標変換することにより得られる正常な機械座標が示される。なお、図8(b)の点線は、正常な機械座標を示す。図8(c)の点線は、図8(b)の実線と同じ座標を示す。
<2-6. Correction part>
<2-6-1. Outline of correction>
FIG. 8 is a diagram showing an outline of calibration parameter correction. FIG. 8A shows a camera coordinate system. FIG. 8B shows machine coordinates obtained by converting the camera coordinates shown in FIG. 8A using an inaccurate affine transformation Fa. FIG. 8C shows normal machine coordinates obtained by converting the coordinates of the solid line in FIG. 8B using the affine transformation Fa ′ for correction. In addition, the dotted line of FIG.8 (b) shows a normal machine coordinate. The dotted line in FIG. 8C shows the same coordinates as the solid line in FIG.

不正確なアフィン変換Faを用いてカメラ座標q=[x,y]を座標変換することにより得られる機械座標をQ=[X,Y]とする。さらに、カメラ座標q=[x,y]に対応する正常な機械座標をQ’=[X’,Y’]とする。Q’は、Qに対して以下の式(2)で示されるアフィン変換Fa’を用いて並進、回転および拡大縮小を行なうことにより得られる。 Let Q = t [X, Y] be machine coordinates obtained by performing coordinate transformation of camera coordinates q = t [x, y] using an inaccurate affine transformation Fa. Further, normal machine coordinates corresponding to the camera coordinates q = t [x, y] are set as Q ′ = t [X ′, Y ′]. Q ′ is obtained by performing translation, rotation, and enlargement / reduction on Q using an affine transformation Fa ′ represented by the following expression (2).

Figure 2019191003
Figure 2019191003

アフィン変換Fa’を特定することができれば、以下の式(3)で示されるように、カメラ座標q=[x,y]を正常な機械座標Q’=[X’,Y’]に変換するためのアフィン変換Fa”が得られる。 If the affine transformation Fa ′ can be specified, the camera coordinates q = t [x, y] are changed to normal machine coordinates Q ′ = t [X ′, Y ′] as shown in the following equation (3). An affine transformation Fa "for transformation is obtained.

Figure 2019191003
Figure 2019191003

そのため、補正部46は、アフィン変換Fa’を特定し、不正確なアフィン変換FaのパラメータA,B,C,D,E,Fの値を補正する。具体的には、補正部46は、不正確なアフィン変換Faを用いて変換された機械座標Q=[X,Y]を正常な機械座標Q’=[X’,Y’]に変換するためのアフィン変換Fa’のパラメータA’,B’,C’,D’,E’,F’の値を特定する。補正部46は、アフィン変換FaのパラメータAの値をA’A+B’Dの値に補正する。補正部46は、アフィン変換FaのパラメータBの値をA’B+B’Eの値に補正する。補正部46は、アフィン変換FaのパラメータCの値をA’C+B’F+C’の値に補正する。補正部46は、アフィン変換FaのパラメータDの値をD’A+E’Dの値に補正する。補正部46は、アフィン変換FaのパラメータEの値をD’B+E’Eの値に補正する。補正部46は、アフィン変換FaのパラメータFの値をD’C+E’F+F’の値に補正する。これにより、補正後のアフィン変換Faを用いて変換された機械座標と正常な機械座標との誤差を小さくすることができる。 Therefore, the correction unit 46 specifies the affine transformation Fa ′ and corrects the values of the parameters A, B, C, D, E, and F of the inaccurate affine transformation Fa. Specifically, the correction unit 46 converts the machine coordinates Q = t [X, Y] converted using the inaccurate affine transformation Fa into normal machine coordinates Q ′ = t [X ′, Y ′]. The values of the parameters A ′, B ′, C ′, D ′, E ′, and F ′ of the affine transformation Fa ′ for specifying are specified. The correcting unit 46 corrects the value of the parameter A of the affine transformation Fa to a value of A′A + B′D. The correcting unit 46 corrects the value of the parameter B of the affine transformation Fa to a value of A′B + B′E. The correction unit 46 corrects the value of the parameter C of the affine transformation Fa to a value of A′C + B′F + C ′. The correction unit 46 corrects the value of the parameter D of the affine transformation Fa to a value of D′ A + E′D. The correcting unit 46 corrects the value of the parameter E of the affine transformation Fa to a value of D′ B + E′E. The correcting unit 46 corrects the value of the parameter F of the affine transformation Fa to a value of D′ C + E′F + F ′. As a result, the error between the machine coordinates converted using the corrected affine transformation Fa and normal machine coordinates can be reduced.

<2−6−2.変換量のずれの定量化>
補正部46は、視覚センサ30による計測位置Pm1,Pm2と、ステージ装置10の実際の移動量とに基づいて、並進の変換量、回転の変換量および拡大縮小の変換量(倍率)のずれを定量化する。
<2-6-2. Quantification of conversion deviation>
Based on the measurement positions Pm1 and Pm2 measured by the visual sensor 30 and the actual movement amount of the stage apparatus 10, the correction unit 46 shifts the translation conversion amount, the rotation conversion amount, and the enlargement / reduction conversion amount (magnification). Quantify.

上述したように、視覚センサ30の計測位置PVv(Pm,Pn)が目標位置SP(SPm,SPn)に近づくようにフィードバック制御が行なわれる。そのため、位置決め処理の完了時には、キャリブレーションパラメータの厳密さによらず、計測位置PVv(Pm,Pn)と目標位置SP(SPm,SPn)との距離が最小化される。したがって、補正部46は、位置決め処理を完了するときの計測位置Pm2を基準とし、計測位置Pm2からステージ装置10の移動量を差し引いた位置Pm3を特定する。補正部46は、特定した位置Pm3と、位置決め処理を開始するときに視覚センサ30によって計測された計測位置Pm1との偏差を、カメラ座標系から機械座標系への座標変換における変換量のずれ量として決定する。   As described above, feedback control is performed so that the measurement position PVv (Pm, Pn) of the visual sensor 30 approaches the target position SP (SPm, SPn). Therefore, when the positioning process is completed, the distance between the measurement position PVv (Pm, Pn) and the target position SP (SPm, SPn) is minimized regardless of the strictness of the calibration parameter. Therefore, the correction unit 46 specifies the position Pm3 obtained by subtracting the movement amount of the stage device 10 from the measurement position Pm2 with reference to the measurement position Pm2 when the positioning process is completed. The correction unit 46 calculates the deviation between the specified position Pm3 and the measurement position Pm1 measured by the visual sensor 30 when starting the positioning process, as the shift amount of the conversion amount in the coordinate conversion from the camera coordinate system to the machine coordinate system. Determine as.

図9は、ステージ装置の移動に伴う計測位置Pm1の移動を示す図である。図9において、位置決め処理を開始してから完了するまでのXステージ移動量,Yステージ移動量およびθステージ移動量をそれぞれdXr,dYrおよびdθrとしている。さらに、点PRaは、位置決め処理を開始するときのθステージ15の回転中心を示す。点PRbは、点PRaをX軸方向にdXr、Y軸方向にdYrだけ並進させた点である。計測位置Pm1の機械座標(Xm_a,Ym_a)は、計測位置Pm1のカメラ座標を現状のキャリブレーションパラメータを用いて座標変換することにより得られる。   FIG. 9 is a diagram illustrating movement of the measurement position Pm1 accompanying movement of the stage device. In FIG. 9, the X stage movement amount, the Y stage movement amount, and the θ stage movement amount from the start to the completion of the positioning process are dXr, dYr, and dθr, respectively. Furthermore, the point PRa indicates the rotation center of the θ stage 15 when the positioning process is started. Point PRb is a point translated from point PRa by dXr in the X-axis direction and dYr in the Y-axis direction. The machine coordinates (Xm_a, Ym_a) of the measurement position Pm1 are obtained by performing coordinate conversion on the camera coordinates of the measurement position Pm1 using the current calibration parameters.

計測位置Pm1(Xm_a,Ym_a)は、θステージ15(図3参照)の移動により点Pm5に移動する。点Pm5の座標(Xm_d,Ym_d)は、以下の式(4)で示される。   The measurement position Pm1 (Xm_a, Ym_a) moves to the point Pm5 by the movement of the θ stage 15 (see FIG. 3). The coordinates (Xm_d, Ym_d) of the point Pm5 are expressed by the following formula (4).

Figure 2019191003
Figure 2019191003

点Pm5は、Xステージ11およびYステージ13(図3参照)の移動により点Pm6に移動する。点Pm5から点Pm6への移動量は、点PRaから点PRbへの移動量と同一である。そのため、点Pm6の座標(Xm_e,Ym_e)は、以下の式(5)で示される。   The point Pm5 moves to the point Pm6 by the movement of the X stage 11 and the Y stage 13 (see FIG. 3). The amount of movement from point Pm5 to point Pm6 is the same as the amount of movement from point PRa to point PRb. Therefore, the coordinates (Xm_e, Ym_e) of the point Pm6 are expressed by the following formula (5).

Figure 2019191003
Figure 2019191003

図10は、位置決め処理を開始してから完了するまでのステージ装置10の移動量を示す図である。図10には、計測位置Pm1(Xm_a,Ym_a)から点Pm6までのX軸方向の移動量Xm_cおよびY軸方向の移動量Ym_cが示される。移動量(Xm_c,Ym_c)は、以下の式(6)で示される。   FIG. 10 is a diagram illustrating the amount of movement of the stage apparatus 10 from the start to the completion of the positioning process. FIG. 10 shows a movement amount Xm_c in the X-axis direction and a movement amount Ym_c in the Y-axis direction from the measurement position Pm1 (Xm_a, Ym_a) to the point Pm6. The movement amount (Xm_c, Ym_c) is expressed by the following equation (6).

Figure 2019191003
Figure 2019191003

補正部46は、位置決め処理を開始するときに視覚センサ30が計測した計測位置Pm1の座標(Xm_a,Ym_a)と、位置決め処理を開始してから完了するまでのXステージ移動量dXr,Yステージ移動量dYrおよびθステージ移動量dθrとを式(6)に代入する。座標(Xm_a,Ym_a)は、計測位置Pm1のカメラ座標をキャリブレーションパラメータを用いて座標変換することにより得られる機械座標である。これにより、補正部46は、マーク50m(図3参照)に対応する位置における、位置決め処理を開始してから完了するまでのステージ装置10の移動量(Xm_c,Ym_c)を算出する。同様にして、補正部46は、マーク50nに対応する位置における、位置決め処理を開始してから完了するまでのステージ装置10の移動量(Xn_c,Yn_c)も算出する。   The correction unit 46 coordinates the measurement position Pm1 (Xm_a, Ym_a) measured by the visual sensor 30 when starting the positioning process, and the X stage movement amount dXr, Y stage movement from the start to the completion of the positioning process. The amount dYr and the θ stage movement amount dθr are substituted into equation (6). The coordinates (Xm_a, Ym_a) are machine coordinates obtained by performing coordinate conversion on the camera coordinates of the measurement position Pm1 using calibration parameters. Thereby, the correction unit 46 calculates the movement amount (Xm_c, Ym_c) of the stage device 10 from the start to the completion of the positioning process at the position corresponding to the mark 50m (see FIG. 3). Similarly, the correction unit 46 also calculates the movement amount (Xn_c, Yn_c) of the stage device 10 from the start to the completion of the positioning process at the position corresponding to the mark 50n.

図2に示されるように、補正部46は、計測位置Pm2の機械座標(Xm_b,Ym_b)から移動量(Xm_c,Ym_c)を差し引くことにより、位置Pm3の機械座標(Xm_b−Xm_c,Ym_b−Ym_c)を算出する。上述したように、計測位置Pm1と位置Pm3との偏差は、不正確なキャリブレーションパラメータを用いた座標変換における変換量のずれに起因している。そのため、補正部46は、計測位置Pm1を位置Pm3に変換するためのアフィン変換Fa’を求めることにより、パラメータA’,B’,C’,D’,E’,F’を特定できる。   As illustrated in FIG. 2, the correction unit 46 subtracts the movement amount (Xm_c, Ym_c) from the machine coordinate (Xm_b, Ym_b) of the measurement position Pm2 to obtain the machine coordinate (Xm_b-Xm_c, Ym_b-Ym_c) of the position Pm3. ) Is calculated. As described above, the deviation between the measurement position Pm1 and the position Pm3 is caused by a shift in the conversion amount in coordinate conversion using an inaccurate calibration parameter. Therefore, the correction unit 46 can specify the parameters A ′, B ′, C ′, D ′, E ′, and F ′ by obtaining the affine transformation Fa ′ for converting the measurement position Pm1 to the position Pm3.

<2−6−3.補正方法>
パラメータA’,B’,D’,E’は、回転の変換量および拡大縮小の変換量(倍率)のずれを補正するためのパラメータである。パラメータC’,F’は、並進の変換量のずれを補正するためのパラメータである。回転の中心位置がずれた場合、並進、回転および拡大縮小の変換量の補正精度が大きく変わる。そのため、補正部46は、回転および拡大縮小の変換量のずれを補正するためのパラメータA’,B’,D’,E’を先に特定し、その後に並進の変換量のずれを補正するためのパラメータC’,F’を特定する。
<2-6-3. Correction method>
The parameters A ′, B ′, D ′, and E ′ are parameters for correcting a shift in the rotation conversion amount and the enlargement / reduction conversion amount (magnification). The parameters C ′ and F ′ are parameters for correcting a shift in translational conversion amount. When the center position of the rotation is shifted, the correction accuracy of the translation amount of translation, rotation, and enlargement / reduction changes greatly. For this reason, the correction unit 46 first specifies the parameters A ′, B ′, D ′, and E ′ for correcting the shift in the conversion amounts of rotation and enlargement / reduction, and then corrects the shift in the translation amount of translation. Parameters C ′ and F ′ are specified.

先に4つのパラメータA’,B’,D’,E’を特定するために、並進の変換量のずれを補正するためのパラメータC’,F’の影響を除外する必要がある。そのため、補正部46は、マーク50mとマーク50nとの重心位置に対する計測位置Pm1および位置Pm3の相対位置の座標を用いて、パラメータA’,B’,D’,E’を特定する。これにより、パラメータC’,F’の項を無視できる。   In order to specify the four parameters A ′, B ′, D ′, and E ′ first, it is necessary to exclude the influence of the parameters C ′ and F ′ for correcting the shift of the translational conversion amount. Therefore, the correction unit 46 specifies the parameters A ′, B ′, D ′, and E ′ using the coordinates of the relative positions of the measurement position Pm1 and the position Pm3 with respect to the gravity center positions of the marks 50m and 50n. As a result, the terms of the parameters C ′ and F ′ can be ignored.

4つのパラメータA’,B’,D’,E’を特定するために、補正部46は、計測位置Pm1と位置Pm3との座標を示す、少なくとも4つのデータセットを取得する。上述したように、パラメータC’,F’の影響を除外するために、マーク50mとマーク50nとの重心位置の座標も必要である。そのため、データセットには、位置決め処理を完了するときのマーク50m(図3参照)の計測位置Pm2、位置決め処理を開始するときのマーク50nの計測位置Pn1、および位置決め処理を完了するときのマーク50nの計測位置Pn2が含まれる。さらに、データセットには、マーク50nに対応する位置における、位置決め処理を開始してから完了するまでのステージ装置10の移動量(Xn_c,Yn_c)も含まれる。   In order to specify the four parameters A ′, B ′, D ′, and E ′, the correction unit 46 acquires at least four data sets that indicate the coordinates of the measurement position Pm1 and the position Pm3. As described above, in order to exclude the influence of the parameters C ′ and F ′, the coordinates of the gravity center positions of the mark 50 m and the mark 50 n are also necessary. Therefore, the data set includes a measurement position Pm2 of the mark 50m (see FIG. 3) when the positioning process is completed, a measurement position Pn1 of the mark 50n when the positioning process is started, and a mark 50n when the positioning process is completed. Measurement position Pn2. Further, the data set includes the movement amount (Xn_c, Yn_c) of the stage device 10 from the start to the completion of the positioning process at the position corresponding to the mark 50n.

<2−6−4.4つのデータセットの取得方法>
補正部46は、少なくとも4回の位置決め処理から少なくとも4つのデータセットをそれぞれ取得する。4つのパラメータA’,B’,D’,E’を求めるためには、少なくとも4つのデータセットは互いに異なる値を示す必要がある。具体的には、補正部46は、以下の条件(1)および(2)を満たす第1〜第4データセットを含む少なくとも4つのデータセットを取得する。なお、第1データセットの計測位置Pm1から位置Pm3へのベクトルを第1ベクトルM0とする。第2データセットの計測位置Pm1から位置Pm3へのベクトルを第2ベクトルM1とする。第3データセットの計測位置Pm1から位置Pm3へのベクトルを第3ベクトルM2とする。第4データセットの計測位置Pm1から位置Pm3へのベクトルを第4ベクトルM3とする。
条件(1):第1ベクトルM0、第2ベクトルM1、第3ベクトルM2および第4ベクトルM3の長さは、規定値以上である。
条件(2):第1ベクトルM0、第2ベクトルM1、第3ベクトルM2および第4ベクトルM3から選択される任意の2つのベクトルは、互いに一次独立である。
<2-6-4. Acquisition Method of Four Data Sets>
The correction unit 46 acquires at least four data sets from at least four positioning processes. In order to obtain the four parameters A ′, B ′, D ′, and E ′, at least four data sets need to indicate different values. Specifically, the correction unit 46 acquires at least four data sets including the first to fourth data sets that satisfy the following conditions (1) and (2). A vector from the measurement position Pm1 to the position Pm3 in the first data set is defined as a first vector M0. A vector from the measurement position Pm1 to the position Pm3 in the second data set is defined as a second vector M1. A vector from the measurement position Pm1 to the position Pm3 in the third data set is defined as a third vector M2. A vector from the measurement position Pm1 to the position Pm3 in the fourth data set is defined as a fourth vector M3.
Condition (1): The lengths of the first vector M0, the second vector M1, the third vector M2, and the fourth vector M3 are not less than a specified value.
Condition (2): Any two vectors selected from the first vector M0, the second vector M1, the third vector M2, and the fourth vector M3 are linearly independent from each other.

図11は、第1〜第4ベクトルの一例を示す図である。図11に示す例では、第2ベクトルM1と第1ベクトルM0とのなす角度が45°であり、第3ベクトルM2と第1ベクトルM0とのなす角度が90°であり、第4ベクトルM3と第1ベクトルM0とのなす角度が135°である。   FIG. 11 is a diagram illustrating an example of the first to fourth vectors. In the example shown in FIG. 11, the angle formed by the second vector M1 and the first vector M0 is 45 °, the angle formed by the third vector M2 and the first vector M0 is 90 °, and the fourth vector M3 and The angle formed with the first vector M0 is 135 °.

補正部46は、キャリブレーションパラメータの補正の指示を受けると、フィードバック制御部42によるフィードバック制御によって位置決め処理が行なわれるたびに、当該位置決め処理に対応するデータセットを生成する。補正部46は、以下の式(7)を満たす最初のデータセットを、第1ベクトルM0に対応する第1データセットとして取得する。その後、補正部は、以下の式(7)および式(8)を満たす第2ベクトルM1に対応する第2データセット、以下の式(7)および式(9)を満たす第3ベクトルM2に対応する第3データセット、以下の式(7)および式(10)を満たす第4ベクトルM3に対応する第4データセットを取得する。αは、0<α<1を満たす定数であり、2つのベクトルのなす角度の許容範囲を示す。α≪1のとき、許容範囲が小さい。   When receiving a calibration parameter correction instruction, the correction unit 46 generates a data set corresponding to the positioning process each time the positioning process is performed by feedback control by the feedback control unit 42. The correction unit 46 acquires the first data set that satisfies the following expression (7) as the first data set corresponding to the first vector M0. Thereafter, the correction unit corresponds to the second data set corresponding to the second vector M1 satisfying the following expressions (7) and (8), and the third vector M2 satisfying the following expressions (7) and (9). And a fourth data set corresponding to a fourth vector M3 that satisfies the following expressions (7) and (10) are acquired. α is a constant that satisfies 0 <α <1, and indicates an allowable range of angles formed by two vectors. When α << 1, the allowable range is small.

Figure 2019191003
Figure 2019191003

補正部46は、上記式(7)〜(10)を満たす第1〜第4データセットを取得する。これにより、第2ベクトルM1と第1ベクトルM0とのなす角度は、約45°となる。第3ベクトルM2と第1ベクトルM0とのなす角度は、約90°となる。第4ベクトルM3と第2ベクトルM1とのなす角度は、約90°となる。   The correction unit 46 acquires first to fourth data sets that satisfy the above expressions (7) to (10). As a result, the angle formed by the second vector M1 and the first vector M0 is about 45 °. The angle formed by the third vector M2 and the first vector M0 is about 90 °. The angle formed by the fourth vector M3 and the second vector M1 is about 90 °.

<2−6−5.パラメータA’,B’,D’,E’の特定>
補正部46は、マーク50mとマーク50nとの重心位置に対する計測位置Pm1と位置Pm3との相対位置の変化に基づいて、回転の変換量および拡大縮小の変換量(倍率)のずれを補正するためのパラメータA’,B’,D’,E’を特定する。
<2-6-5. Specification of parameters A ′, B ′, D ′, E ′>
The correction unit 46 corrects the deviation of the rotation conversion amount and the enlargement / reduction conversion amount (magnification) based on the change in the relative position between the measurement position Pm1 and the position Pm3 with respect to the center of gravity of the mark 50m and the mark 50n. Parameters A ′, B ′, D ′, and E ′ are specified.

補正部46は、各データセットに含まれる計測位置Pm1と計測位置Pn1との中心位置の座標を、位置決め処理を開始するときのマーク50mとマーク50nとの重心位置Pg1の座標として算出する。   The correction unit 46 calculates the coordinates of the center position of the measurement position Pm1 and the measurement position Pn1 included in each data set as the coordinates of the center of gravity position Pg1 of the mark 50m and the mark 50n when starting the positioning process.

補正部46は、計測位置Pn2から、位置決め処理を開始してから完了するまでのステージ装置10の移動量(Xn_c,Yn_c)を差し引いた位置Pn3の座標を算出する。補正部46は、位置Pm3と位置Pn3との中心位置の座標を重心位置Pg3の座標として算出する。   The correction unit 46 calculates the coordinates of the position Pn3 obtained by subtracting the movement amount (Xn_c, Yn_c) of the stage device 10 from the start to the completion of the positioning process from the measurement position Pn2. The correcting unit 46 calculates the coordinates of the center position between the position Pm3 and the position Pn3 as the coordinates of the gravity center position Pg3.

図12は、計測位置Pm1,Pn1,Pm2,Pn2と、位置Pm3,Pn3と、重心位置Pg1,Pg3との一例を示す図である。図12において、枠W1は、位置決め処理を開始するときに視覚センサ30によって撮像された対象ワークWの輪郭の位置を示している。枠W2は、位置決め処理を完了するときに視覚センサ30によって撮像された対象ワークWの輪郭の位置を示している。枠W3は、枠W2で示される対象ワークWを、位置決め処理を開始してから完了するまでのステージ装置10の移動量だけ戻した状態の対象ワークWの輪郭の位置を示している。キャリブレーションパラメータが不正確である場合、枠W1と枠W3とにずれが生じる。   FIG. 12 is a diagram illustrating an example of measurement positions Pm1, Pn1, Pm2, and Pn2, positions Pm3 and Pn3, and barycentric positions Pg1 and Pg3. In FIG. 12, a frame W1 indicates the position of the contour of the target workpiece W imaged by the visual sensor 30 when the positioning process is started. A frame W2 indicates the position of the contour of the target workpiece W imaged by the visual sensor 30 when the positioning process is completed. A frame W3 indicates the position of the contour of the target workpiece W in a state where the target workpiece W indicated by the frame W2 is returned by the movement amount of the stage device 10 from the start to the completion of the positioning process. When the calibration parameter is inaccurate, a deviation occurs between the frame W1 and the frame W3.

回転の変換量および拡大縮小の変換量(倍率)のずれを補正するためのパラメータA’,B’,D’,E’を特定するために、補正部46は、重心位置Pg1に対する計測位置Pm1の相対位置と、重心位置Pg3に対する位置Pm3の相対位置との座標を求める。   In order to specify the parameters A ′, B ′, D ′, and E ′ for correcting the shift between the rotation conversion amount and the enlargement / reduction conversion amount (magnification), the correction unit 46 measures the measurement position Pm1 with respect to the gravity center position Pg1. And the relative position of the position Pm3 with respect to the gravity center position Pg3.

図13は、重心位置Pg1に対する計測位置Pm1の相対位置と、重心位置Pg3に対する位置Pm3の相対位置との関係を示す図である。図13に示されるように、重心位置Pg1と重心位置Pg3とを合わせることにより、並進の変換量のずれが除去される。   FIG. 13 is a diagram illustrating the relationship between the relative position of the measurement position Pm1 with respect to the gravity center position Pg1 and the relative position of the position Pm3 with respect to the gravity center position Pg3. As shown in FIG. 13, by shifting the gravity center position Pg <b> 1 and the gravity center position Pg <b> 3, the translational shift amount is removed.

補正部46は、計測位置Pm1の機械座標(Xm_a,Ym_a)と、重心位置Pg1の機械座標(Xm_g1,Ym_g1)とを用いて、重心位置Pg1に対する計測位置Pm1の相対座標(Xm_a−Xm_g1,Ym_a−Ym_g1)を算出する。補正部46は、位置Pm3の機械座標(Xm_b−Xm_c,Ym_b−Ym_c)と、重心位置Pg3の機械座標(Xm_g3,Ym_g3)とを用いて、重心位置Pg3に対する位置Pm3の相対座標(Xm_b−Xm_c−Xm_g3,Ym_b−Ym_c−Ym_g3)を算出する。   The correction unit 46 uses the machine coordinates (Xm_a, Ym_a) of the measurement position Pm1 and the machine coordinates (Xm_g1, Ym_g1) of the gravity center position Pg1, and the relative coordinates (Xm_a-Xm_g1, Ym_a) of the measurement position Pm1 with respect to the gravity center position Pg1. -Ym_g1) is calculated. The correction unit 46 uses the machine coordinates (Xm_b−Xm_c, Ym_b−Ym_c) of the position Pm3 and the machine coordinates (Xm_g3, Ym_g3) of the center of gravity position Pg3 to use the relative coordinates (Xm_b−Xm_c) of the position Pm3 with respect to the center of gravity position Pg3. -Xm_g3, Ym_b-Ym_c-Ym_g3).

補正部46は、4つのデータセットの各々から得られる、重心位置Pg1に対する計測位置Pm1の相対座標および重心位置Pg3に対する位置Pm3の相対座標を、以下の式(11)の[X,Y]および[X’,Y’]にそれぞれ代入する。これにより、補正部46は、パラメータA’,B’,D’,E’を算出できる。 The correction unit 46 obtains the relative coordinates of the measurement position Pm1 with respect to the centroid position Pg1 and the relative coordinates of the position Pm3 with respect to the centroid position Pg3 obtained from each of the four data sets, t [X, Y] in the following equation (11). And t [X ′, Y ′] respectively. Thereby, the correction | amendment part 46 can calculate parameter A ', B', D ', E'.

Figure 2019191003
Figure 2019191003

補正後のキャリブレーションパラメータの値を用いたときの回転および拡大縮小の変換量と、補正前のキャリブレーションパラメータの値を用いたときの回転および拡大縮小の変換量との偏差が過大である場合、ステージ装置10の動作が急激に変化し、ステージ装置10が故障する可能性がある。そのため、補正部46は、当該偏差と閾値とを比較し、算出したパラメータA’,B’,D’,E’の適否を判定してもよい。   When the deviation between the rotation and scaling conversion amount when using the corrected calibration parameter value and the rotation and scaling conversion amount when using the calibration parameter value before correction is excessive There is a possibility that the operation of the stage apparatus 10 changes suddenly and the stage apparatus 10 breaks down. Therefore, the correction unit 46 may determine whether the calculated parameters A ′, B ′, D ′, and E ′ are appropriate by comparing the deviation with a threshold value.

カメラ座標系から機械座標系への並進の変換量を(dX,dY)とし、回転の変換量のdθとし、X軸方向の拡大縮小の変換量(倍率)をa、Y軸方向の拡大縮小の変換量(倍率)をbとするとき、式(1)で示されるパラメータA〜Fは以下のように示される。
A=a・cos(dθ)
B=−a・sin(dθ)
C=dX
D=b・sin(dθ)
E=b・cos(dθ)
F=dY
ここで、回転および拡大縮小の変換量を規定するパラメータA,B,D,Eの行列式は、以下の式(12)で示される。カメラ座標系から機械座標系へのX軸方向およびY軸方向の拡大縮小の変換量(倍率)は、視覚センサ30の視野サイズと撮像部31の撮像素子の画素数とで決定される。積abは、視野サイズの面積倍率を示す。
The translation conversion amount from the camera coordinate system to the machine coordinate system is (dX, dY), the rotation conversion amount is dθ, the conversion amount (magnification) for enlargement / reduction in the X-axis direction is a, and the enlargement / reduction in the Y-axis direction When the conversion amount (magnification) of is set to b, the parameters A to F shown in the equation (1) are expressed as follows.
A = a · cos (dθ)
B = −a · sin (dθ)
C = dX
D = b · sin (dθ)
E = b · cos (dθ)
F = dY
Here, the determinants of the parameters A, B, D, and E that define the conversion amounts of rotation and enlargement / reduction are expressed by the following expression (12). The conversion amount (magnification) for scaling in the X-axis direction and the Y-axis direction from the camera coordinate system to the machine coordinate system is determined by the visual field size of the visual sensor 30 and the number of pixels of the image sensor of the imaging unit 31. The product ab indicates the area magnification of the visual field size.

Figure 2019191003
Figure 2019191003

一方、パラメータA’,B’,D’,E’を用いて補正されたキャリブレーションパラメータを用いたときの面積倍率は、上記の式(3)を参照して、以下の式(13)で示される。   On the other hand, the area magnification when the calibration parameters corrected using the parameters A ′, B ′, D ′, and E ′ are used is expressed by the following equation (13) with reference to the above equation (3). Indicated.

Figure 2019191003
Figure 2019191003

式(10)および式(13)から、|A’E’−B’D’|は、補正前の面積倍率に対する補正後の面積倍率の比率を示す。そのため、補正部46は、|A’E’−B’D’|を確認することにより、補正前の拡大縮小の変換量(倍率)から補正後の拡大縮小の変換量(倍率)が大きく乖離しているか否かを判定できる。   From Expressions (10) and (13), | A′E′−B′D ′ | indicates the ratio of the area magnification after correction to the area magnification before correction. Therefore, the correction unit 46 confirms | A′E′−B′D ′ | so that the conversion amount (magnification) after the correction is greatly different from the conversion amount (magnification) after the correction. It can be determined whether or not.

補正前の回転の変換量と補正後の回転の変換量との偏差Δθは、以下の式(14)によって示される。   The deviation Δθ between the rotation conversion amount before correction and the rotation conversion amount after correction is expressed by the following equation (14).

Figure 2019191003
Figure 2019191003

補正部46は、パラメータA’,B’,D’,E’の値が以下の式(15)を満たすとともに、式(14)によって示されるΔθが以下の式(16)を満たす場合に、パラメータA’,B’,D’,E’の値が適正であると判定する。
1−β≦|A’E’−B’D’|≦1+β ・・・式(15)
Δθ≦γ ・・・式(16)
βは、倍率の補正比率の上下限を規定するための閾値であり、0<β<1を満たす定数である。γは、補正前後の回転の変換量の偏差Δθの上限値を規定する閾値である。
When the values of the parameters A ′, B ′, D ′, and E ′ satisfy the following expression (15) and Δθ indicated by the expression (14) satisfies the following expression (16), It is determined that the values of the parameters A ′, B ′, D ′, and E ′ are appropriate.
1−β ≦ | A′E′−B′D ′ | ≦ 1 + β (15)
Δθ ≦ γ (16)
β is a threshold value for defining the upper and lower limits of the magnification correction ratio, and is a constant satisfying 0 <β <1. γ is a threshold value that defines an upper limit value of the deviation Δθ of the rotation conversion amount before and after correction.

補正部46は、算出したパラメータA’,B’,D’,E’の値が適正ではない場合、当該値のパラメータA’,B’,D’,E’を用いてキャリブレーションパラメータの補正を行なわない。補正部46は、当該パラメータA’,B’,D’,E’の値を破棄し、再度データセットを取得して、新たなパラメータA’,B’,D’,E’の値を算出する。   If the calculated values of the parameters A ′, B ′, D ′, and E ′ are not appropriate, the correction unit 46 corrects the calibration parameters using the parameters A ′, B ′, D ′, and E ′ of the values. Do not do. The correction unit 46 discards the values of the parameters A ′, B ′, D ′, and E ′, acquires the data set again, and calculates new values of the parameters A ′, B ′, D ′, and E ′. To do.

(2−6−6.パラメータC’,F’の特定)
上記のようにしてパラメータA’,B’,D’,E’が特定された後、補正部46は、並進の変換量のずれを補正するためのパラメータC’,F’を特定する。補正部46は、取得したデータセットで示される計測位置Pm1の座標および位置Pm3の座標を上記の式(2)の[X,Y]および[X’,Y’]にそれぞれ代入することにより、パラメータC’,F’を算出する。4つのデータセットのうち任意に選択した2つのデータセットを用いることにより、パラメータC’,F’を算出できる。4つのデータセットから2つのデータセットの組を選択する方法は6通りである。そのため、補正部46は、6つの組を用いて得られるパラメータC’の平均値を、補正に用いるパラメータC’の値として決定する。同様に、補正部46は、6つの組を用いて得られるパラメータF’の平均値を、補正に用いるパラメータF’の値として決定する。
(2-6-6. Specification of parameters C ′ and F ′)
After the parameters A ′, B ′, D ′, and E ′ are specified as described above, the correction unit 46 specifies the parameters C ′ and F ′ for correcting the shift in the translational conversion amount. The correction unit 46 substitutes the coordinates of the measurement position Pm1 and the coordinates of the position Pm3 indicated in the acquired data set in t [X, Y] and t [X ', Y'] in the above equation (2), respectively. Thus, parameters C ′ and F ′ are calculated. By using two data sets arbitrarily selected from the four data sets, the parameters C ′ and F ′ can be calculated. There are six methods for selecting a set of two data sets from four data sets. Therefore, the correction unit 46 determines the average value of the parameter C ′ obtained using the six sets as the value of the parameter C ′ used for correction. Similarly, the correction unit 46 determines the average value of the parameter F ′ obtained using the six sets as the value of the parameter F ′ used for correction.

補正後のキャリブレーションパラメータの値を用いたときの並進の変換量と、補正前のキャリブレーションパラメータの値を用いたときの並進の変換量との偏差が過大である場合、ステージ装置10の挙動が急激に変化し、ステージ装置10が故障する可能性がある。そのため、補正部46は、当該偏差と閾値とを比較し、算出したパラメータC’,F’の適否を判定してもよい。   When the deviation between the translation conversion amount when using the corrected calibration parameter value and the translation conversion amount when using the calibration parameter value before correction is excessive, the behavior of the stage apparatus 10 May suddenly change and the stage apparatus 10 may break down. Therefore, the correction unit 46 may determine whether the calculated parameters C ′ and F ′ are appropriate by comparing the deviation with a threshold value.

たとえば、補正部46は、算出したパラメータC’の値が以下の式(17)を満たし、かつ、算出したパラメータF’の値が以下の式(18)を満たす場合に、パラメータC’,F’の値が適正であると判定する。
−δx≦C’≦δx ・・・式(17)
−δy≦F’≦δy ・・・式(18)
δx,δyは、それぞれX軸方向およびY軸方向の並進の変換量の補正の上下限を規定するための閾値である。
For example, the correction unit 46 sets the parameters C ′ and F when the calculated parameter C ′ satisfies the following expression (17) and the calculated parameter F ′ satisfies the following expression (18). Judge that the value of 'is appropriate.
−δx ≦ C ′ ≦ δx (17)
−δy ≦ F ′ ≦ δy (18)
δx and δy are threshold values for defining upper and lower limits of correction of translational conversion amounts in the X-axis direction and the Y-axis direction, respectively.

補正部46は、算出したパラメータC’,F’の値が適正ではない場合、当該値のパラメータC’,F’を用いてキャリブレーションパラメータの補正を行なわない。補正部46は、当該パラメータA’〜F’の値を破棄し、再度データセットを取得して、パラメータA’〜F’の新たな値を算出する。   When the calculated values of the parameters C ′ and F ′ are not appropriate, the correction unit 46 does not correct the calibration parameter using the parameters C ′ and F ′ of the values. The correction unit 46 discards the values of the parameters A ′ to F ′, acquires the data set again, and calculates new values of the parameters A ′ to F ′.

§3 動作例
<3−1.コントローラの位置決め処理の流れ>
図14を参照して、コントローラ40の位置決め処理の流れの一例について説明する。図14は、コントローラ40の位置決め処理の流れの一例を示すフローチャートである。
§3 Example of operation <3-1. Controller positioning process flow>
With reference to FIG. 14, an example of the flow of the positioning process of the controller 40 will be described. FIG. 14 is a flowchart illustrating an example of the flow of the positioning process of the controller 40.

まず、コントローラ40は、推定位置PVおよびエンコーダ値ENを初期化する(ステップS1)。次に、視覚センサ30は、撮像周期Tpごとの計測位置PVvの計測処理を開始する(ステップS2)。視覚センサ30からの計測位置PVvおよびサーボドライバ22,24,26の各々からのエンコーダ値ENの出力が開始されると、位置決定部43は、推定位置PV(PVm、PVn)を決定する(ステップS3)。推定位置PV(PVm、PVn)の決定処理の詳細については後述する。   First, the controller 40 initializes the estimated position PV and the encoder value EN (step S1). Next, the visual sensor 30 starts the measurement process of the measurement position PVv for each imaging cycle Tp (step S2). When output of the measurement position PVv from the visual sensor 30 and the encoder value EN from each of the servo drivers 22, 24, 26 is started, the position determination unit 43 determines the estimated position PV (PVm, PVn) (step) S3). Details of the process of determining the estimated position PV (PVm, PVn) will be described later.

次に、PID演算部45は、推定位置PV(PVm、PVn)と目標位置SP(SPm、SPn)とに基づいて移動指令MVを生成する(ステップS4)。具体的には、PID演算部45は、推定位置PVmを目標位置SPmに近づけ、かつ、推定位置PVnを目標位置SPnに近づけるための移動指令MVを算出し、サーボドライバ22,24,26に出力する。   Next, the PID calculation unit 45 generates a movement command MV based on the estimated position PV (PVm, PVn) and the target position SP (SPm, SPn) (step S4). Specifically, the PID calculation unit 45 calculates a movement command MV for bringing the estimated position PVm closer to the target position SPm and bringing the estimated position PVn closer to the target position SPn, and outputs the movement command MV to the servo drivers 22, 24 and 26. To do.

フィードバック制御部42は、推定位置PVmと目標位置SPmとの偏差および推定位置PVnと目標位置SPnとの偏差と閾値Th1とを比較し、両方の偏差が閾値Th1未満であるか否かを判定する(ステップS5)。両方の偏差が閾値Th1未満ではない場合(ステップS5でNO)、処理はステップS3に戻される。これにより、ステップS3およびステップS4が繰り返し実行される。その結果、フィードバック制御により移動指令MVが更新され、推定位置PVmを目標位置SPmに近づけ、かつ、推定位置PVnを目標位置SPnに近づけるためのステージ装置10の動作が継続される。ステップS3およびステップS4は、制御周期Tcごとに実行される。   The feedback control unit 42 compares the deviation between the estimated position PVm and the target position SPm and the deviation between the estimated position PVn and the target position SPn with a threshold value Th1, and determines whether both deviations are less than the threshold value Th1. (Step S5). If both deviations are not less than the threshold Th1 (NO in step S5), the process returns to step S3. Thereby, step S3 and step S4 are repeatedly performed. As a result, the movement command MV is updated by feedback control, and the operation of the stage apparatus 10 for bringing the estimated position PVm closer to the target position SPm and bringing the estimated position PVn closer to the target position SPn is continued. Steps S3 and S4 are executed every control cycle Tc.

両方の偏差が閾値Th1未満である場合(ステップS5でYES)、フィードバック制御部42は、フィードバック制御を停止する。これにより、位置決め処理が完了する(ステップS6)。   When both deviations are less than the threshold value Th1 (YES in step S5), the feedback control unit 42 stops the feedback control. Thereby, the positioning process is completed (step S6).

位置決め処理が完了すると、位置決めされた対象ワークWに対して所定の処理が実行される。たとえば、ガラス基板である対象ワークWに回路パターンの焼付処理(露光処理)前に、露光マスクに対する対象ワークWの位置決めを行なう場合、コントローラ40は、焼付処理を行なう装置を駆動制御する。   When the positioning process is completed, a predetermined process is executed on the positioned target workpiece W. For example, when positioning the target work W with respect to the exposure mask before the circuit pattern printing process (exposure process) on the target work W, which is a glass substrate, the controller 40 drives and controls a device that performs the printing process.

位置決め処理を開始するときに視覚センサ30から出力された計測位置PVv(計測位置Pm1,Pn1)と、位置決め処理を完了するときに視覚センサ30から出力された計測位置PVv(計測位置Pm2,Pn2)とは、コントローラ40の主メモリ414等に記憶される。計測位置Pm1,Pn1は、位置決め処理の開始直後に視覚センサ30から出力される計測位置PVvである。計測位置Pm2,Pn2は、ステップS5でYESと判定された直前に視覚センサ30から出力された計測位置PVvであってもよいし、ステップS5でYESと判定された直前に視覚センサ30から出力された計測位置PVvであってもよい。   The measurement position PVv (measurement positions Pm1, Pn1) output from the visual sensor 30 when starting the positioning process and the measurement position PVv (measurement positions Pm2, Pn2) output from the visual sensor 30 when completing the positioning process Is stored in the main memory 414 of the controller 40 or the like. The measurement positions Pm1 and Pn1 are measurement positions PVv output from the visual sensor 30 immediately after the start of the positioning process. The measurement positions Pm2 and Pn2 may be the measurement position PVv output from the visual sensor 30 immediately before it is determined as YES in step S5, or output from the visual sensor 30 immediately before it is determined as YES in step S5. The measured position PVv may also be used.

さらに、位置決め処理を開始してから完了するまでにステージ装置10のサーボモータ12,14,16に設置されたエンコーダから出力されるエンコーダ値ENもコントローラ40の主メモリ414等に記憶される。当該エンコーダ値ENを解析することにより、位置決め処理を開始してから完了するまでの間のXステージ11の移動量、Yステージ13の移動量およびθステージ15の移動量が算出される。   Further, the encoder value EN output from the encoders installed in the servo motors 12, 14, 16 of the stage apparatus 10 from the start to the completion of the positioning process is also stored in the main memory 414 of the controller 40. By analyzing the encoder value EN, the movement amount of the X stage 11, the movement amount of the Y stage 13, and the movement amount of the θ stage 15 from the start to the completion of the positioning process are calculated.

<3−2.推定位置の決定処理>
位置決定部43は、たとえば図15のフローチャートに示すような処理を行うことで、推定位置PV(PVm,PVn)を算出する。図15は、図14に示す推定位置決定処理のサブルーチンの処理内容を示すフローチャートである。なお、推定位置PVmの決定方法は推定位置PVnの決定方法と同一である。そのため、以下では、推定位置PVmと推定位置PVnとを区別せず、推定位置PVmと推定位置PVnとの両者を推定位置Pvとして説明する。
<3-2. Estimated position determination process>
The position determination unit 43 calculates the estimated position PV (PVm, PVn) by performing, for example, the processing shown in the flowchart of FIG. FIG. 15 is a flowchart showing the processing contents of the subroutine of the estimated position determination processing shown in FIG. The method for determining the estimated position PVm is the same as the method for determining the estimated position PVn. Therefore, in the following, the estimated position PVm and the estimated position PVn are not distinguished, and both the estimated position PVm and the estimated position PVn are described as the estimated position Pv.

座標変換部41は、視覚センサ30からの計測位置PVvが得られているか否かを検出する(ステップS11)。座標変換部41は、計測位置PVvが得られている時刻であれば(ステップS11でYES)、計測位置PVvが正常値か否かを検出する(ステップS12)。たとえば、座標変換部41は、計測位置PVvが所定範囲内の値であれば正常値であると判定する。座標変換部41は、計測位置PVvが正常値であれば(ステップS12でYES)、計測位置PVvの入力を受け付ける(ステップS13)。座標変換部41は、視覚センサ30から受け付けた計測位置PVvのカメラ座標をキャリブレーションパラメータを用いて機械座標に変換する(ステップS14)。   The coordinate conversion unit 41 detects whether or not the measurement position PVv from the visual sensor 30 is obtained (step S11). If it is the time when the measurement position PVv is obtained (YES in step S11), the coordinate conversion unit 41 detects whether or not the measurement position PVv is a normal value (step S12). For example, the coordinate conversion unit 41 determines that the measurement position PVv is a normal value if the measurement position PVv is a value within a predetermined range. If the measurement position PVv is a normal value (YES in step S12), the coordinate conversion unit 41 receives an input of the measurement position PVv (step S13). The coordinate conversion unit 41 converts the camera coordinates of the measurement position PVv received from the visual sensor 30 into machine coordinates using the calibration parameters (step S14).

次に、位置決定部43は、計測位置PVvの算出の元となる撮像時刻のエンコーダ値ENsの推定を行う(ステップS15)。この推定の具体的な方法は後述する。なお、撮像部31の露光時間が長い場合、撮像時刻は、例えば、露光開始時刻(撮像部31のシャッターが開となる時刻)と露光終了時刻(撮像部31のシャッターが閉となる時刻)との中間の時刻によって設定される。   Next, the position determination unit 43 estimates the encoder value ENs at the imaging time that is the basis for calculating the measurement position PVv (step S15). A specific method of this estimation will be described later. When the exposure time of the imaging unit 31 is long, the imaging time is, for example, an exposure start time (time when the shutter of the imaging unit 31 is opened) and an exposure end time (time when the shutter of the imaging unit 31 is closed). It is set by the middle time.

位置決定部43は、同時刻の計測位置PVvおよびエンコーダ値ENと、当該計測位置PVvの算出元となる撮像時刻のエンコーダ値ENsとを用いて、推定位置PVを算出する(ステップS16)。具体的には、ステップS16では、位置決定部43は、次の(式19)を用いて、推定位置PVを算出する。   The position determination unit 43 calculates the estimated position PV by using the measurement position PVv and encoder value EN at the same time and the encoder value ENs at the imaging time that is the calculation source of the measurement position PVv (step S16). Specifically, in step S16, the position determination unit 43 calculates the estimated position PV using the following (Equation 19).

PV=PVv+(EN−ENs) ・・・(式19)。
位置決定部43は、算出した推定位置PVを減算部44に出力する(S17)。また、位置決定部43は、この推定位置PVを参照推定位置PVpとし、この時刻のエンコーダ値ENを参照エンコーダ値ENpとして、更新記憶する。
PV = PVv + (EN−ENs) (Equation 19)
The position determination unit 43 outputs the calculated estimated position PV to the subtraction unit 44 (S17). Further, the position determination unit 43 updates and stores the estimated position PV as the reference estimated position PVp and the encoder value EN at this time as the reference encoder value ENp.

位置決定部43は、視覚センサ30からの計測位置PVvが得られていない時刻であれば(ステップS11でNO)、計測位置PVvの出力が1回以上であるか否かを検出する(ステップS18)。また、位置決定部43は、計測位置PVvが正常値でなければ(ステップS12でNO)、同様に、計測位置PVvの出力が1回以上であるか否かを検出する(ステップS18)。   If it is time when the measurement position PVv from the visual sensor 30 is not obtained (NO in step S11), the position determination unit 43 detects whether or not the output of the measurement position PVv is one or more times (step S18). ). Further, if the measurement position PVv is not a normal value (NO in step S12), the position determination unit 43 similarly detects whether or not the output of the measurement position PVv is one or more times (step S18).

位置決定部43は、計測位置PVvの出力が1回以上であれば(ステップS18でYES)、エンコーダ値EN、参照推定位置PVp、および、参照エンコーダ値ENpを用いて、推定位置PVを算出する(S19)。具体的には、ステップS19では、位置決定部43は、次の(式20)を用いて、推定位置PVを算出する。   If the output of the measurement position PVv is one or more times (YES in step S18), the position determination unit 43 calculates the estimated position PV using the encoder value EN, the reference estimated position PVp, and the reference encoder value ENp. (S19). Specifically, in step S19, the position determination unit 43 calculates the estimated position PV using the following (Expression 20).

PV=PVp+EN―ENp ・・・(式20)。
位置決定部43は、計測位置PVvの出力が1回もなければ(ステップS18でNO)、推定位置PVを初期値のまま維持する。ステップS19の後およびステップS18でNOの場合、処理はステップS17に移る。ステップS17の後、処理は図12に示すステップS4に戻る。
PV = PVp + EN−ENp (Equation 20)
If there is no output of the measurement position PVv (NO in step S18), the position determination unit 43 maintains the estimated position PV as the initial value. After step S19 and if NO in step S18, the process proceeds to step S17. After step S17, the process returns to step S4 shown in FIG.

このような処理を実行することによって、コントローラ40は、画像処理による高精度な計測位置PVvが入力される時刻には、この高精度な計測位置PVvを用いて推定位置PVを算出し、高精度な位置決め制御を実現できる。ここで、計測位置PVvが入力される時間間隔は、撮像周期Tpであり、エンコーダ値ENが入力される制御周期Tcに比べて長い。しかしながら、時間軸上で隣り合う計測位置PVvの入力時刻間において、位置決定部43は、入力周期が短いエンコーダ値ENの入力時刻毎に、推定位置PVを算出して、位置制御を行う。これにより、高精度且つ短周期の位置決め制御が可能になる。さらに、位置決定部43は、上述の簡単な四則演算を用いる処理を行なう。そのため、簡素な構成および処理による高速且つ高精度な位置決めを実現できる。   By executing such processing, the controller 40 calculates the estimated position PV using the high-accuracy measurement position PVv at the time when the high-accuracy measurement position PVv by image processing is input. Positioning control can be realized. Here, the time interval at which the measurement position PVv is input is the imaging cycle Tp, and is longer than the control cycle Tc at which the encoder value EN is input. However, between the input times of the measurement positions PVv adjacent on the time axis, the position determination unit 43 calculates the estimated position PV and performs position control for each input time of the encoder value EN having a short input cycle. Thereby, positioning control with high accuracy and a short cycle becomes possible. Further, the position determination unit 43 performs processing using the above-described simple four arithmetic operations. Therefore, high-speed and high-accuracy positioning can be realized with a simple configuration and processing.

計測位置PVvの算出は、視覚センサ30による撮像と画像処理の時間を必要とする。そのため、撮像周期Tpは長い。推定位置PVの算出時刻tnに、計測位置PVvが得られたとしても、当該計測位置PVvは、算出時刻tnよりも過去の撮像時刻tv1に撮像した画像によるものであり、撮像時刻tv1における対象ワークWの位置を高精度に算出したものである。   Calculation of the measurement position PVv requires time for imaging by the visual sensor 30 and image processing. Therefore, the imaging cycle Tp is long. Even if the measurement position PVv is obtained at the calculation time tn of the estimated position PV, the measurement position PVv is based on the image captured at the imaging time tv1 past the calculation time tn, and the target work at the imaging time tv1 The position of W is calculated with high accuracy.

撮像時刻tv1から算出時刻tnまで時間(tn−tv1)が経過しており、対象ワークWは移動している。したがって、この対象ワークWの移動分は、補正しなければならない。   The time (tn−tv1) has elapsed from the imaging time tv1 to the calculation time tn, and the target work W has moved. Accordingly, the movement of the target workpiece W must be corrected.

ここで、エンコーダ値ENは、撮像周期Tpよりも短い制御周期Tcで更新されていく。これを利用し、位置決定部43は、上記の式18に示す演算を行う。具体的に、位置決定部43は、撮像時刻tv1のエンコーダ値ENsと算出時刻tnのエンコーダ値ENを取得する。位置決定部43は、時間(tn−tv1)分のエンコーダ値ENの変化分ΔEN(EN−ENs)を、計測位置PVvに対して加算することによって、算出時刻tnの推定位置PVを算出する。この際、算出時刻tnでは、推定位置PVが不連続になるが、この場合、推定位置PVに対するスムージング処理(例えば、移動平均化処理)等を用いることで、推定位置PVの時間変化を滑らかにでき、より好ましい。   Here, the encoder value EN is updated at a control cycle Tc that is shorter than the imaging cycle Tp. Using this, the position determination unit 43 performs the calculation shown in the above equation 18. Specifically, the position determination unit 43 acquires the encoder value ENs at the imaging time tv1 and the encoder value EN at the calculation time tn. The position determination unit 43 calculates the estimated position PV at the calculation time tn by adding the change ΔEN (EN−ENs) of the encoder value EN for the time (tn−tv1) to the measurement position PVv. At this time, the estimated position PV becomes discontinuous at the calculation time tn. In this case, the time change of the estimated position PV can be smoothed by using a smoothing process (for example, moving averaging process) on the estimated position PV. More preferable.

この処理を用いることによって、推定位置PVは、算出時刻tnでの対象ワークWの位置を高精度に反映するものとなる。したがって、高精度な位置決め制御が可能となる。   By using this processing, the estimated position PV reflects the position of the target workpiece W at the calculation time tn with high accuracy. Therefore, highly accurate positioning control is possible.

図16は、図15に示す撮像時エンコーダ値の推定処理のサブルーチンの処理内容を示すフローチャートである。   FIG. 16 is a flowchart showing the processing contents of a subroutine for estimation processing of the encoder value at the time of imaging shown in FIG.

図16に示すように、位置決定部43は、撮像時刻を取得する(S21)。位置決定部43は、撮像時刻に近い複数の時刻のエンコーダ値ENを取得する(S22)。位置決定部43は、複数の時刻のエンコーダ値ENの内挿補間値を算出し、撮像時刻のエンコーダ値ENsとする(S23)。なお、撮像時刻がエンコーダ値の算出時刻と一致する場合には、このエンコーダ値をそのまま用いればよい。   As illustrated in FIG. 16, the position determination unit 43 acquires the imaging time (S21). The position determination unit 43 acquires encoder values EN at a plurality of times close to the imaging time (S22). The position determination unit 43 calculates an interpolated interpolation value of the encoder values EN at a plurality of times and sets it as an encoder value ENs at the imaging time (S23). If the imaging time matches the encoder value calculation time, this encoder value may be used as it is.

具体的には、位置決定部43は、推定位置PVを算出する算出時刻tnにおけるエンコーダ値EN(n)を取得する。位置決定部43は、算出時刻tnよりも過去の撮像時刻tviを取得する。位置決定部43は、撮像時刻tviに近接する2つの時刻、例えば、時間軸上で、撮像時刻tviを挟む過去の算出時刻t(n−k)と過去の算出時刻t(n−k+1)とを検出する。   Specifically, the position determination unit 43 acquires the encoder value EN (n) at the calculation time tn for calculating the estimated position PV. The position determination unit 43 acquires a previous imaging time tvi from the calculation time tn. The position determination unit 43 includes two times close to the imaging time tvi, for example, a past calculation time t (n−k) and a past calculation time t (n−k + 1) sandwiching the imaging time tvi on the time axis. Is detected.

位置決定部43は、算出時刻t(n−k)のエンコーダ値EN(n−k)と、算出時刻t(n−k+1)のエンコーダ値EN(n−k+1)とを取得する。過去のエンコーダ値は、コントローラ40の記憶部(たとえば不揮発性メモリ413または主メモリ414(図4参照))に記憶される。   The position determination unit 43 acquires the encoder value EN (nk) at the calculation time t (n−k) and the encoder value EN (n−k + 1) at the calculation time t (n−k + 1). The past encoder value is stored in the storage unit of the controller 40 (for example, the nonvolatile memory 413 or the main memory 414 (see FIG. 4)).

位置決定部43は、エンコーダ値EN(n−k)とエンコーダ値EN(n−k+1)との内挿補間値を用いて、撮像時刻tviのエンコーダ値ENs(ni)を算出する。具体的には、位置決定部43は、次の(式21)を用いて、撮像時刻tviのエンコーダ値ENs(ni)を算出する。   The position determination unit 43 calculates an encoder value ENs (ni) at the imaging time tvi by using an interpolation value between the encoder value EN (n−k) and the encoder value EN (n−k + 1). Specifically, the position determination unit 43 calculates the encoder value ENs (ni) at the imaging time tvi using the following (Expression 21).

ENs(ni)=EN(n−k)+Kk*(EN(n−k+2)−EN(n−k+1)) ・・・(式21)。   ENs (ni) = EN (n−k) + Kk * (EN (n−k + 2) −EN (n−k + 1)) (Equation 21)

ここで、Kkは、内挿補間係数である。制御周期をTcとし、エンコーダ値ENの伝送遅延時間をTedとし、撮像トリガの伝送遅延時間をTsdとして、Tc−Ted≦Tsd<2Tc−Tedの場合、内挿補間係数Kkは、次の(式22)を用いて算出される。   Here, Kk is an interpolation coefficient. When the control cycle is Tc, the transmission delay time of the encoder value EN is Ted, the transmission delay time of the imaging trigger is Tsd, and Tc−Ted ≦ Tsd <2Tc−Ted, the interpolation coefficient Kk is expressed as 22).

Kk={Tsd−(Tc−Ted)}/Tc ・・・(式22)。
このような内挿補間値の算出方法を用いることによって、撮像時刻tviのエンコーダ値ENs(ni)を高精度に算出できる。これにより、さらに高精度な推定位置PVが算出でき、さらに高精度な位置決め制御が可能になる。
Kk = {Tsd− (Tc−Ted)} / Tc (Equation 22)
By using such a method for calculating the interpolation value, the encoder value ENs (ni) at the imaging time tvi can be calculated with high accuracy. As a result, the estimated position PV with higher accuracy can be calculated, and positioning control with higher accuracy becomes possible.

<3−3.キャリブレーションパラメータの補正処理>
補正部46は、たとえば図17のフローチャートに示すような処理を行うことで、キャリブレーションパラメータを補正する。図17は、キャリブレーションパラメータの補正処理の流れの一例を示すフローチャートである。
<3-3. Calibration parameter correction processing>
The correction unit 46 corrects the calibration parameter by performing a process such as that shown in the flowchart of FIG. FIG. 17 is a flowchart illustrating an exemplary flow of calibration parameter correction processing.

キャリブレーションパラメータの補正指示を受けると、補正部46は、4回の位置決め処理にそれぞれ対応する4つのデータセットを取得する(ステップS31)。データセットは、位置決め処理を開始するときに視覚センサ30によって計測された計測位置Pm1,Pn1の座標を含む。さらに、データセットは、位置決め処理を完了するときに視覚センサ30によって計測された計測位置Pm2,Pn2の座標を含む。さらに、データセットは、位置決め処理を完了するときに視覚センサ30によって計測された計測位置Pm2から、位置決め処理を開始してから完了するまでのステージ装置10の移動量を差し引いた位置Pm3の座標を含む。さらに、データセットは、マーク50nに対応する位置における、位置決め処理を開始してから完了するまでのステージ装置10の移動量を含む。   When receiving the calibration parameter correction instruction, the correction unit 46 acquires four data sets respectively corresponding to the four positioning processes (step S31). The data set includes the coordinates of the measurement positions Pm1 and Pn1 measured by the visual sensor 30 when starting the positioning process. Further, the data set includes the coordinates of the measurement positions Pm2 and Pn2 measured by the visual sensor 30 when completing the positioning process. Further, the data set includes the coordinates of the position Pm3 obtained by subtracting the movement amount of the stage device 10 from the start of the positioning process to the completion from the measurement position Pm2 measured by the visual sensor 30 when the positioning process is completed. Including. Further, the data set includes the amount of movement of the stage device 10 from the start to the completion of the positioning process at the position corresponding to the mark 50n.

補正部46は、ステップS31で取得した4つのデータセットを用いて、カメラ座標系から機械座標系への回転の変換量および拡大縮小の変換量(倍率)を補正するためのパラメータA’,B’,D’,E’のそれぞれの値を算出する(ステップS32)。   The correction unit 46 uses the four data sets acquired in step S31 to correct the parameters A ′ and B for correcting the rotation conversion amount and the enlargement / reduction conversion amount (magnification) from the camera coordinate system to the machine coordinate system. Each value of ', D', E 'is calculated (Step S32).

次に、補正部46は、算出した値が適正か否かを判定する(ステップS33)。具体的には、補正部46は、算出したパラメータA’,B’,D’,E’の値が上記の式(15)を満たすとともに、式(14)で示されるΔθが式(16)を満たす場合に、算出した値が適正であると判定する。   Next, the correction unit 46 determines whether or not the calculated value is appropriate (step S33). Specifically, the correction unit 46 determines that the calculated parameters A ′, B ′, D ′, and E ′ satisfy the above equation (15), and Δθ represented by the equation (14) is the equation (16). When satisfying, it is determined that the calculated value is appropriate.

算出した値が適正でない場合(ステップS33でNO)、当該値が破棄され、処理はステップS31に戻る。   If the calculated value is not appropriate (NO in step S33), the value is discarded and the process returns to step S31.

算出した値が適正である場合(ステップS33でYES)、補正部46は、ステップS31で取得した4つのデータセットを用いて、カメラ座標系から機械座標系への並進の変換量を補正するためのパラメータC’,F’のそれぞれの値を算出する(ステップS34)。   When the calculated value is appropriate (YES in step S33), the correction unit 46 uses the four data sets acquired in step S31 to correct the translation conversion amount from the camera coordinate system to the machine coordinate system. The values of the parameters C ′ and F ′ are calculated (step S34).

次に、補正部46は、算出した値が適正か否かを判定する(ステップS35)。具体的には、補正部46は、算出したパラメータC’,F’値が上記の式(17)および式(18)を満たす場合に、算出した値が適正であると判定する。   Next, the correction unit 46 determines whether or not the calculated value is appropriate (step S35). Specifically, the correction unit 46 determines that the calculated values are appropriate when the calculated parameters C ′ and F ′ values satisfy the above expressions (17) and (18).

算出した値が適正でない場合(ステップS35でNO)、当該値が破棄され、処理はステップS31に戻る。   If the calculated value is not appropriate (NO in step S35), the value is discarded and the process returns to step S31.

算出した値が適正である場合(ステップS35でYES)、補正部46は、ステップS32で算出したパラメータA’,B’,D’,E’の値と、ステップS34で算出したパラメータC’,F’の値とを用いて、キャリブレーションパラメータ(校正パラメータ)を補正する(ステップS36)。なお、補正部46がパラメータA’,B’,C’,D’,E’,F’の値を座標変換部41に出力し、座標変換部41がキャリブレーションパラメータの補正を行なってもよい。   When the calculated value is appropriate (YES in step S35), the correction unit 46 determines the values of the parameters A ′, B ′, D ′, E ′ calculated in step S32 and the parameters C ′, calculated in step S34. The calibration parameter (calibration parameter) is corrected using the value of F ′ (step S36). The correction unit 46 may output the values of the parameters A ′, B ′, C ′, D ′, E ′, and F ′ to the coordinate conversion unit 41, and the coordinate conversion unit 41 may correct the calibration parameters. .

図18は、図17に示す4つのデータセットの取得処理のサブルーチンの処理内容を示すフローチャートである。   FIG. 18 is a flowchart showing the processing contents of the subroutine for the acquisition processing of the four data sets shown in FIG.

補正部46は、位置決め処理が完了したか否かを判定する(ステップS41)。具体的には、補正部46は、フィードバック制御部42がフィードバック制御を停止したことを受けて、位置決め処理が完了したと判定する。位置決め処理が完了していない場合(ステップS41でNO)、処理はステップS41に戻る。   The correcting unit 46 determines whether or not the positioning process has been completed (step S41). Specifically, the correction unit 46 determines that the positioning process has been completed in response to the feedback control unit 42 stopping the feedback control. If the positioning process has not been completed (NO in step S41), the process returns to step S41.

位置決め処理が完了した場合(ステップS41でYES)、補正部46は、当該位置決め処理に対応する対象データセットを生成する(ステップS42)。   When the positioning process is completed (YES in step S41), the correction unit 46 generates a target data set corresponding to the positioning process (step S42).

補正部46は、生成した対象データセットによって示される計測位置Pm1から位置Pm3への対象ベクトルの長さLが規定値Th2以上であるか否かを判定する(ステップS43)。対象ベクトルの長さLが規定値Th2以上ではない場合(ステップS43でNO)、処理はステップS41に戻る。   The correcting unit 46 determines whether or not the length L of the target vector from the measurement position Pm1 to the position Pm3 indicated by the generated target data set is greater than or equal to the specified value Th2 (step S43). If the length L of the target vector is not equal to or greater than the specified value Th2 (NO in step S43), the process returns to step S41.

対象ベクトルの長さLが規定値Th2以上である場合(ステップS43でYES)、補正部46は、第1データセットDS0を取得済みか否かを判定する(ステップS44)。第1データセットDS0をまだ取得していない場合(ステップS44でNO)、補正部46は、直近のステップS42で生成した対象データセットを第1データセットDS0として取得する(ステップS45)。第1データセットDS0によって示される計測位置Pm1から位置Pm3へのベクトルは、第1ベクトルM0である。ステップS45の後、処理はステップS46に移る。第1データセットDS0を取得済である場合も(ステップS44でYES)、処理はステップS46に移る。   When the length L of the target vector is equal to or greater than the specified value Th2 (YES in step S43), the correction unit 46 determines whether or not the first data set DS0 has been acquired (step S44). When the first data set DS0 has not been acquired yet (NO in step S44), the correction unit 46 acquires the target data set generated in the latest step S42 as the first data set DS0 (step S45). The vector from the measurement position Pm1 to the position Pm3 indicated by the first data set DS0 is the first vector M0. After step S45, the process proceeds to step S46. Even when the first data set DS0 has been acquired (YES in step S44), the process proceeds to step S46.

ステップS46において、補正部46は、第2データセットDS1を取得済みか否かを判定する。第2データセットDS1が未取得である場合(ステップS46でNO)、補正部46は、ステップS42で生成した対象データセットに対応する対象ベクトルと、第1ベクトルM0とのなす角度が45°±α1の範囲内であるか否かを判定する(ステップS47)。対象ベクトルは、対象データセットによって示される計測位置Pm1から位置Pm3へのベクトルである。α1は予め定められる角度である。対象ベクトルと第1ベクトルM0とのなす角度が45°±α1の範囲内である場合(ステップS47でYES)、補正部46は、対象データセットを第2データセットDS1として取得する(ステップS48)。ステップS48の後、処理はステップS49に移る。第2データセットDS1を取得済である場合(ステップS46でYES)および対象ベクトルと第1ベクトルM0とのなす角度が45°±α1の範囲外である場合(ステップS47でNO)も、処理はステップS49に移る。   In step S46, the correction unit 46 determines whether the second data set DS1 has been acquired. When the second data set DS1 has not been acquired (NO in step S46), the correction unit 46 has an angle formed by the target vector corresponding to the target data set generated in step S42 and the first vector M0 is 45 ° ±. It is determined whether it is within the range of α1 (step S47). The target vector is a vector from the measurement position Pm1 to the position Pm3 indicated by the target data set. α1 is a predetermined angle. When the angle formed by the target vector and the first vector M0 is within the range of 45 ° ± α1 (YES in step S47), the correction unit 46 acquires the target data set as the second data set DS1 (step S48). . After step S48, the process proceeds to step S49. If the second data set DS1 has already been acquired (YES in step S46) and if the angle between the target vector and the first vector M0 is outside the range of 45 ° ± α1 (NO in step S47), the process is The process moves to step S49.

ステップS49において、補正部46は、第3データセットDS2を取得済みか否かを判定する。第3データセットDS2が未取得である場合(ステップS49でNO)、補正部46は、ステップS42で生成した対象データセットに対応する対象ベクトルと、第1ベクトルM0とのなす角度が90°±α2の範囲内であるか否かを判定する(ステップS50)。α2は予め定められる角度である。対象ベクトルと第1ベクトルM0とのなす角度が90°±α2の範囲内である場合(ステップS50でYES)、補正部46は、対象データセットを第3データセットDS2として取得する(ステップS51)。ステップS51の後、処理はステップS52に移る。第3データセットDS2を取得済である場合(ステップS49でYES)および対象ベクトルと第1ベクトルM0とのなす角度が90°±α2の範囲外である場合(ステップS50でNO)も、処理はステップS52に移る。   In step S49, the correction unit 46 determines whether the third data set DS2 has been acquired. When the third data set DS2 has not been acquired (NO in step S49), the correction unit 46 determines that the angle formed between the target vector corresponding to the target data set generated in step S42 and the first vector M0 is 90 ° ±. It is determined whether it is within the range of α2 (step S50). α2 is a predetermined angle. When the angle formed by the target vector and the first vector M0 is within the range of 90 ° ± α2 (YES in step S50), the correction unit 46 acquires the target data set as the third data set DS2 (step S51). . After step S51, the process proceeds to step S52. If the third data set DS2 has already been acquired (YES in step S49) and if the angle between the target vector and the first vector M0 is outside the range of 90 ° ± α2 (NO in step S50), the process is Control goes to step S52.

ステップS52において、補正部46は、第4データセットDS3を取得済みか否かを判定する。第4データセットDS3が未取得である場合(ステップS52でNO)、補正部46は、第2データセットDS1を取得済みか否かを判定する(ステップS53)。第2データセットDS1が取得済である場合(ステップS53でYES)、補正部46は、ステップS42で生成した対象データセットに対応する対象ベクトルと、第2ベクトルM1とのなす角度が90°±α3の範囲内であるか否かを判定する(ステップS54)。α3は予め定められる角度である。対象ベクトルと第2ベクトルM1とのなす角度が90°±α3の範囲内である場合(ステップS54でYES)、補正部46は、対象データセットを第4データセットDS3として取得する(ステップS55)。ステップS55の後、処理はステップS55に移る。第4データセットDS3を取得済である場合(ステップS52でYES)、第2データセットDS1が未取得である場合(ステップS53でNO)および対象ベクトルと第2ベクトルM1とのなす角度が90°±α3の範囲外である場合(ステップS54でNO)も、処理はステップS56に移る。   In step S52, the correction unit 46 determines whether the fourth data set DS3 has been acquired. When the fourth data set DS3 has not been acquired (NO in step S52), the correction unit 46 determines whether the second data set DS1 has been acquired (step S53). When the second data set DS1 has been acquired (YES in step S53), the correction unit 46 determines that the angle formed between the target vector corresponding to the target data set generated in step S42 and the second vector M1 is 90 ° ±. It is determined whether it is within the range of α3 (step S54). α3 is a predetermined angle. When the angle formed by the target vector and the second vector M1 is within the range of 90 ° ± α3 (YES in step S54), the correction unit 46 acquires the target data set as the fourth data set DS3 (step S55). . After step S55, the process proceeds to step S55. If the fourth data set DS3 has been acquired (YES in step S52), if the second data set DS1 has not been acquired (NO in step S53), and the angle formed by the target vector and the second vector M1 is 90 °. If it is outside the range of ± α3 (NO in step S54), the process proceeds to step S56.

ステップS56において、補正部46は、第1データセットDS0〜第4データセットDS3の全てが取得済みか否かを判定する。第1データセットDS0〜第4データセットDS3の全てをまだ取得していない場合(ステップS56でNO)、処理はステップS41に戻る。第1データセットDS0〜第4データセットDS3の全てが取得済である場合(ステップS56でYES)、4つのデータセットの取得処理は終了する。なお、補正部46は、第1データセットDS0を取得してから残りの第2データセットDS1〜第4データセットDS3を取得するまでの時間が規定時間内である場合に、当該第1〜第4データセットに基づいてキャリブレーションパラメータを補正する。補正部46は、第1データセットDS0を取得してから残りの第2データセットDS1〜第4データセットDS3を取得するまでの時間が規定時間を超える場合に、当該第1〜第4データセットを破棄して、再度第1データセットDS0〜第4データセットDS3の取得処理を行なう。   In step S56, the correction unit 46 determines whether or not all of the first data set DS0 to the fourth data set DS3 have been acquired. If all of the first data set DS0 to the fourth data set DS3 have not yet been acquired (NO in step S56), the process returns to step S41. When all of the first data set DS0 to the fourth data set DS3 have been acquired (YES in step S56), the acquisition process of the four data sets is ended. The correction unit 46, when the time from acquiring the first data set DS0 to acquiring the remaining second data set DS1 to fourth data set DS3 is within a specified time, Calibration parameters are corrected based on 4 data sets. When the time from acquiring the first data set DS0 to acquiring the remaining second data set DS1 to fourth data set DS3 exceeds the specified time, the correction unit 46 performs the first to fourth data sets. And the acquisition process of the first data set DS0 to the fourth data set DS3 is performed again.

<3−4.作用・効果>
上記のように、本実施の形態によれば、補正部46は、位置決め処理を開始するときの計測位置Pm1の座標と、位置決め処理を開始してから完了するまでのステージ装置10の移動量を、位置決め処理を完了するときの計測位置Pm2から差し引くことにより得られる位置Pm3の座標とを示すデータセットに基づいて、キャリブレーションパラメータを補正する。
<3-4. Action / Effect>
As described above, according to the present embodiment, the correction unit 46 determines the coordinates of the measurement position Pm1 when starting the positioning process and the amount of movement of the stage apparatus 10 from the start of the positioning process to the completion thereof. The calibration parameter is corrected based on the data set indicating the coordinates of the position Pm3 obtained by subtracting from the measurement position Pm2 when the positioning process is completed.

これにより、補正部46によって補正されたキャリブレーションパラメータを用いることにより、カメラ座標系から機械座標系に精度良く座標変換することができ、位置決めの精度を高めることができる。さらに、計測位置Pm1,Pm2、および、位置決め処理を開始してから完了するまでのステージ装置10の移動量は、通常の対象ワークWの位置決め処理から得られる。そのため、キャリブレーションパラメータの補正のために、対象ワークWの位置決め処理を停止する必要がない。その結果、キャリブレーションの繰り返しによる稼働率の低下を抑制できる。   Thereby, by using the calibration parameter corrected by the correction unit 46, coordinate conversion from the camera coordinate system to the machine coordinate system can be performed with high accuracy, and the positioning accuracy can be improved. Further, the measurement positions Pm1 and Pm2 and the movement amount of the stage apparatus 10 from the start to the completion of the positioning process are obtained from the normal positioning process of the target workpiece W. For this reason, it is not necessary to stop the positioning process of the target workpiece W in order to correct the calibration parameter. As a result, a reduction in operating rate due to repeated calibration can be suppressed.

§4 変形例
<4−1.変形例1>
上記の説明では、補正部46は、計測位置Pm1を位置Pm3に変換するためのアフィン変換Fa’を求めることにより、パラメータA’,B’,C’,D’,E’,F’を特定する。しかしながら、計測位置Pm1と位置Pm3とのずれの全てを1回で補正すると、視覚センサ30における計測誤差や演算誤差によって、キャリブレーションパラメータに悪影響を及ぼす可能性がある。
§4 Modification <4-1. Modification 1>
In the above description, the correction unit 46 specifies the parameters A ′, B ′, C ′, D ′, E ′, and F ′ by obtaining the affine transformation Fa ′ for converting the measurement position Pm1 to the position Pm3. To do. However, if all the deviations between the measurement positions Pm1 and Pm3 are corrected at one time, the calibration parameters may be adversely affected by measurement errors and calculation errors in the visual sensor 30.

そのため、補正部46は、計測位置Pm1と位置Pm3との線分上の位置Pm7を補正目標の位置として特定してもよい。補正部46は、計測位置Pm1と位置Pm7との長さL2と、計測位置Pm1と位置Pm3との長さL1との比率(L2/L1)が予め定められた値βとなるように、位置Pm7を特定する。   Therefore, the correction unit 46 may specify the position Pm7 on the line segment between the measurement position Pm1 and the position Pm3 as the correction target position. The correcting unit 46 adjusts the position so that the ratio (L2 / L1) between the length L2 between the measurement position Pm1 and the position Pm7 and the length L1 between the measurement position Pm1 and the position Pm3 becomes a predetermined value β. Pm7 is specified.

図19は、計測位置Pm1,Pm2と位置Pm3,Pm7との関係を示す図である。位置Pm7の座標(Xm_f,Ym_f)は、計測位置Pm1の座標(Xm_a,Ym_a)と、位置Pm3の座標(Xm−b−Xm_c,Ym_b−Ym_c)とβとを用いて、以下のように表される。
Xm_f=Xm_a+β(Xm−b−Xm_c−Xm_a)
Ym_f=Ym_a+β(Ym−b−Ym_c−Ym_a)
補正部46は、計測位置Pm1を位置Pm7に変換するためのアフィン変換Fa’を求めることにより、パラメータA’,B’,C’,D’,E’,F’を特定する。これにより、複数回の補正を繰り返しながら、漸近的にキャリブレーションパラメータを調整できる。
FIG. 19 is a diagram illustrating a relationship between the measurement positions Pm1 and Pm2 and the positions Pm3 and Pm7. The coordinates (Xm_f, Ym_f) of the position Pm7 are expressed as follows using the coordinates (Xm_a, Ym_a) of the measurement position Pm1, the coordinates (Xm-b-Xm_c, Ym_b-Ym_c) and β of the position Pm3. Is done.
Xm_f = Xm_a + β (Xm−b−Xm_c−Xm_a)
Ym_f = Ym_a + β (Ym−b−Ym_c−Ym_a)
The correction unit 46 specifies parameters A ′, B ′, C ′, D ′, E ′, and F ′ by obtaining an affine transformation Fa ′ for converting the measurement position Pm1 to the position Pm7. Thereby, the calibration parameter can be adjusted asymptotically while repeating the correction a plurality of times.

図20は、変形例1に係る補正部の処理の全体の流れを示すフローチャートである。補正部46は、キャリブレーションパラメータの補正指示を受けると、4回の位置決め処理にそれぞれ対応する4つのデータセットを取得する(ステップS61)。ステップS61は、上記のステップS31と同じである。   FIG. 20 is a flowchart illustrating an overall flow of processing of the correction unit according to the first modification. When receiving the calibration parameter correction instruction, the correction unit 46 acquires four data sets respectively corresponding to the four positioning processes (step S61). Step S61 is the same as step S31 described above.

補正部46は、ステップS31で取得した4つのデータセットを用いて、計測位置Pm1を位置Pm7に変換するためのパラメータA’,B’,D’,E’のそれぞれの値を算出する(ステップS62)。ステップS62は、目標とする位置が位置Pm3ではなく位置Pm7である点を除いて、上記のステップS32と同じである。補正部46は、算出した値が適正か否かを判定する(ステップS63)。ステップS63は、上記のステップS33と同じである。   The correction unit 46 uses the four data sets acquired in step S31 to calculate respective values of the parameters A ′, B ′, D ′, and E ′ for converting the measurement position Pm1 into the position Pm7 (step S31). S62). Step S62 is the same as Step S32 described above except that the target position is not the position Pm3 but the position Pm7. The correcting unit 46 determines whether or not the calculated value is appropriate (step S63). Step S63 is the same as step S33 described above.

算出した値が適正でない場合(ステップS63でNO)、当該値が破棄され、処理はステップS61に戻る。算出した値が適正である場合(ステップS63でYES)、補正部46は、ステップS62で算出したパラメータA’,B’,D’,E’の値を用いて、回転および拡大縮小に関するパラメータA,B,D,Eを補正する(ステップS64)。   If the calculated value is not appropriate (NO in step S63), the value is discarded and the process returns to step S61. If the calculated value is appropriate (YES in step S63), the correction unit 46 uses the values of the parameters A ′, B ′, D ′, and E ′ calculated in step S62 to set the parameter A relating to rotation and enlargement / reduction. , B, D, E are corrected (step S64).

次に、補正部46は、拡大縮小の変換量(倍率)の補正量|(|A’E’−B’D’|−1)|および回転の変換量の補正量|Δθ|(上記の式(14)参照)がそれぞれ規定値β’および規定値γ’以下であるか否かを判定する(ステップS65)。具体的には、補正部46は、以下の式(23)、(24)を満たすか否かを判定する。
|(|A’E’−B’D’|−1|≦β’ ・・・式(23)
Δθ≦γ’ ・・・式(24)
β’およびγ’は、上記のβおよびγよりもそれぞれ小さい値に予め設定さる。式(23)および式(24)を満たす場合には、補正量が十分に小さくなり、回転および拡大縮小に関するパラメータの補正量が収束している。
Next, the correction unit 46 corrects the conversion amount (magnification) of the enlargement / reduction | (| A′E′−B′D ′ | −1) | and the correction amount of the rotation conversion amount | Δθ | It is determined whether or not each of the expressions (14) is equal to or less than the specified value β ′ and the specified value γ ′ (step S65). Specifically, the correction unit 46 determines whether or not the following expressions (23) and (24) are satisfied.
| (| A′E′−B′D ′ | −1 | ≦ β ′ (23)
Δθ ≦ γ ′ (24)
β ′ and γ ′ are preset to values smaller than the above β and γ, respectively. When Expressions (23) and (24) are satisfied, the correction amount is sufficiently small, and the correction amounts of the parameters related to rotation and enlargement / reduction are converged.

式(23)、(24)を満たさない場合(ステップS65でNO)、処理はステップS61に戻る。これにより、再度ステップS61〜S64が繰り返される。その結果、回転および拡大縮小に関するパラメータの補正量が徐々に収束する。   When Expressions (23) and (24) are not satisfied (NO in Step S65), the process returns to Step S61. Thereby, steps S61 to S64 are repeated again. As a result, the correction amounts of the parameters relating to rotation and enlargement / reduction gradually converge.

式(23)、(24)を満たす場合(ステップS65でYES)、補正部46は、ステップS61で取得した4つのデータセットを用いて、カメラ座標系から機械座標系への並進の変換量を補正するためのパラメータC’,F’の値を算出する(ステップS66)。ステップS66は、上記のステップS34と同じである。補正部46は、算出した値が適正か否かを判定する(ステップS67)。ステップS67は、上記のステップS67と同じである。算出した値が適正でない場合(ステップS67でNO)、当該値が破棄され、処理はステップS61に戻る。算出した値が適正である場合(ステップS67でYES)、補正部46は、ステップS66で算出したパラメータC’,F’の値を用いて、並進に関するパラメータC,Fの値を補正する(ステップS68)。   When Expressions (23) and (24) are satisfied (YES in step S65), the correction unit 46 uses the four data sets acquired in step S61 to calculate the translation conversion amount from the camera coordinate system to the machine coordinate system. The values of parameters C ′ and F ′ for correction are calculated (step S66). Step S66 is the same as step S34 described above. The correcting unit 46 determines whether or not the calculated value is appropriate (step S67). Step S67 is the same as step S67 described above. If the calculated value is not appropriate (NO in step S67), the value is discarded and the process returns to step S61. If the calculated value is appropriate (YES in step S67), the correction unit 46 corrects the values of the parameters C and F relating to translation using the values of the parameters C ′ and F ′ calculated in step S66 (step S66). S68).

<4−2.変形例2>
上記の説明では、第2ベクトルM1と第1ベクトルM0とのなす角度が45°であり、第3ベクトルM2と第1ベクトルM0とのなす角度が90°であり、第4ベクトルM3と第1ベクトルM0とのなす角度が135°であるとした。しかしながら、角度はこれらに限定されない。たとえば、第2ベクトルM1と第1ベクトルM0とのなす角度が30°であり、第3ベクトルM2と第1ベクトルM0とのなす角度が60°であり、第4ベクトルM3と第1ベクトルM0とのなす角度が90°であってもよい。
<4-2. Modification 2>
In the above description, the angle formed by the second vector M1 and the first vector M0 is 45 °, the angle formed by the third vector M2 and the first vector M0 is 90 °, and the fourth vector M3 and the first vector The angle formed by the vector M0 is assumed to be 135 °. However, the angle is not limited to these. For example, the angle formed by the second vector M1 and the first vector M0 is 30 °, the angle formed by the third vector M2 and the first vector M0 is 60 °, and the fourth vector M3 and the first vector M0 are The angle formed by may be 90 °.

さらに、補正部46は、第3ベクトルM2に対応する第3データセットを取得した後、第3ベクトルM2とのなす角度が45°となる第4ベクトルM3に対応する第4データセットを取得してもよい。   Further, the correction unit 46 acquires the third data set corresponding to the third vector M2, and then acquires the fourth data set corresponding to the fourth vector M3 having an angle of 45 ° with the third vector M2. May be.

<4−3.変形例3>
ステージ装置10は、サーボモータとカップリングを介して連結されるボールねじを含んでもよい。ボールねじおよびカップリングのいずれかの異常により、ステージ装置10の位置偏差、速度、トルクに異常な変動が生じることが知られている。たとえば、ボールねじの潤滑不良による摩擦の増加に伴い、断続的な引っかかりが発生し、速度異常が生じる。ボールねじの曲げまたは歪みの発生に伴い、トルク異常が生じる。カップリングのすべりの発生に伴い、位置偏差の異常が生じる。
<4-3. Modification 3>
The stage apparatus 10 may include a ball screw connected to the servo motor via a coupling. It is known that abnormal variations in the position deviation, speed, and torque of the stage apparatus 10 occur due to an abnormality in either the ball screw or the coupling. For example, as the friction increases due to poor lubrication of the ball screw, intermittent catching occurs, resulting in speed abnormality. As the ball screw is bent or distorted, torque abnormality occurs. As the coupling slips, abnormal position deviation occurs.

このようなステージ装置10の機械的な異常が発生している状況において、キャリブレーションパラメータを補正すると、ステージ装置10に対して多大なストレスを与える可能性がある。そこで、補正部46は、ステージ装置10からの位置関連情報であるエンコーダ値ENに基づいて、位置偏差、速度およびトルクを監視し、ステージ装置10の異常の有無を判定してもよい。補正部46は、ステージ装置10に異常が無いと判定した場合に、キャリブレーションパラメータの補正を行ない、ステージ装置10に異常が有ると判定した場合に、キャリブレーションパラメータの補正を行なわない。このとき、補正部46は、ステージ装置10に異常がある旨を通知してもよい。   In a situation where such a mechanical abnormality of the stage apparatus 10 occurs, if the calibration parameter is corrected, there is a possibility that a great stress is applied to the stage apparatus 10. Therefore, the correction unit 46 may monitor the position deviation, the speed, and the torque based on the encoder value EN that is position related information from the stage device 10 to determine whether the stage device 10 is abnormal. The correction unit 46 corrects the calibration parameter when it is determined that there is no abnormality in the stage device 10, and does not correct the calibration parameter when it is determined that there is an abnormality in the stage device 10. At this time, the correction unit 46 may notify that the stage apparatus 10 is abnormal.

<4−4.変形例4>
補正部46によるキャリブレーションパラメータの補正処理には、計測誤差および演算誤差の影響がある。そのため、補正後のキャリブレーションパラメータを用いることにより、位置決め処理に要する時間が長くなる可能性がある。そこで、補正部46は、補正後のキャリブレーションパラメータを用いたフィードバック制御により位置決め処理を完了するのに要する時間と、補正前のキャリブレーションパラメータを用いたフィードバック制御により位置決め処理を完了するのに要する時間とを比較する。補正部46は、補正後の時間が補正前の時間よりも長い場合、キャリブレーションパラメータを補正前の値に戻す。この場合、補正部46は、キャリブレーションパラメータの補正履歴を記憶しておき、補正履歴に基づいて、キャリブレーションパラメータを補正前の値に戻せばよい。
<4-4. Modification 4>
The calibration parameter correction processing by the correction unit 46 is affected by measurement errors and calculation errors. Therefore, the time required for the positioning process may be increased by using the corrected calibration parameter. Therefore, the correction unit 46 requires time to complete the positioning process by feedback control using the corrected calibration parameter and to complete the positioning process by feedback control using the calibration parameter before correction. Compare time. When the time after correction is longer than the time before correction, the correction unit 46 returns the calibration parameter to the value before correction. In this case, the correction unit 46 may store the correction history of the calibration parameter, and return the calibration parameter to the value before correction based on the correction history.

<4−5.変形例5>
図17に示すフローにおいて、ステップS33またはステップS36でNOとなる状態が継続的に発生する場合、ステージ装置10に何等かの異常が生じている可能性が高い。そこで、ステップS33またはステップS36でNOとなる状態が連続して所定回数生じた場合、補正部46は、ステージ装置10に異常が発生したものと判定し、その旨を通知してもよい。もしくは、単位時間当たりのステップS33またはステップS36でNOとなる回数が所定頻度以上である場合に、補正部46は、ステージ装置10に異常が発生したものと判定し、その旨を通知してもよい。
<4-5. Modification 5>
In the flow shown in FIG. 17, when the state of NO in step S33 or step S36 continuously occurs, there is a high possibility that some abnormality has occurred in the stage apparatus 10. Therefore, when the state of NO in step S33 or step S36 occurs continuously a predetermined number of times, the correction unit 46 may determine that an abnormality has occurred in the stage apparatus 10 and notify the fact. Alternatively, when the number of times of NO in step S33 or step S36 per unit time is equal to or greater than a predetermined frequency, the correction unit 46 determines that an abnormality has occurred in the stage apparatus 10 and notifies that fact. Good.

<4−6.変形例6>
上記の説明では、計測位置Pm1および位置Pm3を用いて、キャリブレーションパラメータが補正される。しかしながら、計測位置Pn1および位置Pn3を用いて、キャリブレーションパラメータが補正されてもよい。もしくは、計測位置Pn1および位置Pn3、ならびに計測位置Pn1および位置Pn3を用いて、キャリブレーションパラメータが補正されてもよい。
<4-6. Modification 6>
In the above description, the calibration parameter is corrected using the measurement position Pm1 and the position Pm3. However, the calibration parameter may be corrected using the measurement position Pn1 and the position Pn3. Alternatively, the calibration parameters may be corrected using the measurement positions Pn1 and Pn3 and the measurement positions Pn1 and Pn3.

<4−7.変形例7>
座標変換部41は、コントローラ40ではなく、視覚センサ30に備えられていてもよい。
<4-7. Modification 7>
The coordinate conversion unit 41 may be provided in the visual sensor 30 instead of the controller 40.

§5 付記
以上のように、本実施の形態および変形例は以下のような開示を含む。
§5 Appendix As described above, the present embodiment and the modified example include the following disclosure.

(構成1)
対象物(W)の位置決め処理を行なう制御システム(1)であって、
前記対象物(W)を撮像し、前記対象物(W)の位置を計測するための視覚センサ(30)と、
前記対象物(W)を移動させるための移動機構(10,20)と、
前記視覚センサ(30)の第1座標系を前記移動機構の第2座標系に変換するためのキャリブレーションパラメータを用いて、前記視覚センサ(30)によって計測された位置の座標変換を行なう座標変換部(41)と、
前記座標変換部(41)によって座標変換された位置が目標位置に近づくように前記移動機構(10,20)に対するフィードバック制御を行なうためのフィードバック制御部(42)と、
前記位置決め処理を開始するときに前記視覚センサ(30)によって計測され、前記座標変換部(41)により座標変換された第1位置の座標と、前記位置決め処理を開始してから完了するまでの前記移動機構(10,20)の移動量を、前記位置決め処理を完了するときに前記視覚センサ(30)によって計測され、前記座標変換部(41)により座標変換された第2位置から差し引くことにより得られる第3位置の座標とを示すデータセットに基づいて、前記キャリブレーションパラメータを補正するための補正部(46)とを備える、制御システム(1)。
(Configuration 1)
A control system (1) for performing positioning processing of an object (W),
A visual sensor (30) for imaging the object (W) and measuring the position of the object (W);
A moving mechanism (10, 20) for moving the object (W);
Coordinate transformation for performing coordinate transformation of the position measured by the visual sensor (30) using calibration parameters for transforming the first coordinate system of the visual sensor (30) to the second coordinate system of the moving mechanism Part (41);
A feedback control unit (42) for performing feedback control on the moving mechanism (10, 20) so that the position transformed by the coordinate transformation unit (41) approaches a target position;
The coordinates of the first position measured by the visual sensor (30) when the positioning process is started and coordinate-converted by the coordinate conversion unit (41), and from the start to the completion of the positioning process The amount of movement of the moving mechanism (10, 20) is obtained by subtracting from the second position measured by the visual sensor (30) when the positioning process is completed and coordinate-converted by the coordinate converter (41). A control system (1), comprising: a correction unit (46) for correcting the calibration parameter based on a data set indicating the coordinates of the third position.

(構成2)
前記補正部(46)は、前記第1位置を前記第3位置に変換するための変換パラメータを前記キャリブレーションパラメータに乗ずることにより、前記キャリブレーションパラメータを補正する、構成1に記載の制御システム(1)。
(Configuration 2)
The control system according to Configuration 1, wherein the correction unit (46) corrects the calibration parameter by multiplying the calibration parameter by a conversion parameter for converting the first position to the third position. 1).

(構成3)
前記補正部(46)は、前記第1位置を前記第1位置と前記第3位置とを結ぶ線分上の第4位置に変換するための変換パラメータを前記キャリブレーションパラメータに乗ずることにより、前記キャリブレーションパラメータを補正する、構成1に記載の制御システム(1)。
(Configuration 3)
The correction unit (46) multiplies the calibration parameter by a conversion parameter for converting the first position into a fourth position on a line segment connecting the first position and the third position. The control system (1) according to Configuration 1, which corrects calibration parameters.

(構成4)
前記キャリブレーションパラメータは、前記第1座標系と前記第2座標系との間の回転および倍率の変換量を規定する第1〜第4パラメータを含み、
前記補正部(46)は、少なくとも4回の前記位置決め処理からそれぞれ得られる少なくとも4つのデータセットを用いて、前記第1〜第4パラメータを補正する、構成1から3のいずれかに記載の制御システム(1)。
(Configuration 4)
The calibration parameters include first to fourth parameters that define the amount of rotation and magnification conversion between the first coordinate system and the second coordinate system,
The control according to any one of configurations 1 to 3, wherein the correction unit (46) corrects the first to fourth parameters by using at least four data sets respectively obtained from at least four positioning processes. System (1).

(構成5)
前記少なくとも4つのデータセットは、第1〜第4データセットを含み、
前記第1データセットに対応する前記第1位置から前記第3位置への第1ベクトルと、前記第2データセットに対応する前記第1位置から前記第3位置への第2ベクトルと、前記第3データセットに対応する前記第1位置から前記第3位置への第3ベクトルと、前記第4データセットに対応する前記第1位置から前記第3位置への第4ベクトルとから選択される2つのベクトルは一次独立である、構成4に記載の制御システム(1)。
(Configuration 5)
The at least four data sets include first to fourth data sets;
A first vector from the first position to the third position corresponding to the first data set; a second vector from the first position to the third position corresponding to the second data set; 2 selected from the third vector from the first position to the third position corresponding to three data sets and the fourth vector from the first position to the third position corresponding to the fourth data set. Control system (1) according to configuration 4, wherein the two vectors are linearly independent.

(構成6)
前記補正部(46)は、前記第1〜第4データセットをこの順に取得する取得処理を実行し、前記第1データセットを取得してから前記第4データセットを取得するまでの時間が規定時間内である場合に、当該第1〜第4データセットに基づいて前記キャリブレーションパラメータを補正し、前記第1データセットを取得してから前記第4データセットを取得するまでの時間が前記規定時間を超える場合に、当該第1〜第4データセットを破棄して、再度前記取得処理を行なう、構成5に記載の制御システム(1)。
(Configuration 6)
The correction unit (46) executes an acquisition process for acquiring the first to fourth data sets in this order, and defines a time from acquiring the first data set to acquiring the fourth data set. If it is within the time, the calibration parameter is corrected based on the first to fourth data sets, and the time from when the first data set is acquired until the fourth data set is acquired is defined as The control system (1) according to Configuration 5, wherein when the time is exceeded, the first to fourth data sets are discarded and the acquisition process is performed again.

(構成7)
前記第1〜第4ベクトルは、第1条件および第2条件を満たし、
前記第1条件は、前記第1〜第4ベクトルの長さが規定長さ以上であるという条件であり、
前記第2条件は、前記第2ベクトルと前記第1ベクトルとのなす角度が第1規定角度範囲内であり、前記第3ベクトルと前記第1ベクトルまたは前記第2ベクトルとのなす角度が第2規定角度範囲内であり、前記第4ベクトルと前記第1〜第3ベクトルのいずれか1つとのなす角度とが第3規定角度範囲内であるという条件である、構成6に記載の制御システム(1)。
(Configuration 7)
The first to fourth vectors satisfy the first condition and the second condition,
The first condition is a condition that a length of the first to fourth vectors is not less than a specified length,
The second condition is that an angle formed between the second vector and the first vector is within a first specified angle range, and an angle formed between the third vector and the first vector or the second vector is a second value. The control system according to Configuration 6, wherein the control system is within a specified angle range, and is a condition that an angle formed between the fourth vector and any one of the first to third vectors is within a third specified angle range ( 1).

(構成8)
前記キャリブレーションパラメータは、前記第1座標系から前記第2座標系への並進、回転および拡大縮小の変換量を規定し、
前記補正部(46)は、補正前の前記キャリブレーションパラメータを用いたときの前記変換量と補正後の前記キャリブレーションパラメータを用いたときの前記変換量との偏差が規定値を超える場合、前記キャリブレーションパラメータを補正しない、構成1に記載の制御システム(1)。
(Configuration 8)
The calibration parameter defines translation, rotation, and scaling conversion amounts from the first coordinate system to the second coordinate system;
When the deviation between the conversion amount when using the calibration parameter before correction and the conversion amount when using the calibration parameter after correction exceeds a specified value, the correction unit (46) The control system (1) according to configuration 1, wherein calibration parameters are not corrected.

(構成9)
前記補正部(46)は、補正後の前記キャリブレーションパラメータを用いた前記フィードバック制御により前記位置決め処理を完了するのに要する時間が補正前の前記キャリブレーションパラメータを用いた前記フィードバック制御により前記位置決め処理を完了するのに要する時間よりも長い場合、前記キャリブレーションパラメータを補正前の状態に戻す、構成1に記載の制御システム(1)。
(Configuration 9)
The correction unit (46) performs the positioning process by the feedback control using the calibration parameter before correction by the time required to complete the positioning process by the feedback control using the calibration parameter after correction. The control system (1) according to the configuration 1, wherein the calibration parameter is returned to a state before correction when longer than a time required to complete the calibration.

(構成10)
前記補正部(46)は、前記移動機構(10,20)からの位置関連情報に基づいて前記移動機構(10,20)の異常の有無を判定し、前記移動機構(10,20)に異常が無いと判定した場合に、前記キャリブレーションパラメータを補正し、前記移動機構(10,20)に異常が有ると判定した場合に、前記キャリブレーションパラメータを補正しない、構成1に記載の制御システム(1)。
(Configuration 10)
The correction unit (46) determines whether or not the moving mechanism (10, 20) is abnormal based on position-related information from the moving mechanism (10, 20), and the moving mechanism (10, 20) is abnormal. The control system according to Configuration 1, wherein the calibration parameter is corrected when it is determined that there is no error, and the calibration parameter is not corrected when it is determined that the moving mechanism (10, 20) is abnormal. 1).

(構成11)
対象物(W)の位置決め処理を行なう制御システム(1)の制御方法であって、
前記制御システム(1)は、
前記対象物(W)を撮像し、前記対象物(W)の位置を計測するための視覚センサ(30)と、
前記対象物(W)を移動させるための移動機構(10,20)とを備え、
前記制御方法は、
前記視覚センサ(30)の第1座標系を前記移動機構(10,20)の第2座標系に変換するためのキャリブレーションパラメータを用いて、前記視覚センサ(30)によって計測された位置の座標変換を行なうステップと、
前記座標変換された位置が目標位置に近づくように前記移動機構(10,20)に対するフィードバック制御を行なうステップと、
前記位置決め処理を開始するときに前記視覚センサ(30)によって計測され、前記座標変換が行なわれた第1位置の座標と、前記位置決め処理を開始してから完了するまでの前記移動機構(10,20)の移動量を、前記位置決め処理を完了するときに前記視覚センサ(30)によって計測され、前記座標変換が行なわれた第2位置から差し引くことにより得られる第3位置の座標とを示すデータセットに基づいて、前記キャリブレーションパラメータを補正するステップとを備える、制御方法。
(Configuration 11)
A control method of a control system (1) for performing positioning processing of an object (W),
The control system (1)
A visual sensor (30) for imaging the object (W) and measuring the position of the object (W);
A moving mechanism (10, 20) for moving the object (W),
The control method is:
The coordinates of the position measured by the visual sensor (30) using the calibration parameters for converting the first coordinate system of the visual sensor (30) to the second coordinate system of the moving mechanism (10, 20). A step of performing the conversion;
Performing feedback control on the moving mechanism (10, 20) so that the coordinate-converted position approaches a target position;
The coordinates of the first position measured by the visual sensor (30) when the positioning process is started and subjected to the coordinate conversion, and the moving mechanism (10,) from the start to the completion of the positioning process. 20) data indicating the third position coordinates obtained by subtracting the movement amount of 20) by the visual sensor (30) when the positioning process is completed and subtracting from the second position on which the coordinate transformation has been performed. Correcting the calibration parameter based on the set.

(構成12)
対象物(W)の位置決め処理を行なう制御システム(1)における制御方法をコンピュータに実行させるためのプログラムであって、
前記制御システム(1)は、
前記対象物(W)を撮像し、前記対象物(W)の位置を計測するための視覚センサ(30)と、
前記対象物(W)を移動させるための移動機構(10,20)とを備え、
前記制御方法は、
前記視覚センサ(30)の第1座標系を前記移動機構(10,20)の第2座標系に変換するためのキャリブレーションパラメータを用いて、前記視覚センサ(30)によって計測された位置の座標変換を行なうステップと、
前記座標変換された位置が目標位置に近づくように前記移動機構(10,20)に対するフィードバック制御を行なうステップと、
前記位置決め処理を開始するときに前記視覚センサ(30)によって計測され、前記座標変換が行なわれた第1位置の座標と、前記位置決め処理を開始してから完了するまでの前記移動機構(10,20)の移動量を、前記位置決め処理を完了するときに前記視覚センサ(30)によって計測され、前記座標変換が行なわれた第2位置から差し引くことにより得られる第3位置の座標とを示すデータセットに基づいて、前記キャリブレーションパラメータを補正するステップとを備える、プログラム。
(Configuration 12)
A program for causing a computer to execute a control method in a control system (1) for performing positioning processing of an object (W),
The control system (1)
A visual sensor (30) for imaging the object (W) and measuring the position of the object (W);
A moving mechanism (10, 20) for moving the object (W),
The control method is:
The coordinates of the position measured by the visual sensor (30) using the calibration parameters for converting the first coordinate system of the visual sensor (30) to the second coordinate system of the moving mechanism (10, 20). A step of performing the conversion;
Performing feedback control on the moving mechanism (10, 20) so that the coordinate-converted position approaches a target position;
The coordinates of the first position measured by the visual sensor (30) when the positioning process is started and subjected to the coordinate conversion, and the moving mechanism (10,) from the start to the completion of the positioning process. 20) data indicating the third position coordinates obtained by subtracting the movement amount of 20) by the visual sensor (30) when the positioning process is completed and subtracting from the second position on which the coordinate transformation has been performed. Correcting the calibration parameter based on the set.

今回開示された各実施の形態は全ての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内での全ての変更が含まれることが意図される。また、実施の形態および各変形例において説明された発明は、可能な限り、単独でも、組合せても、実施することが意図される。   Each embodiment disclosed this time must be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims. In addition, the invention described in the embodiment and each modification is intended to be implemented alone or in combination as much as possible.

1 制御システム、10 ステージ装置、11 Xステージ、12,14,16 サーボモータ、13 Yステージ、15 θステージ、20,22,24,26 サーボドライバ、30 視覚センサ、31 撮像部、32 画像処理部、40 コントローラ、41 座標変換部、42 フィードバック制御部、43 位置決定部、44 減算部、45 PID演算部、46 補正部、50,51 記録媒体、50m,50n,60m,60n マーク、70 表示部、310,412 プロセッサ、312 RAM、314 表示コントローラ、316 システムコントローラ、318 I/Oコントローラ、320 ハードディスク、322 カメラインターフェイス、324 入力インターフェイス、326 コントローラインターフェイス、328,417 通信インターフェイス、330,416 メモリカードインターフェイス、334 キーボード、410 主制御ユニット、411 チップセット、413 不揮発性メモリ、414 主メモリ、415 システムクロック、418 内部バスコントローラ、419 内部バス、422,424,426 サーボユニット、430 制御プログラム、481 バッファメモリ、482 制御回路、483 内部バス制御回路、W 対象ワーク、W0 基準ワーク。   DESCRIPTION OF SYMBOLS 1 Control system, 10 stage apparatus, 11 X stage, 12, 14, 16 Servo motor, 13 Y stage, 15 (theta) stage, 20, 22, 24, 26 Servo driver, 30 Visual sensor, 31 Imaging part, 32 Image processing part , 40 controller, 41 coordinate conversion unit, 42 feedback control unit, 43 position determination unit, 44 subtraction unit, 45 PID calculation unit, 46 correction unit, 50, 51 recording medium, 50 m, 50 n, 60 m, 60 n mark, 70 display unit , 310, 412 processor, 312 RAM, 314 display controller, 316 system controller, 318 I / O controller, 320 hard disk, 322 camera interface, 324 input interface, 326 controller interface, 328, 41 Communication interface, 330, 416 Memory card interface, 334 Keyboard, 410 Main control unit, 411 Chipset, 413 Non-volatile memory, 414 Main memory, 415 System clock, 418 Internal bus controller, 419 Internal bus, 422, 424, 426 Servo Unit, 430 Control program, 481 Buffer memory, 482 Control circuit, 483 Internal bus control circuit, W target work, W0 standard work.

Claims (12)

対象物の位置決め処理を行なう制御システムであって、
前記対象物を撮像して、前記対象物の位置を計測するための視覚センサと、
前記対象物を移動させるための移動機構と、
前記視覚センサの第1座標系を前記移動機構の第2座標系に変換するためのキャリブレーションパラメータを用いて、前記視覚センサによって計測された位置の座標変換を行なう座標変換部と、
前記座標変換部によって座標変換された位置が目標位置に近づくように前記移動機構に対するフィードバック制御を行なうためのフィードバック制御部と、
前記位置決め処理を開始するときに前記視覚センサによって計測され、前記座標変換部により座標変換された第1位置の座標と、前記位置決め処理を開始してから完了するまでの前記移動機構の移動量を、前記位置決め処理を完了するときに前記視覚センサによって計測され、前記座標変換部により座標変換された第2位置から差し引くことにより得られる第3位置の座標とを示すデータセットに基づいて、前記キャリブレーションパラメータを補正するための補正部とを備える、制御システム。
A control system for performing positioning processing of an object,
A visual sensor for imaging the object and measuring the position of the object;
A moving mechanism for moving the object;
A coordinate conversion unit that performs coordinate conversion of the position measured by the visual sensor using a calibration parameter for converting the first coordinate system of the visual sensor to the second coordinate system of the moving mechanism;
A feedback control unit for performing feedback control on the moving mechanism so that the position transformed by the coordinate transformation unit approaches a target position;
The coordinates of the first position measured by the visual sensor when the positioning process is started and coordinate-converted by the coordinate conversion unit, and the movement amount of the moving mechanism from the start to the completion of the positioning process are shown. The calibration is based on a data set indicating the coordinates of the third position obtained by subtracting from the second position measured by the visual sensor when the positioning process is completed and transformed by the coordinate transformation unit. And a correction unit for correcting the operation parameter.
前記補正部は、前記第1位置を前記第3位置に変換するための変換パラメータを前記キャリブレーションパラメータに乗ずることにより、前記キャリブレーションパラメータを補正する、請求項1に記載の制御システム。   The control system according to claim 1, wherein the correction unit corrects the calibration parameter by multiplying the calibration parameter by a conversion parameter for converting the first position to the third position. 前記補正部は、前記第1位置を前記第1位置と前記第3位置とを結ぶ線分上の第4位置に変換するための変換パラメータを前記キャリブレーションパラメータに乗ずることにより、前記キャリブレーションパラメータを補正する、請求項1に記載の制御システム。   The correction unit multiplies the calibration parameter by a conversion parameter for converting the first position into a fourth position on a line segment connecting the first position and the third position, thereby obtaining the calibration parameter. The control system according to claim 1, wherein: 前記キャリブレーションパラメータは、前記第1座標系と前記第2座標系との間の回転および倍率の変換量を規定する第1〜第4パラメータを含み、
前記補正部は、少なくとも4回の前記位置決め処理からそれぞれ得られる少なくとも4つのデータセットを用いて、前記第1〜第4パラメータを補正する、請求項1から3のいずれか1項に記載の制御システム。
The calibration parameters include first to fourth parameters that define the amount of rotation and magnification conversion between the first coordinate system and the second coordinate system,
4. The control according to claim 1, wherein the correction unit corrects the first to fourth parameters by using at least four data sets respectively obtained from at least four positioning processes. 5. system.
前記少なくとも4つのデータセットは、第1〜第4データセットを含み、
前記第1データセットに対応する前記第1位置から前記第3位置への第1ベクトルと、前記第2データセットに対応する前記第1位置から前記第3位置への第2ベクトルと、前記第3データセットに対応する前記第1位置から前記第3位置への第3ベクトルと、前記第4データセットに対応する前記第1位置から前記第3位置への第4ベクトルとから選択される2つのベクトルは一次独立である、請求項4に記載の制御システム。
The at least four data sets include first to fourth data sets;
A first vector from the first position to the third position corresponding to the first data set; a second vector from the first position to the third position corresponding to the second data set; 2 selected from the third vector from the first position to the third position corresponding to three data sets and the fourth vector from the first position to the third position corresponding to the fourth data set. The control system of claim 4, wherein the two vectors are linearly independent.
前記補正部は、前記第1〜第4データセットをこの順に取得する取得処理を実行し、前記第1データセットを取得してから前記第4データセットを取得するまでの時間が規定時間内である場合に、当該第1〜第4データセットに基づいて前記キャリブレーションパラメータを補正し、前記第1データセットを取得してから前記第4データセットを取得するまでの時間が前記規定時間を超える場合に、当該第1〜第4データセットを破棄して、再度前記取得処理を行なう、請求項5に記載の制御システム。   The correction unit executes an acquisition process for acquiring the first to fourth data sets in this order, and the time from acquiring the first data set to acquiring the fourth data set is within a specified time. In some cases, the calibration parameter is corrected based on the first to fourth data sets, and the time from when the first data set is acquired until the fourth data set is acquired exceeds the specified time. In this case, the control system according to claim 5, wherein the first to fourth data sets are discarded and the acquisition process is performed again. 前記第1〜第4ベクトルは、第1条件および第2条件を満たし、
前記第1条件は、前記第1〜第4ベクトルの長さが規定長さ以上であるという条件であり、
前記第2条件は、前記第2ベクトルと前記第1ベクトルとのなす角度が第1規定角度範囲内であり、前記第3ベクトルと前記第1ベクトルまたは前記第2ベクトルとのなす角度が第2規定角度範囲内であり、前記第4ベクトルと前記第1〜第3ベクトルのいずれか1つとのなす角度とが第3規定角度範囲内であるという条件である、請求項6に記載の制御システム。
The first to fourth vectors satisfy the first condition and the second condition,
The first condition is a condition that a length of the first to fourth vectors is not less than a specified length,
The second condition is that an angle formed between the second vector and the first vector is within a first specified angle range, and an angle formed between the third vector and the first vector or the second vector is a second value. 7. The control system according to claim 6, wherein the control system is within a specified angle range, and a condition that an angle formed by the fourth vector and any one of the first to third vectors is within a third specified angle range. .
前記キャリブレーションパラメータは、前記第1座標系から前記第2座標系への並進、回転および拡大縮小の変換量を規定し、
前記補正部は、補正前の前記キャリブレーションパラメータを用いたときの前記変換量と補正後の前記キャリブレーションパラメータを用いたときの前記変換量との偏差が規定値を超える場合、前記キャリブレーションパラメータを補正しない、請求項1に記載の制御システム。
The calibration parameter defines translation, rotation, and scaling conversion amounts from the first coordinate system to the second coordinate system;
When the deviation between the conversion amount when using the calibration parameter before correction and the conversion amount when using the calibration parameter after correction exceeds a specified value, the correction unit The control system according to claim 1, wherein the control system is not corrected.
前記補正部は、補正後の前記キャリブレーションパラメータを用いた前記フィードバック制御により前記位置決め処理を完了するのに要する時間が補正前の前記キャリブレーションパラメータを用いた前記フィードバック制御により前記位置決め処理を完了するのに要する時間よりも長い場合、前記キャリブレーションパラメータを補正前の状態に戻す、請求項1に記載の制御システム。   The correction unit completes the positioning process by the feedback control using the calibration parameter before correction by the time required to complete the positioning process by the feedback control using the calibration parameter after correction. 2. The control system according to claim 1, wherein when the time required for the calibration is longer, the calibration parameter is returned to a state before correction. 前記補正部は、前記移動機構からの位置関連情報に基づいて前記移動機構の異常の有無を判定し、前記移動機構に異常が無いと判定した場合に、前記キャリブレーションパラメータを補正し、前記移動機構に異常が有ると判定した場合に、前記キャリブレーションパラメータを補正しない、請求項1に記載の制御システム。   The correction unit determines whether there is an abnormality in the movement mechanism based on position-related information from the movement mechanism, and corrects the calibration parameter when determining that the movement mechanism has no abnormality. The control system according to claim 1, wherein the calibration parameter is not corrected when it is determined that there is an abnormality in the mechanism. 対象物の位置決め処理を行なう制御システムの制御方法であって、
前記制御システムは、
前記対象物を撮像して、前記対象物の位置を計測するための視覚センサと、
前記対象物を移動させるための移動機構とを備え、
前記制御方法は、
前記視覚センサの第1座標系を前記移動機構の第2座標系に変換するためのキャリブレーションパラメータを用いて、前記視覚センサによって計測された位置の座標変換を行なうステップと、
前記座標変換された位置が目標位置に近づくように前記移動機構に対するフィードバック制御を行なうステップと、
前記位置決め処理を開始するときに前記視覚センサによって計測され、前記座標変換が行なわれた第1位置の座標と、前記位置決め処理を開始してから完了するまでの前記移動機構の移動量を、前記位置決め処理を完了するときに前記視覚センサによって計測され、前記座標変換が行なわれた第2位置から差し引くことにより得られる第3位置の座標とを示すデータセットに基づいて、前記キャリブレーションパラメータを補正するステップとを備える、制御方法。
A control method of a control system that performs positioning processing of an object,
The control system is
A visual sensor for imaging the object and measuring the position of the object;
A moving mechanism for moving the object,
The control method is:
Performing coordinate conversion of the position measured by the visual sensor using a calibration parameter for converting the first coordinate system of the visual sensor to the second coordinate system of the moving mechanism;
Performing feedback control on the moving mechanism so that the coordinate-converted position approaches a target position;
The coordinates of the first position measured by the visual sensor when the positioning process is started and subjected to the coordinate conversion, and the movement amount of the moving mechanism from the start to the completion of the positioning process, The calibration parameter is corrected based on a data set that is measured by the visual sensor when completing the positioning process and indicates the coordinates of the third position obtained by subtracting from the second position on which the coordinate transformation has been performed. A control method.
対象物の位置決め処理を行なう制御システムにおける制御方法をコンピュータに実行させるためのプログラムであって、
前記制御システムは、
前記対象物を撮像して、前記対象物の位置を計測するための視覚センサと、
前記対象物を移動させるための移動機構とを備え、
前記制御方法は、
前記視覚センサの第1座標系を前記移動機構の第2座標系に変換するためのキャリブレーションパラメータを用いて、前記視覚センサによって計測された位置の座標変換を行なうステップと、
前記座標変換された位置が目標位置に近づくように前記移動機構に対するフィードバック制御を行なうステップと、
前記位置決め処理を開始するときに前記視覚センサによって計測され、前記座標変換が行なわれた第1位置の座標と、前記位置決め処理を開始してから完了するまでの前記移動機構の移動量を、前記位置決め処理を完了するときに前記視覚センサによって計測され、前記座標変換が行なわれた第2位置から差し引くことにより得られる第3位置の座標とを示すデータセットに基づいて、前記キャリブレーションパラメータを補正するステップとを備える、プログラム。
A program for causing a computer to execute a control method in a control system for positioning an object,
The control system is
A visual sensor for imaging the object and measuring the position of the object;
A moving mechanism for moving the object,
The control method is:
Performing coordinate conversion of the position measured by the visual sensor using a calibration parameter for converting the first coordinate system of the visual sensor to the second coordinate system of the moving mechanism;
Performing feedback control on the moving mechanism so that the coordinate-converted position approaches a target position;
The coordinates of the first position measured by the visual sensor when the positioning process is started and subjected to the coordinate conversion, and the movement amount of the moving mechanism from the start to the completion of the positioning process, The calibration parameter is corrected based on a data set that is measured by the visual sensor when completing the positioning process and indicates the coordinates of the third position obtained by subtracting from the second position on which the coordinate transformation has been performed. A program comprising the steps of:
JP2018084394A 2018-04-25 2018-04-25 Control systems, control methods and programs Active JP6813000B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2018084394A JP6813000B2 (en) 2018-04-25 2018-04-25 Control systems, control methods and programs
PCT/JP2019/013198 WO2019208074A1 (en) 2018-04-25 2019-03-27 Control system, control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018084394A JP6813000B2 (en) 2018-04-25 2018-04-25 Control systems, control methods and programs

Publications (2)

Publication Number Publication Date
JP2019191003A true JP2019191003A (en) 2019-10-31
JP6813000B2 JP6813000B2 (en) 2021-01-13

Family

ID=68295176

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018084394A Active JP6813000B2 (en) 2018-04-25 2018-04-25 Control systems, control methods and programs

Country Status (2)

Country Link
JP (1) JP6813000B2 (en)
WO (1) WO2019208074A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111768441A (en) * 2020-06-29 2020-10-13 广东省航空航天装备技术研究所 Method and system for monitoring traveling process of columnar object and computer equipment
JP2021128112A (en) * 2020-02-17 2021-09-02 株式会社Ihiエアロスペース Parameter acquisition device and parameter acquisition method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011238097A (en) * 2010-05-12 2011-11-24 I-Deal Co Ltd Calibration method of positioning device, positioning device and computer program therefor
JP2015174171A (en) * 2014-03-14 2015-10-05 オムロン株式会社 robot control device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4690476B2 (en) * 2009-03-31 2011-06-01 アイシン精機株式会社 Car camera calibration system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011238097A (en) * 2010-05-12 2011-11-24 I-Deal Co Ltd Calibration method of positioning device, positioning device and computer program therefor
JP2015174171A (en) * 2014-03-14 2015-10-05 オムロン株式会社 robot control device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021128112A (en) * 2020-02-17 2021-09-02 株式会社Ihiエアロスペース Parameter acquisition device and parameter acquisition method
JP7470521B2 (en) 2020-02-17 2024-04-18 株式会社Ihiエアロスペース Parameter acquisition device and parameter acquisition method
CN111768441A (en) * 2020-06-29 2020-10-13 广东省航空航天装备技术研究所 Method and system for monitoring traveling process of columnar object and computer equipment

Also Published As

Publication number Publication date
JP6813000B2 (en) 2021-01-13
WO2019208074A1 (en) 2019-10-31

Similar Documents

Publication Publication Date Title
JP7326911B2 (en) Control system and control method
JP6331517B2 (en) Image processing apparatus, system, image processing method, and image processing program
JP7078894B2 (en) Control systems, controls, image processing devices and programs
JP6298026B2 (en) Deflection measurement system for measuring the deflection of articulated robots
JP2020078859A (en) Robot device
WO2019208074A1 (en) Control system, control method, and program
JP7143643B2 (en) Positioning system, monitoring device, monitoring method and program
JP2018001393A (en) Robot device, robot control method, program and recording medium
CN109531604B (en) Robot control device for performing calibration, measurement system, and calibration method
JP6410411B2 (en) Pattern matching apparatus and pattern matching method
JP7078895B2 (en) Control systems, controls, image processing devices and programs
JP6950631B2 (en) Positioning system, control methods and programs
JP2020134242A (en) Measuring method, measuring device and program
JP7003454B2 (en) Control device, position control system, position control method, and position control program
JP2005186193A (en) Calibration method and three-dimensional position measuring method for robot
JP7020262B2 (en) Control systems, control methods and programs
JP7172151B2 (en) Control systems, controllers and programs
JPH0882505A (en) Calibration method of camera parameter and measuring method of object position
JP7215308B2 (en) Material testing machine and control method for material testing machine
JP7450195B2 (en) Position analysis device and method, and camera system
KR100784734B1 (en) Error compensation method for the elliptical trajectory of industrial robot
JP3028789B2 (en) Recognition resolution measuring method and bonding device
JP2023011467A (en) Calibration method, and calibration system for calibrating conveyor tracking information and computer program
TWM510211U (en) Thermal deformation compensation system for feed shaft of machine tool
JPH08237541A (en) Image processor with camera shake correcting function

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200901

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200916

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20201117

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201130

R150 Certificate of patent or registration of utility model

Ref document number: 6813000

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250