JP2019215634A - Control system, control unit, and program - Google Patents

Control system, control unit, and program Download PDF

Info

Publication number
JP2019215634A
JP2019215634A JP2018111386A JP2018111386A JP2019215634A JP 2019215634 A JP2019215634 A JP 2019215634A JP 2018111386 A JP2018111386 A JP 2018111386A JP 2018111386 A JP2018111386 A JP 2018111386A JP 2019215634 A JP2019215634 A JP 2019215634A
Authority
JP
Japan
Prior art keywords
imaging
movement
timing
image
visual sensor
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
JP2018111386A
Other languages
Japanese (ja)
Other versions
JP7172151B2 (en
Inventor
佳英 山本
Yoshihide Yamamoto
佳英 山本
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 JP2018111386A priority Critical patent/JP7172151B2/en
Priority to CN201910384145.9A priority patent/CN110581944B/en
Publication of JP2019215634A publication Critical patent/JP2019215634A/en
Application granted granted Critical
Publication of JP7172151B2 publication Critical patent/JP7172151B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0246Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means
    • G05D1/0253Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means extracting relative motion information from a plurality of images taken successively, e.g. visual odometry, optical flow
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction
    • H04N23/684Vibration or motion blur correction performed by controlling the image sensor readout, e.g. by controlling the integration time
    • H04N23/6842Vibration or motion blur correction performed by controlling the image sensor readout, e.g. by controlling the integration time by controlling the scanning position, e.g. windowing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Electromagnetism (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Control Of Position Or Direction (AREA)
  • Image Input (AREA)
  • Image Analysis (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

To provide a control system that can prevent a reduction in the accuracy of determination of the position of an object.SOLUTION: A control system comprises: a visual sensor; a movement control unit; an estimation unit; and an imaging control unit. The estimation unit estimates the speed of movement of a feature portion at a next imaging scheduled timing, on the basis of the latest position of the feature portion specified by the visual sensor from an image picked up at the latest imaging timing, and reference information including at least one of information from a movement mechanism and information generated by the movement control unit. The imaging control unit controls the visual sensor to pick up an image at the imaging scheduled timing when the movement speed is less than a threshold, and not to pick up an image at the imaging scheduled timing when the movement speed exceeds the threshold.SELECTED DRAWING: Figure 6

Description

本技術は、対象物を位置決めするための制御システム、制御装置およびプログラムに関する。   The present technology relates to a control system, a control device, and a program for positioning an object.

FA(ファクトリーオートメーション)において、対象物の位置を目標位置に合わせる技術(位置決め技術)が各種実用化されている。この際、目標位置に対する対象物の位置の偏差を計測する方法として、対象物を撮像することにより得られた画像を用いる方法がある。   In FA (Factory Automation), various technologies (positioning technology) for adjusting the position of an object to a target position have been put to practical use. At this time, as a method of measuring the deviation of the position of the object from the target position, there is a method of using an image obtained by imaging the object.

特開2014−203365号公報(特許文献1)には、対象物の位置を変更する移動機構の移動中に対象物を撮像して画像データを取得し、画像データに含まれる特徴部分の位置に基づいて、対象物を目標位置に位置決めする制御システムが開示されている。   Japanese Patent Laying-Open No. 2014-203365 (Patent Literature 1) discloses that an image of an object is captured while moving a moving mechanism that changes the position of the object, image data is acquired, and the position of a characteristic portion included in the image data is acquired. A control system for positioning an object at a target position based on the object is disclosed.

特開2014−203365号公報JP 2014-203365 A

特許文献1に開示された技術では、移動中の対象物を撮像して得られた画像データを用いて特徴部分の位置が特定されるため、位置決めを高速化できる。しかしながら、移動中の対象物を撮像するため画像ブレが発生する。画像ブレ量が大きい画像を用いて特徴部分の位置を特定する場合、特徴部分の位置精度が低下する。そのため、対象物の位置決め精度が低下する。   According to the technique disclosed in Patent Document 1, the position of the characteristic portion is specified using image data obtained by imaging a moving target, so that the positioning can be speeded up. However, image blur occurs because the moving target is imaged. When the position of the characteristic portion is specified using an image with a large image blur amount, the position accuracy of the characteristic portion is reduced. For this reason, the positioning accuracy of the target object decreases.

本発明は、上記の問題を鑑みてなされたものであり、その目的は、対象物の位置決め精度の低下を抑制できる制御システム、制御装置およびプログラムを提供することである。   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 device, and a program that can suppress a decrease in positioning accuracy of an object.

本開示の一例によれば、対象物を移動させる移動機構を制御して、対象物の位置決めを行なう制御システムは、視覚センサと、移動制御部と、推定部と、撮像制御部とを備える。視覚センサは、対象物を撮像タイミングごとに撮像することにより画像を取得し、当該画像に基づいて、対象物の特徴部分の位置を特定する。移動制御部は、視覚センサによって特定された特徴部分の位置に基づいて、対象物の位置が目標位置に近づくように移動機構を制御する。推定部は、最新の撮像タイミングで撮像された画像から視覚センサによって特定された特徴部分の最新の位置と、移動機構からの情報および移動制御部によって生成される情報の少なくとも一方を含む参照情報とに基づいて、次の撮像予定タイミングにおける特徴部分の移動速度を推定する。撮像制御部は、移動速度が閾値未満である場合に撮像予定タイミングで撮像させ、移動速度が閾値を超える場合に撮像予定タイミングで撮像させないように、視覚センサを制御する。   According to an example of the present disclosure, a control system that controls a moving mechanism that moves an object to position the object includes a visual sensor, a movement control unit, an estimation unit, and an imaging control unit. The visual sensor acquires an image by imaging the object at each imaging timing, and specifies the position of a characteristic portion of the object based on the image. The movement control unit controls the movement mechanism based on the position of the characteristic portion specified by the visual sensor so that the position of the target object approaches the target position. The estimating unit includes the latest position of the characteristic portion specified by the visual sensor from the image captured at the latest imaging timing, and reference information including at least one of the information from the moving mechanism and the information generated by the moving control unit. , The moving speed of the characteristic portion at the next scheduled imaging timing is estimated. The imaging control unit controls the visual sensor so that the imaging is performed at the scheduled imaging timing when the moving speed is lower than the threshold, and is not performed at the scheduled imaging timing when the moving speed exceeds the threshold.

この開示によれば、画像ブレ量の大きい画像の撮像を回避することができ、当該画像による位置決め精度の低下を抑制できる。   According to the present disclosure, it is possible to avoid capturing an image having a large image blurring amount, and to suppress a decrease in positioning accuracy due to the image.

本開示の一例によれば、移動機構は、対象物を移動させるために駆動されるモータを含む。参照情報は、最新の撮像タイミングからのモータの駆動量を示す情報を含む。   According to an example of the present disclosure, the moving mechanism includes a motor driven to move the object. The reference information includes information indicating the driving amount of the motor from the latest imaging timing.

最新の撮像タイミングからのモータの駆動量を示す情報は、最新の撮像タイミングからの移動機構の移動量を直接的に示す。そのため、この開示によれば、推定部は、特徴部分の移動速度を精度良く推定することができる。   The information indicating the driving amount of the motor from the latest imaging timing directly indicates the moving amount of the moving mechanism from the latest imaging timing. Therefore, according to this disclosure, the estimating unit can accurately estimate the moving speed of the characteristic portion.

本開示の一例によれば、移動制御部は、制御周期ごとに移動機構に対する移動指令を生成する。参照情報は、最新の撮像タイミング以降に移動制御部によって生成された移動指令を示す情報を含む。   According to an example of the present disclosure, the movement control unit generates a movement command for the movement mechanism in each control cycle. The reference information includes information indicating a movement command generated by the movement control unit after the latest imaging timing.

移動指令は、移動機構を移動させるための指令であり、移動機構の移動に直接的に関係する。そのため、この開示によれば、推定部は、特徴部分の移動速度を精度良く推定することができる。   The movement command is a command for moving the moving mechanism, and is directly related to the movement of the moving mechanism. Therefore, according to this disclosure, the estimating unit can accurately estimate the moving speed of the characteristic portion.

本開示の一例によれば、移動制御部は、最新の位置に基づいて移動機構の目標軌道を決定し、決定した目標軌道に従って移動するように移動機構を制御する。参照情報は、目標軌道を示す情報を含む。   According to an example of the present disclosure, the movement control unit determines the target trajectory of the moving mechanism based on the latest position, and controls the moving mechanism to move according to the determined target trajectory. The reference information includes information indicating the target trajectory.

目標軌道は、移動機構が移動すべき軌道を示し、移動機構の移動に直接的に関係する。そのため、この開示によれば、推定部は、特徴部分の移動速度を精度良く推定することができる。   The target trajectory indicates a trajectory to be moved by the moving mechanism, and is directly related to the movement of the moving mechanism. Therefore, according to this disclosure, the estimating unit can accurately estimate the moving speed of the characteristic portion.

本開示の一例によれば、制御装置は、対象物を移動させる移動機構と、対象物を撮像することにより画像を取得し、当該画像に基づいて、対象物の特徴部分の位置を特定するための視覚センサとを制御して、対象物の位置決めを行なう。制御装置は、移動制御部と、推定部と、撮像制御部とを備える。移動制御部は、視覚センサによって特定された特徴部分の位置に基づいて、対象物の位置が目標位置に近づくように移動機構を制御する。推定部は、最新の撮像タイミングで撮像された画像から視覚センサによって特定された特徴部分の最新の位置と、移動機構からの情報および移動制御部によって生成される情報の少なくとも一方を含む参照情報とに基づいて、次の撮像予定タイミングにおける特徴部分の移動速度を推定する。撮像制御部は、移動速度が閾値未満である場合に撮像予定タイミングで撮像させ、移動速度が閾値を超える場合に撮像予定タイミングで撮像させないように、視覚センサを制御する。   According to an example of the present disclosure, the control device obtains an image by capturing an image of the moving object that moves the object, and identifies a position of a characteristic portion of the object based on the image. The visual sensor is controlled to position the object. The control device includes a movement control unit, an estimation unit, and an imaging control unit. The movement control unit controls the movement mechanism based on the position of the characteristic portion specified by the visual sensor so that the position of the target object approaches the target position. The estimating unit includes the latest position of the characteristic portion specified by the visual sensor from the image captured at the latest imaging timing, and reference information including at least one of the information from the moving mechanism and the information generated by the moving control unit. , The moving speed of the characteristic portion at the next scheduled imaging timing is estimated. The imaging control unit controls the visual sensor so that the imaging is performed at the scheduled imaging timing when the moving speed is lower than the threshold, and is not performed at the scheduled imaging timing when the moving speed exceeds the threshold.

本開示の一例によれば、対象物を移動させる移動機構を制御して、対象物の位置決めを行なう制御システムをサポートするためのプログラムは、コンピュータに、第1〜第3のステップを実行させる。制御システムは、対象物を撮像することにより画像を取得し、当該画像に基づいて、対象物の特徴部分の位置を特定するための視覚センサを備える。第1のステップは、視覚センサによって特定された特徴部分の位置に基づいて、対象物の位置が目標位置に近づくように移動機構を制御するステップである。第2のステップは、最新の撮像タイミングで撮像された画像から視覚センサによって特定された特徴部分の最新の位置と、移動機構からの情報および制御するステップによって生成される情報の少なくとも一方を含む参照情報とに基づいて、次の撮像予定タイミングにおける特徴部分の移動速度を推定するステップである。第3のステップは、移動速度が閾値未満である場合に撮像予定タイミングで撮像させ、移動速度が閾値を超える場合に撮像予定タイミングで撮像させないように、視覚センサを制御するステップである。   According to an example of the present disclosure, a program for controlling a moving mechanism that moves an object and supporting a control system that positions the object causes a computer to execute first to third steps. The control system includes a visual sensor for acquiring an image by capturing an image of the object, and identifying a position of a characteristic portion of the object based on the image. The first step is a step of controlling the moving mechanism based on the position of the characteristic portion specified by the visual sensor so that the position of the target object approaches the target position. The second step is a reference including at least one of the latest position of the characteristic portion specified by the visual sensor from the image captured at the latest imaging timing, information from the moving mechanism, and information generated by the controlling step. This is a step of estimating the moving speed of the characteristic portion at the next scheduled imaging timing based on the information. The third step is a step of controlling the visual sensor so that the image is captured at the scheduled imaging timing when the moving speed is lower than the threshold, and not captured at the scheduled imaging timing when the moving speed exceeds the threshold.

これらの開示によって、画像ブレ量の大きい画像の撮像を回避することができ、当該画像による位置決め精度の低下を抑制できる。   According to these disclosures, it is possible to avoid capturing an image having a large image blurring amount, and to suppress a decrease in positioning accuracy due to the image.

本発明によれば、対象物の位置決め精度の低下を抑制できる。   ADVANTAGE OF THE INVENTION According to this invention, the fall of the positioning accuracy of an object can be suppressed.

本実施の形態に係る制御システムの全体構成を示す模式図である。FIG. 1 is a schematic diagram illustrating an overall configuration of a control system according to the present embodiment. 本実施の形態に係る制御システムを構成する画像処理装置のハードウェア構成を示す模式図である。FIG. 2 is a schematic diagram illustrating a hardware configuration of an image processing apparatus included in the control system according to the present embodiment. 実施の形態に係る制御システムを構成するモーションコントローラのハードウェア構成を示す模式図である。FIG. 2 is a schematic diagram illustrating a hardware configuration of a motion controller included in the control system according to the embodiment. 図1に示される制御システムの機能構成を示すブロック図である。FIG. 2 is a block diagram illustrating a functional configuration of the control system illustrated in FIG. 1. 撮像タイミングから第1中間タイミングまでの間のワークの移動量を推定する方法を説明する図である。FIG. 4 is a diagram illustrating a method for estimating a movement amount of a work from an imaging timing to a first intermediate timing. 制御システムの位置決め処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the positioning process of a control system. 移動制御部による移動機構の制御処理の流れの一例を示すフローチャートである。9 is a flowchart illustrating an example of a flow of a control process of a moving mechanism by a movement control unit. 変形例1における移動速度Va,Vbの推定方法を説明する図である。FIG. 9 is a diagram illustrating a method for estimating moving speeds Va and Vb in a first modification. 変形例3に係る制御システム1Aの機能構成を示すブロック図である。FIG. 13 is a block diagram illustrating a functional configuration of a control system 1A according to a third modification. 目標軌道TGX,TGY,TGθの一例を示す図である。It is a figure showing an example of target trajectories TGX, TGY, and TGθ. 目標軌道決定部における処理の流れを示すフローチャートである。9 is a flowchart illustrating a flow of a process in a target trajectory determination unit.

本発明の実施の形態について、図面を参照しながら詳細に説明する。なお、図中の同一または相当部分については、同一符号を付してその説明は繰返さない。   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は、画像処理を用いてアライメントを行う。アライメントは、典型的には、工業製品の製造過程などにおいて、対象物(以下、「ワーク」とも称す)を生産ラインの本来の位置に配置する処理などを意味する。このようなアライメントの一例として、制御システム1は、液晶パネルの生産ラインにおいて、ガラス基板であるワーク2に対する回路パターンの焼付処理前に、露光マスク4に対するワーク2の位置決めを制御する。ワーク2には、予め定められた位置に位置決め用の特徴部分であるマーク5a,5bが設けられている。制御システム1は、ワーク2上に設けられたマーク5a,5bを撮像し、撮像により得られた画像に対して画像処理を行うことで、ワーク2の位置決めを実現する。
§1 Application Example First, an application example of the control system according to the present embodiment will be described. FIG. 1 is a schematic diagram illustrating an overall configuration of a control system 1 according to the present embodiment. The control system 1 shown in FIG. 1 performs alignment using image processing. The alignment typically means a process of arranging an object (hereinafter, also referred to as “work”) at an original position of a production line in a manufacturing process of an industrial product or the like. As an example of such alignment, the control system 1 controls the positioning of the work 2 with respect to the exposure mask 4 before the circuit pattern is printed on the work 2 which is a glass substrate in a liquid crystal panel production line. The workpiece 2 is provided with marks 5a and 5b, which are characteristic portions for positioning, at predetermined positions. The control system 1 captures the marks 5a and 5b provided on the work 2, and performs image processing on the image obtained by the imaging, thereby realizing the positioning of the work 2.

制御システム1は、移動機構100と、ドライバユニット200と、視覚センサ300と、モーションコントローラ400とを備える。   The control system 1 includes a moving mechanism 100, a driver unit 200, a visual sensor 300, and a motion controller 400.

移動機構100は、ワーク2を移動させる。移動機構100は、ワーク2を目標位置に配置できる機構であればどのような自由度のものであってもよい。移動機構100は、たとえば、水平方向の並進移動と回転移動とをワーク2に与えることができるXYθステージである。   The moving mechanism 100 moves the work 2. The moving mechanism 100 may have any degree of freedom as long as the mechanism can arrange the work 2 at the target position. The moving mechanism 100 is, for example, an XYθ stage that can apply horizontal translational movement and rotational movement to the work 2.

図1に示す例の移動機構100は、Xステージ110Xと、Yステージ110Yと、θステージ110θと、サーボモータ120X,120Y,120θとを含む。図1に示す例では、サーボモータ120X,120Y,120θの各々は回転式モータで構成される。サーボモータ120Xは、Xステージ110XをX軸方向に沿って並進駆動する。サーボモータ120Yは、Yステージ110YをY軸方向に沿って並進駆動する。サーボモータ120θは、Z軸に平行な軸を中心にθステージ110θを回転駆動する。   The moving mechanism 100 of the example shown in FIG. 1 includes an X stage 110X, a Y stage 110Y, a θ stage 110θ, and servomotors 120X, 120Y, 120θ. In the example shown in FIG. 1, each of the servomotors 120X, 120Y, and 120θ is constituted by a rotary motor. The servo motor 120X translates and drives the X stage 110X along the X-axis direction. The servo motor 120Y translates and drives the Y stage 110Y along the Y-axis direction. The servo motor 120θ drives the θ stage 110θ to rotate about an axis parallel to the Z axis.

ドライバユニット200は、制御周期Tsごとに受ける移動指令に従って、移動機構100に対するフィードバック制御を行なう。図1に示されるように、ドライバユニット200は、サーボドライバ200X,200Y,200θを含む。サーボドライバ200Xは、Xステージ110Xの移動量が移動指令に近付くように、サーボモータ120Xに対してフィードバック制御を行なう。サーボドライバ200Yは、Yステージ110Yの移動量が移動指令に近付くように、サーボモータ120Yに対してフィードバック制御を行なう。サーボドライバ200θは、θステージ110θの移動量が移動指令に近付くように、サーボモータ120θに対してフィードバック制御を行なう。   Driver unit 200 performs feedback control on moving mechanism 100 according to a moving command received at each control cycle Ts. As shown in FIG. 1, the driver unit 200 includes servo drivers 200X, 200Y, and 200θ. Servo driver 200X performs feedback control on servo motor 120X such that the movement amount of X stage 110X approaches the movement command. The servo driver 200Y performs feedback control on the servomotor 120Y so that the movement amount of the Y stage 110Y approaches the movement command. The servo driver 200θ performs feedback control on the servomotor 120θ so that the movement amount of the θ stage 110θ approaches the movement command.

視覚センサ300は、撮像タイミングごとにワーク2を撮像することにより画像を取得し、当該画像に基づいて、ワーク2のマーク5a,5bの位置を特定する。撮像タイミングは、予め定められた撮像周期Tbによって決定される。視覚センサ300は、1つ以上のカメラ(図1の例では、カメラ302a,302b)と、カメラ302a,302bが撮像した画像に対して画像処理を行なうことにより、画像に含まれるマーク5a,5bの位置を特定する画像処理装置304とを含む。   The visual sensor 300 acquires an image by imaging the work 2 at each imaging timing, and specifies the positions of the marks 5a and 5b of the work 2 based on the image. The imaging timing is determined by a predetermined imaging cycle Tb. The visual sensor 300 performs image processing on one or more cameras (cameras 302a and 302b in the example of FIG. 1) and the images captured by the cameras 302a and 302b, thereby forming marks 5a and 5b included in the images. And an image processing device 304 for specifying the position of the image.

モーションコントローラ400は、たとえばPLC(プログラマブルロジックコントローラ)であり、各種のFA制御を行なう。制御装置であるモーションコントローラ400は、視覚センサ300によって特定されたマーク5a,5bの位置に基づいて、ワーク2の位置が目標位置に近づくように移動機構100を制御する。具体的には、モーションコントローラ400は、制御周期Tsごとに、ワーク2の位置を目標位置に近づけるための移動指令を生成し、生成した移動指令をドライバユニット200に出力する。   The motion controller 400 is, for example, a PLC (programmable logic controller), and performs various FA controls. The motion controller 400, which is a control device, controls the moving mechanism 100 based on the positions of the marks 5a and 5b specified by the visual sensor 300 so that the position of the work 2 approaches the target position. Specifically, the motion controller 400 generates a movement command for bringing the position of the work 2 closer to the target position for each control cycle Ts, and outputs the generated movement command to the driver unit 200.

モーションコントローラ400は、最新の撮像タイミングで撮像された画像から視覚センサ300によって特定されたマーク5a,5bの最新の位置と、移動機構100を制御する際に生成される情報である移動指令とに基づいて、視覚センサ300の次の撮像予定タイミングにおけるマーク5a,5bの移動速度を推定する。   The motion controller 400 converts the latest positions of the marks 5a and 5b specified by the visual sensor 300 from the image captured at the latest imaging timing and a movement command that is information generated when controlling the moving mechanism 100. Based on this, the moving speed of the marks 5a and 5b at the next scheduled imaging timing of the visual sensor 300 is estimated.

モーションコントローラ400は、推定した移動速度が閾値未満である場合に撮像予定タイミングで撮像させ、推定した移動速度が閾値を超える場合に撮像予定タイミングで撮像させないように、視覚センサ300を制御する。   The motion controller 400 controls the visual sensor 300 so that an image is captured at the scheduled imaging timing when the estimated moving speed is lower than the threshold, and not captured at the scheduled imaging timing when the estimated moving speed exceeds the threshold.

これにより、画像ブレ量の大きい画像の撮像を回避することができ、当該画像による位置決め精度の低下を抑制できる。   Accordingly, it is possible to avoid capturing an image having a large image blurring amount, and to suppress a decrease in positioning accuracy due to the image.

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

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

より具体的には、画像処理装置304は、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 device 304 includes a processor 310 such as a CPU (Central Processing Unit) and an MPU (Micro-Processing Unit), a RAM (Random Access Memory) 312, a display controller 314, and a system controller 316. , An I / O (Input Output) controller 318, a hard disk 320, a camera interface 322, an input interface 324, a motion controller interface 326, a communication interface 328, and a memory card interface 330. These units are connected to each other so as to enable data communication with the system controller 316 at the 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 intended arithmetic processing.

システムコントローラ316は、プロセッサ310、RAM312、表示コントローラ314、およびI/Oコントローラ318とそれぞれバスを介して接続されており、各部との間でデータ交換などを行うとともに、画像処理装置304全体の処理を司る。   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, respectively, exchanges data with each unit, and performs processing of the entire image processing apparatus 304. Govern

RAM312は、典型的には、DRAM(Dynamic Random Access Memory)などの揮発性の記憶装置であり、ハードディスク320から読み出されたプログラムや、カメラ302a,302bによって取得された画像(画像データ)、画像に対する処理結果、およびワークデータなどを保持する。   The RAM 312 is typically a volatile storage device such as a DRAM (Dynamic Random Access Memory), and includes programs read from the hard disk 320, images (image data) acquired by the cameras 302a and 302b, images , And the work data, etc. are retained.

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

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

ハードディスク320は、典型的には、不揮発性の磁気記憶装置であり、プロセッサ310で実行される制御プログラム350に加えて、各種設定値などが格納される。このハードディスク320にインストールされる制御プログラム350は、メモリカード336などに格納された状態で流通する。なお、ハードディスク320に代えて、フラッシュメモリなどの半導体記憶装置やDVD−RAM(Digital Versatile Disk Random Access Memory)などの光学記憶装置を採用してもよい。   The hard disk 320 is typically a nonvolatile magnetic storage device, and stores various setting values in addition to the control program 350 executed by the processor 310. The control program 350 installed on the hard disk 320 is distributed while being stored in a memory card 336 or the like. Instead of the hard disk 320, a semiconductor storage device such as a flash memory or an optical storage device such as a DVD-RAM (Digital Versatile Disk Random Access Memory) may be employed.

カメラインターフェイス322は、ワークを撮影することで生成された画像データを受付ける入力部に相当し、プロセッサ310とカメラ302a,302bとの間のデータ伝送を仲介する。カメラインターフェイス322は、カメラ302a,302bからの画像データをそれぞれ一時的に蓄積するための画像バッファ322a,322bを含む。複数のカメラに対して、カメラの間で共有できる単一の画像バッファを設けてもよいが、処理高速化のため、それぞれのカメラに対応付けて独立に複数配置することが好ましい。   The camera interface 322 corresponds to an input unit that receives image data generated by photographing a workpiece, and mediates data transmission between the processor 310 and the cameras 302a and 302b. The camera interface 322 includes image buffers 322a and 322b for temporarily storing image data from the cameras 302a and 302b, respectively. Although a single image buffer that can be shared between cameras may be provided for a plurality of cameras, it is preferable to independently arrange a plurality of cameras in association with each camera in order to speed up processing.

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

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

通信インターフェイス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 is typically made of Ethernet (registered trademark), USB (Universal Serial Bus), or the like.

メモリカードインターフェイス330は、プロセッサ310と記録媒体であるメモリカード336との間のデータ伝送を仲介する。メモリカード336には、画像処理装置304で実行される制御プログラム350などが格納された状態で流通し、メモリカードインターフェイス330は、このメモリカード336から制御プログラムを読み出す。メモリカード336は、SD(Secure Digital)などの汎用的な半導体記憶デバイスや、フレキシブルディスク(Flexible Disk)などの磁気記録媒体や、CD−ROM(Compact Disk Read Only Memory)などの光学記録媒体等からなる。あるいは、通信インターフェイス328を介して、配信サーバなどからダウンロードしたプログラムを画像処理装置304にインストールしてもよい。   The memory card interface 330 mediates data transmission between the processor 310 and the memory card 336 as a recording medium. The memory card 336 distributes the control program 350 executed by the image processing device 304 in a stored state, and the memory card interface 330 reads the control program from the memory card 336. The memory card 336 includes a general-purpose semiconductor storage device such as SD (Secure Digital), a magnetic recording medium such as a flexible disk (Flexible Disk), and 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 image processing device 304 via the communication interface 328.

上述のような汎用的なコンピュータアーキテクチャに従う構造を有するコンピュータを利用する場合には、本実施の形態に係る機能を提供するためのアプリケーションに加えて、コンピュータの基本的な機能を提供するためのOS(Operating System)がインストールされていてもよい。この場合には、本実施の形態に係る制御プログラムは、OSの一部として提供されるプログラムモジュールのうち、必要なモジュールを所定の順序および/またはタイミングで呼び出して処理を実行するものであってもよい。   When using a computer having a structure according to the general-purpose computer architecture as described above, an OS for providing basic functions of the computer in addition to an application for providing functions according to the present embodiment (Operating System) may be installed. In this case, the control program according to the present embodiment executes a process by calling necessary modules in a predetermined order and / or timing among program modules provided as a part of the OS. Is also good.

さらに、本実施の形態に係る制御プログラムは、他のプログラムの一部に組み込まれて提供されるものであってもよい。その場合にも、プログラム自体には、上記のような組み合わせられる他のプログラムに含まれるモジュールを含んでおらず、当該他のプログラムと協働して処理が実行される。すなわち、本実施の形態に係る制御プログラムとしては、このような他のプログラムに組み込まれた形態であってもよい。   Further, the control program according to the present embodiment may be provided by being incorporated in a part of another program. Even in such a case, the program itself does not include a module included in another program to be combined as described above, and the process is executed in cooperation with the other program. That is, the control program according to the present embodiment may be a form incorporated in such another program.

なお、代替的に、制御プログラムの実行により提供される機能の一部もしくは全部を専用のハードウェア回路として実装してもよい。   Alternatively, part or all of the functions provided by executing the control program may be implemented as a dedicated hardware circuit.

<2−2.モーションコントローラのハードウェア構成>
図3は、実施の形態に係る制御システムを構成するモーションコントローラ400のハードウェア構成を示す模式図である。モーションコントローラ400は、チップセット412と、プロセッサ414と、不揮発性メモリ416と、主メモリ418と、システムクロック420と、メモリカードインターフェイス422と、通信インターフェイス428と、内部バスコントローラ430と、フィールドバスコントローラ438とを含む。チップセット412と他のコンポーネントとの間は、各種のバスを介してそれぞれ結合されている。
<2-2. Hardware Configuration of Motion Controller>
FIG. 3 is a schematic diagram illustrating a hardware configuration of the motion controller 400 included in the control system according to the embodiment. The motion controller 400 includes a chipset 412, a processor 414, a nonvolatile memory 416, a main memory 418, a system clock 420, a memory card interface 422, a communication interface 428, an internal bus controller 430, and a field bus controller. 438. The chipset 412 and other components are respectively connected via various buses.

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

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

モーションコントローラ400は、通信手段として、通信インターフェイス428および内部バスコントローラ430を有する。これらの通信回路は、データの送信および受信を行う。   The motion controller 400 has a communication interface 428 and an internal bus controller 430 as communication means. These communication circuits transmit and receive data.

通信インターフェイス428は、画像処理装置304との間でデータを遣り取りする。内部バスコントローラ430は、データの遣り取りを制御する。より具体的には、内部バスコントローラ430は、バッファメモリ436と、DMA(Dynamic Memory Access)制御回路432と、内部バス制御回路434とを含む。   The communication interface 428 exchanges data with the image processing device 304. The internal bus controller 430 controls data exchange. More specifically, the internal bus controller 430 includes a buffer memory 436, a DMA (Dynamic Memory Access) control circuit 432, and an internal bus control circuit 434.

メモリカードインターフェイス422は、モーションコントローラ400に対して着脱可能な記録媒体424とプロセッサ414とを接続する。   The memory card interface 422 connects the recording medium 424 detachable to the motion controller 400 and the processor 414.

フィールドバスコントローラ438は、フィールドネットワークに接続するための通信インターフェイスである。モーションコントローラ400は、フィールドバスコントローラ438を介してサーボドライバ200X,200Y,200θと接続される。当該フィールドネットワークには、たとえば、EtherCAT(登録商標)、EtherNet/IP(登録商標)、CompoNet(登録商標)などが採用される。   The fieldbus controller 438 is a communication interface for connecting to a field network. The motion controller 400 is connected to the servo drivers 200X, 200Y, 200θ via the fieldbus controller 438. For the field network, for example, EtherCAT (registered trademark), EtherNet / IP (registered trademark), CompoNet (registered trademark), or the like is employed.

<2−3.画像処理装置の機能構成>
図4は、図1に示される制御システムの機能構成を示すブロック図である。図4に示されるように、画像処理装置304は、画像取得部32と、位置特定部34とを含む。
<2-3. Functional Configuration of Image Processing Device>
FIG. 4 is a block diagram showing a functional configuration of the control system shown in FIG. As shown in FIG. 4, the image processing device 304 includes an image acquisition unit 32 and a position identification unit 34.

画像取得部32は、モーションコントローラ400から撮像トリガTRを受けると、撮像するようにカメラ302a,302bを制御し、カメラ302a,302bから所定サイズの画像を取得する。   Upon receiving the imaging trigger TR from the motion controller 400, the image acquiring unit 32 controls the cameras 302a and 302b to capture an image, and acquires an image of a predetermined size from the cameras 302a and 302b.

位置特定部34は、カメラ302aによって撮像された画像に含まれるマーク5aの位置(以下、「計測位置PSa」という)を特定する。位置特定部34は、カメラ302bによって撮像された画像に含まれるマーク5bの位置(以下、「計測位置PSb」という)を特定する。位置特定部34は、公知のパターン認識技術を用いて、画像の中からマーク5a,5bを認識し、認識したマーク5a,5bの座標を計測する。当該座標は、カメラ302a,302b各々のローカル座標系で示される。位置特定部34は、特定したマーク5aの計測位置PSaの座標と、特定したマーク5bの計測位置PSbの座標とをモーションコントローラ400に出力する。   The position specifying unit 34 specifies the position of the mark 5a (hereinafter, referred to as “measurement position PSa”) included in the image captured by the camera 302a. The position specifying unit 34 specifies the position of the mark 5b (hereinafter, referred to as “measurement position PSb”) included in the image captured by the camera 302b. The position specifying unit 34 recognizes the marks 5a and 5b from the image using a known pattern recognition technique, and measures the coordinates of the recognized marks 5a and 5b. The coordinates are indicated in the local coordinate system of each of the cameras 302a and 302b. The position specifying unit 34 outputs the coordinates of the measured position PSa of the specified mark 5a and the coordinates of the measured position PSb of the specified mark 5b to the motion controller 400.

<2−4.モーションコントローラの機能構成>
図4に示されるように、モーションコントローラ400は、移動制御部41と、推定部45と、撮像制御部46とを備える。移動制御部41と推定部45と撮像制御部46とは、図3に示すプロセッサ414が制御プログラム440を実行することにより実現される。
<2-4. Functional Configuration of Motion Controller>
As illustrated in FIG. 4, the motion controller 400 includes a movement control unit 41, an estimation unit 45, and an imaging control unit 46. The movement control unit 41, the estimation unit 45, and the imaging control unit 46 are realized by the processor 414 illustrated in FIG.

また、図4に示されるように、移動機構100はエンコーダ130を含む。エンコーダ130は、サーボモータ120X,120Y,120θの移動量に応じたパルス信号をそれぞれ発生する。エンコーダ130は、サーボモータ120Xに対応するパルス信号に含まれるパルス数をカウントすることにより、初期位置からのXステージ110XのX方向の並進移動量をエンコーダ値PVmXとして計測する。パルス数のカウント値と移動量とは、所定の係数によって関係付けられる。そのため、エンコーダ130は、パルス数のカウント値に当該係数を乗ずることにより、移動量を計測できる。同様に、エンコーダ130は、初期位置からのYステージ110YのY方向の並進移動量をエンコーダ値PVmYとして計測するとともに、初期位置からのθステージ110θの回転移動量をエンコーダ値PVmθとして計測する。エンコーダ130は、制御周期Tsと同じ周期で、エンコーダ値PVmX,PVmY,PVmθを計測して出力する。   Further, as shown in FIG. 4, the moving mechanism 100 includes an encoder 130. The encoder 130 generates a pulse signal corresponding to the amount of movement of each of the servomotors 120X, 120Y, 120θ. Encoder 130 counts the number of pulses included in the pulse signal corresponding to servo motor 120X, and measures the translation amount of X stage 110X in the X direction from the initial position as encoder value PVmX. The count value of the number of pulses and the movement amount are related by a predetermined coefficient. Therefore, the encoder 130 can measure the movement amount by multiplying the count value of the number of pulses by the coefficient. Similarly, encoder 130 measures the translation amount of Y stage 110Y in the Y direction from the initial position as encoder value PVmY, and measures the rotational movement amount of θ stage 110θ from the initial position as encoder value PVmθ. The encoder 130 measures and outputs the encoder values PVmX, PVmY, PVmθ at the same cycle as the control cycle Ts.

<2−4−1.移動制御部>
移動制御部41は、視覚センサ300によって特定された、マーク5aの最新の計測位置PSaおよびマーク5bの最新の計測位置PSbに基づいて、ワーク2の位置が目標位置SPに近づくように移動機構100を制御する。
<2-4-1. Movement control section>
The movement control unit 41 moves the moving mechanism 100 based on the latest measurement position PSa of the mark 5a and the latest measurement position PSb of the mark 5b specified by the visual sensor 300 such that the position of the work 2 approaches the target position SP. Control.

ワーク2の目標位置SPは、生産工程ごとに予め決められている。たとえば、マーク5aとマーク5bとの中点が予め定められた座標に位置し、かつ、マーク5aとマーク5bとを結ぶ直線とX軸またはY軸とのなす角度が予め定められた角度となるようなワーク2の位置が目標位置SPとして設定される。   The target position SP of the work 2 is determined in advance for each production process. For example, the midpoint between the mark 5a and the mark 5b is located at a predetermined coordinate, and an angle between a straight line connecting the mark 5a and the mark 5b and the X axis or the Y axis is a predetermined angle. Such a position of the work 2 is set as the target position SP.

もしくは、カメラ302a,302bは、ワーク2のマーク5a,5bと合わせて、露光マスク4(図1参照)に設けられた2つの目標マークも撮像してもよい。この場合、撮像された画像に含まれる当該2つの目標マークの位置に応じて目標位置SPが設定される。たとえば、マーク5aが2つの目標マークの一方と一致し、かつ、マーク5bが2つの目標マークの他方と一致するようなワーク2の位置が目標位置SPとして設定される。   Alternatively, the cameras 302a and 302b may image two target marks provided on the exposure mask 4 (see FIG. 1) together with the marks 5a and 5b of the work 2. In this case, the target position SP is set according to the positions of the two target marks included in the captured image. For example, the position of the work 2 where the mark 5a matches one of the two target marks and the mark 5b matches the other of the two target marks is set as the target position SP.

移動制御部41は、視覚センサ300によって特定されたマーク5aの最新の計測位置PSaおよびマーク5bの最新の計測位置PSbに基づいて、ワーク2の位置を目標位置SPに近づけるための移動指令を生成する。   The movement control unit 41 generates a movement command for bringing the position of the work 2 closer to the target position SP based on the latest measurement position PSa of the mark 5a and the latest measurement position PSb of the mark 5b specified by the visual sensor 300. I do.

計測位置PSa,PSbが特定される周期は、最短でも撮像周期Tbである。一方、移動指令は、制御周期Tsごとに生成される。一例として、撮像周期Tbは、たとえば約60msであり、制御周期Tsは、たとえば1msである。このように、撮像周期Tbは、制御周期Tsよりも長い。そのため、視覚センサ300によって特定された計測位置PSa,PSbのみを用いて移動機構100が制御されると、オーバシュートおよび振動が生じやすくなる。このようなオーバシュートおよび振動を避けるため、移動制御部41は、計測位置PSa,PSbと、エンコーダ値PVmX,PVmY,PVmθとを用いて、ワーク2の推定位置PVを決定し、推定位置PVに基づいて制御指令を生成する。過去に検出されたエンコーダ値PVmX,PVmY,PVmθは、モーションコントローラ400の記憶部(たとえば不揮発性メモリ416または主メモリ418(図3参照))に記憶される。   The cycle at which the measurement positions PSa and PSb are specified is at least the imaging cycle Tb. On the other hand, the movement command is generated for each control cycle Ts. As an example, the imaging cycle Tb is, for example, about 60 ms, and the control cycle Ts is, for example, 1 ms. Thus, the imaging cycle Tb is longer than the control cycle Ts. Therefore, if the moving mechanism 100 is controlled using only the measurement positions PSa and PSb specified by the visual sensor 300, overshoot and vibration are likely to occur. In order to avoid such overshoot and vibration, the movement control unit 41 determines the estimated position PV of the work 2 using the measured positions PSa and PSb and the encoder values PVmX, PVmY and PVmθ, and sets the estimated position PV as the estimated position PV. A control command is generated based on the control command. The encoder values PVmX, PVmY, PVmθ detected in the past are stored in the storage unit of the motion controller 400 (for example, the nonvolatile memory 416 or the main memory 418 (see FIG. 3)).

図4に示されるように、移動制御部41は、位置決定部42と、減算部43と、演算部44とを含む。   As shown in FIG. 4, the movement control unit 41 includes a position determination unit 42, a subtraction unit 43, and a calculation unit 44.

位置決定部42は、視覚センサ300によって特定されたマーク5aの最新の計測位置PSaおよびマーク5bの最新の計測位置PSbとエンコーダ値PVmX,PVmY,PVmθとに基づいて、ワーク2の推定位置PVを制御周期Tsごとに決定する。推定位置PVの決定方法の詳細については、後述する動作例において説明する。   The position determination unit 42 calculates the estimated position PV of the work 2 based on the latest measurement position PSa of the mark 5a and the latest measurement position PSb of the mark 5b specified by the visual sensor 300 and the encoder values PVmX, PVmY, PVmθ. It is determined for each control cycle Ts. Details of the method of determining the estimated position PV will be described in an operation example described later.

減算部43は、目標位置SPに対する推定位置PVの偏差を出力する。演算部44は、目標位置SPに対する推定位置PVの偏差が0に収束するように演算(たとえばP演算、PID演算など)を行ない、制御周期Tsごとに移動指令MVX、MVY,MVθを算出する。移動指令MVXは、Xステージ110Xに対する移動指令である。移動指令MVYは、Yステージ110Yに対する移動指令である。移動指令MVθは、θステージ110θに対する移動指令である。演算部44は、算出した移動指令MVX、MVY,MVθをサーボドライバ200X,200Y,200θにぞれぞれ出力する。移動指令MVX、MVY,MVθは、位置指令または速度指令である。   The subtraction unit 43 outputs a deviation of the estimated position PV from the target position SP. The calculation unit 44 performs calculations (for example, P calculation, PID calculation, and the like) so that the deviation of the estimated position PV from the target position SP converges to 0, and calculates the movement commands MVX, MVY, and MVθ for each control cycle Ts. The movement command MVX is a movement command for the X stage 110X. The movement command MVY is a movement command for the Y stage 110Y. The movement command MVθ is a movement command for the θ stage 110θ. The calculation unit 44 outputs the calculated movement commands MVX, MVY, MVθ to the servo drivers 200X, 200Y, 200θ, respectively. The movement commands MVX, MVY, MVθ are position commands or speed commands.

<2−4−2.推定部>
推定部45は、最新の計測位置PSa,PSbと、移動制御部41によって生成される移動指令MVX,MVY,MVθとに基づいて、次の撮像予定タイミングtkにおける画像上の、マーク5aの移動速度Vaとマーク5bの移動速度Vbとを推定する。撮像予定タイミングtkは、撮像周期Tbに従って予め定められる。推定部45は、撮像予定タイミングtkよりも制御周期Tsのq倍(qは、1以上の整数である)の期間だけ前の第1中間タイミングtm1において、移動速度Va,Vbを推定する。制御周期Tsのq倍が撮像周期Tbよりも十分に小さくなるように、qは予め定められる。qは、たとえば1、2または3である。以下、推定部45の具体的な処理方法について説明する。
<2-4-2. Estimation part>
The estimating unit 45 calculates the moving speed of the mark 5a on the image at the next scheduled imaging timing tk based on the latest measured positions PSa and PSb and the moving commands MVX, MVY and MVθ generated by the moving control unit 41. Va and the moving speed Vb of the mark 5b are estimated. The scheduled imaging timing tk is determined in advance according to the imaging cycle Tb. The estimating unit 45 estimates the moving velocities Va and Vb at the first intermediate timing tm1 that is q times (q is an integer of 1 or more) the control cycle Ts before the scheduled imaging timing tk. Q is predetermined so that q times the control cycle Ts is sufficiently smaller than the imaging cycle Tb. q is 1, 2 or 3, for example. Hereinafter, a specific processing method of the estimation unit 45 will be described.

まず、推定部45は、視覚センサ300がワーク2を撮像した最新の撮像タイミングt(k−1)から第1中間タイミングtm1までの間のワーク2の移動量Δp1=(ΔX1,ΔY1,Δθ1)を推定する。ΔX1は、Xステージ110XのX方向の並進移動量を示す。ΔY1は、Yステージ110YのY方向の並進移動量を示す。Δθ1は、θステージ110θの回転移動量を示す。   First, the estimation unit 45 calculates the moving amount Δp1 of the work 2 from the latest imaging timing t (k−1) at which the visual sensor 300 images the work 2 to the first intermediate timing tm1 = (ΔX1, ΔY1, Δθ1). Is estimated. ΔX1 indicates the translation amount of the X stage 110X in the X direction. ΔY1 indicates the translation amount of the Y stage 110Y in the Y direction. Δθ1 indicates the amount of rotational movement of the θ stage 110θ.

なお、撮像タイミングt(k−1)から次の撮像予定タイミングtkまでの期間は、撮像周期Tbと一致する場合もあれば、撮像周期Tbの2以上の整数倍の期間と一致する場合もある。撮像予定タイミングにおいて撮像を中止するように視覚センサ300が制御される場合があるからである。   Note that the period from the imaging timing t (k−1) to the next scheduled imaging timing tk may coincide with the imaging period Tb, or may coincide with a period that is an integral multiple of 2 or more of the imaging period Tb. . This is because the visual sensor 300 may be controlled so as to stop imaging at the scheduled imaging timing.

図5は、撮像タイミングt(k−1)から第1中間タイミングtm1までの間のワーク2の移動量を推定する方法を説明する図である。図5に示されるように、推定部45は、撮像タイミングt(k−1)におけるエンコーダ値PVm(k−1)と第1中間タイミングtm1におけるエンコーダ値PVm(m1)とに基づいて、移動量Δp1を推定する。なお、タイミングtiにおけるPVm(i)は、(PVmθ(i),PVmX(i),PVmY(i))で表される。PVmθ(i),PVmX(i),PVmY(i)は、それぞれタイミングtiにおいてエンコーダ130から出力されるエンコーダ値PVmθ,PVmX,PVmYである。もしくは、タイミングtiとエンコーダ130の検出時刻とがずれている場合、PVmX(i)は、タイミングtiに近接する2つの検出時刻にエンコーダ130から出力されるエンコーダ値PVmXの内挿補間値である。同様に、PVmY(j)は、時刻tjに近接する2つの検出時刻にエンコーダ130から出力されるエンコーダ値PVmYの内挿補間値である。PVmθ(j)は、時刻tjに近接する2つの検出時刻にエンコーダ130から出力されるエンコーダ値PVmθの内挿補間値である。内挿補間値の算出方法については後述する。   FIG. 5 is a diagram illustrating a method for estimating the movement amount of the work 2 from the imaging timing t (k−1) to the first intermediate timing tm1. As shown in FIG. 5, the estimating unit 45 calculates the moving amount based on the encoder value PVm (k-1) at the imaging timing t (k-1) and the encoder value PVm (m1) at the first intermediate timing tm1. Estimate Δp1. Note that PVm (i) at the timing ti is represented by (PVmθ (i), PVmX (i), PVmY (i)). PVmθ (i), PVmX (i), PVmY (i) are encoder values PVmθ, PVmX, PVmY output from the encoder 130 at the timing ti, respectively. Alternatively, when the timing ti is different from the detection time of the encoder 130, PVmX (i) is an interpolation value of the encoder value PVmX output from the encoder 130 at two detection times close to the timing ti. Similarly, PVmY (j) is an interpolation value of the encoder value PVmY output from the encoder 130 at two detection times close to the time tj. PVmθ (j) is an interpolation value of the encoder value PVmθ output from the encoder 130 at two detection times close to the time tj. The method of calculating the interpolation value will be described later.

推定部45は、撮像タイミングt(k−1)におけるエンコーダ値PVm(k−1)と第1中間タイミングtm1におけるエンコーダ値PVm(m1)との差を、撮像タイミングt(k−1)から第1中間タイミングtm1まで間のワーク2の移動量Δp1として推定する。つまり、推定部45は、以下の式(1)に従って、移動量Δp1を推定する。   The estimation unit 45 calculates a difference between the encoder value PVm (k-1) at the imaging timing t (k-1) and the encoder value PVm (m1) at the first intermediate timing tm from the imaging timing t (k-1). It is estimated as the movement amount Δp1 of the work 2 until one intermediate timing tm1. That is, the estimation unit 45 estimates the movement amount Δp1 according to the following equation (1).

Δp1=(ΔX1,ΔY1,Δθ1)
=(PVmX(m1)−PVmX(k−1),PVmY(m1)−PVmY(k−1),PVmθ(m1)−PVmθ(k−1)) ・・・式(1)。
Δp1 = (ΔX1, ΔY1, Δθ1)
= (PVmX (m1) -PVmX (k-1), PVmY (m1) -PVmY (k-1), PVmθ (m1) -PVmθ (k-1)) Expression (1).

次に、推定部45は、第1中間タイミングtm1における、マーク5aの位置(以下、「推定位置PM1a」という)およびマーク5bの位置(以下、「推定位置PM1b」という)を推定する。まず、推定位置PM1aの推定方法について説明する。   Next, the estimating unit 45 estimates the position of the mark 5a (hereinafter, referred to as “estimated position PM1a”) and the position of the mark 5b (hereinafter, referred to as “estimated position PM1b”) at the first intermediate timing tm1. First, a method of estimating the estimated position PM1a will be described.

推定部45は、画像処理装置304から受けた計測位置PSaの座標(カメラ302aのローカル座標系)をワールド座標系(移動機構100の機械座標系)の座標に変換する。推定部45は、カメラ302aのローカル座標系とワールド座標系とを対応付ける第1キャリブレーションデータを用いて、ワールド座標系における計測位置PSaのXY座標(xsa,ysa)を求める。   The estimating unit 45 converts the coordinates of the measurement position PSa (the local coordinate system of the camera 302a) received from the image processing device 304 into the coordinates of the world coordinate system (the mechanical coordinate system of the moving mechanism 100). The estimating unit 45 obtains the XY coordinates (xsa, ysa) of the measurement position PSa in the world coordinate system using the first calibration data that associates the local coordinate system of the camera 302a with the world coordinate system.

推定部45は、移動量Δp1=(ΔX1,ΔY1,Δθ1)だけワーク2が移動したときの計測位置PSaから推定位置PM1aへの変換式を用いて、ワールド座標系における推定位置PM1aの座標を求める。変換式は、以下の式(2)に示される。   The estimating unit 45 obtains the coordinates of the estimated position PM1a in the world coordinate system using a conversion formula from the measured position PSa when the work 2 moves by the movement amount Δp1 = (ΔX1, ΔY1, Δθ1) to the estimated position PM1a. . The conversion equation is shown in the following equation (2).

Sa’=T(Ra(Sa)) ・・・式(2)
式(2)において、Saは、ワールド座標系における計測位置PSaのX座標xsaおよびY座標ysaの転置行列である(xsa,ysa)を示す。Ra( )は、回転移動に対応する変換式を示し、θステージ110θの回転中心と計測位置PSaとの距離と、撮像タイミングt(k−1)からのθステージ110θの回転移動量とに基づいて定められる。ここでは、回転移動量としてΔθ1が用いられる。T( )は、並進移動に対応する変換式を示し、撮像タイミングt(k−1)からの、Xステージ110XおよびYステージ110Yの並進移動量に応じて定められる。ここでは、並進移動量としてΔX1およびΔY1が用いられる。Sa’は、ワーク2を移動量Δp1だけ移動させたときの、ワールド座標系におけるマーク5aの位置のX座標,Y座標の転置行列を示す。ここでは、Sa’は、推定位置PM1aのX座標xm1aおよびY座標ym1aの転置行列である(xm1a,ym1a)を示す。
Sa ′ = T (Ra (Sa)) Equation (2)
In the equation (2), Sa represents (xsa, ysa) T which is a transposed matrix of the X coordinate xsa and the Y coordinate ysa of the measurement position PSa in the world coordinate system. Ra () indicates a conversion formula corresponding to the rotational movement, and is based on the distance between the rotational center of the θ stage 110θ and the measurement position PSa and the rotational movement amount of the θ stage 110θ from the imaging timing t (k−1). Is determined. Here, Δθ1 is used as the amount of rotational movement. T () indicates a conversion equation corresponding to the translation, and is determined according to the translation amount of the X stage 110X and the Y stage 110Y from the imaging timing t (k−1). Here, ΔX1 and ΔY1 are used as the translation amounts. Sa ′ indicates the transposed matrix of the X coordinate and the Y coordinate of the position of the mark 5a in the world coordinate system when the work 2 is moved by the movement amount Δp1. Here, Sa ′ indicates (xm1a, ym1a) T which is a transposed matrix of the X coordinate xm1a and the Y coordinate ym1a of the estimated position PM1a.

推定部45は、第1キャリブレーションデータを用いて、ワールド座標系における推定位置PM1aの座標をカメラ302aに対応するローカル座標系の座標に逆変換する。これにより、推定部45は、ローカル座標系における推定位置PM1aの座標を得ることができる。   The estimating unit 45 uses the first calibration data to inversely transform the coordinates of the estimated position PM1a in the world coordinate system into coordinates in the local coordinate system corresponding to the camera 302a. Thereby, the estimating unit 45 can obtain the coordinates of the estimated position PM1a in the local coordinate system.

同様の方法により、推定部45は、第1中間タイミングtm1におけるマーク5bの推定位置PM1bを予測する。つまり、推定部45は、画像処理装置304から受けた計測位置PSbの座標(カメラ302bのローカル座標系)をワールド座標系の座標に変換する。推定部45は、カメラ302bのローカル座標系とワールド座標系とを対応付ける第2キャリブレーションデータを用いて、ワールド座標系における計測位置PSbのXY座標(xsb,ysb)を求める。   By the same method, the estimation unit 45 predicts the estimated position PM1b of the mark 5b at the first intermediate timing tm1. That is, the estimation unit 45 converts the coordinates of the measurement position PSb (the local coordinate system of the camera 302b) received from the image processing device 304 into the coordinates of the world coordinate system. The estimating unit 45 obtains the XY coordinates (xsb, ysb) of the measurement position PSb in the world coordinate system using the second calibration data that associates the local coordinate system of the camera 302b with the world coordinate system.

推定部45は、移動量Δp1=(ΔX1,ΔY1,Δθ1)だけワーク2が移動したときの計測位置PSbから推定位置PM1bへの変換式を用いて、ワールド座標系における推定位置PM1bの座標を求める。変換式は、以下の式(3)に示される。   The estimating unit 45 obtains the coordinates of the estimated position PM1b in the world coordinate system using a conversion formula from the measured position PSb when the work 2 has moved by the movement amount Δp1 = (ΔX1, ΔY1, Δθ1) to the estimated position PM1b. . The conversion equation is shown in the following equation (3).

Sb’=T(Rb(Sb)) ・・・式(3)
式(3)において、Sbは、ワールド座標系における計測位置PSbのX座標xsbおよびY座標ysbの転置行列である(xsb,ysb)を示す。Rb( )は、回転移動に対応する変換式を示し、θステージ110θの回転中心と計測位置PSbとの距離と、撮像タイミングt(k−1)からのθステージ110θの回転移動量とに基づいて定められる。ここでは、回転移動量としてΔθ1が用いられる。T( )は、並進移動に対応する変換式を示し、撮像タイミングt(k−1)からの、Xステージ110XおよびYステージ110Yの並進移動量と応じて定められる。ここでは、並進移動量としてΔX1およびΔY1が用いられる。Sb’は、ワーク2を移動量Δp1だけ移動させたときの、ワールド座標系におけるマーク5bの位置のX座標,Y座標の転置行列を示す。ここでは、Sb’は、推定位置PM1bのX座標xm1bおよびY座標ym1bの転置行列である(xm1b,ym1b)を示す。
Sb ′ = T (Rb (Sb)) Equation (3)
In Expression (3), Sb represents (xsb, ysb) T which is a transposed matrix of the X coordinate xsb and the Y coordinate ysb of the measurement position PSb in the world coordinate system. Rb () indicates a conversion equation corresponding to the rotational movement, and is based on the distance between the rotational center of the θ stage 110θ and the measurement position PSb, and the rotational movement amount of the θ stage 110θ from the imaging timing t (k−1). Is determined. Here, Δθ1 is used as the amount of rotational movement. T () indicates a conversion equation corresponding to the translation, and is determined according to the translation amount of the X stage 110X and the Y stage 110Y from the imaging timing t (k−1). Here, ΔX1 and ΔY1 are used as the translation amounts. Sb ′ indicates a transposed matrix of the X coordinate and the Y coordinate of the position of the mark 5b in the world coordinate system when the work 2 is moved by the movement amount Δp1. Here, Sb ′ indicates (xm1b, ym1b) T which is a transposed matrix of the X coordinate xm1b and the Y coordinate ym1b of the estimated position PM1b.

推定部45は、第2キャリブレーションデータを用いて、ワールド座標系における推定位置PM1bの座標をカメラ302bに対応するローカル座標系の座標に逆変換する。これにより、推定部45は、ローカル座標系における推定位置PM1bの座標を得ることができる。   The estimating unit 45 uses the second calibration data to inversely transform the coordinates of the estimated position PM1b in the world coordinate system into coordinates in the local coordinate system corresponding to the camera 302b. Thereby, the estimation unit 45 can obtain the coordinates of the estimated position PM1b in the local coordinate system.

第1中間タイミングtm1から撮像予定タイミングtkまでの期間は、制御周期Tsの1〜数倍である。そのため、当該期間において移動指令の変化量はわずかである。すなわち、第1中間タイミングtm1における移動指令が撮像予定タイミングtkまで継続されるとみなしてもよい。   The period from the first intermediate timing tm1 to the scheduled imaging timing tk is one to several times the control cycle Ts. Therefore, the change amount of the movement command is small during the period. That is, it may be considered that the movement command at the first intermediate timing tm1 is continued until the scheduled imaging timing tk.

そのため、推定部45は、第1中間タイミングtm1におけるマーク5aの推定位置PM1aのX座標,Y座標を上記の式(2)のSaに代入することにより、撮像予定タイミングtkにおける位置(以下、「予測位置PEa」という)を予測する。この場合、式(2)におけるRa( )は、θステージ110θの回転中心と第1中間タイミングtm1における推定位置PM1aとの距離と、第1中間タイミングtm1における移動指令MVθと、第1中間タイミングtm1から撮像予定タイミングtkまでの時間とに基づいて定められる。T( )は、第1中間タイミングtm1における移動指令MVX,MVYと、第1中間タイミングtm1から撮像予定タイミングtkまでの時間とに応じて定められる。   Therefore, the estimating unit 45 substitutes the X coordinate and the Y coordinate of the estimated position PM1a of the mark 5a at the first intermediate timing tm1 into Sa in the above equation (2), thereby obtaining the position at the scheduled imaging timing tk (hereinafter, “ Predicted position PEa ”). In this case, Ra () in Expression (2) is the distance between the rotation center of the θ stage 110θ and the estimated position PM1a at the first intermediate timing tm1, the movement command MVθ at the first intermediate timing tm1, and the first intermediate timing tm1. From the time t to the scheduled imaging timing tk. T () is determined according to the movement commands MVX and MVY at the first intermediate timing tm1 and the time from the first intermediate timing tm1 to the scheduled imaging timing tk.

推定部45は、第1キャリブレーションデータを用いて、ワールド座標系における予測位置PEaの座標をカメラ302aに対応するローカル座標系の座標に逆変換する。これにより、推定部45は、ローカル座標系における予測位置PEaの座標を得ることができる。   The estimating unit 45 uses the first calibration data to inversely transform the coordinates of the predicted position PEa in the world coordinate system into coordinates in the local coordinate system corresponding to the camera 302a. Thereby, the estimation unit 45 can obtain the coordinates of the predicted position PEa in the local coordinate system.

同様に、推定部45は、第1中間タイミングtm1におけるマーク5bの推定位置PM1bのX座標,Y座標を上記の式(3)のSbに代入することにより、撮像予定タイミングtkにおける位置(以下、「予測位置PEb」という)を予測する。この場合、式(3)におけるRa( )は、θステージ110θの回転中心と第1中間タイミングtm1における推定位置PM1bとの距離と、第1中間タイミングtm1における移動指令MVθと、第1中間タイミングtm1から撮像予定タイミングtkまでの時間とに基づいて定められる。T( )は、第1中間タイミングtm1における移動指令MVX,MVYと、第1中間タイミングtm1から撮像予定タイミングtkまでの時間とに応じて定められる。   Similarly, the estimating unit 45 substitutes the X coordinate and the Y coordinate of the estimated position PM1b of the mark 5b at the first intermediate timing tm1 into Sb of the above equation (3), thereby obtaining the position at the scheduled imaging timing tk (hereinafter, referred to as “Sb”) “Predicted position PEb”). In this case, Ra () in Equation (3) is the distance between the rotation center of the θ stage 110θ and the estimated position PM1b at the first intermediate timing tm1, the movement command MVθ at the first intermediate timing tm1, and the first intermediate timing tm1. From the time t to the scheduled imaging timing tk. T () is determined according to the movement commands MVX and MVY at the first intermediate timing tm1 and the time from the first intermediate timing tm1 to the scheduled imaging timing tk.

推定部45は、第2キャリブレーションデータを用いて、ワールド座標系における予測位置PEbの座標をカメラ302bに対応するローカル座標系の座標に逆変換する。これにより、推定部45は、ローカル座標系における予測位置PEbの座標を得ることができる。   The estimating unit 45 uses the second calibration data to inversely transform the coordinates of the predicted position PEb in the world coordinate system into coordinates in the local coordinate system corresponding to the camera 302b. Thereby, the estimating unit 45 can obtain the coordinates of the predicted position PEb in the local coordinate system.

推定部45は、以下の式(4)(5)に従って、撮像予定タイミングtkにおける画像上の、マーク5aの移動速度Vaおよびマーク5bの移動速度Vbを推定する。   The estimating unit 45 estimates the moving speed Va of the mark 5a and the moving speed Vb of the mark 5b on the image at the scheduled imaging timing tk according to the following equations (4) and (5).

Va=(PEa−PM1a)/(tk−tm1) ・・・式(4)
Vb=(PEb−PM1b)/(tk−tm1) ・・・式(5)
式(4)において、「PEa−PM1a」は、予測位置PEaと推定位置PM1aとの距離を示し、予測位置PEaと推定位置PM1aとのローカル座標系におけるX座標,Y座標に基づいて算出される。式(5)において、「PEb−PM1b」は、予測位置PEbと推定位置PM1bとの距離を示し、予測位置PEbと推定位置PM1bとのローカル座標系におけるX座標,Y座標に基づいて算出される。「tk−tm1」は、第1中間タイミングtm1から撮像予定タイミングtkまでの時間を示す。
Va = (PEa−PM1a) / (tk−tm1) Equation (4)
Vb = (PEb−PM1b) / (tk−tm1) Equation (5)
In Expression (4), “PEa−PM1a” indicates the distance between the predicted position PEa and the estimated position PM1a, and is calculated based on the X coordinate and the Y coordinate in the local coordinate system between the predicted position PEa and the estimated position PM1a. . In Expression (5), “PEb−PM1b” indicates a distance between the predicted position PEb and the estimated position PM1b, and is calculated based on the X coordinate and the Y coordinate in the local coordinate system between the predicted position PEb and the estimated position PM1b. . “Tk−tm1” indicates the time from the first intermediate timing tm1 to the scheduled imaging timing tk.

このようにして、推定部45は、次の撮像予定タイミングtkよりも前の第1中間タイミングtm1において、撮像予定タイミングtkにおける画像上のマーク5a,5bの移動速度Va,Vbをそれぞれ推定する。   In this way, the estimating unit 45 estimates the moving speeds Va and Vb of the marks 5a and 5b on the image at the scheduled imaging timing tk at the first intermediate timing tm1 before the scheduled imaging timing tk.

<2−4−3.撮像制御部>
撮像制御部46は、視覚センサ300の動作を制御する。撮像制御部46は、上位の制御装置から位置決め処理の開始指示を受けると、撮像周期Tbに従って、撮像トリガTR(撮像指示)を画像処理装置304に出力する。具体的には、撮像制御部46は、位置決め処理の開始指示を受けると、1回目の撮像トリガTRを出力する。その後、撮像制御部46は、撮像周期Tbだけ経過するたびに、2回目以降の撮像トリガTRを出力する。
<2-4-3. Imaging control unit>
The imaging control unit 46 controls the operation of the visual sensor 300. Upon receiving an instruction to start positioning processing from a higher-level control device, the imaging control unit 46 outputs an imaging trigger TR (imaging instruction) to the image processing device 304 in accordance with the imaging cycle Tb. Specifically, upon receiving an instruction to start the positioning process, the imaging control unit 46 outputs a first imaging trigger TR. Thereafter, the imaging control unit 46 outputs the second and subsequent imaging triggers TR every time the imaging period Tb elapses.

ただし、撮像制御部46は、推定部45によって推定された移動速度Va,Vbに基づいて、撮像トリガTRの出力の可否を判断する。撮像制御部46は、移動速度Va,Vbが予め定められた閾値Th1未満である場合に次の撮像予定タイミングtkで撮像トリガTRを出力し、移動速度Va,Vbの少なくとも一方が閾値Th1を超える場合に撮像予定タイミングtkで撮像トリガTRを出力しない。すなわち、撮像制御部46は、移動速度Va,Vbが閾値Th1未満である場合に撮像予定タイミングtkで撮像させ、移動速度Va,Vbの少なくとも一方が閾値Th1を超える場合に撮像予定タイミングtkで撮像させないように、視覚センサ300を制御する。   However, the imaging control unit 46 determines whether or not to output the imaging trigger TR based on the moving speeds Va and Vb estimated by the estimation unit 45. The imaging control unit 46 outputs an imaging trigger TR at the next scheduled imaging timing tk when the moving speeds Va and Vb are less than the predetermined threshold Th1, and at least one of the moving speeds Va and Vb exceeds the threshold Th1. In this case, the imaging trigger TR is not output at the imaging scheduled timing tk. That is, the imaging control unit 46 performs imaging at the scheduled imaging timing tk when the moving speeds Va and Vb are less than the threshold Th1, and performs imaging at the scheduled imaging timing tk when at least one of the moving speeds Va and Vb exceeds the threshold Th1. The visual sensor 300 is controlled so as not to allow the visual sensor 300 to operate.

閾値Th1は、画像ブレによるぼけに起因する計測位置PSa,PSbの計測誤差の許容上限値に応じて、実験的または理論的に定められる。すなわち、許容上限値の計測誤差が生じるときの、画像上のマーク5a,5bの移動速度が閾値Th1として予め定められる。   The threshold value Th1 is experimentally or theoretically determined according to the allowable upper limit value of the measurement error of the measurement positions PSa and PSb caused by the blur due to the image blur. That is, the moving speed of the marks 5a and 5b on the image when the measurement error of the allowable upper limit value occurs is predetermined as the threshold Th1.

§3 動作例
<3−1.制御システムの位置決め処理の流れ>
図6を参照して、制御システム1の位置決め処理の流れの一例について説明する。図6は、制御システムの位置決め処理の流れの一例を示すフローチャートである。
§3 Operation example <3-1. Flow of positioning process of control system>
An example of the flow of the positioning process of the control system 1 will be described with reference to FIG. FIG. 6 is a flowchart illustrating an example of the flow of the positioning process of the control system.

まずステップS1において、モーションコントローラ400は、推定位置PVおよびエンコーダ値PVmX,PVmY,PVmθを初期化する。次に、ワーク2が移動機構100上に載置されると、撮像制御部46は、画像処理装置304に対して1回目の撮像トリガTRを出力する。これにより、ステップS2において、カメラ302a,302bは、移動機構100が停止した状態で、ワーク2を撮像する。   First, in step S1, the motion controller 400 initializes the estimated position PV and the encoder values PVmX, PVmY, PVmθ. Next, when the work 2 is placed on the moving mechanism 100, the imaging control unit 46 outputs the first imaging trigger TR to the image processing device 304. Accordingly, in step S2, the cameras 302a and 302b capture an image of the workpiece 2 with the moving mechanism 100 stopped.

次にステップS3において、画像処理装置304は、カメラ302aによって撮像された画像に含まれるマーク5aの計測位置PSaと、カメラ302bによって撮像された画像に含まれるマーク5bの計測位置PSbとを特定する。次にステップS4において、移動制御部41は、移動機構100の移動制御を開始する。   Next, in step S3, the image processing device 304 specifies the measurement position PSa of the mark 5a included in the image captured by the camera 302a and the measurement position PSb of the mark 5b included in the image captured by the camera 302b. . Next, in step S4, the movement control unit 41 starts movement control of the movement mechanism 100.

次にステップS5において、移動制御部41は、目標位置SPに対する推定位置PVの偏差が閾値Th2未満か否かを判断する。閾値Th2は、要求される位置決め精度に応じて予め定められる。目標位置SPに対する推定位置PVの偏差が閾値Th2未満である場合(ステップS5でYES)、移動制御部41は、移動機構100の移動制御を終了する。これにより、位置決め処理が終了する。   Next, in step S5, the movement control unit 41 determines whether the deviation of the estimated position PV from the target position SP is less than a threshold Th2. The threshold value Th2 is predetermined in accordance with the required positioning accuracy. When the deviation of the estimated position PV from the target position SP is smaller than the threshold Th2 (YES in step S5), the movement control unit 41 ends the movement control of the movement mechanism 100. Thus, the positioning process ends.

目標位置SPに対する推定位置PVの偏差が閾値Th2未満でない場合(ステップS5でNO)、ステップS6〜ステップS12の処理が撮像周期Tbごとに繰り返される。なお、ステップS6〜S12の間にも、移動制御部41による移動制御が並行して実行される。   If the deviation of the estimated position PV from the target position SP is not less than the threshold Th2 (NO in step S5), the processing in steps S6 to S12 is repeated for each imaging cycle Tb. Note that the movement control by the movement control unit 41 is also performed in parallel between steps S6 to S12.

ステップS6において、推定部45は、現時刻が次の撮像予定タイミングtkより制御周期Tsのq倍前の第1中間タイミングtm1であるか否かを判断する。現時刻が第1中間タイミングtm1でない場合(ステップS6でNO)、処理はステップS5に戻る。   In step S6, the estimation unit 45 determines whether or not the current time is the first intermediate timing tm1 which is q times the control cycle Ts before the next scheduled imaging timing tk. If the current time is not the first intermediate timing tm1 (NO in step S6), the process returns to step S5.

現時刻が第1中間タイミングtm1である場合(ステップS6でYES)、ステップS7において、推定部45は、撮像予定タイミングtkにおける画像上のマーク5a,5bの移動速度Va,Vbをそれぞれ推定する。   If the current time is the first intermediate timing tm1 (YES in step S6), in step S7, the estimating unit 45 estimates the moving speeds Va and Vb of the marks 5a and 5b on the image at the scheduled imaging timing tk.

次にステップS8において、撮像制御部46は、移動速度Va,Vbが閾値Th1未満であるが否かを判断する。   Next, in step S8, the imaging control unit 46 determines whether or not the moving speeds Va and Vb are less than the threshold Th1.

移動速度Va,Vbが閾値Th1未満である場合(ステップS8でYES)、撮像制御部46は、撮像予定タイミングtkにおいて、撮像トリガTRを画像処理装置304に出力する(ステップS9)。ステップS10において、画像処理装置304の画像取得部32は、撮像するようにカメラ302a,302bを制御し、カメラ302a,302bによって撮像された画像を取得する。ステップS11において、位置特定部34は、画像に含まれるマーク5a,5bの計測位置PSa,PSbをそれぞれ特定する。   If the moving speeds Va and Vb are less than the threshold Th1 (YES in step S8), the imaging control unit 46 outputs the imaging trigger TR to the image processing device 304 at the scheduled imaging timing tk (step S9). In step S10, the image acquisition unit 32 of the image processing device 304 controls the cameras 302a and 302b to capture images, and obtains images captured by the cameras 302a and 302b. In step S11, the position specifying unit 34 specifies the measurement positions PSa and PSb of the marks 5a and 5b included in the image, respectively.

次にステップS12において、次の撮像予定タイミングが更新される。具体的には、モーションコントローラ400は、更新前の撮像予定タイミングtkから撮像周期Tbだけ経過した時刻を次の撮像予定タイミングtkとして設定する。ステップS12の後、処理はステップS5に戻る。   Next, in step S12, the next scheduled imaging timing is updated. Specifically, the motion controller 400 sets the time that has elapsed by the imaging cycle Tb from the imaging scheduled timing tk before the update as the next imaging scheduled timing tk. After step S12, the process returns to step S5.

移動速度Va,Vbの少なくとも一方が閾値Th1以上である場合も(ステップS8でNO)、処理はステップS12に移る。すなわち、更新前の撮像予定タイミングtkにおいて、撮像トリガTRが出力されず、視覚センサ300は、ワーク2を撮像しない。   If at least one of the moving speeds Va and Vb is equal to or higher than the threshold Th1 (NO in step S8), the process proceeds to step S12. That is, at the scheduled imaging timing tk before the update, the imaging trigger TR is not output, and the visual sensor 300 does not image the work 2.

<3−2.移動制御部の処理>
図7は、移動制御部による移動機構の制御処理の流れの一例を示すフローチャートである。まずステップS21において、位置決定部42は、画像処理装置304によって特定された最新の計測位置PSa,PSbを取得する。位置決定部42は、上記の第1キャリブレーションデータ,第2キャリブレーションデータを用いて、画像処理装置304から受けた計測位置PSa,PSbの座標(ローカル座標系)をワールド座標系の座標にそれぞれ変換する。
<3-2. Processing of movement control unit>
FIG. 7 is a flowchart illustrating an example of a flow of a control process of the moving mechanism by the movement control unit. First, in step S21, the position determination unit 42 acquires the latest measurement positions PSa and PSb specified by the image processing device 304. The position determining unit 42 uses the first calibration data and the second calibration data to convert the coordinates (local coordinate system) of the measurement positions PSa and PSb received from the image processing device 304 into coordinates of the world coordinate system, respectively. Convert.

ステップS22において、位置決定部42は、最新の撮像時刻を取得する。位置決定部42は、たとえば、最新の撮像トリガTRが出力された時刻を撮像時刻として取得する。もしくは、撮像トリガTRが出力されてからカメラ302a,302bが露光開始するまでの遅延時間を考慮して、位置決定部42は、撮像トリガTRが出力された時刻から遅延時間だけ経過した時刻を撮像時刻として取得してもよい。   In step S22, the position determination unit 42 acquires the latest imaging time. The position determination unit 42 acquires, for example, the time at which the latest imaging trigger TR was output as the imaging time. Alternatively, in consideration of the delay time from when the imaging trigger TR is output to when the cameras 302a and 302b start exposure, the position determination unit 42 captures an image at a time that has elapsed by the delay time from the time at which the imaging trigger TR was output. You may acquire as time.

次にステップS23において、位置決定部42は、撮像時刻に近い複数の時刻のエンコーダ値PVmX,PVmY,PVmθを取得する。   Next, in step S23, the position determination unit 42 acquires the encoder values PVmX, PVmY, PVmθ at a plurality of times close to the imaging time.

次にステップS24において、位置決定部42は、複数の時刻のエンコーダ値PVmXの内挿補間値を算出し、当該内挿補間値を撮像時刻のエンコーダ値PVmsXとする。同様に、位置決定部42は、複数の時刻のエンコーダ値PVmYの内挿補間値を算出し、当該内挿補間値を撮像時刻のエンコーダ値PVmsYとする。位置決定部42は、複数の時刻のエンコーダ値PVmθの内挿補間値を算出し、当該内挿補間値を撮像時刻のエンコーダ値PVmsθとする。   Next, in step S24, the position determination unit 42 calculates an interpolation value of the encoder values PVmX at a plurality of times, and sets the interpolation value as the encoder value PVmsX at the imaging time. Similarly, the position determination unit 42 calculates an interpolation value of the encoder value PVmY at a plurality of times, and sets the interpolation value as the encoder value PVmsY at the imaging time. The position determination unit 42 calculates an interpolation value of the encoder value PVmθ at a plurality of times, and sets the interpolation value as the encoder value PVmsθ at the imaging time.

具体的には、位置決定部42は、以下のようにして内挿補間値を算出する。検出時刻t(n)においてエンコーダ130によって検出されたエンコーダ値PVmXをエンコーダ値PVmX(n)とする。位置決定部42は、撮像時刻tviに近接する2つの時刻、例えば、時間軸上で、撮像時刻tviを挟む検出時刻t(n−k)と検出時刻t(n−k+1)とを特定する。   Specifically, the position determination unit 42 calculates an interpolation value as follows. The encoder value PVmX detected by the encoder 130 at the detection time t (n) is defined as an encoder value PVmX (n). The position determination unit 42 specifies two times close to the imaging time tvi, for example, a detection time t (nk) and a detection time t (nk + 1) sandwiching the imaging time tvi on the time axis.

位置決定部42は、検出時刻t(n−k)のエンコーダ値PVmX(n−k)と、検出時刻t(n−k+1)のエンコーダ値PVmX(n−k+1)とを取得する。   The position determination unit 42 acquires the encoder value PVmX (nk) at the detection time t (nk) and the encoder value PVmX (nk + 1) at the detection time t (nk + 1).

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

PVmsX(vi)=PVmX(n−k)+Kk*(PVmX(n−k+1)−PVmX(n−k)) ・・・(6)
ここで、Kkは、内挿補間係数である。制御周期をTsとし、エンコーダ値PVmXの伝送遅延時間をTedとし、撮像トリガTRの伝送遅延時間をTsdとして、Ts−Ted≦Tsd<2Ts−Tedの場合、内挿補間係数Kkは、次の式(7)を用いて算出される。
PVmsX (vi) = PVmX (n−k) + Kk * (PVmX (n−k + 1) −PVmX (nk)) (6)
Here, Kk is an interpolation coefficient. When the control cycle is Ts, the transmission delay time of the encoder value PVmX is Ted, and the transmission delay time of the imaging trigger TR is Tsd, and Ts−Ted ≦ Tsd <2Ts−Ted, the interpolation coefficient Kk is expressed by the following equation. It is calculated using (7).

Kk={Tsd−(Ts−Ted)}/Ts ・・・(7)
このような内挿補間値の算出方法を用いることによって、撮像時刻tviのエンコーダ値PVmsX(vi)を高精度に算出できる。同様にして、撮像時刻tviのエンコーダ値PVmsY(vi),PVmsθ(vi)が算出される。なお、撮像時刻がエンコーダ値の算出時刻と一致する場合には、このエンコーダ値をそのまま用いればよい。
Kk = {Tsd- (Ts-Ted)} / Ts (7)
By using such a method of calculating the interpolation value, the encoder value PVmsX (vi) at the imaging time tvi can be calculated with high accuracy. Similarly, encoder values PVmsY (vi) and PVmsθ (vi) at the imaging time tvi are calculated. If the imaging time matches the calculation time of the encoder value, the encoder value may be used as it is.

次にステップS25において、位置決定部42は、最新の計測位置PSa,PSaと、撮像時刻以後のエンコーダ値PVmX,PVmY,PVmθと、撮像時刻のエンコーダ値PVmsX,PVmsY,PVmsθとを用いて、推定位置PVを算出する。   Next, in step S25, the position determination unit 42 estimates using the latest measured positions PSa, PSa, the encoder values PVmX, PVmY, PVmθ after the imaging time, and the encoder values PVmsX, PVmsY, PVmsθ at the imaging time. The position PV is calculated.

具体的には、X方向に(PVmX−PVmsX)だけ並進移動し、Y方向に(PVmY−PVmsY)だけ並進移動し、(PVmθ−PVmsθ)だけ回転移動するときのアフィン変換式に計測位置PSaを入力し、アフィン変換後の位置PSwaが算出される。同様に、当該アフィン変換式に計測位置PSbを入力し、アフィン変換後の位置PSwbが算出される。位置決定部42は、マーク5aが位置PSwaに位置し、マーク5bが位置PSwbに位置するときのワーク2の位置を推定位置PVとして決定する。つまり、位置決定部42は、位置PSwaと位置PSwbとの中点の座標と、位置PSwaと位置PSwbとを結ぶ直線とX軸またはY軸とのなす角度とを、推定位置PVを特定する情報として算出する。   Specifically, the measurement position PSa is translated by (PVmX−PVmsX) in the X direction, translated by (PVmY−PVmsY) in the Y direction, and rotationally moved by (PVmθ−PVmsθ) in the Y direction. The position PSwa after the input and the affine transformation is calculated. Similarly, the measurement position PSb is input to the affine transformation equation, and the position PSwb after the affine transformation is calculated. The position determination unit 42 determines the position of the work 2 when the mark 5a is located at the position PSwa and the mark 5b is located at the position PSwb as the estimated position PV. That is, the position determination unit 42 determines the coordinates of the midpoint between the positions PSwa and PSwb, and the angle between the straight line connecting the positions PSwa and PSwb and the X axis or the Y axis, as information for specifying the estimated position PV. Is calculated as

次にステップS26において、演算部44は、目標位置SPに対する推定位置PVの偏差に基づいて、たとえばP演算により、移動指令MVX,MVY,MVθを生成して、サーボドライバ200X,200Y,200θにそれぞれ出力する。   Next, in step S26, the calculation unit 44 generates movement commands MVX, MVY, MVθ by, for example, P calculation based on the deviation of the estimated position PV from the target position SP, and sends the movement commands to the servo drivers 200X, 200Y, 200θ, respectively. Output.

このような処理を実行することによって、モーションコントローラ400は、画像処理による高精度な計測位置PSa,PSbが入力される時刻には、この高精度な計測位置PSa,PSbを用いて推定位置PVを算出し、高精度な位置決め制御を実現できる。ここで、計測位置PSa,PSbが入力される時間間隔は、撮像周期Tbであり、エンコーダ値PVmX,PVmY,PVmθが入力される制御周期Tsに比べて長い。しかしながら、時間軸上で隣り合う計測位置PSa,PSbの入力時刻間において、位置決定部42は、入力周期が短いエンコーダ値PVmX,PVmY,PVmθの入力時刻毎に、推定位置PVを決定して、移動機構100の移動制御を行う。これにより、高精度且つ短周期の位置決め制御が可能になる。さらに、位置決定部42は、上述の簡単な四則演算を用いる処理を行なう。そのため、簡素な構成および処理による高速且つ高精度な位置決めを実現できる。   By executing such processing, the motion controller 400 determines the estimated position PV using the high-precision measurement positions PSa and PSb at the time when the high-precision measurement positions PSa and PSb are input by the image processing. It is possible to calculate and realize high-accuracy positioning control. Here, the time interval at which the measurement positions PSa and PSb are input is the imaging period Tb, which is longer than the control period Ts at which the encoder values PVmX, PVmY, and PVmθ are input. However, between the input times of the adjacent measurement positions PSa and PSb on the time axis, the position determination unit 42 determines the estimated position PV for each input time of the encoder values PVmX, PVmY, and PVmθ having a short input cycle. The movement of the movement mechanism 100 is controlled. This enables high-accuracy and short-period positioning control. Further, the position determination unit 42 performs a process using the above-described simple four arithmetic operations. Therefore, high-speed and high-accuracy positioning by a simple configuration and processing can be realized.

<3−3.作用・効果>
以上のように、制御システム1は、視覚センサ300と、移動制御部41と、推定部45と、撮像制御部46とを備える。視覚センサ300は、ワーク2を撮像タイミングごとに撮像することにより画像を取得し、画像に基づいて、ワーク2のマーク5a,5bの計測位置PSa,PSbをそれぞれ特定する。移動制御部41は、視覚センサ300によって特定された計測位置PSa,PSbに基づいて、ワーク2の位置が目標位置に近づくように移動機構100を制御する。推定部45は、最新の撮像タイミングt(k−1)で撮像された画像から特定された最新の計測位置PSa,PSbと、参照情報とに基づいて、次の撮像予定タイミングtkにおけるマーク5a,5bの移動速度Va,Vbをそれぞれ推定する。参照情報は、移動機構100からの情報および移動制御部41によって生成される情報を含む。撮像制御部46は、移動速度Va,Vbが閾値Th1未満である場合に撮像予定タイミングtkで撮像させ、移動速度Va,Vbが閾値Th1を超える場合に撮像予定タイミングtkで撮像させないように、視覚センサ300を制御する。
<3-3. Action / Effect>
As described above, the control system 1 includes the visual sensor 300, the movement control unit 41, the estimation unit 45, and the imaging control unit 46. The visual sensor 300 acquires an image by imaging the work 2 at each imaging timing, and specifies the measurement positions PSa and PSb of the marks 5a and 5b of the work 2 based on the image. The movement control unit 41 controls the movement mechanism 100 based on the measurement positions PSa and PSb specified by the visual sensor 300 so that the position of the work 2 approaches the target position. Based on the latest measurement positions PSa and PSb specified from the image captured at the latest imaging timing t (k−1) and the reference information, the estimation unit 45 determines the marks 5a and 5a at the next scheduled imaging timing tk. The moving speeds Va and Vb of 5b are estimated respectively. The reference information includes information from the moving mechanism 100 and information generated by the movement control unit 41. The imaging control unit 46 performs imaging so as to perform imaging at the scheduled imaging timing tk when the moving speeds Va and Vb are less than the threshold Th1, and not to perform imaging at the scheduled imaging timing tk when the moving speeds Va and Vb exceed the threshold Th1. The sensor 300 is controlled.

これにより、画像ブレ量の大きい画像の撮像を回避することができ、当該画像による位置決め精度の低下を抑制できる。   Accordingly, it is possible to avoid capturing an image having a large image blurring amount, and to suppress a decrease in positioning accuracy due to the image.

参照情報は、撮像タイミングt(k−1)からのサーボモータ120X,120Y,120θの駆動量(ここでは、回転量)をそれぞれ示すエンコーダ値PVmX,PVmY,PVmθを含む。さらに、参照情報は、撮像タイミングt(k−1)以降に移動制御部41によって生成された移動指令MVX,MVY,MVθを含む。具体的には、参照情報は、第1中間タイミングtm1で生成された移動指令MVX,MVY,MVθを含む。   The reference information includes encoder values PVmX, PVmY, and PVmθ indicating the drive amounts (here, the rotation amounts) of the servo motors 120X, 120Y, and 120θ from the imaging timing t (k-1). Further, the reference information includes the movement commands MVX, MVY, MVθ generated by the movement control unit 41 after the imaging timing t (k−1). Specifically, the reference information includes the movement commands MVX, MVY, MVθ generated at the first intermediate timing tm1.

エンコーダ値PVmX,PVmY,PVmθは、移動機構100の移動量を直接的に示す。また、移動機構100は、移動指令MVX,MVY,MVθに従って移動する。そのため、ワーク2のマーク5a,5bも、移動指令MVX,MVY,MVθに従って移動する。したがって、推定部45は、撮像予定タイミングtkにおけるマーク5a,5bの移動速度Va,Vbをそれぞれ精度良く推定することができる。   The encoder values PVmX, PVmY, PVmθ directly indicate the amount of movement of the moving mechanism 100. The moving mechanism 100 moves according to the movement commands MVX, MVY, MVθ. Therefore, the marks 5a and 5b of the work 2 also move according to the movement commands MVX, MVY and MVθ. Therefore, the estimating unit 45 can accurately estimate the moving speeds Va and Vb of the marks 5a and 5b at the scheduled imaging timing tk, respectively.

§4 変形例
<4−1.変形例1>
推定部45は、撮像タイミングt(k−1)から第1中間タイミングtm1までに出力されたエンコーダ値PVmX,PVmY,PVmθに基づいて、次の撮像予定タイミングtkにおけるマーク5a,5bの移動速度Va,Vbを推定してもよい。
§4 Modification <4-1. Modification 1>
Based on the encoder values PVmX, PVmY, and PVmθ output from the imaging timing t (k-1) to the first intermediate timing tm1, the estimation unit 45 moves the marks 5a and 5b at the next scheduled imaging timing tk based on the moving speed Va of the marks 5a and 5b. , Vb may be estimated.

図8は、変形例1における移動速度Va,Vbの推定方法を説明する図である。図8に示されるに、推定部45は、撮像タイミングt(k−1)から第2中間タイミングtm2までの間のワーク2の移動量Δp2=(ΔX2,ΔY2,Δθ2)を推定する。第2中間タイミングtm2は、第1中間タイミングtm1よりも制御周期Tsのr倍(rは、1以上の整数である)の期間だけ前のタイミングである。rは、たとえば1、2または3である。移動量Δp2を推定する方法は、移動量Δp1を推定する方法と同じである。すなわち、推定部45は、撮像タイミングt(k−1)におけるエンコーダ値PVm(k−1)と、第2中間タイミングtm2におけるエンコーダ値PVm(m2)=(PVmX(m2),PVmY(m2),PVmθ(m2))との差を、移動量Δp2として推定する。   FIG. 8 is a diagram illustrating a method for estimating the moving speeds Va and Vb according to the first modification. As illustrated in FIG. 8, the estimating unit 45 estimates the moving amount Δp2 of the work 2 from the imaging timing t (k−1) to the second intermediate timing tm2 = (ΔX2, ΔY2, Δθ2). The second intermediate timing tm2 is a timing preceding the first intermediate timing tm1 by a period r times (r is an integer of 1 or more) the control cycle Ts. r is 1, 2 or 3, for example. The method of estimating the movement amount Δp2 is the same as the method of estimating the movement amount Δp1. That is, the estimation unit 45 calculates the encoder value PVm (k-1) at the imaging timing t (k-1) and the encoder value PVm (m2) = (PVmX (m2), PVmY (m2), at the second intermediate timing tm2. PVmθ (m2)) is estimated as the movement amount Δp2.

推定部45は、第2中間タイミングtm2における、マーク5aの位置(以下、「推定位置PM2a」という)およびマーク5bの位置(以下、「推定位置PM2b」という)を推定する。   The estimating unit 45 estimates the position of the mark 5a (hereinafter, referred to as “estimated position PM2a”) and the position of the mark 5b (hereinafter, referred to as “estimated position PM2b”) at the second intermediate timing tm2.

具体的には、推定部45は、最新の計測位置PSaと推定した移動量Δp2とを用いて、上記の式(2)に従って、推定位置PM2aを推定する。このとき、Ra( )は、θステージ110θの回転中心と計測位置PSaとの距離と、撮像タイミングt(k−1)からのθステージ110θの回転移動量Δθ2とに基づいて定められる。T( )は、撮像タイミングt(k−1)からの、Xステージ110Xの並進移動量ΔX2およびYステージ110Yの並進移動量ΔY2に応じて定められる。   Specifically, the estimation unit 45 estimates the estimated position PM2a using the latest measured position PSa and the estimated movement amount Δp2 according to the above equation (2). At this time, Ra () is determined based on the distance between the rotation center of the θ stage 110θ and the measurement position PSa, and the rotational movement amount Δθ2 of the θ stage 110θ from the imaging timing t (k-1). T () is determined according to the translation amount ΔX2 of the X stage 110X and the translation amount ΔY2 of the Y stage 110Y from the imaging timing t (k−1).

推定部45は、最新の計測位置PSbと推定した移動量Δp2とを用いて、上記の式(3)に従って、推定位置PM2bを推定する。このとき、Ra( )は、θステージ110θの回転中心と計測位置PSbとの距離と、撮像タイミングt(k−1)からのθステージ110θの回転移動量Δθ2とに基づいて定められる。T( )は、撮像タイミングt(k−1)からの、Xステージ110Xの並進移動量ΔX2およびYステージ110Yの並進移動量ΔY2に応じて定められる。   The estimation unit 45 estimates the estimated position PM2b using the latest measured position PSb and the estimated movement amount Δp2 according to the above equation (3). At this time, Ra () is determined based on the distance between the rotation center of the θ stage 110θ and the measurement position PSb, and the rotational movement amount Δθ2 of the θ stage 110θ from the imaging timing t (k-1). T () is determined according to the translation amount ΔX2 of the X stage 110X and the translation amount ΔY2 of the Y stage 110Y from the imaging timing t (k−1).

第1中間タイミングtm1から撮像予定タイミングtkまでの期間は、制御周期Tsの1〜数倍である。そのため、当該期間においてマーク5a,5bの移動速度はほとんど変化しない。したがって、推定部45は、第2中間タイミングtm2から第1中間タイミングtm1までの画像上のマーク5a,5bの移動速度を、撮像予定タイミングtkにおける画像上の移動速度Va,Vbとしてそれぞれ推定する。すなわち、推定部45は、以下の式(8)(9)に従って、撮像予定タイミングtkにおける画像上のマーク5aの移動速度Vaおよびマーク5bの移動速度Vbを推定する。   The period from the first intermediate timing tm1 to the scheduled imaging timing tk is one to several times the control cycle Ts. Therefore, the moving speed of the marks 5a and 5b hardly changes during the period. Therefore, the estimating unit 45 estimates the moving speeds of the marks 5a and 5b on the image from the second intermediate timing tm2 to the first intermediate timing tm1 as the moving speeds Va and Vb on the image at the scheduled imaging timing tk. That is, the estimating unit 45 estimates the moving speed Va of the mark 5a and the moving speed Vb of the mark 5b on the image at the scheduled imaging timing tk according to the following equations (8) and (9).

Va=(PM1a−PM2a)/(tm1−tm2) ・・・(8)
Vb=(PM1b−PM2b)/(tm1−tm2) ・・・(9)
式(8)において、「PM1a−PM2a」は、推定位置PM1aと推定位置PM2aとの距離を示す。式(9)において、「PM1b−PM2b」は、推定位置PM1bと推定位置PM2bとの距離を示す。「tm1−tm2」は、第2中間タイミングtm2から第1中間タイミングtm1までの時間を示す。
Va = (PM1a-PM2a) / (tm1-tm2) (8)
Vb = (PM1b-PM2b) / (tm1-tm2) (9)
In Expression (8), “PM1a−PM2a” indicates a distance between the estimated position PM1a and the estimated position PM2a. In Expression (9), “PM1b−PM2b” indicates a distance between the estimated position PM1b and the estimated position PM2b. "Tm1-tm2" indicates the time from the second intermediate timing tm2 to the first intermediate timing tm1.

このようにして、推定部45は、次の撮像予定タイミングtkよりも前の第1中間タイミングtm1において、撮像予定タイミングtkにおけるマーク5a,5bの移動速度Va,Vbをそれぞれ推定する。   In this way, the estimation unit 45 estimates the moving speeds Va and Vb of the marks 5a and 5b at the scheduled imaging timing tk at the first intermediate timing tm1 before the next scheduled imaging timing tk.

<4−2.変形例2>
上記の説明では、撮像タイミングt(k−1)から第1中間タイミングtm1までの間のワーク2の移動量Δp1は、エンコーダ値PVmX,PVmY,PVmθに基づいて推定された。しかしながら、推定部45は、撮像タイミングt(k−1)から第1中間タイミングtm1までの期間に生成された移動指令MVX,MVY,MVθに基づいて、当該期間におけるワーク2の移動量Δp1を推定してもよい。
<4-2. Modification 2>
In the above description, the movement amount Δp1 of the work 2 from the imaging timing t (k−1) to the first intermediate timing tm1 has been estimated based on the encoder values PVmX, PVmY, PVmθ. However, based on the movement commands MVX, MVY, MVθ generated during the period from the imaging timing t (k−1) to the first intermediate timing tm1, the estimation unit 45 estimates the movement amount Δp1 of the work 2 during the period. May be.

ワーク2が載置された移動機構100は、移動指令MVX,MVY,MVθに従って移動する。そのため、撮像タイミングt(k−1)から第1中間タイミングtm1までの期間におけるワーク2のX方向の並進移動量ΔX1は、当該期間に生成された移動指令MVXから推定される。同様に、撮像タイミングt(k−1)から第1中間タイミングtm1までの期間におけるワーク2のY方向の並進移動量ΔY1は、当該期間に生成された移動指令MVYから推定される。撮像タイミングt(k−1)から第1中間タイミングtm1までの期間におけるワーク2の回転移動量Δθ1は、当該期間に生成された移動指令MVθから推定される。   The moving mechanism 100 on which the work 2 is placed moves according to the movement commands MVX, MVY, MVθ. Therefore, the translation amount ΔX1 of the workpiece 2 in the X direction during the period from the imaging timing t (k−1) to the first intermediate timing tm1 is estimated from the movement command MVX generated during the period. Similarly, the translation amount ΔY1 of the work 2 in the Y direction during the period from the imaging timing t (k−1) to the first intermediate timing tm1 is estimated from the movement command MVY generated during the period. The rotational movement amount Δθ1 of the work 2 during the period from the imaging timing t (k−1) to the first intermediate timing tm1 is estimated from the movement command MVθ generated during the period.

推定部45は、たとえば移動指令MVXが速度指令であり、時刻tにおける移動指令MVXの値をMVX(t)とすると、以下の式(10)に従って、並進移動量ΔX1を算出する。制御周期Tsの間、MVX(t)は一定である。   For example, assuming that the movement command MVX is a speed command and the value of the movement command MVX at time t is MVX (t), the estimating unit 45 calculates the translation movement amount ΔX1 according to the following equation (10). MVX (t) is constant during the control cycle Ts.

同様に、推定部45は、以下の式(11),(12)に従って、撮像タイミングt(k−1)から第1中間タイミングtm1までの期間における、Y方向の並進移動量ΔY1と、回転移動量Δθ1とを算出する。式(11)において、MVY(t)は、時刻tにおける移動指令MVYの値を示す。式(12)において、MVθ(t)は、時刻tにおける移動指令MVθの値を示す。移動指令MVY,MVθは速度指令であり、MVY(t)およびMVθ(t)は、制御周期Tsの間、一定である。   Similarly, the estimating unit 45 calculates the translation amount ΔY1 in the Y direction and the rotational movement in the period from the imaging timing t (k−1) to the first intermediate timing tm1 according to the following equations (11) and (12). The quantity Δθ1 is calculated. In equation (11), MVY (t) indicates the value of the movement command MVY at time t. In equation (12), MVθ (t) indicates the value of the movement command MVθ at time t. The movement commands MVY and MVθ are speed commands, and MVY (t) and MVθ (t) are constant during the control cycle Ts.

このようにして、推定部45は、撮像タイミングt(k−1)から第1中間タイミングtm1までに生成された移動指令MVX,MVY,MVθに基づいて、次の撮像予定タイミングtkにおけるマーク5a,5bの移動速度Va,Vbを推定してもよい。   In this manner, the estimating unit 45 determines the marks 5a, 5a at the next scheduled imaging timing tk based on the movement commands MVX, MVY, MVθ generated from the imaging timing t (k-1) to the first intermediate timing tm1. The moving speeds Va and Vb of 5b may be estimated.

<4−3.変形例3>
上記の説明では、移動制御部41は、推定位置PVが目標位置SPに近づくように、移動指令MVX,MVY,MVθを生成する。しかしながら、ワーク2をより滑らかに移動させるための移動機構100の目標軌道が決定され、決定された目標軌道に従って移動機構100が制御されてもよい。この場合、決定された目標軌道に基づいて、撮像予定タイミングtkにおける画像上のマーク5a,5bの移動速度Va,Vbが推定されてもよい。
<4-3. Modification 3>
In the above description, the movement control unit 41 generates the movement commands MVX, MVY, MVθ so that the estimated position PV approaches the target position SP. However, the target trajectory of the moving mechanism 100 for moving the workpiece 2 more smoothly may be determined, and the moving mechanism 100 may be controlled according to the determined target trajectory. In this case, the moving speeds Va and Vb of the marks 5a and 5b on the image at the scheduled imaging timing tk may be estimated based on the determined target trajectory.

<4−3−1.制御システムの機能構成>
図9は、変形例3に係る制御システム1Aの機能構成を示すブロック図である。図9に示されるように、制御システム1Aは、図4に示す制御システム1と比較して、モーションコントローラ400の代わりにモーションコントローラ400Aを備える点で相違する。モーションコントローラ400Aは、モーションコントローラ400と比較して、移動制御部41および推定部45の代わりに、移動制御部41Aおよび推定部45Aをそれぞれ含む点で相違する。移動制御部41Aは、移動制御部41と比較して、位置決定部42、減算部43および演算部44の代わりに目標軌道決定部47および演算部44Aを備える点で相違する。
<4-3-1. Functional configuration of control system>
FIG. 9 is a block diagram illustrating a functional configuration of a control system 1A according to the third modification. As shown in FIG. 9, the control system 1A is different from the control system 1 shown in FIG. 4 in that a motion controller 400A is provided instead of the motion controller 400. The motion controller 400A is different from the motion controller 400 in that the motion controller 400A includes a movement control unit 41A and an estimation unit 45A instead of the movement control unit 41 and the estimation unit 45. The movement control unit 41A is different from the movement control unit 41 in that a target trajectory determination unit 47 and a calculation unit 44A are provided instead of the position determination unit 42, the subtraction unit 43, and the calculation unit 44.

<4−3−1−1.目標軌道決定部>
目標軌道決定部47は、画像処理装置304によって特定されたマーク5aの計測位置PSaおよびマーク5bの計測位置PSbと、目標位置SPとに基づいて、移動機構100の目標軌道を決定する。具体的には、以下のようにして目標軌道を決定する。
<4-3-1-1. Target trajectory determination unit>
The target trajectory determination unit 47 determines a target trajectory of the moving mechanism 100 based on the measurement position PSa of the mark 5a and the measurement position PSb of the mark 5b specified by the image processing device 304 and the target position SP. Specifically, the target trajectory is determined as follows.

目標軌道決定部47は、最新の計測位置PSa,PSbに基づいて、撮像タイミングt(k−1)におけるワーク2の実位置を特定する。目標軌道決定部47は、特定したワーク2の実位置から目標位置SPに移動させるための移動機構100の必要移動距離Loを算出する。目標軌道決定部47は、移動機構100の必要移動距離Loを、X軸方向の必要移動距離LXとY軸方向の必要移動距離LYと回転方向の必要移動距離Lθに分解する。   The target trajectory determination unit 47 specifies the actual position of the work 2 at the imaging timing t (k-1) based on the latest measurement positions PSa and PSb. The target trajectory determination unit 47 calculates a required moving distance Lo of the moving mechanism 100 for moving the specified work 2 from the actual position to the target position SP. The target trajectory determination unit 47 divides the required moving distance Lo of the moving mechanism 100 into the required moving distance LX in the X-axis direction, the required moving distance LY in the Y-axis direction, and the required moving distance Lθ in the rotation direction.

目標軌道決定部47は、必要移動距離LXと、Xステージ110Xの目標位置SPXとに基づいて、Xステージ110Xの目標軌道TGXを決定する。目標軌道決定部47は、必要移動距離LYと、Yステージ110Yの目標位置SPYとに基づいて、Yステージ110Yの目標軌道TGYを決定する。目標軌道決定部47は、必要移動距離Lθと、θステージ110θの目標位置SPθとに基づいて、θステージ110θの目標軌道TGθを決定する。   The target trajectory determining unit 47 determines a target trajectory TGX of the X stage 110X based on the required moving distance LX and the target position SPX of the X stage 110X. The target trajectory determination unit 47 determines a target trajectory TGY of the Y stage 110Y based on the required moving distance LY and the target position SPY of the Y stage 110Y. The target trajectory determination unit 47 determines the target trajectory TGθ of the θ stage 110θ based on the required moving distance Lθ and the target position SPθ of the θ stage 110θ.

図10は、目標軌道TGX,TGY,TGθの一例を示す図である。目標軌道TGXは、時刻tにおける目標軌道TGXの位置と目標位置SPXとの偏差の時間変化を示す関数LX(t)が5次以上の多次関数となるように決定される。関数LX(t)は、必要移動距離LXと時刻tとを少なくとも説明変数とする関数である。同様に、目標軌道TGYは、時刻tにおける目標軌道TGYの位置と目標位置SPYとの偏差の時間変化を示す関数LY(t)が5次以上の多次関数となるように決定される。目標軌道TGθは、時刻tにおける目標軌道TGθの位置と目標位置SPθとの偏差の時間変化を示す関数Lθ(t)が5次以上の多次関数となるように決定される。   FIG. 10 is a diagram illustrating an example of the target trajectories TGX, TGY, and TGθ. The target trajectory TGX is determined so that the function LX (t) indicating the time change of the deviation between the position of the target trajectory TGX at time t and the target position SPX is a fifth-order or higher-order function. The function LX (t) is a function in which the required moving distance LX and the time t are at least explanatory variables. Similarly, the target trajectory TGY is determined such that the function LY (t) indicating the time change of the deviation between the position of the target trajectory TGY and the target position SPY at the time t is a fifth-order or higher-order function. The target trajectory TGθ is determined so that the function Lθ (t) indicating the time change of the deviation between the position of the target trajectory TGθ at time t and the target position SPθ is a multidimensional function of order 5 or higher.

目標軌道決定部47は、決定した目標軌道TGX,TGY,TGθと目標位置SPX,SPY,SPθとの偏差の時間変化をそれぞれ示す関数LX(t),LY(t),Lθ(t)を演算部44Aに出力する。関数LX(t),LY(t),Lθ(t)は、それぞれ目標軌道TGX,TGY,TGθを示す情報である。   The target trajectory determination unit 47 calculates functions LX (t), LY (t), and Lθ (t) indicating the time change of the deviation between the determined target trajectories TGX, TGY, TGθ and the target positions SPX, SPY, SPθ, respectively. Output to the unit 44A. The functions LX (t), LY (t), Lθ (t) are information indicating the target trajectories TGX, TGY, TGθ, respectively.

目標軌道決定部47は、撮像周期Tbごとに、画像処理装置304によって特定されたマーク5a,5bの最新の計測位置PSa,PSbに従って、関数LX(t),LY(t),Lθ(t)を更新する。   The target trajectory determination unit 47 determines the functions LX (t), LY (t), Lθ (t) according to the latest measurement positions PSa, PSb of the marks 5a, 5b specified by the image processing device 304 for each imaging cycle Tb. To update.

<4−3−1−2.演算部>
演算部44Aは、関数LX(t),LY(t),Lθ(t)に基づいて、制御周期Tsごとに移動指令MVX、MVY,MVθをそれぞれ算出する。具体的には、演算部44Aは、関数LX(t)に現時刻tを代入することにより、目標位置SPXに対する目標軌道TGXにおける現時刻tの位置の偏差を算出する。演算部44Aは、算出した偏差に対してたとえばP演算を行なうことにより、移動指令MVXを算出する。演算部44Aは、同様の方法により、移動指令MVY,MVθを算出する。
<4-3-1-2. Arithmetic unit>
The calculation unit 44A calculates the movement commands MVX, MVY, MVθ for each control cycle Ts based on the functions LX (t), LY (t), Lθ (t). Specifically, the arithmetic unit 44A calculates the deviation of the position of the current time t on the target trajectory TGX from the target position SPX by substituting the current time t into the function LX (t). Arithmetic unit 44A calculates movement command MVX by performing, for example, P operation on the calculated deviation. The calculation unit 44A calculates the movement commands MVY and MVθ by the same method.

<4−3−1−3.推定部>
推定部45Aは、目標軌道決定部47によって決定された目標軌道TGX,TGY,TGθに基づいて、撮像タイミングt(k−1)から第1中間タイミングtm1までのワーク2の移動量Δp1を推定する。具体的には、図10に示されるように、推定部45Aは、目標軌道TGXにおける撮像タイミングt(k−1)から第1中間タイミングtm1までの移動量を、ワーク2のX方向の並進移動量ΔX1として算出する。同様に、推定部45Aは、目標軌道TGYにおける撮像タイミングt(k−1)から第1中間タイミングtm1までの移動量を、ワーク2のY方向の並進移動量ΔY1として算出する。推定部45Aは、目標軌道TGθにおける撮像タイミングt(k−1)から第1中間タイミングtm1までの移動量を、ワーク2の回転移動量Δθ1として算出する。
<4-3-1-3. Estimation part>
The estimation unit 45A estimates the movement amount Δp1 of the work 2 from the imaging timing t (k−1) to the first intermediate timing tm1, based on the target trajectories TGX, TGY, and TGθ determined by the target trajectory determination unit 47. . Specifically, as illustrated in FIG. 10, the estimation unit 45A calculates the translation amount of the workpiece 2 in the X direction from the imaging timing t (k−1) to the first intermediate timing tm1 in the target trajectory TGX. It is calculated as the amount ΔX1. Similarly, the estimating unit 45A calculates the movement amount of the target trajectory TGY from the imaging timing t (k-1) to the first intermediate timing tm1 as the translation movement amount ΔY1 of the work 2 in the Y direction. The estimating unit 45A calculates the movement amount from the imaging timing t (k-1) to the first intermediate timing tm1 on the target trajectory TGθ as the rotation movement amount Δθ1 of the work 2.

推定部45Aは、最新の計測位置PSaと推定した移動量Δp1とを用いて、上記の式(2)に従って、第1中間タイミングtm1におけるマーク5aの推定位置PM1aを推定する。推定部45Aは、最新の計測位置PSbと推定した移動量Δp1とを用いて、上記の式(3)に従って、第1中間タイミングtm1におけるマーク5bの推定位置PM1bを推定する。   The estimating unit 45A estimates the estimated position PM1a of the mark 5a at the first intermediate timing tm1 according to the above equation (2) using the latest measured position PSa and the estimated movement amount Δp1. The estimating unit 45A estimates the estimated position PM1b of the mark 5b at the first intermediate timing tm1 according to the above equation (3) using the latest measured position PSb and the estimated movement amount Δp1.

さらに、推定部45Aは、目標軌道TGX,TGY,TGθに基づいて、撮像タイミングt(k−1)から撮像予定タイミングtkまでのワーク2の移動量Δpk=(ΔXk,ΔYk,Δθk)を推定する。具体的には、推定部45Aは、目標軌道TGXにおける撮像タイミングt(k−1)から撮像予定タイミングtkまでの移動量を、ワーク2のX方向の並進移動量ΔXkとして算出する。同様に、推定部45Aは、目標軌道TGYにおける撮像タイミングt(k−1)から撮像予定タイミングtkまでの移動量を、ワーク2のY方向の並進移動量ΔYkとして算出する。推定部45Aは、目標軌道TGθにおける撮像タイミングt(k−1)から撮像予定タイミングtkまでの移動量を、ワーク2の回転移動量Δθkとして算出する。   Further, the estimating unit 45A estimates the moving amount Δpk of the work 2 from the imaging timing t (k−1) to the scheduled imaging timing tk based on the target trajectories TGX, TGY, and TGθ. . Specifically, the estimating unit 45A calculates the movement amount from the imaging timing t (k-1) to the scheduled imaging timing tk on the target trajectory TGX as the translation movement amount ΔXk of the work 2 in the X direction. Similarly, the estimating unit 45A calculates the movement amount of the target trajectory TGY from the imaging timing t (k−1) to the scheduled imaging timing tk as the translation movement amount ΔYk of the workpiece 2 in the Y direction. The estimating unit 45A calculates the amount of movement from the imaging timing t (k-1) to the scheduled imaging timing tk on the target trajectory TGθ as the rotational movement amount Δθk of the work 2.

推定部45Aは、最新の計測位置PSaのX座標xsaおよびY座標ysaを上記の式(2)の右辺に代入することにより、撮像予定タイミングtkにおけるマーク5aの予測位置PEaを推定する。このとき、Ra( )は、θステージ110θの回転中心と計測位置PSaとの距離と、撮像タイミングt(k−1)からのθステージ110θの回転移動量Δθkとに基づいて定められる。T( )は、撮像タイミングt(k−1)からの、Xステージ110Xの並進移動量ΔXkおよびYステージ110Yの並進移動量ΔYkに応じて定められる。   The estimation unit 45A estimates the predicted position PEa of the mark 5a at the scheduled imaging timing tk by substituting the X coordinate xsa and the Y coordinate ysa of the latest measurement position PSa into the right side of the above equation (2). At this time, Ra () is determined based on the distance between the rotation center of the θ stage 110θ and the measurement position PSa, and the rotational movement amount Δθk of the θ stage 110θ from the imaging timing t (k-1). T () is determined according to the translation amount ΔXk of the X stage 110X and the translation amount ΔYk of the Y stage 110Y from the imaging timing t (k−1).

同様に、推定部45Aは、最新の計測位置PSbのX座標xsbおよびY座標ysbを上記の式(3)の左辺に代入することにより、撮像予定タイミングtkにおけるマーク5bの予測位置PEbを推定する。このとき、Ra( )は、θステージ110θの回転中心と計測位置PSbとの距離と、撮像タイミングt(k−1)からのθステージ110θの回転移動量Δθkとに基づいて定められる。T( )は、撮像タイミングt(k−1)からの、Xステージ110Xの並進移動量ΔXkおよびYステージ110Yの並進移動量ΔYkに応じて定められる。   Similarly, the estimation unit 45A estimates the predicted position PEb of the mark 5b at the scheduled imaging timing tk by substituting the X coordinate xsb and the Y coordinate ysb of the latest measurement position PSb into the left side of the above equation (3). . At this time, Ra () is determined based on the distance between the rotation center of the θ stage 110θ and the measurement position PSb, and the rotational movement amount Δθk of the θ stage 110θ from the imaging timing t (k-1). T () is determined according to the translation amount ΔXk of the X stage 110X and the translation amount ΔYk of the Y stage 110Y from the imaging timing t (k−1).

推定部45Aは、上記の式(4),(5)に従って、撮像予定タイミングtkにおける、マーク5aの移動速度Vaおよびマーク5bの移動速度Vbを推定する。   The estimating unit 45A estimates the moving speed Va of the mark 5a and the moving speed Vb of the mark 5b at the scheduled imaging timing tk according to the above equations (4) and (5).

<4−3−2.目標軌道決定部の処理>
図11は、目標軌道決定部における処理の流れを示すフローチャートである。図11に示される処理は、画像処理装置304によってマーク5a,5bの計測位置PSa,PSbが特定されるたびに行なわれる。
<4-3-2. Processing of target trajectory determination unit>
FIG. 11 is a flowchart illustrating a flow of processing in the target trajectory determination unit. The process shown in FIG. 11 is performed each time the measurement positions PSa and PSb of the marks 5a and 5b are specified by the image processing device 304.

ステップS31において、目標軌道決定部47は、マーク5a,5bの計測位置PSa,PSbを画像処理装置304から取得する。   In step S31, the target trajectory determining unit 47 acquires the measurement positions PSa and PSb of the marks 5a and 5b from the image processing device 304.

ステップS32において、目標軌道決定部47は、マーク5a,5bの計測位置PSa,PSbに基づいて、ワーク2の実位置を特定する。そして、目標軌道決定部47は、特定したワーク2の実位置から目標位置SPに移動させるための、X軸方向の必要移動距離LXとY軸方向の必要移動距離LYと回転方向の必要移動距離Lθとを算出する。   In step S32, the target trajectory determination unit 47 specifies the actual position of the work 2 based on the measurement positions PSa, PSb of the marks 5a, 5b. Then, the target trajectory determination unit 47 calculates the required movement distance LX in the X-axis direction, the required movement distance LY in the Y-axis direction, and the required movement distance in the rotation direction for moving the specified work 2 from the actual position to the target position SP. Lθ is calculated.

ステップS33において、目標軌道決定部47は、必要移動距離LX,LY,Lθを補正する。当該補正は、移動機構100上におけるワーク2のすべりや、移動機構100の位置決め後における残留振動を抑制するために行なわれる。なお、ワーク2のすべりや残留振動が無視できる程度に小さい場合には、ステップS33は省略されてもよい。   In step S33, the target trajectory determination unit 47 corrects the required movement distances LX, LY, Lθ. The correction is performed in order to suppress the slip of the work 2 on the moving mechanism 100 and the residual vibration after the positioning of the moving mechanism 100. If the slip or the residual vibration of the work 2 is small enough to be ignored, step S33 may be omitted.

ステップS33の補正方法は、以下の通りである。目標軌道決定部47は、エンコーダ130からのエンコーダ値に基づいて決定される移動機構100の実位置と、前回決定した目標軌道における現時刻の位置との位置偏差En(t)を誤差として算出する。位置偏差En(t)は、X軸方向の成分EnX(t)と、Y軸方向の成分EnY(t)と、回転方向の成分Enθ(t)とに分解される。   The correction method in step S33 is as follows. The target trajectory determination unit 47 calculates, as an error, a position deviation En (t) between the actual position of the moving mechanism 100 determined based on the encoder value from the encoder 130 and the current time position on the target trajectory determined last time. . The position deviation En (t) is decomposed into a component EnX (t) in the X-axis direction, a component EnY (t) in the Y-axis direction, and a component Enθ (t) in the rotation direction.

目標軌道決定部47は、必要移動距離LXを位置偏差EnX(t)で補正することにより、補正後の必要移動距離LXmを算出する。同様に、目標軌道決定部47は、必要移動距離LYを位置偏差EnY(t)で補正することにより、補正後の必要移動距離LYmを算出する。目標軌道決定部47は、必要移動距離Lθを位置偏差Enθ(t)で補正することにより、補正後の必要移動距離Lθmを算出する。   The target trajectory determination unit 47 calculates the required moving distance LXm after correction by correcting the necessary moving distance LX with the position deviation EnX (t). Similarly, the target trajectory determination unit 47 calculates the corrected required moving distance LYm by correcting the required moving distance LY with the position deviation EnY (t). The target trajectory determining unit 47 calculates the corrected required moving distance Lθm by correcting the required moving distance Lθ with the position deviation Enθ (t).

ステップS34において、目標軌道決定部47は、計測時刻tをゼロに初期化する。ステップS35において、目標軌道決定部47は、軌道時間Tを算出する。軌道時間Tは、目標軌道TGX,TGY,TGθの開始点から終了点まで移動機構100を移動するために要する時間を表わす。一例として、軌道時間Tは、以下の式(13)に基づいて算出される。   In step S34, the target trajectory determination unit 47 initializes the measurement time t to zero. In step S35, the target trajectory determination unit 47 calculates the trajectory time T. The trajectory time T represents the time required to move the moving mechanism 100 from the start point to the end point of the target trajectories TGX, TGY, TGθ. As an example, the trajectory time T is calculated based on the following equation (13).

T=max{f(Amax),Tmin} ・・・(13)
上記式(13)に示される「Amax」は、最大加速度を表わす。「f()」は、最大加速度Amaxで必要移動距離を移動機構100に移動させた場合にかかる軌道時間を求めるための関数である。「Tmin」は、所定の最小軌道時間である。「max(α,β)」は、数値α,βの内から最大値を取得するための関数である。
T = max {f (Amax), Tmin} (13)
“Amax” shown in the above equation (13) represents the maximum acceleration. “F ()” is a function for calculating the trajectory time required when the necessary moving distance is moved to the moving mechanism 100 at the maximum acceleration Amax. “Tmin” is a predetermined minimum trajectory time. “Max (α, β)” is a function for obtaining the maximum value from the numerical values α and β.

上記式(13)により、軌道時間Tは、最小軌道時間Tmin未満にならないように決められる。最小軌道時間Tminが設けられていなければ、必要移動距離Loが非常に小さい場合に、移動機構100が目標位置にすぐに到達してしまうので、次の撮像タイミングまでの時間を無駄にすることになる。しかしながら、最小軌道時間Tminが設けられることで、必要移動距離Loが非常に小さい場合に、移動機構100は、最大加速度よりも低い加速度で移動することとなり、移動機構100は、滑らかに移動することができる。一例として、最小軌道時間Tminは、平均撮像間隔に対して一定の割合(たとえば、50%)を乗じることで算出される。   According to the above equation (13), the orbit time T is determined so as not to be less than the minimum orbit time Tmin. If the minimum trajectory time Tmin is not provided, when the required moving distance Lo is very small, the moving mechanism 100 immediately reaches the target position, so that the time until the next imaging timing is wasted. Become. However, by providing the minimum trajectory time Tmin, when the required movement distance Lo is extremely small, the moving mechanism 100 moves at an acceleration lower than the maximum acceleration, and the moving mechanism 100 moves smoothly. Can be. As an example, the minimum trajectory time Tmin is calculated by multiplying the average imaging interval by a fixed ratio (for example, 50%).

ステップS36において、目標軌道決定部47は、ステップS33で得られた必要移動距離LXm,LYm,Lθmと、ステップS35で算出された軌道時間Tとに基づいて、目標軌道TGX,TGY,TGθをそれぞれ決定する。   In step S36, the target trajectory determination unit 47 sets the target trajectories TGX, TGY, and TGθ on the basis of the required movement distances LXm, LYm, and Lθm obtained in step S33 and the trajectory time T calculated in step S35, respectively. decide.

具体的には、目標軌道決定部47は、目標軌道TGXの位置と目標位置SPXとの偏差の時間変化を示す関数LX(t)が以下の式(14)で表されるように、目標軌道TGXを決定する。目標軌道決定部47は、目標軌道TGYの位置と目標位置SPYとの偏差の時間変化を示す関数LY(t)が以下の式(15)で表されるように、目標軌道TGYを決定する。目標軌道決定部47は、目標軌道TGθの位置と目標位置SPθとの偏差の時間変化を示す関数Lθ(t)が以下の式(16)で表されるように、目標軌道TGθを決定する。   Specifically, the target trajectory determination unit 47 sets the target trajectory TGX such that a function LX (t) indicating a time change of the deviation between the position of the target trajectory TGX and the target position SPX is represented by the following equation (14). Determine TGX. The target trajectory determination unit 47 determines the target trajectory TGY such that a function LY (t) indicating the time change of the deviation between the position of the target trajectory TGY and the target position SPY is represented by the following equation (15). The target trajectory determination unit 47 determines the target trajectory TGθ such that a function Lθ (t) indicating the time change of the deviation between the position of the target trajectory TGθ and the target position SPθ is represented by the following equation (16).

LX(t)=LXm*[1−(t/T){10−15(t/T)+6(t/T)}]・・・(14)
LY(t)=LYm*[1−(t/T){10−15(t/T)+6(t/T)}]・・・(15)
Lθ(t)=Lθm*[1−(t/T){10−15(t/T)+6(t/T)}]・・・(16)
式(14)〜(16)に示されるように、関数LX(t),LY(t),Lθ(t)は、必要移動距離LXm,LYm,Lθmと時刻tとを少なくとも説明変数とし、目標位置SpX,SPY,SPθとの偏差を目的変数とする多次関数である。
LX (t) = LXm * [1- (t / T) 3 {10-15 (t / T) +6 (t / T) 2 }] (14)
LY (t) = LYm * [1- (t / T) 3 {10-15 (t / T) +6 (t / T) 2 }] (15)
Lθ (t) = Lθm * [1− (t / T) 3 {10−15 (t / T) +6 (t / T) 2 }} (16)
As shown in Expressions (14) to (16), the functions LX (t), LY (t), and Lθ (t) use the required movement distances LXm, LYm, Lθm and time t at least as explanatory variables, and This is a multi-dimensional function using deviations from the positions SpX, SPY, and SPθ as objective variables.

なお、上記の式(14)〜(16)に示す関数LX(t),LY(t),Lθ(t)は、5次関数であるが、関数LX(t),LY(t),Lθ(t)は、6次以上の多次関数であってもよい。   The functions LX (t), LY (t) and Lθ (t) shown in the above equations (14) to (16) are quintic functions, but the functions LX (t), LY (t) and Lθ (T) may be a sixth-order or higher order function.

最大加速度Amaxが与えられた場合、軌道時間Tは、下記式(17)〜(19)で計算される。なお、式(17)において、Lmは、LXm,LYm,Lθmである。   When the maximum acceleration Amax is given, the trajectory time T is calculated by the following equations (17) to (19). In equation (17), Lm is LXm, LYm, Lθm.

f(Amax)=C*Lm/Amax ・・・(17)
=60C(2C −3C+1) ・・・(18)
=0.5−31/2/6 ・・・(19)
このようにして、目標軌道決定部47は、計測位置PSa,PSbが特定されるたびに、移動機構100が目標位置SPに到達するまでの間の目標軌道TGX,TGY,TGθをそれぞれ示す関数LX(t),LY(t),Lθ(t)を一括して算出する。
f (Amax) = C 1 * Lm / Amax (17)
C 1 = 60C 2 (2C 2 2 -3C 2 +1) ··· (18)
C 2 = 0.5-3 1/2 / 6 ··· (19)
In this manner, every time the measurement positions PSa and PSb are specified, the target trajectory determination unit 47 sets the functions LX indicating the target trajectories TGX, TGY, and TGθ until the moving mechanism 100 reaches the target position SP. (T), LY (t), and Lθ (t) are collectively calculated.

<4−4.その他の変形例>
上記の説明では、移動機構100はXYθテーブルとした。しかしながら、移動機構100は、θXYテーブル、UVWテーブル、XYテーブル、XYZテーブル、多関節ロボットなどであってもよい。
<4-4. Other variations>
In the above description, the moving mechanism 100 is an XYθ table. However, the moving mechanism 100 may be a θXY table, a UVW table, an XY table, an XYZ table, an articulated robot, or the like.

上記の説明では、ワーク2に設けられたマーク5a,5bをワーク2の特徴部分として用いてワーク2が位置決めされる。しかしながら、ワーク2の他の部分をワーク2の特徴部分として用いてワーク2が位置決めされてもよい。たとえば、ワーク2に設けられたネジまたはネジ穴をワーク2の特徴部分として用いてもよい。もしくは、ワーク2の角部をワーク2の特徴部分として用いてもよい。   In the above description, the work 2 is positioned using the marks 5a and 5b provided on the work 2 as characteristic portions of the work 2. However, the work 2 may be positioned using another part of the work 2 as a characteristic part of the work 2. For example, a screw or a screw hole provided in the work 2 may be used as a characteristic portion of the work 2. Alternatively, a corner of the work 2 may be used as a characteristic portion of the work 2.

サーボモータ120X,120Y,120θは、回転式モータではなく、リニアモータであってもよい。また、エンコーダ130は、リニアエンコーダであってもよい。この場合、推定部45は、モータの駆動量を示す情報として直線軸の位置を示す情報を取得し、取得した情報に基づいて、移動量Δp1を推定すればよい。   The servomotors 120X, 120Y, 120θ may be linear motors instead of rotary motors. Further, the encoder 130 may be a linear encoder. In this case, the estimation unit 45 may acquire information indicating the position of the linear axis as information indicating the drive amount of the motor, and estimate the movement amount Δp1 based on the acquired information.

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

(構成1)
対象物(2)を移動させる移動機構(100)を制御して、前記対象物(2)の位置決めを行なう制御システム(1,1A)であって、
前記対象物(2)を撮像タイミングごとに撮像することにより画像を取得し、当該画像に基づいて、前記対象物(2)の特徴部分(5a,5b)の位置を特定するための視覚センサ(300)と、
前記視覚センサ(300)によって特定された前記特徴部分(5a,5b)の位置に基づいて、前記対象物(2)の位置が目標位置に近づくように前記移動機構(100)を制御するための移動制御部(41,41A)と、
最新の撮像タイミングで撮像された画像から前記視覚センサ(300)によって特定された前記特徴部分(5a,5b)の最新の位置と、前記移動機構(100)からの情報および前記移動制御部(41,41A)によって生成される情報の少なくとも一方を含む参照情報とに基づいて、次の撮像予定タイミングにおける前記特徴部分(5a,5b)の移動速度を推定するための推定部(45,45A)と、
前記移動速度が閾値未満である場合に前記撮像予定タイミングで撮像させ、前記移動速度が閾値を超える場合に前記撮像予定タイミングで撮像させないように、前記視覚センサ(300)を制御するための撮像制御部(46)とを備える、制御システム(1,1A)。
(Configuration 1)
A control system (1, 1A) for controlling a moving mechanism (100) for moving an object (2) to position the object (2),
An image is acquired by imaging the object (2) at each imaging timing, and based on the image, a visual sensor (5) for specifying the position of a characteristic portion (5a, 5b) of the object (2). 300)
For controlling the moving mechanism (100) such that the position of the object (2) approaches a target position based on the position of the characteristic portion (5a, 5b) specified by the visual sensor (300). A movement control unit (41, 41A);
The latest position of the characteristic portion (5a, 5b) specified by the visual sensor (300) from the image captured at the latest imaging timing, information from the moving mechanism (100), and the movement control unit (41) An estimating unit (45, 45A) for estimating the moving speed of the characteristic portion (5a, 5b) at the next scheduled imaging timing based on the reference information including at least one of the information generated by ,
An imaging control for controlling the visual sensor (300) so that an image is captured at the scheduled imaging timing when the moving speed is less than a threshold and is not imaged at the scheduled imaging timing when the moving speed exceeds the threshold. A control system (1, 1A), comprising:

(構成2)
前記移動機構(100)は、前記対象物(2)を移動させるために駆動されるモータを含み、
前記参照情報は、前記最新の撮像タイミングからの前記モータの駆動量を示す情報を含む、構成1に記載の制御システム(1)。
(Configuration 2)
The moving mechanism (100) includes a motor driven to move the object (2),
The control system (1) according to Configuration 1, wherein the reference information includes information indicating a driving amount of the motor from the latest imaging timing.

(構成3)
前記移動制御部(41,41A)は、制御周期ごとに前記移動機構(100)に対する移動指令を生成し、
前記参照情報は、前記最新の撮像タイミング以降に前記移動制御部(41,41A)によって生成された移動指令を示す情報を含む、構成1または2に記載の制御システム(1)。
(Configuration 3)
The movement control unit (41, 41A) generates a movement command for the movement mechanism (100) for each control cycle,
The control system (1) according to configuration 1 or 2, wherein the reference information includes information indicating a movement command generated by the movement control unit (41, 41A) after the latest imaging timing.

(構成4)
前記移動制御部(41A)は、前記最新の位置に基づいて前記移動機構(100)の目標軌道を決定し、決定した前記目標軌道に従って移動するように前記移動機構(100)を制御し、
前記参照情報は、前記目標軌道を示す情報を含む、構成1に記載の制御システム(1A)。
(Configuration 4)
The movement control unit (41A) determines a target trajectory of the moving mechanism (100) based on the latest position, and controls the moving mechanism (100) to move according to the determined target trajectory;
The control system (1A) according to Configuration 1, wherein the reference information includes information indicating the target trajectory.

(構成5)
対象物(2)を移動させる移動機構(100)と、前記対象物(2)を撮像することにより画像を取得し、当該画像に基づいて、前記対象物(2)の特徴部分(5a,5b)の位置を特定するための視覚センサ(300)とを制御して、前記対象物(2)の位置決めを行なう制御装置(400)であって、
前記視覚センサ(300)によって特定された前記特徴部分(5a,5b)の位置に基づいて、前記対象物(2)の位置が目標位置に近づくように前記移動機構(100)を制御するための移動制御部(41,41A)と、
最新の撮像タイミングで撮像された画像から前記視覚センサ(300)によって特定された前記特徴部分(5a,5b)の最新の位置と、前記移動機構(100)からの情報および前記移動制御部(41,41A)によって生成される情報の少なくとも一方を含む参照情報とに基づいて、次の撮像予定タイミングにおける前記特徴部分(5a,5b)の移動速度を推定するための推定部(45,45A)と、
前記移動速度が閾値未満である場合に前記撮像予定タイミングで撮像させ、前記移動速度が閾値を超える場合に前記撮像予定タイミングで撮像させないように、前記視覚センサ(300)を制御するための撮像制御部(46)とを備える、制御装置(400)。
(Configuration 5)
A moving mechanism (100) for moving the object (2) and an image obtained by imaging the object (2), and based on the image, characteristic portions (5a, 5b) of the object (2) are obtained. A) a control device (400) for controlling the position of the object (2) by controlling a visual sensor (300) for specifying the position of the object (2);
For controlling the moving mechanism (100) such that the position of the object (2) approaches a target position based on the position of the characteristic portion (5a, 5b) specified by the visual sensor (300). A movement control unit (41, 41A);
The latest position of the characteristic portion (5a, 5b) specified by the visual sensor (300) from the image captured at the latest imaging timing, information from the moving mechanism (100), and the movement control unit (41) An estimating unit (45, 45A) for estimating the moving speed of the characteristic portion (5a, 5b) at the next scheduled imaging timing based on the reference information including at least one of the information generated by ,
An imaging control for controlling the visual sensor (300) so that an image is captured at the scheduled imaging timing when the moving speed is less than a threshold and is not imaged at the scheduled imaging timing when the moving speed exceeds the threshold. A control device (400), comprising: a unit (46).

(構成5’)
構成1から4のいずれかの制御システム(1,1A)に用いられる制御装置(400)であって、
前記移動制御部(41,41A)と、
前記推定部(45,45A)と、
前記撮像制御部(46)とを備える、制御装置。
(Configuration 5 ')
A control device (400) used in the control system (1, 1A) according to any one of Configurations 1 to 4,
Said movement control unit (41, 41A);
The estimation unit (45, 45A);
A control device, comprising: the imaging control unit (46).

(構成6)
対象物(2)を移動させる移動機構(100)を制御して、前記対象物(2)の位置決めを行なう制御システム(1,1A)をサポートするためのプログラムであって、
前記制御システム(1,1A)は、前記対象物(2)を撮像することにより画像を取得し、当該画像に基づいて、前記対象物(2)の特徴部分(5a,5b)の位置を特定するための視覚センサ(300)を備え、
コンピュータに、
前記視覚センサ(300)によって特定された前記特徴部分(5a,5b)の位置に基づいて、前記対象物(2)の位置が目標位置に近づくように前記移動機構(100)を制御するステップと、
最新の撮像タイミングで撮像された画像から前記視覚センサ(300)によって特定された前記特徴部分(5a,5b)の最新の位置と、前記移動機構(100)からの情報および前記制御するステップによって生成される情報の少なくとも一方を含む参照情報とに基づいて、次の撮像予定タイミングにおける前記特徴部分(5a,5b)の移動速度を推定するステップと、
前記移動速度が閾値未満である場合に前記撮像予定タイミングで撮像させ、前記移動速度が閾値を超える場合に前記撮像予定タイミングで撮像させないように、前記視覚センサ(300)を制御するステップとを実行させる、プログラム。
(Configuration 6)
A program for controlling a movement mechanism (100) for moving an object (2) to support a control system (1, 1A) for positioning the object (2),
The control system (1, 1A) acquires an image by imaging the object (2), and specifies a position of a characteristic portion (5a, 5b) of the object (2) based on the image. A visual sensor (300) for performing
On the computer,
Controlling the movement mechanism (100) such that the position of the object (2) approaches a target position based on the position of the characteristic portion (5a, 5b) specified by the visual sensor (300); ,
Generated by the latest position of the characteristic portion (5a, 5b) specified by the visual sensor (300) from the image captured at the latest imaging timing, information from the moving mechanism (100), and the controlling step Estimating the moving speed of the characteristic portion (5a, 5b) at the next scheduled imaging timing based on the reference information including at least one of the information to be obtained;
Controlling the visual sensor (300) so that the image is captured at the scheduled imaging timing when the moving speed is less than the threshold, and not captured at the scheduled imaging timing when the moving speed exceeds the threshold. Let the program.

(構成6’)
構成1から4のいずれかの制御システム(1,1A)をサポートするためのプログラムであって、
コンピュータに、
前記視覚センサ(300)によって特定された前記特徴部分(5a,5b)の位置に基づいて、前記対象物(2)の位置が目標位置に近づくように前記移動機構(100)を制御するステップと、
最新の撮像タイミングで撮像された画像から前記視覚センサ(300)によって特定された前記特徴部分(5a,5b)の最新の位置と、前記移動機構(100)からの情報および前記制御するステップによって生成される情報の少なくとも一方を含む参照情報とに基づいて、次の撮像予定タイミングにおける前記特徴部分(5a,5b)の移動速度を推定するステップと、
前記移動速度が閾値未満である場合に前記撮像予定タイミングで撮像させ、前記移動速度が閾値を超える場合に前記撮像予定タイミングで撮像させないように、前記視覚センサ(300)を制御するステップとを実行させる、プログラム。
(Configuration 6 ')
A program for supporting the control system (1, 1A) according to any one of the configurations 1 to 4,
On the computer,
Controlling the movement mechanism (100) such that the position of the object (2) approaches a target position based on the position of the characteristic portion (5a, 5b) specified by the visual sensor (300); ,
Generated by the latest position of the characteristic portion (5a, 5b) specified by the visual sensor (300) from the image captured at the latest imaging timing, information from the moving mechanism (100), and the controlling step Estimating the moving speed of the characteristic portion (5a, 5b) at the next scheduled imaging timing based on the reference information including at least one of the information to be obtained;
Controlling the visual sensor (300) so that the image is captured at the scheduled imaging timing when the moving speed is less than the threshold, and not captured at the scheduled imaging timing when the moving speed exceeds the threshold. Let the program.

今回開示された各実施の形態は全ての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内での全ての変更が含まれることが意図される。また、実施の形態および各変形例において説明された発明は、可能な限り、単独でも、組合せても、実施することが意図される。   The embodiments disclosed this time should be considered in all respects as illustrative 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. Further, it is intended that the inventions described in the embodiments and the respective modified examples are implemented alone or in combination as much as possible.

1,1A 制御システム、2 ワーク、4 露光マスク、5a,5b マーク、32 画像取得部、34 位置特定部、41,41A 移動制御部、42 位置決定部、43 減算部、44,44A 演算部、45,45A 推定部、46 撮像制御部、47 目標軌道決定部、100 移動機構、110X Xステージ、110Y Yステージ、110θ θステージ、120X,120Y,120θ サーボモータ、130 エンコーダ、200 ドライバユニット、200X,200Y,200θ サーボドライバ、300 視覚センサ、302a,302b カメラ、304 画像処理装置、310,414 プロセッサ、312 RAM、314 表示コントローラ、316 システムコントローラ、318 I/Oコントローラ、320 ハードディスク、322 カメラインターフェイス、322a,322b 画像バッファ、324 入力インターフェイス、326 モーションコントローラインターフェイス、328,428 通信インターフェイス、330,422 メモリカードインターフェイス、332 表示部、334 キーボード、336 メモリカード、350,440 制御プログラム、400,400A モーションコントローラ、412 チップセット、416 不揮発性メモリ、418 主メモリ、420 システムクロック、424 記録媒体、430 内部バスコントローラ、432 DMA制御回路、434 内部バス制御回路、436 バッファメモリ、438 フィールドバスコントローラ。   1, 1A control system, 2 work, 4 exposure mask, 5a, 5b mark, 32 image acquisition unit, 34 position identification unit, 41, 41A movement control unit, 42 position determination unit, 43 subtraction unit, 44, 44A calculation unit, 45, 45A estimation unit, 46 imaging control unit, 47 target trajectory determination unit, 100 moving mechanism, 110X X stage, 110Y Y stage, 110θ θ stage, 120X, 120Y, 120θ servo motor, 130 encoder, 200 driver unit, 200X, 200Y, 200θ Servo driver, 300 visual sensor, 302a, 302b camera, 304 image processing device, 310,414 processor, 312 RAM, 314 display controller, 316 system controller, 318 I / O controller, 320 hard disk , 322 camera interface, 322a, 322b image buffer, 324 input interface, 326 motion controller interface, 328, 428 communication interface, 330, 422 memory card interface, 332 display unit, 334 keyboard, 336 memory card, 350, 440 control program, 400, 400A motion controller, 412 chipset, 416 nonvolatile memory, 418 main memory, 420 system clock, 424 recording medium, 430 internal bus controller, 432 DMA control circuit, 434 internal bus control circuit, 436 buffer memory, 438 field bus controller.

Claims (6)

対象物を移動させる移動機構を制御して、前記対象物の位置決めを行なう制御システムであって、
前記対象物を撮像タイミングごとに撮像することにより画像を取得し、当該画像に基づいて、前記対象物の特徴部分の位置を特定するための視覚センサと、
前記視覚センサによって特定された前記特徴部分の位置に基づいて、前記対象物の位置が目標位置に近づくように前記移動機構を制御するための移動制御部と、
最新の撮像タイミングで撮像された画像から前記視覚センサによって特定された前記特徴部分の最新の位置と、前記移動機構からの情報および前記移動制御部によって生成される情報の少なくとも一方を含む参照情報とに基づいて、次の撮像予定タイミングにおける前記特徴部分の移動速度を推定するための推定部と、
前記移動速度が閾値未満である場合に前記撮像予定タイミングで撮像させ、前記移動速度が閾値を超える場合に前記撮像予定タイミングで撮像させないように、前記視覚センサを制御するための撮像制御部とを備える、制御システム。
A control system that controls a moving mechanism that moves the object, and positions the object,
A visual sensor for acquiring an image by imaging the object at each imaging timing, and identifying a position of a characteristic portion of the object based on the image;
Based on the position of the characteristic portion specified by the visual sensor, a movement control unit for controlling the movement mechanism so that the position of the object approaches a target position,
The latest position of the characteristic portion specified by the visual sensor from the image captured at the latest imaging timing, and reference information including at least one of the information from the moving mechanism and the information generated by the movement control unit. Based on the estimating unit for estimating the moving speed of the characteristic portion at the next imaging scheduled timing,
An imaging control unit for controlling the visual sensor, so that the imaging is performed at the scheduled imaging timing when the moving speed is less than the threshold, and the imaging is not performed at the scheduled imaging timing when the moving speed exceeds the threshold. Equipped with control system.
前記移動機構は、前記対象物を移動させるために駆動されるモータを含み、
前記参照情報は、前記最新の撮像タイミングからの前記モータの駆動量を示す情報を含む、請求項1に記載の制御システム。
The moving mechanism includes a motor driven to move the object,
The control system according to claim 1, wherein the reference information includes information indicating a driving amount of the motor from the latest imaging timing.
前記移動制御部は、制御周期ごとに前記移動機構に対する移動指令を生成し、
前記参照情報は、前記最新の撮像タイミング以降に前記移動制御部によって生成された移動指令を示す情報を含む、請求項1または2に記載の制御システム。
The movement control unit generates a movement command for the movement mechanism for each control cycle,
The control system according to claim 1, wherein the reference information includes information indicating a movement command generated by the movement control unit after the latest imaging timing.
前記移動制御部は、前記最新の位置に基づいて前記移動機構の目標軌道を決定し、決定した前記目標軌道に従って移動するように前記移動機構を制御し、
前記参照情報は、前記目標軌道を示す情報を含む、請求項1に記載の制御システム。
The movement control unit determines a target trajectory of the moving mechanism based on the latest position, and controls the moving mechanism to move according to the determined target trajectory,
The control system according to claim 1, wherein the reference information includes information indicating the target trajectory.
対象物を移動させる移動機構と、前記対象物を撮像することにより画像を取得し、当該画像に基づいて、前記対象物の特徴部分の位置を特定するための視覚センサとを制御して、前記対象物の位置決めを行なう制御装置であって、
前記視覚センサによって特定された前記特徴部分の位置に基づいて、前記対象物の位置が目標位置に近づくように前記移動機構を制御するための移動制御部と、
最新の撮像タイミングで撮像された画像から前記視覚センサによって特定された前記特徴部分の最新の位置と、前記移動機構からの情報および前記移動制御部によって生成される情報の少なくとも一方を含む参照情報とに基づいて、次の撮像予定タイミングにおける前記特徴部分の移動速度を推定するための推定部と、
前記移動速度が閾値未満である場合に前記撮像予定タイミングで撮像させ、前記移動速度が閾値を超える場合に前記撮像予定タイミングで撮像させないように、前記視覚センサを制御するための撮像制御部とを備える、制御装置。
A moving mechanism for moving the object, and acquiring an image by imaging the object, based on the image, controlling a visual sensor for specifying the position of a characteristic portion of the object, A control device for positioning an object,
Based on the position of the characteristic portion specified by the visual sensor, a movement control unit for controlling the movement mechanism so that the position of the object approaches a target position,
The latest position of the characteristic portion specified by the visual sensor from the image captured at the latest imaging timing, and reference information including at least one of the information from the moving mechanism and the information generated by the movement control unit. Based on the estimating unit for estimating the moving speed of the characteristic portion at the next imaging scheduled timing,
An imaging control unit for controlling the visual sensor, so that the imaging is performed at the scheduled imaging timing when the moving speed is less than the threshold, and the imaging is not performed at the scheduled imaging timing when the moving speed exceeds the threshold. A control device.
対象物を移動させる移動機構を制御して、前記対象物の位置決めを行なう制御システムをサポートするためのプログラムであって、
前記制御システムは、前記対象物を撮像することにより画像を取得し、当該画像に基づいて、前記対象物の特徴部分の位置を特定するための視覚センサを備え、
コンピュータに、
前記視覚センサによって特定された前記特徴部分の位置に基づいて、前記対象物の位置が目標位置に近づくように前記移動機構を制御するステップと、
最新の撮像タイミングで撮像された画像から前記視覚センサによって特定された前記特徴部分の最新の位置と、前記移動機構からの情報および前記制御するステップによって生成される情報の少なくとも一方を含む参照情報とに基づいて、次の撮像予定タイミングにおける前記特徴部分の移動速度を推定するステップと、
前記移動速度が閾値未満である場合に前記撮像予定タイミングで撮像させ、前記移動速度が閾値を超える場合に前記撮像予定タイミングで撮像させないように、前記視覚センサを制御するステップとを実行させる、プログラム。
A program for controlling a moving mechanism for moving an object, and supporting a control system for positioning the object,
The control system acquires an image by imaging the object, and includes a visual sensor for identifying the position of a characteristic portion of the object based on the image,
On the computer,
Based on the position of the characteristic portion specified by the visual sensor, controlling the moving mechanism so that the position of the object approaches the target position,
The latest position of the characteristic portion specified by the visual sensor from the image captured at the latest imaging timing, and reference information including at least one of the information from the moving mechanism and the information generated by the controlling step. Estimating the moving speed of the characteristic portion at the next imaging scheduled timing based on
Controlling the visual sensor so that the image is captured at the scheduled imaging timing when the moving speed is less than the threshold, and is not captured at the scheduled imaging timing when the moving speed exceeds the threshold. .
JP2018111386A 2018-06-11 2018-06-11 Control systems, controllers and programs Active JP7172151B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2018111386A JP7172151B2 (en) 2018-06-11 2018-06-11 Control systems, controllers and programs
CN201910384145.9A CN110581944B (en) 2018-06-11 2019-05-09 Control system, control device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018111386A JP7172151B2 (en) 2018-06-11 2018-06-11 Control systems, controllers and programs

Publications (2)

Publication Number Publication Date
JP2019215634A true JP2019215634A (en) 2019-12-19
JP7172151B2 JP7172151B2 (en) 2022-11-16

Family

ID=68810799

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018111386A Active JP7172151B2 (en) 2018-06-11 2018-06-11 Control systems, controllers and programs

Country Status (2)

Country Link
JP (1) JP7172151B2 (en)
CN (1) CN110581944B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014203365A (en) * 2013-04-08 2014-10-27 オムロン株式会社 Control system and control method
JP2018044864A (en) * 2016-09-14 2018-03-22 キヤノン株式会社 Detector, detection method, lithography device and method of manufacturing article

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06258051A (en) * 1993-03-06 1994-09-16 Taiyo Yuden Co Ltd Mark detecting method
US7499584B2 (en) * 2004-10-21 2009-03-03 Mitutoyo Corporation Smear-limit based system and method for controlling vision systems for consistently accurate and high-speed inspection
CN101893894B (en) * 2010-06-30 2012-01-04 上海交通大学 Reconfigurable miniature mobile robot cluster locating and tracking system
KR101826068B1 (en) * 2011-07-04 2018-02-07 삼성디스플레이 주식회사 Apparatus for thin layer deposition
JP5987205B2 (en) * 2011-08-10 2016-09-07 富士機械製造株式会社 Electronic circuit component mounting machine positioning failure detection method
CN104427114A (en) * 2013-09-03 2015-03-18 中兴通讯股份有限公司 Shooting method, shooting device and mobile terminal
CN105827951B (en) * 2016-01-29 2019-05-17 维沃移动通信有限公司 A kind of Moving Objects photographic method and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014203365A (en) * 2013-04-08 2014-10-27 オムロン株式会社 Control system and control method
JP2018044864A (en) * 2016-09-14 2018-03-22 キヤノン株式会社 Detector, detection method, lithography device and method of manufacturing article

Also Published As

Publication number Publication date
JP7172151B2 (en) 2022-11-16
CN110581944B (en) 2022-10-11
CN110581944A (en) 2019-12-17

Similar Documents

Publication Publication Date Title
JP7078894B2 (en) Control systems, controls, image processing devices and programs
JP6167622B2 (en) Control system and control method
US9958856B2 (en) Robot, robot control method and robot control program
JP7078895B2 (en) Control systems, controls, image processing devices and programs
JP2019119027A (en) Method of controlling robot system, and robot system
JP7143643B2 (en) Positioning system, monitoring device, monitoring method and program
JP6950631B2 (en) Positioning system, control methods and programs
JP6813000B2 (en) Control systems, control methods and programs
JP7172151B2 (en) Control systems, controllers and programs
CN111886556B (en) Control system, control method, and computer-readable storage medium
CN111902785B (en) Control system, control method, and computer-readable storage medium
US20220134570A1 (en) Control device and alignment device
JP7020262B2 (en) Control systems, control methods and programs
KR102683350B1 (en) Control system, control method and computer readable storage medium
TW202021754A (en) Automatic positioning method and automatic control apparatus
JP7052840B2 (en) Positioning device, control method of position specifying device, information processing program, and recording medium
CN110888421B (en) Robot, and motion self-adaption method and system of robot
JP2022034419A (en) Controller, control method of controller, information processing program, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201211

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220104

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220726

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220901

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: 20221004

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221017

R150 Certificate of patent or registration of utility model

Ref document number: 7172151

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150