JP2012192156A - Sewing machine - Google Patents

Sewing machine Download PDF

Info

Publication number
JP2012192156A
JP2012192156A JP2011211315A JP2011211315A JP2012192156A JP 2012192156 A JP2012192156 A JP 2012192156A JP 2011211315 A JP2011211315 A JP 2011211315A JP 2011211315 A JP2011211315 A JP 2011211315A JP 2012192156 A JP2012192156 A JP 2012192156A
Authority
JP
Japan
Prior art keywords
arrangement
pattern
sewing
holding position
respect
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.)
Pending
Application number
JP2011211315A
Other languages
Japanese (ja)
Inventor
Hitoshi Higashikura
仁 東倉
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2011211315A priority Critical patent/JP2012192156A/en
Priority to US13/351,606 priority patent/US8594829B2/en
Priority to EP12151680A priority patent/EP2484827A1/en
Publication of JP2012192156A publication Critical patent/JP2012192156A/en
Pending legal-status Critical Current

Links

Landscapes

  • Sewing Machines And Sewing (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a sewing machine capable of easily setting the arrangement of the next pattern relative to a reference pattern when a plurality of patterns are sewn over an area wider than the sewable area.SOLUTION: The sewing machine is provided in which, when temporary holding position processing is selected (S65: YES), the arrangement of markers relative to the arrangement of the reference pattern is identified (S67), and the arrangement of the markers at a second holding position is then detected from image data of the markers at the second holding position (S78), and the arrangement of the next pattern at the second holding position is then set (S92).

Description

本発明は、撮影手段を備えたミシンに関する。   The present invention relates to a sewing machine provided with photographing means.

従来、撮影手段を備え、刺繍枠の内側に設定される縫製可能領域よりも大きな模様を縫製可能なミシンが知られている。例えば、特許文献1に記載のミシンは、縫製可能領域よりも大きな模様を、縫製可能領域よりも小さい複数の模様に分割した縫製データに従って、分割した模様を、刺繍枠に対する縫製対象物の保持位置が異なる条件で順次縫製する。上記従来のミシンは、保持位置が異なる条件のもとでの、分割した模様間の位置合わせを、縫製対象物の表面に配置された標識に基づいて自動的に行う。   2. Description of the Related Art Conventionally, there has been known a sewing machine that includes a photographing unit and can sew a pattern larger than a sewable area set inside an embroidery frame. For example, in the sewing machine described in Patent Document 1, a sewing pattern obtained by dividing a pattern larger than the sewn area into a plurality of patterns smaller than the sewn area according to the sewing data is used to hold the sewn object with respect to the embroidery frame. Sew sequentially under different conditions. The conventional sewing machine automatically performs alignment between the divided patterns under the condition that the holding positions are different based on the markers arranged on the surface of the sewing object.

特開2010−246885号公報JP 2010-246885 A

上記従来のミシンは、ユーザが任意に選択した複数の模様を、縫製可能領域よりも広い範囲に縫製する場合を考慮していない。このため、縫製可能領域よりも広い範囲に複数の模様を縫製する場合、最初に縫製された基準模様に対する次に縫製される次の模様の位置を設定するのが困難であるという問題がある。   The conventional sewing machine does not consider the case where a plurality of patterns arbitrarily selected by the user are sewn in a range wider than the sewing area. For this reason, when a plurality of patterns are sewn in a wider range than the sewable area, there is a problem that it is difficult to set the position of the next pattern to be sewn next to the reference pattern sewn first.

本発明は上記課題を解決するためになされたものであり、縫製可能領域よりも広い範囲に、複数の模様を縫製する場合、基準模様に対する次の模様の配置を容易に設定することが可能なミシンを提供することを目的とする。   The present invention has been made to solve the above-described problem, and when a plurality of patterns are sewn in a wider range than the sewable area, the arrangement of the next pattern with respect to the reference pattern can be easily set. The purpose is to provide a sewing machine.

上記課題を解決するために、本態様のミシンは、刺繍枠に保持された縫製対象物の表面に配置された標識を撮影する撮影手段と、前記撮影手段によって撮影された前記標識の画像データを取得する取得手段と、前記縫製枠による前記縫製対象物の保持位置が第1保持位置である場合に縫製される模様を基準模様とし、前記保持位置が前記第1保持位置とは異なる第2保持位置である場合に縫製される模様であって、前記基準模様の次に縫製される模様を次の模様とした場合に、前記基準模様の位置及び角度の少なくともいずれかを含む配置に対する前記次の模様の相対的な位置及び角度の少なくともいずれかを含む配置を決定する配置決定手段と、前記取得手段により取得された前記画像データに基づき、前記基準模様の配置に対する前記標識の位置及び角度の少なくともいずれかを含む配置を検出する配置検出手段と、前記標識の前記配置を配置情報として記憶する記憶手段と、前記配置検出手段により検出された前記基準模様の配置に対する標識の位置及び角度の少なくともいずれかを含む配置に関する情報を記憶情報として前記記憶手段に登録する登録手段と、前記配置検出手段によって前記基準模様の配置に対する前記標識の位置及び角度の少なくともいずれかを含む配置が新たに検出された場合、前記記憶手段に記憶されている前記記憶情報を更新する更新手段と、前記記憶手段に記憶されている前記記憶情報が、前記第2保持位置で撮影された前記標識に関するものである場合、前記記憶情報と前記配置決定手段によって決定された前記基準模様の前記配置に対する前記次の模様の前記相対的な配置とから、前記第2保持位置での前記縫製対象物に対する前記次の模様の位置及び角度の少なくともいずれかを含む配置を設定する設定手段とを備える。   In order to solve the above-described problem, the sewing machine according to this aspect includes an image capturing unit that captures an image of a sign placed on the surface of the sewing object held by the embroidery frame, and image data of the sign captured by the image capturing unit. An acquisition means for acquiring and a second pattern that is sewn when the sewing object holding position by the sewing frame is the first holding position is a reference pattern, and the holding position is different from the first holding position. A pattern that is sewn when it is a position, and the next pattern that is sewn after the reference pattern is the next pattern, the next pattern relative to an arrangement that includes at least one of the position and angle of the reference pattern An arrangement determining means for determining an arrangement including at least one of a relative position and an angle of a pattern; and the standard for the arrangement of the reference pattern based on the image data acquired by the acquiring means. An arrangement detection unit that detects an arrangement including at least one of the position and angle of the image, a storage unit that stores the arrangement of the sign as arrangement information, and a sign for the reference pattern arrangement detected by the arrangement detection unit A registration unit for registering information relating to an arrangement including at least one of a position and an angle in the storage unit as storage information, and an arrangement including at least one of the position and the angle of the marker with respect to the arrangement of the reference pattern by the arrangement detection unit. Is newly detected, the update means for updating the storage information stored in the storage means, and the storage information stored in the storage means is captured at the second holding position. The reference information determined by the storage information and the arrangement determining means before the arrangement of the reference pattern. From said relative arrangement of the next pattern, and setting means for setting an arrangement including at least one of the position and angle of the next pattern in relation to the sewing object at the second holding position.

この場合のミシンでは、標識の画像データが取得される度に基準模様に対する標識の配置が更新登録され、更新登録された基準模様に対する基準模様の配置と基準模様に対する次の模様の相対的な配置とから、縫製対象物に対する次の模様の配置が自動的に決定される。従って、縫製可能領域よりも広い範囲に任意に選択した複数の模様を縫製する場合であっても、最初に縫製された基準模様に対する次に縫製される次の模様の位置を容易に特定できる。   In the sewing machine in this case, each time the image data of the sign is acquired, the sign arrangement with respect to the reference pattern is updated and registered, and the reference pattern arrangement with respect to the updated reference pattern and the relative arrangement of the next pattern with respect to the reference pattern Thus, the arrangement of the next pattern with respect to the sewing object is automatically determined. Therefore, even when a plurality of arbitrarily selected patterns are sewn in a range wider than the sewable area, the position of the next pattern to be sewn next to the reference pattern sewn first can be easily specified.

本態様のミシンにおいて、前記標識を貼り替えたことを示す指示を受け付ける受付手段をさらに備え、前記受付手段から前記指示が受け付けられると、前記配置検出手段は、前記貼り替え前の標識に対する貼り替え後の標識の位置及び角度の少なくともいずれかを含む配置を検出するようにしても良い。この場合のミシンでは、基準模様に対する貼り替え後の標識の配置を検出できるので、ユーザは縫製対象物上の意図する位置で基準模様に対する標識の配置を検出できる。   The sewing machine according to this aspect further includes a receiving unit that receives an instruction indicating that the sign has been replaced. When the instruction is received from the receiving unit, the placement detection unit replaces the sign before the replacement. You may make it detect the arrangement | positioning including at least any one of the position and angle of a subsequent label | marker. Since the sewing machine in this case can detect the arrangement of the marker after the replacement with respect to the reference pattern, the user can detect the arrangement of the marker with respect to the reference pattern at an intended position on the sewing object.

本態様のミシンにおいて、ユーザが指定した基準であって、前記基準模様が縫製される範囲を表す第1図形に含まれる第1線分及び第1点のいずれかを含む基準である第1基準を取得する第1基準取得手段と、前記ユーザが指定した基準であって、前記次の模様が縫製される範囲を表す第2図形に含まれる第2線分及び第2点を含む基準である第2基準を取得する第2基準取得手段とをさらに備え、前記配置決定手段は、前記第1基準取得手段によって取得された前記第1基準と、前記第2基準取得手段によって取得された前記第2基準とに基づき、前記基準模様の前記配置に対する前記次の模様の前記相対的な配置を決定するようにしても良い。この場合のミシンでは、ユーザは、第1基準と第2基準とを設定するという簡単な操作によって、基準模様の配置に対する次の模様の配置を設定することができる。   In the sewing machine according to this aspect, a first reference that is a reference specified by the user and includes any one of the first line segment and the first point included in the first graphic representing the range in which the reference pattern is sewn. The first reference acquisition means for acquiring the reference and the reference specified by the user, the reference including the second line segment and the second point included in the second graphic representing the range in which the next pattern is sewn. A second reference acquisition means for acquiring a second reference, wherein the arrangement determination means is configured to acquire the first reference acquired by the first reference acquisition means and the first reference acquired by the second reference acquisition means. Based on two criteria, the relative arrangement of the next pattern with respect to the arrangement of the reference pattern may be determined. In the sewing machine in this case, the user can set the arrangement of the next pattern with respect to the arrangement of the reference pattern by a simple operation of setting the first reference and the second reference.

本態様のミシンにおいて、前記基準模様の前記配置に対する前記次の模様の前記相対的な配置を特定する、前記ユーザが指示した数値を取得する数値取得手段をさらに備え、前記配置決定手段は、前記数値取得手段が取得した前記数値に基づき、前記基準模様の前記配置に対する前記次の模様の前記相対的な配置を決定するようにしても良い。この場合のミシンでは、ユーザは、数値を設定するという簡単な操作によって、基準模様の配置に対する次の模様の配置を設定させることができる。   In the sewing machine according to this aspect, the sewing machine of the present aspect further includes numerical value acquisition means for acquiring the numerical value specified by the user, which specifies the relative arrangement of the next pattern with respect to the arrangement of the reference pattern, The relative arrangement of the next pattern with respect to the arrangement of the reference pattern may be determined based on the numerical value acquired by the numerical value acquisition unit. In the sewing machine in this case, the user can set the arrangement of the next pattern with respect to the arrangement of the reference pattern by a simple operation of setting a numerical value.

本態様のミシンにおいて、前記配置決定手段によって決定された前記基準模様の前記配置に対する前記次の模様の前記相対的な配置を画面に表示する第1表示手段をさらに備えても良い。この場合のミシンでは、ユーザは、画面の表示に基づき、ユーザが意図するように、基準模様の配置に対する次の模様の配置が設定されたか否かを確認することができる。   The sewing machine according to this aspect may further include first display means for displaying the relative arrangement of the next pattern with respect to the arrangement of the reference pattern determined by the arrangement determining means on a screen. In the sewing machine in this case, the user can confirm whether or not the arrangement of the next pattern with respect to the arrangement of the reference pattern has been set based on the display on the screen as intended by the user.

本態様のミシンにおいて、前記少なくとも1つの標識の配置予定位置を画面に表示する第2表示手段をさらに備えても良い。この場合のミシンでは、配置予定位置に標識を配置することを、ユーザに促すことができる。また、ミシンは、保持位置が第1保持位置にある場合には配置予定位置についてのみ標識を検出する処理を実行すればよいので、標識の配置を検出するための処理を簡略化することができる。   The sewing machine according to this aspect may further include second display means for displaying an arrangement planned position of the at least one sign on the screen. In the sewing machine in this case, it is possible to prompt the user to place the sign at the planned placement position. Further, since the sewing machine only needs to execute the process of detecting the sign only for the planned arrangement position when the holding position is at the first holding position, the process for detecting the arrangement of the sign can be simplified. .

本態様のミシンにおいて、前記第1基準取得手段は、前記第1線分と、当該第1線分上の前記第1点とを組み合わせた複数の第1指定キーのうち、前記ユーザが指定した第1指定キーに基づき、前記第1基準を取得し、前記第2基準取得手段は、前記第2線分と、当該第2線分上の前記第2点とを組み合わせた複数の第2指定キーのうち、前記ユーザが指定した第2指定キーに基づき、前記第2基準を取得し、前記配置決定手段は、前記基準模様の前記配置に対する前記次の模様の前記相対的な配置を、前記第1基準取得手段によって取得された前記第1指定キーによって表される前記第1線分の延伸方向が、前記第2基準取得手段によって取得された前記第2指定キーによって表される前記第2線分と重なり、且つ、前記第1指定キーによって表される前記第1点が、前記第2指定キーによって表される前記第2点と重なる配置としてもよい。この場合のミシンでは、ユーザは、第1指定キーと、第2指定キーとを指定するという簡単な操作によって、基準模様の配置に対する次の模様の配置を設定させることができる。   In the sewing machine according to this aspect, the first reference acquisition unit is designated by the user among a plurality of first designation keys that combine the first line segment and the first point on the first line segment. The first reference is acquired based on a first specification key, and the second reference acquisition means combines a plurality of second specifications combining the second line segment and the second point on the second line segment. Based on a second designated key designated by the user among the keys, the second reference is obtained, and the arrangement determining means determines the relative arrangement of the next pattern with respect to the arrangement of the reference pattern, The extending direction of the first line segment represented by the first designation key acquired by the first reference acquisition means is the second direction represented by the second designation key acquired by the second reference acquisition means. It overlaps with the line segment and the first designation key The first point represented Te may be arranged overlapping the second point, represented by the second specifying key. In the sewing machine in this case, the user can set the arrangement of the next pattern with respect to the arrangement of the reference pattern by a simple operation of designating the first designation key and the second designation key.

本態様のミシンにおいて、前記縫製対象物を保持する前記刺繍枠を移動させる機能を有する移動手段と、下端に縫針が装着される針棒を上下させ前記縫製対象物に模様を縫製する縫製手段と、前記移動手段と前記縫製手段とを制御して、前記保持位置が前記第1保持位置である状態で前記刺繍枠に保持された前記縫製対象物に前記基準模様を縫製させる第1縫製制御手段と、前記移動手段と前記縫製手段とを制御して、前記設定手段によって設定された前記次の模様の前記配置に従って、前記保持位置が前記第2保持位置である状態で保持された前記縫製対象物に前記次の模様を縫製させる第2縫製制御手段とをさらに備えても良い。この場合のミシンでは、第1保持位置で基準模様を、第2保持位置で次の模様を、それぞれ縫製することができる。   In the sewing machine according to this aspect, a moving means having a function of moving the embroidery frame that holds the sewing object, and a sewing means that sews a pattern on the sewing object by moving up and down a needle bar to which a sewing needle is attached at a lower end. The first sewing control means for controlling the moving means and the sewing means to sew the reference pattern on the sewing object held by the embroidery frame in a state where the holding position is the first holding position. The sewing object held in a state where the holding position is the second holding position in accordance with the arrangement of the next pattern set by the setting means by controlling the moving means and the sewing means You may further provide the 2nd sewing control means to sew the said next pattern to a thing. In the sewing machine in this case, the reference pattern can be sewn at the first holding position, and the next pattern can be sewn at the second holding position.

多針ミシン1の斜視図である。1 is a perspective view of a multi-needle sewing machine 1. FIG. 刺繍枠移動機構11の平面図である3 is a plan view of an embroidery frame moving mechanism 11. FIG. 多針ミシン1の電気的構成を示すブロック図である。1 is a block diagram showing an electrical configuration of a multi-needle sewing machine 1. FIG. 標識110の平面図である。3 is a plan view of a sign 110. FIG. メイン処理のフローチャートである。It is a flowchart of a main process. 画面200の説明図である。It is explanatory drawing of the screen. 画面210の説明図である。It is explanatory drawing of the screen. 画面220の説明図である。It is explanatory drawing of the screen. 図5に示すメイン処理で実行される標識検出処理のフローチャートである。It is a flowchart of the label | marker detection process performed by the main process shown in FIG. 矩形206の配置に対する、標識110の配置予定位置の説明図である。It is explanatory drawing of the arrangement | positioning planned position of the label | marker 110 with respect to arrangement | positioning of the rectangle 206. FIG. 画面240の説明図である。It is explanatory drawing of the screen 240. FIG. メイン処理実行中の縫製対象物の保持位置と標識の位置との遷移状態の説明図である。It is explanatory drawing of the transition state of the holding | maintenance position of the sewing target object during the main process execution, and the position of a marker. 第1の実施形態の配置設定処理のフローチャートである。It is a flowchart of the arrangement | positioning setting process of 1st Embodiment. 画面250の説明図である。It is explanatory drawing of the screen. 模様表示欄251の説明図である。It is explanatory drawing of the pattern display column. 仮保持位置処理のフローチャートである。It is a flowchart of a temporary holding position process. 画面260の説明図である。It is explanatory drawing of the screen. 画面270の説明図である。It is explanatory drawing of the screen 270. FIG. 画面280の説明図である。It is explanatory drawing of the screen 280. FIG. 矩形206で表される1番目の模様205の配置に対する、矩形258で表される2番目の模様205の配置と、縫製可能領域86との説明図である。FIG. 18 is an explanatory diagram of the arrangement of the second pattern 205 represented by a rectangle 258 and the sewable area 86 with respect to the arrangement of the first pattern 205 represented by a rectangle 206. 2つの模様を接続する際の例を示した図である。It is the figure which showed the example at the time of connecting two patterns. 第2の実施形態に係る配置設定処理のフローチャートである。It is a flowchart of the arrangement | positioning setting process which concerns on 2nd Embodiment. 画面300の説明図である。It is explanatory drawing of the screen. 画面310の説明図である。It is explanatory drawing of the screen 310. FIG. 模様群320と、縫製可能領域86との説明図である。It is explanatory drawing of the pattern group 320 and the sewing possible area | region 86. FIG.

以下、本発明を具現化した第1及び第2の実施形態の多針ミシン1(以下、単に「ミシン1」と言う。)について、図面を参照して順に説明する。参照する図面は、本発明が採用し得る技術的特徴を説明するために用いるものであり、記載している装置の構成、フローチャート等は、単なる説明例である。   Hereinafter, a multi-needle sewing machine 1 (hereinafter simply referred to as “sewing machine 1”) of first and second embodiments embodying the present invention will be described in order with reference to the drawings. The drawings to be referred to are used for explaining technical features that can be adopted by the present invention, and the configuration of the apparatus, the flowchart, and the like are merely illustrative examples.

図1及び図2を参照して、第1及び第2の実施形態のミシン1に共通する物理的構成について説明する。以下の説明では、図1の左斜め下側、右斜め上側、左斜め上側、右斜め下側をそれぞれ、ミシン1の前方、後方、左側、右側とする。   A physical configuration common to the sewing machine 1 of the first and second embodiments will be described with reference to FIGS. 1 and 2. In the following description, the left oblique lower side, the right oblique upper side, the left oblique upper side, and the right oblique lower side in FIG. 1 are defined as the front, rear, left side, and right side of the sewing machine 1, respectively.

図1のように、ミシン1のミシン本体20は、支持部2と、脚柱部3と、アーム部4とを備える。支持部2は、平面視逆U字形に形成され、ミシン1全体を支持する。支持部2の上面には、前後方向に伸びる左右一対のガイド溝25がある。脚柱部3は、支持部2の後端部から上方へ立設されている。アーム部4は、脚柱部3の上端部から前方に延びる。アーム部4の先端には、針棒ケース21が左右方向に移動可能に装着されている。針棒ケース21の内部には、上下方向に伸びる10本の針棒31(図3参照)が左右方向に等間隔Wで配置されている。各針棒31には、個々の針棒31を識別するための針棒番号が付与されている。本実施形態では、ミシン1の右側から順に針棒番号1番から10番が付与されている。10本の針棒31のうち、縫製位置にある1本の針棒が、針棒ケース21の内部に設けられた針棒駆動機構32(図3参照)によって上下方向に摺動される。針棒31の下端には、縫針35(図3参照)が着脱可能に装着される。   As shown in FIG. 1, the sewing machine body 20 of the sewing machine 1 includes a support portion 2, a pedestal portion 3, and an arm portion 4. The support portion 2 is formed in an inverted U shape in plan view and supports the entire sewing machine 1. On the upper surface of the support portion 2, there is a pair of left and right guide grooves 25 extending in the front-rear direction. The pedestal 3 is erected upward from the rear end of the support 2. The arm portion 4 extends forward from the upper end portion of the pedestal column portion 3. A needle bar case 21 is attached to the tip of the arm portion 4 so as to be movable in the left-right direction. In the needle bar case 21, ten needle bars 31 (see FIG. 3) extending in the vertical direction are arranged at equal intervals W in the horizontal direction. Each needle bar 31 is given a needle bar number for identifying the individual needle bar 31. In the present embodiment, needle bar numbers 1 to 10 are assigned in order from the right side of the sewing machine 1. Of the ten needle bars 31, one needle bar at the sewing position is slid in the vertical direction by a needle bar drive mechanism 32 (see FIG. 3) provided inside the needle bar case 21. A sewing needle 35 (see FIG. 3) is detachably attached to the lower end of the needle bar 31.

針棒ケース21の右側面下部には、カバー38が設けられている。カバー38の内側には、イメージセンサ保持機構(図示せず)が取り付けられている。イメージセンサ保持機構は、イメージセンサ50(図3参照)を備える。イメージセンサ50は、周知のCMOS(Complementary Metal Oxide Semiconductor)イメージセンサである。イメージセンサ50のレンズ(図示せず)は、ミシン1の下方に向けられている。レンズの中心は、最も右側の針棒31から距離2W離れた位置にある。   A cover 38 is provided at the lower right side of the needle bar case 21. An image sensor holding mechanism (not shown) is attached to the inside of the cover 38. The image sensor holding mechanism includes an image sensor 50 (see FIG. 3). The image sensor 50 is a well-known CMOS (Complementary Metal Oxide Semiconductor) image sensor. A lens (not shown) of the image sensor 50 is directed below the sewing machine 1. The center of the lens is located at a distance of 2 W from the rightmost needle bar 31.

アーム部4の前後方向中央部の右側には、操作部6が設けられている。操作部6は、上下方向に伸びる軸(図示せず)を回転軸として回転可能にアーム部4に支持されている。操作部6は、液晶ディスプレイ7(以下、「LCD7」と言う。)と、タッチパネル8と、コネクタ9と、スタート/ストップスイッチ41とを備える。LCD7には、例えば、ユーザが指示を入力するための操作画像といった各種情報が表示される。タッチパネル8は、ユーザからの指示を受け付けるために用いられる。LCD7に表示された入力キー等の位置に対応したタッチパネル8の箇所を、ユーザが、指又はタッチペンを用いて押圧操作すること(以下、この操作を「パネル操作」と言う。)によって、縫製模様及び縫製条件といった各種条件を選択又は設定できる。コネクタ9は、USB規格のコネクタであり、USBデバイス160(図3参照)と接続可能である。スタート/ストップスイッチ41は、縫製の開始又は停止を指示するためのスイッチである。縫製停止中にスタート/ストップスイッチ41が押下されると、縫製が開始される。縫製中にスタート/ストップスイッチ41が押下されると、縫製が停止される。   An operation unit 6 is provided on the right side of the central portion of the arm unit 4 in the front-rear direction. The operation unit 6 is supported by the arm unit 4 so as to be rotatable about a shaft (not shown) extending in the vertical direction. The operation unit 6 includes a liquid crystal display 7 (hereinafter referred to as “LCD 7”), a touch panel 8, a connector 9, and a start / stop switch 41. Various information such as an operation image for the user to input an instruction is displayed on the LCD 7. The touch panel 8 is used for receiving instructions from the user. When the user presses the position of the touch panel 8 corresponding to the position of the input key or the like displayed on the LCD 7 with a finger or a touch pen (hereinafter, this operation is referred to as “panel operation”), a sewing pattern is obtained. Various conditions such as sewing conditions can be selected or set. The connector 9 is a USB standard connector and can be connected to the USB device 160 (see FIG. 3). The start / stop switch 41 is a switch for instructing the start or stop of sewing. When the start / stop switch 41 is pressed while sewing is stopped, sewing is started. When the start / stop switch 41 is pressed during sewing, sewing is stopped.

アーム部4の下方には、脚柱部3の下端部から前方へ延びる筒状のシリンダベッド10が設けられている。シリンダベッド10の先端部の内部には、釜(図示せず)が設けられている。釜は、下糸(図示せず)が巻回されたボビン(図示せず)を収納する。シリンダベッド10の内部には、釜駆動機構(図示せず)がある。釜駆動機構(図示せず)は、釜を回転駆動する。シリンダベッド10の上面には、平面視矩形の針板16がある。針板16には、縫針35(図3参照)が挿通される針穴36が設けられている。   A cylindrical cylinder bed 10 extending forward from the lower end of the pedestal 3 is provided below the arm 4. A hook (not shown) is provided inside the tip of the cylinder bed 10. The shuttle houses a bobbin (not shown) around which a lower thread (not shown) is wound. Inside the cylinder bed 10 is a shuttle drive mechanism (not shown). A shuttle driving mechanism (not shown) rotationally drives the shuttle. On the upper surface of the cylinder bed 10, there is a needle plate 16 having a rectangular shape in plan view. The needle plate 16 is provided with a needle hole 36 through which the sewing needle 35 (see FIG. 3) is inserted.

アーム部4の上面の背面側には、左右一対の糸駒台12が設けられている。各糸駒台12には、糸立棒14が5つ設けられている。糸立棒14は、上下方向に伸びる棒である。糸立棒14は、糸駒13を支持する。一対の糸駒台12には、針棒31の数と同じ10個の糸駒13を設置可能である。上糸15は、糸駒台12に設置された糸駒13から供給される。上糸15は、糸道経路を経由して、針棒31の下端に装着された各縫針35の針孔(図示せず)に供給される。糸道経路は、糸案内17と、糸調子器18と、天秤19と、針棒糸かけ(図示せず)とを含む。   A pair of left and right thread spool bases 12 are provided on the back side of the upper surface of the arm portion 4. Each thread spool base 12 is provided with five thread spools 14. The thread stand bar 14 is a bar extending in the vertical direction. The spool pin 14 supports the yarn spool 13. Ten thread spools 13 that are the same as the number of needle bars 31 can be installed on the pair of thread spool bases 12. The upper thread 15 is supplied from a thread spool 13 installed on the thread spool base 12. The upper thread 15 is supplied to a needle hole (not shown) of each sewing needle 35 attached to the lower end of the needle bar 31 via a thread path. The yarn path includes a thread guide 17, a thread tensioner 18, a balance 19, and a needle bar thread hook (not shown).

アーム部4の下方には、刺繍枠移動機構11のYキャリッジ23が設けられている。刺繍枠移動機構11は、刺繍枠84(図2参照)を着脱可能に支持する。刺繍枠84は、縫製対象物39を保持する。刺繍枠移動機構11は、X軸モータ132(図3参照)及びY軸モータ134(図3参照)を駆動源として、刺繍枠84を前後左右に移動させる。   A Y carriage 23 of the embroidery frame moving mechanism 11 is provided below the arm portion 4. The embroidery frame moving mechanism 11 detachably supports the embroidery frame 84 (see FIG. 2). The embroidery frame 84 holds the sewing target 39. The embroidery frame moving mechanism 11 moves the embroidery frame 84 forward, backward, left and right using an X-axis motor 132 (see FIG. 3) and a Y-axis motor 134 (see FIG. 3) as drive sources.

図2を参照して、刺繍枠84と刺繍枠移動機構11とについて説明する。刺繍枠84は、外枠81と、内枠82と、左右1対の連結部89とを備える。刺繍枠84は、外枠81と、内枠82とで縫製対象物39を挟持する。連結部89は、平面視矩形の中央部が矩形に切り抜かれた形状の板部材である。一方の連結部89は、内枠82の右部に螺子95によって固定され、他方の連結部89は、内枠82の左部に螺子94によって固定されている。ミシン1は、刺繍枠84の他、大きさ及び形状が異なる複数種類の他の刺繍枠を装着可能である。刺繍枠84は、ミシン1で使用される刺繍枠のうち、左右方向の幅(左右の連結部89間の距離)が一番大きな刺繍枠である。縫製可能領域は、図示しない公知の検出器(例えば、特開2004−254987号公報参照)の出力信号に基づき、刺繍枠の種類に応じて内枠の内側となる位置に自動的に設定される。   The embroidery frame 84 and the embroidery frame moving mechanism 11 will be described with reference to FIG. The embroidery frame 84 includes an outer frame 81, an inner frame 82, and a pair of left and right connecting portions 89. The embroidery frame 84 holds the sewing object 39 between the outer frame 81 and the inner frame 82. The connecting portion 89 is a plate member having a shape in which a central portion of a rectangular shape in plan view is cut out into a rectangular shape. One connecting portion 89 is fixed to the right portion of the inner frame 82 by a screw 95, and the other connecting portion 89 is fixed to the left portion of the inner frame 82 by a screw 94. In addition to the embroidery frame 84, the sewing machine 1 can be mounted with a plurality of other types of embroidery frames having different sizes and shapes. The embroidery frame 84 is the embroidery frame having the largest width in the left-right direction (the distance between the left and right connecting portions 89) among the embroidery frames used in the sewing machine 1. The sewable area is automatically set at a position inside the inner frame according to the type of the embroidery frame, based on an output signal of a known detector (not shown) (for example, see Japanese Patent Application Laid-Open No. 2004-254987). .

刺繍枠移動機構11は、ホルダ24と、Xキャリッジ22と、X軸駆動機構(図示せず)と、Yキャリッジ23と、Y軸移動機構(図示せず)とを備える。ホルダ24は、刺繍枠84を着脱可能に支持する。ホルダ24は、取付部91と、右腕部92と、左腕部93とを備える。取付部91は、左右方向に長い平面視矩形の板部材である。右腕部92は、前後方向に伸びる板部材であり、取付部91の右端に固定されている。左腕部93は、前後方向に伸びる板部材である。左腕部93は、取付部91の左部にあって、取付部91に対する左右方向の位置を調整可能に固定される。右腕部92は、一方の連結部89と係合し、左腕部93は、他方の連結部89と係合する。   The embroidery frame moving mechanism 11 includes a holder 24, an X carriage 22, an X axis drive mechanism (not shown), a Y carriage 23, and a Y axis movement mechanism (not shown). The holder 24 supports the embroidery frame 84 in a detachable manner. The holder 24 includes a mounting portion 91, a right arm portion 92, and a left arm portion 93. The attachment portion 91 is a plate member having a rectangular shape in plan view that is long in the left-right direction. The right arm portion 92 is a plate member that extends in the front-rear direction, and is fixed to the right end of the attachment portion 91. The left arm portion 93 is a plate member that extends in the front-rear direction. The left arm part 93 is on the left part of the attachment part 91 and is fixed so that the position in the left-right direction with respect to the attachment part 91 can be adjusted. The right arm portion 92 engages with one connecting portion 89, and the left arm portion 93 engages with the other connecting portion 89.

Xキャリッジ22は、左右方向に長い板部材であり、一部分がYキャリッジ23の正面から前方に突出している。Xキャリッジ22には、ホルダ24の取付部91が取り付けられる。X軸駆動機構(図示せず)は、直線移動機構(図示せず)を備える。直線移動機構は、タイミングプーリ(図示せず)と、タイミングベルト(図示せず)とを備え、X軸モータ132を駆動源として、Xキャリッジ22を左右方向(X軸方向)に移動させる。   The X carriage 22 is a plate member that is long in the left-right direction, and a part of the X carriage 22 protrudes forward from the front of the Y carriage 23. An attachment portion 91 of the holder 24 is attached to the X carriage 22. The X-axis drive mechanism (not shown) includes a linear movement mechanism (not shown). The linear movement mechanism includes a timing pulley (not shown) and a timing belt (not shown), and moves the X carriage 22 in the left-right direction (X-axis direction) using the X-axis motor 132 as a drive source.

Yキャリッジ23は、左右方向に長い箱状である。Yキャリッジ23は、Xキャリッジ22を左右方向に移動可能に支持する。Y軸移動機構(図示せず)は、左右一対の移動体(図示せず)と、直線移動機構(図示せず)とを備える。移動体は、Yキャリッジ23の左右両端の下部に連結され、ガイド溝25(図1参照)を上下に貫通している。直線移動機構は、タイミングプーリ(図示せず)と、タイミングベルト(図示せず)とを備え、Y軸モータ134を駆動源として、移動体をガイド溝25に沿って前後方向(Y軸方向)に移動させる。移動体に連結されたYキャリッジ23と、Yキャリッジ23に支持されたXキャリッジ22とは、これに伴って前後方向(Y軸方向)に移動する。縫製対象物39を保持した刺繍枠84をXキャリッジ22に装着した状態において、縫製対象物39は、針棒31と、針板16との間に配置されている。   The Y carriage 23 has a box shape that is long in the left-right direction. The Y carriage 23 supports the X carriage 22 so as to be movable in the left-right direction. The Y-axis moving mechanism (not shown) includes a pair of left and right moving bodies (not shown) and a linear moving mechanism (not shown). The moving body is connected to the lower portions of the left and right ends of the Y carriage 23 and vertically penetrates the guide groove 25 (see FIG. 1). The linear movement mechanism includes a timing pulley (not shown) and a timing belt (not shown), and uses a Y-axis motor 134 as a driving source to move the moving body along the guide groove 25 in the front-rear direction (Y-axis direction). Move to. Accordingly, the Y carriage 23 connected to the moving body and the X carriage 22 supported by the Y carriage 23 move in the front-rear direction (Y-axis direction). In a state where the embroidery frame 84 holding the sewing target 39 is mounted on the X carriage 22, the sewing target 39 is disposed between the needle bar 31 and the needle plate 16.

図3を参照して、第1及び第2の実施形態のミシン1に共通するミシン1の電気的構成について説明する。図3のように、ミシン1は、縫針駆動部120と、縫製対象駆動部130と、操作部6と、制御部60と、イメージセンサ50とを備える。以下、縫針駆動部120と、縫製対象駆動部130と、操作部6と、制御部60とのそれぞれを詳述する。   With reference to FIG. 3, the electrical configuration of the sewing machine 1 common to the sewing machines 1 of the first and second embodiments will be described. As shown in FIG. 3, the sewing machine 1 includes a sewing needle drive unit 120, a sewing target drive unit 130, an operation unit 6, a control unit 60, and an image sensor 50. Hereinafter, each of the sewing needle drive unit 120, the sewing target drive unit 130, the operation unit 6, and the control unit 60 will be described in detail.

縫針駆動部120は、主軸モータ122と、駆動回路121と、針棒ケース用モータ45と、駆動回路123と、針孔糸通し機構126と、駆動回路125とを備える。主軸モータ122は、針棒31を上下方向に往復移動させる。駆動回路121は、制御部60からの制御信号に従って主軸モータ122を駆動する。針棒ケース用モータ45は、針棒ケース21を左右方向に移動させる。駆動回路123は、制御部60からの制御信号に従って針棒ケース用モータ45を駆動する。針孔糸通し機構126は、詳しくは図示しないが、アーム部4の前方先端の下方に設けられており、針穴36の直上に位置している針棒31(縫製針棒)の縫針35の針孔(図示せず)に、上糸15(図1参照)を挿通させるための公知の機構である(例えば、特開2005−73866号公報参照)。駆動回路125は、制御部60からの制御信号に従って針孔糸通し機構126を駆動する。   The sewing needle drive unit 120 includes a spindle motor 122, a drive circuit 121, a needle bar case motor 45, a drive circuit 123, a needle hole threading mechanism 126, and a drive circuit 125. The spindle motor 122 reciprocates the needle bar 31 in the vertical direction. The drive circuit 121 drives the spindle motor 122 according to a control signal from the control unit 60. The needle bar case motor 45 moves the needle bar case 21 in the left-right direction. The drive circuit 123 drives the needle bar case motor 45 in accordance with a control signal from the control unit 60. Although not shown in detail, the needle hole threading mechanism 126 is provided below the front end of the arm portion 4 and is used for the sewing needle 35 of the needle bar 31 (sewing needle bar) located immediately above the needle hole 36. This is a known mechanism for inserting the upper thread 15 (see FIG. 1) through a needle hole (not shown) (see, for example, JP-A-2005-73866). The drive circuit 125 drives the needle hole threading mechanism 126 according to a control signal from the control unit 60.

縫製対象駆動部130は、X軸モータ132と、駆動回路131と、Y軸モータ134と、駆動回路133とを備える。X軸モータ132は、刺繍枠移動機構11を駆動させて刺繍枠84(図2参照)を左右方向に移動させる。駆動回路131は、制御部60からの制御信号に従ってX軸モータ132を駆動する。Y軸モータ134は、刺繍枠移動機構11を駆動させて刺繍枠84を前後方向に移動させる。駆動回路133は、制御部60からの制御信号に従ってY軸モータ134を駆動する。   The sewing target drive unit 130 includes an X-axis motor 132, a drive circuit 131, a Y-axis motor 134, and a drive circuit 133. The X-axis motor 132 drives the embroidery frame moving mechanism 11 to move the embroidery frame 84 (see FIG. 2) in the left-right direction. The drive circuit 131 drives the X-axis motor 132 according to a control signal from the control unit 60. The Y-axis motor 134 drives the embroidery frame moving mechanism 11 to move the embroidery frame 84 in the front-rear direction. The drive circuit 133 drives the Y-axis motor 134 according to a control signal from the control unit 60.

操作部6は、タッチパネル8と、コネクタ9と、駆動回路135と、LCD7と、スタート/ストップスイッチ41とを備える。駆動回路135は、制御部60からの制御信号に従ってLCD7を駆動する。コネクタ9は、USBデバイス160と接続する機能を備える。USBデバイス160としては、例えば、PCと、USBメモリとが挙げられる。   The operation unit 6 includes a touch panel 8, a connector 9, a drive circuit 135, an LCD 7, and a start / stop switch 41. The drive circuit 135 drives the LCD 7 according to a control signal from the control unit 60. The connector 9 has a function of connecting to the USB device 160. Examples of the USB device 160 include a PC and a USB memory.

制御部60は、CPU61と、ROM62と、RAM63と、EEPROM64と、入出力インターフェイス(I/O)66とを備え、これらは信号線65によって相互に接続されている。I/O66には、縫針駆動部120と、縫製対象駆動部130と、操作部6と、イメージセンサ50とがそれぞれ接続されている。以下、CPU61と、ROM62と、RAM63と、EEPROM64とについて詳述する。   The control unit 60 includes a CPU 61, a ROM 62, a RAM 63, an EEPROM 64, and an input / output interface (I / O) 66, which are connected to each other by a signal line 65. The I / O 66 is connected to the sewing needle driving unit 120, the sewing target driving unit 130, the operation unit 6, and the image sensor 50. Hereinafter, the CPU 61, the ROM 62, the RAM 63, and the EEPROM 64 will be described in detail.

CPU61は、ミシン1の主制御を司り、ROM62のプログラム記憶エリア(図示せず)に記憶された各種プログラムに従って、縫製に関わる各種演算及び処理を実行する。ROM62は、図示しないが、プログラム記憶エリアと、模様記憶エリアとを含む複数の記憶エリアを備える。プログラム記憶エリアには、メインプログラムを含む、ミシン1を動作させるための各種プログラムが記憶されている。メインプログラムは、後述するメイン処理を実行するためのプログラムである。模様記憶エリアには、模様(以下、「刺繍模様」とも言う。))を縫製するためのデータである縫製データが記憶されている。RAM63は、任意に読み書き可能な記憶素子であり、CPU61が演算処理した演算結果等を収容する記憶エリアが必要に応じて設けられている。EEPROM64には、読み書き可能な記憶素子であり、ミシン1が各種処理を実行するための各種パラメータが記憶されている。EEPROM64には、さらに、各針棒31と、各針棒31の下端に装着される縫針35の針孔(図示せず)に供給される上糸15の色とが対応付けて記憶されている。   The CPU 61 is responsible for main control of the sewing machine 1 and executes various calculations and processes related to sewing in accordance with various programs stored in a program storage area (not shown) of the ROM 62. Although not shown, the ROM 62 includes a plurality of storage areas including a program storage area and a pattern storage area. In the program storage area, various programs for operating the sewing machine 1 including the main program are stored. The main program is a program for executing main processing described later. The pattern storage area stores sewing data, which is data for sewing a pattern (hereinafter also referred to as “embroidery pattern”). The RAM 63 is a storage element that can be arbitrarily read and written, and is provided with a storage area for storing the calculation results and the like calculated by the CPU 61 as needed. The EEPROM 64 is a readable / writable storage element, and stores various parameters for the sewing machine 1 to execute various processes. The EEPROM 64 further stores each needle bar 31 and the color of the upper thread 15 supplied to the needle hole (not shown) of the sewing needle 35 attached to the lower end of each needle bar 31 in association with each other. .

次に、刺繍枠84に保持された縫製対象物39に縫目を形成する動作について図1から図3を参照して説明する。縫製対象物39を保持した刺繍枠84は、刺繍枠移動機構11に支持される。針棒ケース21が左右に移動することで、10本の針棒31のうち1本が選択される。刺繍枠移動機構11によって、刺繍枠84が所定の位置に移動される。主軸モータ122によって主軸(図示せず)が回転駆動されると、針棒駆動機構32及び天秤駆動機構(図示せず)が駆動され、選択された針棒31及びそれに対応する天秤19が上下駆動される。また、主軸モータ122の回転によって釜駆動機構が駆動され、釜が回転駆動される。このように、縫針35と天秤19と釜とが同期して駆動され、縫製対象物39に縫目が形成される。   Next, an operation for forming a stitch on the sewing target 39 held by the embroidery frame 84 will be described with reference to FIGS. The embroidery frame 84 holding the sewing object 39 is supported by the embroidery frame moving mechanism 11. As the needle bar case 21 moves left and right, one of the ten needle bars 31 is selected. The embroidery frame 84 is moved to a predetermined position by the embroidery frame moving mechanism 11. When the main shaft (not shown) is rotationally driven by the main shaft motor 122, the needle bar drive mechanism 32 and the balance drive mechanism (not shown) are driven, and the selected needle bar 31 and the corresponding balance 19 are driven up and down. Is done. Further, the shuttle drive mechanism is driven by the rotation of the spindle motor 122, and the shuttle is driven to rotate. In this way, the sewing needle 35, the balance 19, and the shuttle are driven in synchronization, and a stitch is formed on the sewing target 39.

次に、本実施形態の縫製データについて説明する。本実施形態の縫製データは、図2に示す刺繍座標系100の座標データを含む。刺繍座標系100は、Xキャリッジ22を移動させるX軸モータ132及びY軸モータ134の座標系である。刺繍座標系100の座標データは、基準(例えば、Xキャリッジ22)に対する刺繍模様の位置及び角度を表す。Xキャリッジ22には、縫製対象物39を保持する刺繍枠84が装着される。したがって、刺繍座標系100の座標データは、刺繍枠84に保持された縫製対象物39に対する刺繍模様の位置及び角度を表す。本実施形態では、刺繍座標系100とワールド座標系とを予め対応させている。ワールド座標系は、空間全体を示す座標系である。ワールド座標系は、撮影対象物の重心等の影響を受けることのない座標系である。   Next, the sewing data of this embodiment will be described. The sewing data of this embodiment includes coordinate data of the embroidery coordinate system 100 shown in FIG. The embroidery coordinate system 100 is a coordinate system of an X-axis motor 132 and a Y-axis motor 134 that move the X carriage 22. The coordinate data of the embroidery coordinate system 100 represents the position and angle of the embroidery pattern with respect to a reference (for example, the X carriage 22). An embroidery frame 84 that holds a sewing object 39 is attached to the X carriage 22. Therefore, the coordinate data of the embroidery coordinate system 100 represents the position and angle of the embroidery pattern with respect to the sewing object 39 held by the embroidery frame 84. In this embodiment, the embroidery coordinate system 100 and the world coordinate system are associated in advance. The world coordinate system is a coordinate system indicating the entire space. The world coordinate system is a coordinate system that is not affected by the center of gravity of the object to be imaged.

図2のように、刺繍座標系100は、ミシン1の左から右に向かう方向がX軸プラス方向であり、ミシン1の前から後に向かう方向がY軸プラス方向である。本実施形態では、刺繍枠84の初期位置を刺繍座標系100の原点(X,Y,Z)=(0,0,0)としている。刺繍枠84の初期位置は、刺繍枠84に対応する縫製可能領域86の中心点が、針落ち点と一致する位置である。針落ち点とは、針穴36(図1参照)の鉛直上方に配置された縫針35(図3参照)が、縫製対象物39の上にある状態から針棒31を下方向に移動させた際に、縫針35が縫製対象物39に刺さる点である。本実施形態の刺繍枠移動機構11は、刺繍枠84をZ方向(ミシン1の上下方向)には移動させないので、縫製対象物39の厚みが無視できる範囲であれば、縫製対象物39の上面をZ=0としている。   2, in the embroidery coordinate system 100, the direction from the left to the right of the sewing machine 1 is the X axis plus direction, and the direction from the front to the back of the sewing machine 1 is the Y axis plus direction. In the present embodiment, the initial position of the embroidery frame 84 is set to the origin (X, Y, Z) = (0, 0, 0) of the embroidery coordinate system 100. The initial position of the embroidery frame 84 is a position where the center point of the sewable area 86 corresponding to the embroidery frame 84 coincides with the needle drop point. The needle drop point means that the needle bar 31 is moved downward from the state in which the sewing needle 35 (see FIG. 3) arranged vertically above the needle hole 36 (see FIG. 1) is on the sewing object 39. In this case, the sewing needle 35 pierces the sewing object 39. Since the embroidery frame moving mechanism 11 of the present embodiment does not move the embroidery frame 84 in the Z direction (the vertical direction of the sewing machine 1), the upper surface of the sewing object 39 is within the range where the thickness of the sewing object 39 can be ignored. Z = 0.

ROM62に記憶されている縫製データの座標データは、刺繍模様の初期配置を規定する。刺繍模様の初期配置は、刺繍模様の中心点が縫製可能領域86の中心点と一致するように設定されている。縫製データの座標データは、縫製対象物39に対する刺繍模様の配置が変更された場合に適宜補正される。第1及び第2実施形態では、縫製対象物39に対する刺繍模様の配置は、後述するメイン処理に従って設定される。以下の説明では、刺繍模様(刺繍模様の中心点)の位置及び刺繍模様の角度は、刺繍座標系100で表されるデータを用いて、刺繍枠84に保持された縫製対象物39に対して設定される。   The coordinate data of the sewing data stored in the ROM 62 defines the initial arrangement of the embroidery pattern. The initial arrangement of the embroidery pattern is set so that the center point of the embroidery pattern coincides with the center point of the sewable area 86. The coordinate data of the sewing data is appropriately corrected when the arrangement of the embroidery pattern with respect to the sewing object 39 is changed. In the first and second embodiments, the arrangement of the embroidery pattern with respect to the sewing object 39 is set according to a main process described later. In the following description, the position of the embroidery pattern (the center point of the embroidery pattern) and the angle of the embroidery pattern are determined with respect to the sewing object 39 held in the embroidery frame 84 using data represented by the embroidery coordinate system 100. Is set.

次に、イメージセンサ50の撮影範囲について説明する。イメージセンサ50が撮影位置に配置された場合、イメージセンサ50の刺繍座標系100のXY平面における撮影範囲は、イメージセンサ50のレンズ中心の真下となる点を中心とする、左右方向の長さが約80mmであり前後方向の長さが約60mmの矩形範囲である。本実施形態の撮影位置は、イメージセンサ50のレンズ中心が、針穴36の直上に配置される位置である。イメージセンサ50が撮影位置に配置され、且つ、刺繍枠84が初期位置に配置された場合の撮影範囲180は、図2のように刺繍座標系100の原点を中心とする矩形範囲となる。   Next, the shooting range of the image sensor 50 will be described. When the image sensor 50 is arranged at the shooting position, the shooting range in the XY plane of the embroidery coordinate system 100 of the image sensor 50 has a length in the left-right direction centered on a point directly below the lens center of the image sensor 50. It is a rectangular range of about 80 mm and a length in the front-rear direction of about 60 mm. The photographing position of the present embodiment is a position where the lens center of the image sensor 50 is disposed immediately above the needle hole 36. When the image sensor 50 is disposed at the photographing position and the embroidery frame 84 is disposed at the initial position, the photographing range 180 is a rectangular range centered on the origin of the embroidery coordinate system 100 as shown in FIG.

図4を参照して、標識110について説明する。図4の紙面上側、下側、左側、右側をそれぞれ、標識110に描かれた模様の上側、下側、左側、右側として説明する。図4に示す標識110は、白色で薄板状の基材シート108の上面に模様が描かれたものである。基材シート108は、例えば、縦が約2.5cm,横が約2.5cmの正方形状である。基材シート108の上面には、第一円101と、第二円102と、第一中心点111と、第二中心点112とが描かれている。第二円102は、第一円101の上方に配置される。第二円102の直径は、第一円101の直径よりも小さい。第一中心点111は、第一円101の中心である。第二中心点112は、第二円102の中心である。基材シート108の上面には、さらに、線分103から106が描かれている。線分103と、線分104とは、第一中心点111と第二中心点112とを通る仮想的な直線(図示せず)と重なる。線分105と、線分106とは、第一円101の第一中心点111を経由し線分103に直交する仮想的な直線(図示せず)と重なる。線分103から106は、それぞれ基材シート108の外縁端まで描かれている。   The sign 110 will be described with reference to FIG. The upper side, the lower side, the left side, and the right side of FIG. 4 will be described as the upper side, the lower side, the left side, and the right side of the pattern drawn on the sign 110, respectively. The marker 110 shown in FIG. 4 has a pattern drawn on the upper surface of a white, thin plate-like substrate sheet 108. The base material sheet 108 is, for example, a square shape having a length of about 2.5 cm and a width of about 2.5 cm. On the upper surface of the base sheet 108, a first circle 101, a second circle 102, a first center point 111, and a second center point 112 are drawn. The second circle 102 is disposed above the first circle 101. The diameter of the second circle 102 is smaller than the diameter of the first circle 101. The first center point 111 is the center of the first circle 101. The second center point 112 is the center of the second circle 102. Line segments 103 to 106 are further drawn on the upper surface of the base sheet 108. The line segment 103 and the line segment 104 overlap with an imaginary straight line (not shown) passing through the first center point 111 and the second center point 112. The line segment 105 and the line segment 106 overlap with a virtual straight line (not shown) orthogonal to the line segment 103 via the first center point 111 of the first circle 101. Line segments 103 to 106 are drawn to the outer edge of the base sheet 108, respectively.

基材シート108の裏面には透明の粘着剤が塗着されている。したがって、基材シート108を縫製対象物39上に貼付することが可能である。通常、基材シート108は剥離紙(図示せず)に貼着された状態になっている。ユーザは、剥離紙から基材シート108を剥がして使用する。   A transparent adhesive is applied to the back surface of the base sheet 108. Accordingly, the base sheet 108 can be stuck on the sewing target 39. Usually, the base material sheet 108 is stuck to a release paper (not shown). The user peels off the base material sheet 108 from the release paper.

次に、図5から図19を参照して、第1の実施形態のミシン1において実行されるメイン処理について説明する。メイン処理は、刺繍枠内に設定される縫製可能領域に収まる大きさの模様を縫製する場合に実行される処理である。本実施形態のメイン処理では特に、刺繍枠の内側に設定される縫製可能領域よりも広い範囲に複数の模様を縫製する場合に、ユーザの指示に従って、模様間の配置を調整可能である。具体例として、図6の模様205がX軸方向に並べられて縫製される場合について説明する。模様205の大きさは、X軸方向の長さが186.8mmであり、Y軸方向の長さが133.0mmである。縫製可能領域86の大きさが、X軸方向の長さが360mmであり、Y軸方向の長さが200mmである場合、1つの模様205は縫製可能領域86に収まる。しかし、X軸方向に2個の模様205を重ねずに、例えば所定の間隔を空けて縫製する場合に、2個の模様205は、縫製可能領域86には収まらない。   Next, with reference to FIG. 5 to FIG. 19, main processing executed in the sewing machine 1 of the first embodiment will be described. The main process is a process executed when a pattern having a size that fits in the sewable area set in the embroidery frame is sewn. In the main processing of the present embodiment, in particular, when a plurality of patterns are sewn in a range wider than the sewable area set inside the embroidery frame, the arrangement between the patterns can be adjusted according to a user instruction. As a specific example, a case where the patterns 205 in FIG. 6 are sewn in the X-axis direction will be described. The pattern 205 has a length in the X-axis direction of 186.8 mm and a length in the Y-axis direction of 133.0 mm. When the size of the sewable area 86 is 360 mm in the X-axis direction and 200 mm in the Y-axis direction, one pattern 205 is accommodated in the sewable area 86. However, when the two patterns 205 are not overlapped in the X-axis direction and are sewn at a predetermined interval, for example, the two patterns 205 do not fit in the sewable area 86.

図5のメイン処理は、ユーザがメイン処理を開始する指示を入力した場合に実行される。メイン処理を開始する指示は、例えば、パネル操作によって入力される。図5のメイン処理を実行するためのプログラムは、図3のROM62に記憶されており、CPU61によって実行される。以下の説明において、イメージセンサ50が生成した画像データによって表される画像を、撮影画像と言う。例示する各種画面及びメッセージは、駆動回路135に制御信号が出力されることによってLCD7に表示される。例示する各種画面において、紙面の左右方向及び上下方向を、それぞれ画面の左右方向及び上下方向と言う。   The main process in FIG. 5 is executed when the user inputs an instruction to start the main process. The instruction to start the main process is input by a panel operation, for example. A program for executing the main processing in FIG. 5 is stored in the ROM 62 in FIG. 3 and is executed by the CPU 61. In the following description, an image represented by image data generated by the image sensor 50 is referred to as a captured image. Various screens and messages illustrated are displayed on the LCD 7 when a control signal is output to the drive circuit 135. In the various screens illustrated, the left and right direction and the up and down direction of the paper are referred to as the left and right direction and the up and down direction of the screen, respectively.

図5のように、メイン処理ではまず、変数Nに1が設定され、設定された変数NはRAM63に記憶される(S10)。変数Nは、ユーザによって選択された模様の数をカウントするための変数である。変数Nは、選択された模様の縫製順序に対応する。次に、CPU61は、N番目の模様が選択されるまで待機する(S20:NO)。S20では、まず、図6に例示する画面200が表示される。図6に示すように、画面200には、模様表示欄201と、模様情報欄202と、模様選択欄203と、SETキー204とが表示されている。   As shown in FIG. 5, in the main process, first, 1 is set to the variable N, and the set variable N is stored in the RAM 63 (S10). The variable N is a variable for counting the number of patterns selected by the user. The variable N corresponds to the sewing order of the selected pattern. Next, the CPU 61 waits until the Nth pattern is selected (S20: NO). In S20, first, a screen 200 illustrated in FIG. 6 is displayed. As shown in FIG. 6, a pattern display field 201, a pattern information field 202, a pattern selection field 203, and a SET key 204 are displayed on the screen 200.

模様表示欄201には、現在選択されている模様が縫製される範囲を表す図形が表示される。模様表示欄201の大きさは、ミシン1に設定される縫製可能範囲の最大の大きさを表す。刺繍枠84が装着された場合に設定される縫製可能範領域86(図2参照)の大きさは、模様表示欄201の大きさに対応している。模様表示欄201の左右方向は、刺繍座標系100のX軸方向に対応する。模様表示欄201の上下方向は、刺繍座標系100のY軸方向に対応する。本実施形態では、模様が縫製される範囲を表す図形を矩形で表す。模様205の配置を変更する前の状態では、模様205が縫製される範囲を表す矩形206は、模様表示欄201の左右方向に平行な辺と、模様表示欄201の上下方向に垂直な方向に平行な辺とを備える。模様情報欄202には、現在選択されている模様に関する情報として、上記矩形の大きさと、初期配置に対する移動距離及び回転角度と、縫製に必要な糸の色数とが表示されている。模様選択欄203には、ROM62又はEEPROM64に記憶されている縫製データに基づき、模様の候補が表示されている。ユーザは、模様選択欄203に表示されている模様の中から、所望の模様をパネル操作によって選択する。SETキー204は、模様の選択が終了した場合に選択される。S20では、パネル操作によって、模様選択欄203の中から1つの模様が選択された後、SETキー204が選択された場合に、N番目の模様が選択されたと判断される(S20:YES)。この場合、ROM62又はEEPROM64から選択されたN番目の模様に対応する縫製データが取得され、RAM63に記憶される(S30)。   In the pattern display column 201, a graphic representing the range in which the currently selected pattern is sewn is displayed. The size of the pattern display field 201 represents the maximum size of the sewing range set for the sewing machine 1. The size of the sewing range 86 (see FIG. 2) set when the embroidery frame 84 is attached corresponds to the size of the pattern display field 201. The left-right direction of the pattern display field 201 corresponds to the X-axis direction of the embroidery coordinate system 100. The vertical direction of the pattern display field 201 corresponds to the Y-axis direction of the embroidery coordinate system 100. In the present embodiment, a graphic representing the range where the pattern is sewn is represented by a rectangle. In a state before the arrangement of the pattern 205 is changed, a rectangle 206 representing a range in which the pattern 205 is sewn is in a direction parallel to the horizontal direction of the pattern display field 201 and a direction perpendicular to the vertical direction of the pattern display field 201. With parallel sides. In the pattern information column 202, the size of the rectangle, the movement distance and rotation angle with respect to the initial arrangement, and the number of thread colors necessary for sewing are displayed as information on the currently selected pattern. Pattern candidates are displayed in the pattern selection column 203 based on the sewing data stored in the ROM 62 or the EEPROM 64. The user selects a desired pattern from the patterns displayed in the pattern selection field 203 by panel operation. The SET key 204 is selected when the pattern selection is completed. In S20, it is determined that the Nth pattern has been selected when the SET key 204 is selected after one pattern is selected from the pattern selection field 203 by panel operation (S20: YES). In this case, sewing data corresponding to the Nth pattern selected from the ROM 62 or the EEPROM 64 is acquired and stored in the RAM 63 (S30).

図6の画面200において、1番目の模様として模様205が選択された後、SETキー204が選択された場合(S20:YES,S30、S40:YES)、N番目の模様の編集及び配置の設定が実行される(S50)。変数Nが1である場合には、S30で取得された縫製データが、模様の編集及び配置の設定に従って、公知の方法により補正される。   When the SET key 204 is selected after the pattern 205 is selected as the first pattern on the screen 200 in FIG. 6 (S20: YES, S30, S40: YES), editing and arrangement of the Nth pattern are set. Is executed (S50). When the variable N is 1, the sewing data acquired in S30 is corrected by a known method according to the pattern editing and arrangement settings.

S50では、まず、図7に例示する画面210が表示される。図7に示すように、画面210には、模様表示欄211と、模様情報欄212と、模様編集欄213と、EDIT ENDキー214とが表示されている。模様表示欄211は、模様表示欄201と同様であり、模様情報欄212は、模様情報欄202と同様である。模様編集欄213は、模様の編集及び配置を指示する各種キーが表示される。ユーザは、模様編集欄213に表示されたキーをパネル操作によって選択することによって、模様の編集及び配置を指示することができる。模様の編集及び配置には、例えば、模様の大きさの変更と、初期配置に対する模様の回転と、模様の反転と、初期配置に対する模様の移動とを含む。模様の初期配置は、上述のように、縫製データによって規定されている。EDIT ENDキー214は、模様の編集及び配置が終了した場合に選択される。   In S50, first, a screen 210 illustrated in FIG. 7 is displayed. As shown in FIG. 7, a pattern display field 211, a pattern information field 212, a pattern edit field 213, and an EDIT END key 214 are displayed on the screen 210. The pattern display column 211 is the same as the pattern display column 201, and the pattern information column 212 is the same as the pattern information column 202. The pattern editing field 213 displays various keys for instructing pattern editing and arrangement. The user can instruct pattern editing and arrangement by selecting a key displayed in the pattern editing field 213 by panel operation. The editing and arrangement of the pattern includes, for example, changing the size of the pattern, rotating the pattern with respect to the initial arrangement, reversing the pattern, and moving the pattern with respect to the initial arrangement. As described above, the initial arrangement of the pattern is defined by the sewing data. The EDIT END key 214 is selected when the pattern editing and arrangement are completed.

図7の具体例において、矩形206で表される模様205の配置が、初期配置に対して348度時計回りに回転され、X軸方向に−45.0mm、Y軸方向に−15.6mm移動された場合を想定する。模様の編集及び配置が終了した後、EDIT ENDキー214が選択された場合、図示しないが、縫製開始キーと、模様つなぎキーとを備える画面がLCD7に表示される。縫製開始キーは、模様の縫製を開始することを指示する場合に選択される。模様つなぎキーは、S20で選択されたN番目の模様に加え、N+1番目の模様が縫製される場合であって、N番目の模様と、N+1番目の模様との全体が縫製可能領域よりも広い範囲に縫製される場合に選択される。   In the specific example of FIG. 7, the arrangement of the pattern 205 represented by the rectangle 206 is rotated 348 degrees clockwise with respect to the initial arrangement, and moved by −45.0 mm in the X-axis direction and −15.6 mm in the Y-axis direction. Assuming that When the EDIT END key 214 is selected after the pattern editing and arrangement are completed, a screen including a sewing start key and a pattern connecting key is displayed on the LCD 7 although not shown. The sewing start key is selected when instructing to start sewing a pattern. The pattern connection key is used when the N + 1th pattern is sewn in addition to the Nth pattern selected in S20, and the entire Nth pattern and the N + 1th pattern are wider than the sewing area. This is selected when sewing to the range.

次に、模様つなぎキーが選択されたかが判断される(S95)。模様つなぎキーが選択された場合には(S95:YES)、図8に示す画面220のように、第1指定キー群224が表示される(S100)。図8に示すように、画面220には、模様表示欄221と、模様情報欄222と、指示キー表示欄223とが表示されている。模様表示欄221は、模様表示欄201と同様であり、模様情報欄222は、模様情報欄202と同様である。指示キー表示欄223には、第1指定キー群224と、CLOSEキー226とが表示されている。第1指定キー群224に含まれる各第1指定キーは、第1基準を指定するキーである。   Next, it is determined whether the pattern connection key has been selected (S95). When the pattern connection key is selected (S95: YES), the first designation key group 224 is displayed as shown in the screen 220 shown in FIG. 8 (S100). As shown in FIG. 8, a pattern display field 221, a pattern information field 222, and an instruction key display field 223 are displayed on the screen 220. The pattern display field 221 is the same as the pattern display field 201, and the pattern information field 222 is the same as the pattern information field 202. In the instruction key display field 223, a first designation key group 224 and a CLOSE key 226 are displayed. Each first designation key included in the first designation key group 224 is a key for designating the first reference.

第1基準は、ユーザによって指定された、第1図形に含まれる第1線分及び第1点の少なくともいずれかを含む基準である。第1基準は、N番目の模様を基準模様とし、N+1番目の模様を次の模様とする場合、基準模様の配置に対して次の模様の配置を設定する処理に用いられる。本実施形態の第1基準は、第1線分及び第1点を含む。第1図形は、基準模様(N番目の模様)が縫製される範囲を表す図形であり、本実施形態では模様が収まる最小矩形である。第1線分は、矩形を構成する四辺のいずれかから選択される。第1点は、第1線分の両端の点及び第1線分の中点のいずれかから選択される。本実施形態では、第1指定キー群224に含まれる、12個の第1指定キーの中から、第1線分と第1点との組み合わせが第1基準として選択される。CLOSEキー226は、第1基準の指定が終了した場合に選択される。   The first reference is a reference that includes at least one of the first line segment and the first point included in the first graphic specified by the user. The first reference is used for the process of setting the arrangement of the next pattern with respect to the arrangement of the reference pattern when the Nth pattern is the reference pattern and the N + 1th pattern is the next pattern. The first reference of this embodiment includes a first line segment and a first point. The first graphic is a graphic representing a range in which the reference pattern (Nth pattern) is sewn, and is the smallest rectangle in which the pattern fits in the present embodiment. The first line segment is selected from any of the four sides constituting the rectangle. The first point is selected from one of both ends of the first line segment and the middle point of the first line segment. In the present embodiment, a combination of the first line segment and the first point is selected as the first reference from the twelve first designation keys included in the first designation key group 224. The CLOSE key 226 is selected when the designation of the first reference is completed.

次に、第1指定キー群224のうちのいずれかの第1指定キーが選択されたかが判断される(S110)。図8に示す画面220において、第1指定キー225が選択された場合(S110:YES)、模様表示欄221に示すように、矩形206に第1線分227及び第1点228が付加されて表示される(S120)。第1線分227及び第1点228は、第1指定キー225に対応している。本実施形態のミシン1は、ユーザが矩形206に対する第1基準を視認しやすいように、矩形206を黒色で、第1線分227を青色で、第1点228を赤色で、それぞれ表示する。矩形206の配置は、刺繍座標系で表される縫製データによって特定される。S120では、第1保持位置における第1線分227及び第1点228の配置は、縫製データに基づき刺繍座標系の座標で特定され、RAM63に記憶される。   Next, it is determined whether any first designation key in the first designation key group 224 has been selected (S110). When the first designation key 225 is selected on the screen 220 shown in FIG. 8 (S110: YES), the first line segment 227 and the first point 228 are added to the rectangle 206 as shown in the pattern display field 221. It is displayed (S120). The first line segment 227 and the first point 228 correspond to the first designation key 225. The sewing machine 1 of the present embodiment displays the rectangle 206 in black, the first line segment 227 in blue, and the first point 228 in red so that the user can easily view the first reference for the rectangle 206. The arrangement of the rectangle 206 is specified by sewing data represented by an embroidery coordinate system. In S120, the arrangement of the first line segment 227 and the first point 228 at the first holding position is specified by the coordinates of the embroidery coordinate system based on the sewing data, and is stored in the RAM 63.

第1保持位置は、刺繍枠84に対する縫製対象物39の保持位置のうち、ユーザによって設定された、基準模様が縫製される場合の位置である。刺繍枠84に対する縫製対象物39の保持位置は、ユーザが刺繍枠84に縫製対象物39を保持させることによって設定される。第1指定キー群224のうちのいずれの第1指定キーも選択されない場合(S110:NO)、又は、S120の次に、CLOSEキー226が選択されたかが判断される(S130)。CLOSEキー226が選択されていない場合(S130:NO)、処理はS110に戻る。CLOSEキー226が選択された場合(S130:YES)、図示しないが、縫製開始キーを備える画面がLCD7に表示される。   The first holding position is a position when the reference pattern is set by the user among the holding positions of the sewing target 39 with respect to the embroidery frame 84 and is sewn. The holding position of the sewing target 39 with respect to the embroidery frame 84 is set by the user holding the sewing target 39 on the embroidery frame 84. If no first designation key in the first designation key group 224 is selected (S110: NO), it is determined whether the CLOSE key 226 is selected after S120 (S130). If the CLOSE key 226 has not been selected (S130: NO), the process returns to S110. When the CLOSE key 226 is selected (S130: YES), although not shown, a screen including a sewing start key is displayed on the LCD 7.

次に、CPU61は、縫製開始キーが選択されるまで待機する(S140:NO)。縫製開始キーが選択された場合(S140:YES)、N番目の模様の縫製が実行される(S150)。具体的には、N番目の模様の縫製データに従って、駆動回路131と、駆動回路133とに制御信号が出力され、刺繍枠84が移動される。駆動回路121に制御信号が出力され、主軸モータ122が駆動される。   Next, the CPU 61 stands by until a sewing start key is selected (S140: NO). When the sewing start key is selected (S140: YES), sewing of the Nth pattern is executed (S150). Specifically, a control signal is output to the drive circuit 131 and the drive circuit 133 according to the sewing data of the Nth pattern, and the embroidery frame 84 is moved. A control signal is output to the drive circuit 121 to drive the spindle motor 122.

次に、メッセージ「次の模様を縫製しますか?」と、OKキーとがLCD7に表示される(S160)。メッセージは、次の模様(N+1番目の模様)を縫製するための処理を実行するか否かをユーザに確認するために表示される。OKキーは、次の模様を縫製するための処理を実行する場合に選択される。所定時間内(例えば、5分間)にOKキーが選択されない場合(S170:NO)、メイン処理は終了する。OKキーが選択された場合(S170:YES)、変数Nは1だけインクリメントされ、インクリメントされた変数NはRAM63に記憶される(S180)。   Next, a message “Do you want to sew the next pattern?” And an OK key are displayed on the LCD 7 (S160). The message is displayed to confirm to the user whether or not to execute the process for sewing the next pattern (N + 1th pattern). The OK key is selected when executing a process for sewing the next pattern. If the OK key is not selected within a predetermined time (for example, 5 minutes) (S170: NO), the main process ends. When the OK key is selected (S170: YES), the variable N is incremented by 1, and the incremented variable N is stored in the RAM 63 (S180).

次に、図9のフローチャートに示す標識検出処理が実行される(S190)。標識検出処理は、第1保持位置における標識110の配置と、第1基準(第1線分227及び第1点228)とを対応付ける処理である。S180(図5参照)において、Nはインクリメントされているので、N−1番目の模様が、前述の基準模様に対応し、N番目の模様が、前述の次の模様に対応する。標識110の配置は、標識110の位置及び角度の少なくともいずれかを含む。本実施形態のミシン1は、標識110の配置として、2つの標識110の第一中心点111の刺繍座標系の座標に基づき、標識110の位置及び角度を検出する。   Next, the marker detection process shown in the flowchart of FIG. 9 is executed (S190). The marker detection process is a process of associating the arrangement of the marker 110 at the first holding position with the first reference (the first line segment 227 and the first point 228). In S180 (see FIG. 5), since N is incremented, the (N-1) th pattern corresponds to the aforementioned reference pattern, and the Nth pattern corresponds to the aforementioned next pattern. The arrangement of the sign 110 includes at least one of the position and the angle of the sign 110. The sewing machine 1 of the present embodiment detects the position and angle of the marker 110 based on the coordinates of the embroidery coordinate system of the first center point 111 of the two markers 110 as the arrangement of the markers 110.

標識110の位置は、例えば、図10に示す2つの標識110のうちの一方の第一中心点111の刺繍座標系の座標で表される。標識110の角度は、2つの標識110のうちの一方の標識110の第一中心点111から他方の標識110の第一中心点111に向かうベクトルと刺繍座標系のX軸とのなす角で表される。2つの標識110の区別は、例えば、各標識110における第一中心点111に対する、第二中心点112の相対位置にもとづき判断される。本実施形態では図10に例示するように、縫製対象物39(図2参照)上にそれぞれ配置された2つの標識110の撮影画像に基づき、第1保持位置における標識110の配置が検出される。具体的には、図10に示すように、標識110の位置は、標識110の第一中心点111の刺繍座標で表される。また、標識110の角度は、一方の標識110(図10では、上側)の第一中心点111からもう一方の標識110(図10では、下側)の第一中心点111に向かうベクトル113とX軸とのなす角θで表される。   The position of the marker 110 is represented by, for example, the coordinates of the embroidery coordinate system of the first center point 111 of one of the two markers 110 shown in FIG. The angle of the marker 110 is represented by an angle formed by a vector from the first center point 111 of one marker 110 to the first center point 111 of the other marker 110 and the X axis of the embroidery coordinate system. Is done. The distinction between the two markers 110 is determined based on the relative position of the second center point 112 with respect to the first center point 111 in each marker 110, for example. In the present embodiment, as illustrated in FIG. 10, the arrangement of the markers 110 at the first holding position is detected based on the captured images of the two markers 110 respectively arranged on the sewing object 39 (see FIG. 2). . Specifically, as shown in FIG. 10, the position of the marker 110 is represented by the embroidery coordinates of the first center point 111 of the marker 110. In addition, the angle of the marker 110 is determined by a vector 113 from the first center point 111 of one marker 110 (upper side in FIG. 10) toward the first center point 111 of the other marker 110 (lower side in FIG. 10). It is represented by an angle θ formed with the X axis.

図9を参照して標識検出処理の詳細について説明する。図9に示すように、標識検出処理ではまず、図11に例示する画面240のように、標識110の配置予定位置を示す赤色の矩形245がLCD7に表示され(S192)、イメージセンサ50による針元の撮影が開始される(S194)。図11に示すように、画面240には、模様表示欄241と、配置予定位置表示欄242とが表示されている。模様表示欄241は、模様表示欄201と同様である。配置予定位置表示欄242には、メッセージ243と、合成画像244と、OKキー246とが表示されている。   Details of the label detection process will be described with reference to FIG. As shown in FIG. 9, in the sign detection process, first, as shown in the screen 240 illustrated in FIG. 11, a red rectangle 245 indicating the planned placement position of the sign 110 is displayed on the LCD 7 (S192). Original shooting is started (S194). As shown in FIG. 11, a pattern display field 241 and a planned arrangement position display field 242 are displayed on the screen 240. The pattern display field 241 is the same as the pattern display field 201. In the planned placement position display field 242, a message 243, a composite image 244, and an OK key 246 are displayed.

合成画像244は、イメージセンサ50から出力される針元付近の画像に、赤色の矩形245が付与された画像である。赤色の矩形245は、針元付近の画像における、第1線分の一方の端の近傍に表示される。矩形245の大きさは、標識110の大きさの約1.5倍である。メッセージ243は、標識110を矩形245の内側の領域に配置した後、OKキー246を選択することをユーザに促すために表示される。OKキー246は、矩形245の内側に標識110が配置された場合に選択される。ユーザは、画面240を確認しながら、配置予定位置表示欄242に表示されているように、矩形245の内側に標識110を貼り付けた後、OKキー246を選択する。   The composite image 244 is an image in which a red rectangle 245 is added to an image near the needle base output from the image sensor 50. A red rectangle 245 is displayed in the vicinity of one end of the first line segment in the image near the needle base. The size of the rectangle 245 is about 1.5 times the size of the sign 110. The message 243 is displayed to prompt the user to select the OK key 246 after placing the sign 110 in the area inside the rectangle 245. The OK key 246 is selected when the marker 110 is placed inside the rectangle 245. While confirming the screen 240, the user selects the OK key 246 after pasting the marker 110 inside the rectangle 245 as displayed in the planned placement position display field 242.

CPU61は、OKキー246が選択されるまで待機する(S196:NO)。OKキー246が選択された場合(S196:YES)、イメージセンサ50から出力される画像データが取得され、取得された画像データがRAM63に記憶される(S198)。次に、矩形245の内側となる部分の画像から標識110を検出する処理が実行される(S200)。S200では、矩形245の内側となる部分の画像から標識110が検出された場合、標識110に含まれる第一中心点111及び第二中心点112の刺繍座標系の座標が特定される。標識110の検出及び座標の特定は、公知の方法(例えば、特開2010−246885号公報参照)を用いて実行される。具体的には、標識110の第一中心点111及び第二中心点112について、例えばハフ変換処理を用いて、イメージセンサによって撮像された画像の座標系である画像座標系における二次元座標が算出される。その後、画像座標系の二次元座標がワールド座標系の三次元座標に変換される。前述のように、本実施形態では、刺繍座標系と、ワールド座標系とは対応付けられているので、画像処理によって算出されたワールド座標系の三次元座標に基づき、刺繍座標系の座標が算出される。S200で標識110が検出されていない場合(S202:NO)、標識110を矩形245内に配置することをユーザに促すメッセージがLCD7に表示される(S204)。次に、処理はS194に戻る。S200で標識110が検出された場合(S202:YES)、S200で検出された標識110が、2個目の標識110であるかが判断される(S206)。   The CPU 61 waits until the OK key 246 is selected (S196: NO). When the OK key 246 is selected (S196: YES), the image data output from the image sensor 50 is acquired, and the acquired image data is stored in the RAM 63 (S198). Next, a process of detecting the marker 110 from the image of the portion inside the rectangle 245 is executed (S200). In S200, when the marker 110 is detected from the image inside the rectangle 245, the coordinates of the embroidery coordinate system of the first center point 111 and the second center point 112 included in the marker 110 are specified. The detection of the marker 110 and the specification of the coordinates are performed using a known method (for example, see Japanese Patent Application Laid-Open No. 2010-246885). Specifically, for the first center point 111 and the second center point 112 of the sign 110, for example, a two-dimensional coordinate in an image coordinate system that is a coordinate system of an image captured by the image sensor is calculated using a Hough transform process. Is done. Thereafter, the two-dimensional coordinates in the image coordinate system are converted into the three-dimensional coordinates in the world coordinate system. As described above, in this embodiment, since the embroidery coordinate system and the world coordinate system are associated with each other, the coordinates of the embroidery coordinate system are calculated based on the three-dimensional coordinates of the world coordinate system calculated by image processing. Is done. If the sign 110 is not detected in S200 (S202: NO), a message prompting the user to place the sign 110 in the rectangle 245 is displayed on the LCD 7 (S204). Next, the process returns to S194. When the marker 110 is detected in S200 (S202: YES), it is determined whether the marker 110 detected in S200 is the second marker 110 (S206).

前述のように、本実施形態のミシン1は、縫製対象物39上の第1線分の両端付近にそれぞれ配置された2個の標識110を検出して、標識110の配置と、第1保持位置における基準模様の配置とを対応付ける。S200で検出された標識110が、1個目の標識110である場合(S206:NO)、駆動回路131と、駆動回路133とに制御信号が出力され、刺繍枠84が移動される(S208)。具体的には、第1線分の他方の端の近傍に設定される配置予定位置がイメージセンサ50の撮影範囲に収まる位置に、刺繍枠84が移動される。   As described above, the sewing machine 1 according to the present embodiment detects the two markers 110 disposed near both ends of the first line segment on the sewing target 39, and arranges the markers 110 and performs the first holding. Corresponds to the arrangement of the reference pattern at the position. When the sign 110 detected in S200 is the first sign 110 (S206: NO), a control signal is output to the drive circuit 131 and the drive circuit 133, and the embroidery frame 84 is moved (S208). . Specifically, the embroidery frame 84 is moved to a position where the planned arrangement position set in the vicinity of the other end of the first line segment is within the imaging range of the image sensor 50.

次に、処理はS192に戻り、2個目の標識110を検出するための処理が実行される。S200で検出された標識110が、2個目の標識110である場合(S206:YES)、検出された標識110の刺繍座標と第1基準の刺繍座標とから図12の状態Aに示す第1保持位置での第1基準に対する標識110の配置が特定され、RAM63に登録される(S209)。具体的には、第1保持位置における標識110の第一中心点111(図10に示す)の刺繍座標と、メイン処理(図5参照)のS120で特定された第一保持位置における第一基準(第一線分227及び第一点228)の座標とを対応付けることによって、第1保持位置での第1基準に対する標識110の位置及び角度を含む配置が特定される。この後、標識検出処理は終了し、図5に示すメイン処理に戻る。   Next, the process returns to S192, and the process for detecting the second marker 110 is executed. When the marker 110 detected in S200 is the second marker 110 (S206: YES), the first marker shown in the state A of FIG. 12 from the detected embroidery coordinates of the marker 110 and the first reference embroidery coordinates. The arrangement of the marker 110 relative to the first reference at the holding position is specified and registered in the RAM 63 (S209). Specifically, the embroidery coordinates of the first center point 111 (shown in FIG. 10) of the marker 110 at the first holding position and the first reference at the first holding position specified in S120 of the main process (see FIG. 5). By associating the coordinates of the (first line segment 227 and the first point 228), an arrangement including the position and angle of the marker 110 with respect to the first reference at the first holding position is specified. Thereafter, the sign detection process ends, and the process returns to the main process shown in FIG.

図5のS190の次に、刺繍枠84に対する縫製対象物39の保持位置を変更することをユーザに促すメッセージを表示させる(S210)。このメッセージの表示後、ユーザによって、刺繍枠84に対する縫製対象物39の保持位置の変更が縫製対象物39の表面に標識110が貼り付けられた状態で実行される。すなわち、刺繍枠84に対する縫製対象物39の保持位置が変更されても、縫製対象物39に対する標識110の配置は変更されない。具体的には、ユーザによって、縫製対象物39の保持位置が、標識110の配置は変更せずに、図12の状態Aに示す第1保持位置から図12の状態Bに示す仮保持位置に変更される。仮保持位置と、第1保持位置とは、刺繍枠84(図2)に対する縫製対象物39の相対的な保持位置が異なる。本実施の形態の仮保持位置は、縫製対象物39に貼り付けられた2個の標識110のそれぞれが、刺繍枠84(図2)の内側にあるという条件を満たす必要がある。   Following S190 in FIG. 5, a message prompting the user to change the holding position of the sewing object 39 with respect to the embroidery frame 84 is displayed (S210). After the display of this message, the user changes the holding position of the sewing object 39 with respect to the embroidery frame 84 in a state where the marker 110 is stuck on the surface of the sewing object 39. That is, even if the holding position of the sewing target 39 with respect to the embroidery frame 84 is changed, the arrangement of the markers 110 with respect to the sewing target 39 is not changed. Specifically, the user holds the sewing object 39 from the first holding position shown in the state A in FIG. 12 to the temporary holding position shown in the state B in FIG. 12 without changing the arrangement of the markers 110. Be changed. The temporary holding position and the first holding position differ in the relative holding position of the sewing object 39 with respect to the embroidery frame 84 (FIG. 2). The temporary holding position of the present embodiment needs to satisfy the condition that each of the two markers 110 attached to the sewing object 39 is inside the embroidery frame 84 (FIG. 2).

次に、処理はS20に戻る。前述の具体例において、S20において、2番目の模様として、1番目の模様205と同じ模様205が選択された場合を想定する(S20:YES)。この場合、2番目の模様205の縫製データが取得された後(S30)、変数Nは1ではないと判断される(S40:NO)。変数Nが2以上の場合には、変数Nが1である場合とは異なり、配置設定処理が実行される(S60)。配置設定処理では、第2保持位置における次の模様(N番目の模様)の配置を設定する処理が実行される。S60の時点では、基準模様は既に縫製対象物に縫製されており、縫製対象物に対する配置が確定している。S60では、基準模様の配置に対する次の模様の相対的な配置と、第2保持位置における基準模様の配置とに基づき、第2保持位置での縫製対象物に対する次の模様(N番目の模様)の配置を設定する処理が実行される。   Next, the process returns to S20. In the specific example described above, it is assumed that the same pattern 205 as the first pattern 205 is selected as the second pattern in S20 (S20: YES). In this case, after the sewing data of the second pattern 205 is acquired (S30), it is determined that the variable N is not 1 (S40: NO). When the variable N is 2 or more, unlike the case where the variable N is 1, the arrangement setting process is executed (S60). In the arrangement setting process, a process of setting the arrangement of the next pattern (Nth pattern) at the second holding position is executed. At the time of S60, the reference pattern has already been sewn to the sewing object, and the arrangement with respect to the sewing object has been confirmed. In S60, the next pattern (Nth pattern) for the sewing object at the second holding position based on the relative arrangement of the next pattern with respect to the arrangement of the reference pattern and the arrangement of the reference pattern at the second holding position. The process of setting the arrangement of is executed.

図13を参照して、配置設定処理の詳細について説明する。図13に示すように、配置設定処理では、まず図14に示す画面250のように、第2指定キー群254が表示される(S62)。図14に示すように、画面250には、模様表示欄251と、模様情報欄252と、指示キー表示欄253とが表示されている。模様表示欄251は、模様表示欄201と同様であり、模様情報欄252は、模様情報欄202と同様である。指示キー表示欄253には、第2指定キー群254と、OKキー256及び標識検出キー259とが表示されている。第2指定キー群254に含まれる各第2指定キーは、第2基準を指定するキーである。第2基準とは、ユーザによって指定された、第2図形に含まれる第2線分及び第2点の少なくともいずれかを含む基準である。   Details of the arrangement setting process will be described with reference to FIG. As shown in FIG. 13, in the arrangement setting process, first, the second designation key group 254 is displayed as shown in the screen 250 shown in FIG. 14 (S62). As shown in FIG. 14, the screen 250 displays a pattern display field 251, a pattern information field 252, and an instruction key display field 253. The pattern display column 251 is the same as the pattern display column 201, and the pattern information column 252 is the same as the pattern information column 202. In the instruction key display field 253, a second designation key group 254, an OK key 256, and a sign detection key 259 are displayed. Each second designation key included in the second designation key group 254 is a key for designating the second reference. The second reference is a reference specified by the user and including at least one of the second line segment and the second point included in the second graphic.

第2図形は、次の模様が縫製される範囲を表す図形であり、本実施形態では第1図形と同様に矩形である。本実施形態の第2基準は、第2線分及び第2点を含む。第2線分は、第1線分と同様に、矩形を構成する四辺のいずれかから選択される。第2点は、第1点と同様に、第2線分の両端の点及び第2線分の中点のいずれかから選択される。本実施形態では、第2指定キー群254に含まれる、12個の第2指定キーの中から、第2線分と第2点との組み合わせが第2基準として選択される。第2基準は、基準模様(N−1番目の模様)の配置に対する次の模様(N番目の模様)の相対的な配置を決定する処理に用いられる。OKキー256は、第2基準の指定が終了した場合に選択される。標識検出キー259は、標識110の貼り替えを行う際に選択するキーである。この標識検出キー259が選択されると、第1基準に対する貼り替え後の標識110の配置が特定され、RAM63に更新登録される。   The 2nd figure is a figure showing the range where the next pattern is sewn, and in this embodiment, it is a rectangle like the 1st figure. The second reference of this embodiment includes a second line segment and a second point. Similar to the first line segment, the second line segment is selected from any one of the four sides forming the rectangle. Similarly to the first point, the second point is selected from either the end points of the second line segment or the midpoint of the second line segment. In the present embodiment, a combination of the second line segment and the second point is selected as the second reference from the 12 second designation keys included in the second designation key group 254. The second reference is used for the process of determining the relative arrangement of the next pattern (Nth pattern) with respect to the arrangement of the reference pattern (N-1th pattern). The OK key 256 is selected when the designation of the second reference is completed. The sign detection key 259 is a key that is selected when the sign 110 is replaced. When the marker detection key 259 is selected, the arrangement of the marker 110 after the replacement with respect to the first reference is specified and updated and registered in the RAM 63.

次に、第2指定キー群254のうちのいずれかの第2指定キーが選択されたかが判断される(S64)。図14に示す画面250において、いずれかの第2指定キーが選択された場合(S64:YES)、1番目の模様205の配置に対する2番目の模様205の相対的な配置が決定され(S70)、決定結果はLCD7に表示され(S72)、S74に進む。本実施形態では、模様の配置は、初期配置に対する模様の位置及び角度を含む。基準模様(N−1番目の模様)の配置に対する次の模様(N番目の模様)の相対的な配置は、第1基準及び第2基準に基づき以下のように決定される。すなわち、基準模様の配置に対する次の模様の相対的な配置は、第1線分の延伸方向が第2線分と重なり、且つ、第1点が、第2点と重なる配置に決定される。上記の条件を満たす、基準模様の配置に対する次の模様の相対的な配置は、基準模様と次の模様とが重なる場合と、基準模様と次の模様とが互いに重ならない場合の2パターン考えられる。本実施形態では、2パターンの配置のうち、基準模様と次の模様(N番目の模様)とが互いに重ならない方が採用される。   Next, it is determined whether any second designation key in the second designation key group 254 has been selected (S64). When one of the second designation keys is selected on the screen 250 shown in FIG. 14 (S64: YES), the relative arrangement of the second pattern 205 with respect to the arrangement of the first pattern 205 is determined (S70). The determination result is displayed on the LCD 7 (S72), and the process proceeds to S74. In this embodiment, the pattern arrangement includes the position and angle of the pattern with respect to the initial arrangement. The relative arrangement of the next pattern (Nth pattern) with respect to the arrangement of the reference pattern (N-1th pattern) is determined as follows based on the first reference and the second reference. That is, the relative arrangement of the next pattern with respect to the arrangement of the reference pattern is determined such that the extending direction of the first line segment overlaps with the second line segment and the first point overlaps with the second point. There are two possible relative arrangements of the next pattern with respect to the arrangement of the reference pattern that satisfy the above conditions: a case where the reference pattern and the next pattern overlap and a case where the reference pattern and the next pattern do not overlap each other. . In the present embodiment, the arrangement in which the reference pattern and the next pattern (Nth pattern) do not overlap each other among the two pattern arrangements is employed.

図14に示す画面250において、第2指定キー255が選択された場合、模様表示欄251に例示するように、1番目の模様205(図6に示す)の配置に対する2番目の模様205(図6に示す)の相対的な配置は以下のように決定される。すなわち、第1基準を含む矩形206の右辺の延伸方向と、2番目の模様205の範囲を表す矩形258の左辺で示される第2線分227Aとが重なり、且つ、矩形206の右辺の中点(第1点228)と、矩形258の左辺の上側の端点228Aとが重なる配置に決定される。図15は、図14に示す画面250において、第2指定キー257が選択された場合の模様表示欄251を示したものである。1番目の模様205(図6に示す)の配置に対する2番目の模様205(図6に示す)の相対的な配置は以下のように決定される。すなわち、1番目の模様205(図6に示す)の範囲を表す矩形206の右辺の延伸方向と、2番目の模様205(図6に示す)の範囲を表す矩形258の左辺とが重なり、且つ、矩形206の右辺の中点(第1点228)と、矩形258の左辺の中点228Bとが重なる配置に決定される。ユーザは、LCD7に表示された画面を見ることによって、基準模様(N−1番目の模様)の配置に対する次の模様(N番目の模様)の相対的な配置を確認する。   When the second designation key 255 is selected on the screen 250 shown in FIG. 14, the second pattern 205 (see FIG. 6) corresponding to the arrangement of the first pattern 205 (shown in FIG. 6) is exemplified as the pattern display field 251. 6) is determined as follows. That is, the extending direction of the right side of the rectangle 206 including the first reference overlaps the second line segment 227A indicated by the left side of the rectangle 258 representing the range of the second pattern 205, and the midpoint of the right side of the rectangle 206 It is determined that the (first point 228) and the end point 228A on the upper left side of the rectangle 258 overlap. FIG. 15 shows a pattern display field 251 when the second designation key 257 is selected on the screen 250 shown in FIG. The relative arrangement of the second pattern 205 (shown in FIG. 6) with respect to the arrangement of the first pattern 205 (shown in FIG. 6) is determined as follows. That is, the extending direction of the right side of the rectangle 206 representing the range of the first pattern 205 (shown in FIG. 6) overlaps the left side of the rectangle 258 representing the range of the second pattern 205 (shown in FIG. 6), and The midpoint (first point 228) of the right side of the rectangle 206 and the midpoint 228B of the left side of the rectangle 258 are determined to overlap. The user confirms the relative arrangement of the next pattern (Nth pattern) with respect to the arrangement of the reference pattern (N−1th pattern) by looking at the screen displayed on the LCD 7.

第2指定キー群254のうちのいずれの第2指定キーも選択されない場合(S64:NO)、図14に示す画面250において、標識検出キー259が選択され、仮保持位置処理が指示されたかが判断される(S65)。仮保持位置処理の指示がない場合(S65:NO)、S74に進む。一方、仮保持位置処理の指示がある場合(S65:YES)、S67に進み、仮保持位置処理が行われる。この仮保持位置処理では、図9の標識検出処理とは異なり、刺繍枠84の内側全体が標識110の検出対象範囲に設定される。図16を参照して、仮保持位置処理を説明する。図16に示すように、仮保持位置処理では、まず標識の検出回数を表す変数Mが1に設定され、設定された変数MはRAM63に記憶される(S671)。イメージセンサ50から出力された画像データが取得され(S673)、S673で取得された画像データによって表される画像全体を検出対象として、標識110の検出処理が実行される(S675)。標識110の検出は、S200と同様に、公知の方法を用いて実行される。標識110が検出された場合には(S677:YES)、S679に進む。標識110の検出は、例えば、標識110の第一中心点111及び第二中心点112の刺繍座標系の座標を検出することによって行う。   If no second designation key in the second designation key group 254 is selected (S64: NO), it is determined whether or not the sign detection key 259 is selected and the temporary holding position process is instructed on the screen 250 shown in FIG. (S65). If there is no instruction for temporary holding position processing (S65: NO), the process proceeds to S74. On the other hand, if there is an instruction for temporary holding position processing (S65: YES), the process proceeds to S67, where temporary holding position processing is performed. In this temporary holding position process, unlike the sign detection process of FIG. 9, the entire inside of the embroidery frame 84 is set as the detection target range of the sign 110. The temporary holding position process will be described with reference to FIG. As shown in FIG. 16, in the temporary holding position process, first, a variable M indicating the number of times of detection of the sign is set to 1, and the set variable M is stored in the RAM 63 (S671). The image data output from the image sensor 50 is acquired (S673), and the detection process of the sign 110 is executed with the entire image represented by the image data acquired in S673 as the detection target (S675). The detection of the label 110 is performed using a known method as in S200. When the sign 110 is detected (S677: YES), the process proceeds to S679. The marker 110 is detected by, for example, detecting the embroidery coordinate system coordinates of the first center point 111 and the second center point 112 of the marker 110.

一方、S677で標識110が検出されていない場合(S677:NO)、S701に進む。S679では、2個目の標識が検出されたかが判断され、2個目の標識が検出されていない場合(S679:NO)には、S701に進む。S701では、刺繍枠84の内側の全領域が検出対象範囲として設定されたかが判断され、検出対象範囲として設定されていない領域がある場合(S701:NO)、駆動回路131及び駆動回路133に制御信号が出力され、検出対象範囲として設定されていない領域が、イメージセンサ50の撮影範囲に収まる位置に、刺繍枠84が移動される(S703)。刺繍枠84の内側の全領域が、検出対象範囲として設定された場合(S701:YES)、2個の標識110が検出できないことを報知するメッセージがLCD7に表示される(S705)。この場合、ユーザは、2個の標識110が刺繍枠84の内側の領域にあるか否かを確認する。S703又はS705の次に処理はS673に戻る。   On the other hand, when the marker 110 is not detected in S677 (S677: NO), the process proceeds to S701. In S679, it is determined whether the second label is detected. If the second label is not detected (S679: NO), the process proceeds to S701. In S701, it is determined whether the entire area inside the embroidery frame 84 is set as the detection target range. If there is an area that is not set as the detection target range (S701: NO), a control signal is sent to the drive circuit 131 and the drive circuit 133. Is output, and the embroidery frame 84 is moved to a position where an area not set as the detection target range falls within the photographing range of the image sensor 50 (S703). When the entire area inside the embroidery frame 84 is set as the detection target range (S701: YES), a message notifying that the two markers 110 cannot be detected is displayed on the LCD 7 (S705). In this case, the user checks whether or not the two signs 110 are in the area inside the embroidery frame 84. After S703 or S705, the process returns to S673.

一方、S679で、2個目の標識が検出された場合(S679:YES)、図12の状態Aに示す第1保持位置での第1基準に対する標識110の配置とS675で検出された標識110の刺繍座標とから、図12の状態Bに示す仮保持位置での第1基準に対する標識110の配置が特定され、RAM63に更新登録される(S706)。具体的には、縫製対象物が仮保持位置に張り替えられると、仮保持位置での刺繍座標系が設定され原点は既知となり、仮保持位置での標識110の刺繍座標が検出できる。また、図12の状態Aに示す第1保持位置での第1基準(第1線分227及び第1点228)の刺繍座標と標識110の刺繍座標との対応は既に特定されている。従って、第1保持位置における第1基準の刺繍座標を仮保持位置における刺繍座標系の座標に座標変換すれば、仮保持位置における第1基準の刺繍座標と標識110との対応ができ、図12の状態Bに示す仮保持位置での第1基準に対する標識110の位置及び角度を含む配置が特定される。   On the other hand, when the second sign is detected in S679 (S679: YES), the arrangement of the sign 110 with respect to the first reference at the first holding position shown in the state A of FIG. 12 and the sign 110 detected in S675. From the embroidery coordinates, the arrangement of the marker 110 with respect to the first reference at the temporary holding position shown in the state B of FIG. 12 is specified and updated and registered in the RAM 63 (S706). Specifically, when the sewing object is repositioned to the temporary holding position, the embroidery coordinate system at the temporary holding position is set, the origin is known, and the embroidery coordinates of the marker 110 at the temporary holding position can be detected. The correspondence between the embroidery coordinates of the first reference (first line segment 227 and first point 228) and the embroidery coordinates of the marker 110 at the first holding position shown in the state A of FIG. 12 has already been specified. Accordingly, if the first reference embroidery coordinate at the first holding position is converted to the coordinates of the embroidery coordinate system at the temporary holding position, the correspondence between the first reference embroidery coordinate at the temporary holding position and the marker 110 can be achieved. The arrangement including the position and angle of the marker 110 with respect to the first reference at the temporary holding position shown in the state B is specified.

次に、変数Mの値が2であるかが判断され(S707)、Mの値が2でない場合(S707:NO)、変数Mの値が1インクリメントされ、2となる(S708)。図17に例示する画面260が表示される(S709)。図17に示すように、画面260には、模様表示欄261と、配置予定位置表示欄262とが表示されている。模様表示欄261は、模様表示欄241と同様である。配置予定位置表示欄262には、標識110の貼り直しをユーザに促すメッセージ263と、合成画像264と、スキャンキー268とが表示されている。合成画像264は、合成画像244と同様である。このメッセージの後、縫製対象物39の刺繍枠84(図2に示す)に対する保持位置は維持したままで、ユーザによって、矩形245を参照して、標識110が図12の状態Bの位置から図12の状態Cの位置に貼り替えられる。標識110が貼り替えられた後、図17に示すスキャンキー268が選択されたかが判断され(S711)、選択がない場合(S711:NO)、S711に戻り、選択があるまで待つ。一方、スキャンキー268が選択された場合(S711:YES)、画像データが取得され、2個の標識110を検出する処理が行われる(S712〜717)。この処理の内容は、前述の標識検出処理(図9)のS198〜S208と同様であるため、ここでの説明は省略する。2個の標識110が検出されると(S716:YES)、図12の状態Bに示す仮保持位置での第1基準に対する標識110の配置、貼り替え前の標識110の刺繍座標、及び貼り替え後の標識110の刺繍座標とから、図12の状態Cに示す仮保持位置での第1基準に対する標識110の位置及び角度を含む配置が特定され、RAM63に更新登録される(S718)。具体的には、仮保持位置での刺繍座標系は設定されているので、貼り替え後の標識110の刺繍座標は検出することができる。また、仮保持位置での第1基準に対する貼り替え前の標識110の位置及び角度を含む配置は既に特定されている。従って、第1基準に対する貼り替え後の標識110の位置及び角度を含む配置が特定できる。   Next, it is determined whether the value of the variable M is 2 (S707). If the value of M is not 2 (S707: NO), the value of the variable M is incremented by 1 to 2 (S708). A screen 260 illustrated in FIG. 17 is displayed (S709). As shown in FIG. 17, the screen 260 displays a pattern display field 261 and a planned placement position display field 262. The pattern display field 261 is the same as the pattern display field 241. In the planned placement position display field 262, a message 263 that prompts the user to paste the marker 110 again, a composite image 264, and a scan key 268 are displayed. The composite image 264 is the same as the composite image 244. After this message, while the holding position of the sewing object 39 with respect to the embroidery frame 84 (shown in FIG. 2) is maintained, the user can refer to the rectangle 245 from the position of the state B in FIG. 12 is pasted to the position of the state C. After the marker 110 is replaced, it is determined whether the scan key 268 shown in FIG. 17 has been selected (S711). If there is no selection (S711: NO), the process returns to S711 and waits until there is a selection. On the other hand, when the scan key 268 is selected (S711: YES), image data is acquired and processing for detecting the two markers 110 is performed (S712-717). Since the contents of this process are the same as S198 to S208 of the above-described label detection process (FIG. 9), description thereof is omitted here. When the two signs 110 are detected (S716: YES), the arrangement of the signs 110 with respect to the first reference at the temporary holding position shown in the state B of FIG. 12, the embroidery coordinates of the signs 110 before the replacement, and the replacement An arrangement including the position and angle of the marker 110 with respect to the first reference at the temporary holding position shown in the state C of FIG. 12 is specified from the embroidery coordinates of the subsequent marker 110, and is updated and registered in the RAM 63 (S718). Specifically, since the embroidery coordinate system at the temporary holding position is set, the embroidery coordinates of the marker 110 after the replacement can be detected. In addition, the arrangement including the position and the angle of the marker 110 before being replaced with respect to the first reference at the temporary holding position has already been specified. Therefore, the arrangement including the position and the angle of the marker 110 after the replacement with respect to the first reference can be specified.

S718の後、処理はS707に戻る。Mは2であるから(S707:YES)、図18に例示する画面270が表示される(S721)。図18に示すように、画面270には、模様表示欄271と、第1基準に対する標識110の配置が更新された旨を示すメッセージ273と、OKキー276とが表示されている。   After S718, the process returns to S707. Since M is 2 (S707: YES), the screen 270 illustrated in FIG. 18 is displayed (S721). As shown in FIG. 18, the screen 270 displays a pattern display field 271, a message 273 indicating that the arrangement of the marker 110 with respect to the first reference has been updated, and an OK key 276.

OKキー276が選択されると、縫製対象物39の保持位置の変更を促すメッセージがLCD7に表示され(S722)、その後画面250が表示されて、図13に示す配置設定処理のS67に戻る。メッセージの表示後、ユーザは縫製対象物39の刺繍枠84に対する保持位置を、図12の状態Cに示す仮保持位置から図12の状態Dに示す第2保持位置に変更する。なお、縫製対象物39の保持位置の変更は、標識110が貼り付けられた状態で実行される。すなわち、縫製対象物39の保持位置が変更されても、縫製対象物39に対する標識110の配置は変更されない。S74では、OKキー256が選択されたかが判断され、OKキー256が選択されていない場合(S74:NO)、処理はS64に戻る。OKキー256が選択された場合(S74:YES)、標識110の配置に基づき、第2保持位置における基準模様(N−1番目の模様)の配置を特定するための処理が実行される(S76〜S80)。図9の標識検出処理とは異なり、刺繍枠84の内側全体が標識110の検出対象範囲に設定される。   When the OK key 276 is selected, a message prompting the change of the holding position of the sewing object 39 is displayed on the LCD 7 (S722), and then the screen 250 is displayed, and the process returns to S67 of the arrangement setting process shown in FIG. After displaying the message, the user changes the holding position of the sewing object 39 with respect to the embroidery frame 84 from the temporary holding position shown in the state C in FIG. 12 to the second holding position shown in the state D in FIG. Note that the change of the holding position of the sewing object 39 is executed in a state where the mark 110 is pasted. That is, even if the holding position of the sewing target 39 is changed, the arrangement of the markers 110 with respect to the sewing target 39 is not changed. In S74, it is determined whether the OK key 256 has been selected. If the OK key 256 has not been selected (S74: NO), the process returns to S64. When the OK key 256 is selected (S74: YES), a process for specifying the arrangement of the reference pattern (N-1th pattern) at the second holding position is executed based on the arrangement of the markers 110 (S76). ~ S80). Unlike the sign detection process of FIG. 9, the entire inside of the embroidery frame 84 is set as the detection target range of the sign 110.

具体的には、まず、イメージセンサ50から出力された画像データが取得される(S76)。次に、S76で取得された画像データによって表される画像全体を検出対象として、標識110の検出処理が実行される(S78)。標識110の検出は、S200と同様に、公知の方法を用いて実行される。標識110が検出された場合には、例えば、標識110の第一中心点111及び第二中心点112の刺繍座標系の座標が算出される。S78で標識110が検出されていない場合(S80:NO)、又は、S78で1個目の標識110が検出された場合(S80:YES,S82:NO)には、刺繍枠84の内側の全領域が検出対象範囲として設定されたかが判断される(S84)。検出対象範囲として設定されていない領域がある場合(S84:NO)、駆動回路131及び駆動回路133に制御信号が出力され、検出対象範囲として設定されていない領域が、イメージセンサ50の撮影範囲に収まる位置に、刺繍枠84が移動される(S86)。刺繍枠84の内側の全領域が、検出対象範囲として設定された場合(S84:YES)、2個の標識110が検出できないことを報知するメッセージがLCD7に表示される(S88)。この場合、ユーザは、2個の標識110が刺繍枠84の内側の領域にあるか否かを確認する。S86又はS88の次に処理はS76に戻る。   Specifically, first, image data output from the image sensor 50 is acquired (S76). Next, the detection process of the marker 110 is executed with the entire image represented by the image data acquired in S76 as a detection target (S78). The detection of the label 110 is performed using a known method as in S200. When the marker 110 is detected, for example, the coordinates of the embroidery coordinate system of the first center point 111 and the second center point 112 of the marker 110 are calculated. If the marker 110 is not detected in S78 (S80: NO), or if the first marker 110 is detected in S78 (S80: YES, S82: NO), the entire inside of the embroidery frame 84 is not detected. It is determined whether the region is set as a detection target range (S84). When there is an area that is not set as the detection target range (S84: NO), a control signal is output to the drive circuit 131 and the drive circuit 133, and the area that is not set as the detection target range is the shooting range of the image sensor 50. The embroidery frame 84 is moved to the position where it fits (S86). When the entire area inside the embroidery frame 84 is set as the detection target range (S84: YES), a message notifying that the two signs 110 cannot be detected is displayed on the LCD 7 (S88). In this case, the user checks whether or not the two signs 110 are in the area inside the embroidery frame 84. After S86 or S88, the process returns to S76.

2個の標識110のそれぞれが検出された場合(S80:YES,S82:YES)、検出された標識110の刺繍座標と、図12の状態Cに示す仮保持位置での第1基準(第1線分227及び第1点228)に対する標識110の配置とから図12の状態Dに示す第2持位置での第1基準に対する標識110の配置が特定され(S90)、RAM63に更新登録される。具体的には、縫製対象物39の保持位置を第2保持位置に張り替えると、第2保持位置での刺繍座標系が設定されるので、第2保持位置での標識110の刺繍座標が検出できる。また、第1基準の刺繍座標と仮保持位置での貼り替え後の標識110の刺繍座標との対応は既に特定されている。従って、仮保持位置における第1基準の刺繍座標を第2保持位置における刺繍座標系の座標に座標変換すれば、第2保持位置における第1基準の刺繍座標と標識110との対応ができ、第2保持位置での第1基準に対する標識110の位置及び角度を含む配置が検出できる。   When each of the two markers 110 is detected (S80: YES, S82: YES), the detected embroidery coordinates of the marker 110 and the first reference (first) at the temporary holding position shown in the state C of FIG. The arrangement of the marker 110 with respect to the first reference at the second holding position shown in the state D of FIG. 12 is determined from the arrangement of the marker 110 with respect to the line segment 227 and the first point 228) (S90), and is updated and registered in the RAM 63. . Specifically, when the holding position of the sewing object 39 is changed to the second holding position, the embroidery coordinate system at the second holding position is set, so the embroidery coordinates of the marker 110 at the second holding position are detected. it can. In addition, the correspondence between the first reference embroidery coordinates and the embroidery coordinates of the marker 110 after being replaced at the temporary holding position has already been specified. Therefore, if the first reference embroidery coordinate at the temporary holding position is converted into the coordinates of the embroidery coordinate system at the second holding position, the first reference embroidery coordinate at the second holding position and the marker 110 can be associated with each other. An arrangement including the position and angle of the marker 110 relative to the first reference at two holding positions can be detected.

次に、第2保持位置での第1基準に対する標識110の配置と、基準模様の配置に対する次の模様の相対的な配置とに基づき、第2保持位置における縫製対象物39に対する次の模様(N番目の模様)の配置が設定される(S92)。具体的には、図12の状態Dに示す第2保持位置における第1基準(第1線分227及び第1点228)の刺繍座標と標識110の刺繍座標との対応と、第2基準(第2線分及び第2点)の刺繍座標とから設定される。S92では、設定結果に基づき、N番目の模様の縫製データが補正される。N番目の模様の配置の設定結果は、例えば、図19の画面280のように、LCD7に表示される。図19に示す画面280は、模様表示欄281と、縫製情報欄282と、糸色表示欄283とが表示されている。模様表示欄281は、模様表示欄201と同様である。模様表示欄281には、具体例の2番目の模様205の配置が、矩形258の位置及び角度によって表されている。縫製情報欄282は、N番目の模様を縫製するための条件として、縫製時間と、糸色数と、針落ち点の数と、縫製開始からの経過時間とが表示されている。糸色表示欄283には、針棒31の下端に供給されている糸の色名が表示されている。次に、「標識をはがしてください。」(図示せず)とのメッセージがLCD7に表示される(S94)。次に、図示しないが、縫製開始キーと、模様つなぎキーとを備える画面がLCD7に表示される。配置設定処理は以上で終了し、処理は図5のメイン処理に戻る。   Next, based on the arrangement of the marker 110 with respect to the first reference at the second holding position and the relative arrangement of the next pattern with respect to the arrangement of the reference pattern, the next pattern (for the sewing object 39 at the second holding position ( The arrangement of the (Nth pattern) is set (S92). Specifically, the correspondence between the embroidery coordinates of the first reference (first line segment 227 and first point 228) and the embroidery coordinates of the marker 110 at the second holding position shown in the state D of FIG. It is set from the embroidery coordinates of the second line segment and the second point). In S92, the sewing data of the Nth pattern is corrected based on the setting result. The setting result of the arrangement of the Nth pattern is displayed on the LCD 7 as shown in a screen 280 in FIG. A screen 280 shown in FIG. 19 displays a pattern display field 281, a sewing information field 282, and a thread color display field 283. The pattern display field 281 is the same as the pattern display field 201. In the pattern display column 281, the arrangement of the second pattern 205 of the specific example is represented by the position and angle of the rectangle 258. The sewing information field 282 displays sewing time, the number of thread colors, the number of needle drop points, and the elapsed time from the start of sewing as conditions for sewing the Nth pattern. In the thread color display field 283, the color name of the thread supplied to the lower end of the needle bar 31 is displayed. Next, a message “Please remove the sign” (not shown) is displayed on the LCD 7 (S94). Next, although not shown, a screen including a sewing start key and a pattern connection key is displayed on the LCD 7. The arrangement setting process ends here, and the process returns to the main process of FIG.

図5のメイン処理において、S60の次に、CPU61は、模様つなぎキー又は縫製開始キーが選択されるまで待機する(S95:NO,S220:NO)。模様つなぎキーが選択された場合(S95:YES)、前述のS100の処理が実行される。縫製開始キーが選択された場合(S95:NO,S220:YES)、S150の処理と同様にN番目の模様の縫製が実行される(S230)。具体例では、2番目の模様205が図19の模様表示欄281に矩形258で示される配置で縫製される。メイン処理は以上で終了する。メイン処理によって、具体例では、図20に例示するように、第1保持位置において、縫製対象物39に対して設定される縫製可能領域86よりも広い範囲に、2個の模様205が、矩形206で示す配置と、矩形258で示す配置とで縫製される。   In the main process of FIG. 5, after S60, the CPU 61 stands by until a pattern joining key or a sewing start key is selected (S95: NO, S220: NO). When the pattern connection key is selected (S95: YES), the process of S100 described above is executed. When the sewing start key is selected (S95: NO, S220: YES), sewing of the Nth pattern is executed in the same manner as in S150 (S230). In a specific example, the second pattern 205 is sewn in the pattern display field 281 shown in FIG. The main process ends here. In the specific example, as illustrated in FIG. 20, the two patterns 205 are rectangularly formed by the main process in a range wider than the sewing area 86 set for the sewing target 39 at the first holding position. Sewing is performed in an arrangement indicated by 206 and an arrangement indicated by a rectangle 258.

上記第1の実施形態のミシン1において、刺繍枠移動機構11は、本発明の「移動手段」に相当する。針棒駆動機構32は、本発明の「縫製手段」に相当する。RAM63は、本発明の「記憶手段」に相当する。イメージセンサ50は、本発明の「撮影手段」に相当する。図5のS50と、S100と、S110とを実行するCPU61は、本発明の「第1基準取得手段」として機能する。図13のS62と、S64とを実行するCPU61は、本発明の「第2基準取得手段」として機能する。S70を実行するCPU61は、本発明の「配置決定手段」として機能する。図9のS198、図13のS76、及び図16のS673を実行するCPU61は、本発明の「画像データ取得手段」として機能する。図9のS209、図13のS90、及び図16のS706を実行するCPU61は、本発明の「配置検出手段」、「登録手段」、及び「更新手段」として機能する。図16のS711を実行するCPU61は、本発明の「受付手段」として機能する。図13のS92を実行するCPU61は、本発明の「設定手段」として機能する。図13のS72を実行するCPU61は、本発明の「第1表示手段」として機能する。図9のS192を実行するCPU61は、本発明の「第2表示手段」として機能する。図5のメイン処理において基準模様を縫製する処理(S150)を実行するCPU61は、本発明の「第1縫製制御手段」として機能する。次の模様を縫製する処理(S150又はS230)を実行するCPU61は、本発明の「第2縫製制御手段」として機能する。   In the sewing machine 1 of the first embodiment, the embroidery frame moving mechanism 11 corresponds to the “moving means” of the present invention. The needle bar drive mechanism 32 corresponds to the “sewing means” of the present invention. The RAM 63 corresponds to the “storage unit” of the present invention. The image sensor 50 corresponds to the “photographing unit” of the present invention. The CPU 61 that executes S50, S100, and S110 in FIG. 5 functions as the “first reference acquisition unit” of the present invention. The CPU 61 that executes S62 and S64 of FIG. 13 functions as the “second reference acquisition unit” of the present invention. The CPU 61 that executes S70 functions as the “placement determining unit” of the present invention. The CPU 61 that executes S198 in FIG. 9, S76 in FIG. 13, and S673 in FIG. 16 functions as the “image data acquisition unit” of the present invention. The CPU 61 that executes S209 in FIG. 9, S90 in FIG. 13, and S706 in FIG. 16 functions as the “placement detection means”, “registration means”, and “update means” of the present invention. The CPU 61 that executes S711 in FIG. 16 functions as the “accepting unit” of the present invention. The CPU 61 that executes S92 of FIG. 13 functions as the “setting unit” of the present invention. The CPU 61 that executes S72 of FIG. 13 functions as the “first display means” of the present invention. The CPU 61 that executes S192 of FIG. 9 functions as the “second display means” of the present invention. The CPU 61 that executes the process (S150) of sewing the reference pattern in the main process of FIG. 5 functions as the “first sewing control means” of the present invention. The CPU 61 that executes the process (S150 or S230) for sewing the next pattern functions as the “second sewing control means” of the present invention.

ミシン1は、縫製対象物39の表面に配置された標識の画像データが取得される度に、第1基準に対する標識の配置が更新登録され、第1基準に対する標識の配置と基準模様の配置に対する次の模様の相対的な配置とによって第2保持位置での次の模様の配置が設定される。これにより、第2保持位置での基準模様の配置を特定するためのユーザの操作は標識110を縫製対象物39に貼り付けるのみでよく、ユーザが目視で特定するミシンに比べ、ミシン1の方が容易である。第2保持位置での基準模様の配置を特定する精度は、ユーザが目視で特定するミシンに比べ、ミシン1の方が高い。とくに、本実施形態のミシン1は、2つの標識110を用いて、第2保持位置での基準模様の配置を特定しているため、1つの標識110を用いて配置を特定する場合に比べ、特に相対的な角度を精度よく特定することができる。   The sewing machine 1 updates and registers the marker arrangement with respect to the first reference every time image data of the marker arranged on the surface of the sewing object 39 is acquired. The arrangement of the next pattern at the second holding position is set according to the relative arrangement of the next pattern. As a result, the user's operation for specifying the arrangement of the reference pattern at the second holding position only has to attach the marker 110 to the sewing object 39. Compared with the sewing machine that the user specifies visually, the sewing machine 1 Is easy. The accuracy of specifying the arrangement of the reference pattern at the second holding position is higher for the sewing machine 1 than for the sewing machine that the user specifies visually. In particular, since the sewing machine 1 of the present embodiment uses two markers 110 to specify the arrangement of the reference pattern at the second holding position, compared with the case where the arrangement is specified using one marker 110, In particular, the relative angle can be specified with high accuracy.

標識を使用した模様の接続では、第1保持位置において基準模様と配置された標識とが刺繍枠に入り、かつ、第2保持位置において次の模様と前記配置された標識とが刺繍枠に入る必要がある。従って、図21の状態Eに示すような第2保持位置において次の模様216と配置された標識110とが刺繍枠84に入らないような場合、模様の接続ができない事がある。このような場合であっても、図21の状態Eに示す第1保持位置において標識110の配置を検出した後、図21の状態Fに示すように保持位置を仮保持位置に変更し、標識110を標識110Cの位置に貼り替え、標識110Cの配置を検出する。次に、図21の状態Gに示すように保持位置を第2保持位置に変更することにより、次の模様216と標識110Cとが刺繍枠84に収まり、2つの模様が接続可能となる。   In pattern connection using a sign, the reference pattern and the arranged sign enter the embroidery frame at the first holding position, and the next pattern and the arranged sign enter the embroidery frame at the second holding position. There is a need. Accordingly, when the next pattern 216 and the arranged marker 110 do not enter the embroidery frame 84 at the second holding position as shown in the state E of FIG. 21, the pattern may not be connected. Even in such a case, after detecting the arrangement of the marker 110 at the first holding position shown in the state E of FIG. 21, the holding position is changed to the temporary holding position as shown in the state F of FIG. 110 is replaced with the position of the mark 110C, and the arrangement of the mark 110C is detected. Next, as shown in the state G of FIG. 21, by changing the holding position to the second holding position, the next pattern 216 and the mark 110C are accommodated in the embroidery frame 84, and the two patterns can be connected.

ミシン1は、複数の模様を、縫製可能領域よりも広い範囲に縫製する場合に、基準模様の配置に対する次の模様の相対的な配置が、ユーザが指示した配置となるように、第2保持位置での縫製対象物39に対する次の模様の配置を設定することができる。ユーザは、第1指定キーを選択することによって第1基準を設定し、第2指定キーを選択することによって第2基準を設定するという簡単な操作によって、基準模様の配置に対する次の模様の相対的な配置を設定させることができる。   The sewing machine 1 holds the second pattern so that the relative arrangement of the next pattern with respect to the arrangement of the reference pattern is the arrangement instructed by the user when a plurality of patterns are sewn in a range wider than the sewing area. The arrangement of the next pattern with respect to the sewing object 39 at the position can be set. The user sets the first reference by selecting the first designation key, and sets the second reference by selecting the second designation key. Specific arrangement can be set.

ミシン1は、図14及び図15に例示するように、基準模様の配置に対する次の模様の相対的な配置を表示させる。したがって、ユーザは、画面の表示に基づき、ユーザが意図するように、基準模様の配置に対する次の模様の相対的な配置が設定されたか否かを確認することができる。ミシン1は、図11の画面240に例示するように、標識110を貼り付ける予定の位置を示す、赤色の矩形245を含む合成画像244をLCD7に表示する。したがって、ミシン1は、配置予定位置に1つ以上の標識110を配置することを、ユーザに促すことができる。また、ミシン1は、刺繍枠84に対する縫製対象物39の保持位置が第1保持位置にある場合には、配置予定位置についてのみ標識110を検出する処理を実行すればよい。このため、ミシン1は、刺繍枠84の内側の全範囲を検出対象範囲とする場合に比べ、標識110の配置を検出するための処理を簡略化することができる。配置予定位置は、第1基準付近、特に、第1線分の両端の近傍に自動的に設定される。本実施形態では、第1基準に対する第2基準の相対的な配置が上述のように設定されている。配置予定位置が上記のように設定されるので、ユーザは、標識110を撮影範囲内に配置されるように、第2保持位置を設定しやすい。以上のように、ミシン1は、基準模様の配置に対する次の模様の相対的な配置が、ユーザが指示した配置となるように、基準模様と、次の模様とを縫製対象物39に縫製することができる。   As illustrated in FIGS. 14 and 15, the sewing machine 1 displays the relative arrangement of the next pattern with respect to the arrangement of the reference pattern. Therefore, the user can confirm whether or not the relative arrangement of the next pattern with respect to the arrangement of the reference pattern is set as intended by the user based on the display on the screen. As illustrated in the screen 240 of FIG. 11, the sewing machine 1 displays on the LCD 7 a composite image 244 including a red rectangle 245 indicating the position where the marker 110 is to be pasted. Therefore, the sewing machine 1 can prompt the user to place one or more signs 110 at the planned placement position. In addition, when the holding position of the sewing object 39 with respect to the embroidery frame 84 is in the first holding position, the sewing machine 1 only needs to execute processing for detecting the marker 110 only for the planned arrangement position. For this reason, the sewing machine 1 can simplify the process for detecting the arrangement of the markers 110 as compared with the case where the entire range inside the embroidery frame 84 is set as the detection target range. The planned placement position is automatically set in the vicinity of the first reference, particularly in the vicinity of both ends of the first line segment. In the present embodiment, the relative arrangement of the second reference with respect to the first reference is set as described above. Since the planned placement position is set as described above, the user can easily set the second holding position so that the sign 110 is placed within the imaging range. As described above, the sewing machine 1 sews the reference pattern and the next pattern on the sewing target 39 so that the relative arrangement of the next pattern with respect to the arrangement of the reference pattern is the arrangement designated by the user. be able to.

次に、第2の実施形態のミシン1において実行されるメイン処理について説明する。図示しないが、第2の実施形態のメイン処理は、図5に示す第1の実施形態のメイン処理と、S60の配置設定処理において異なり、他の処理は同様である。以下、第1の実施形態のメイン処理と同様な処理については説明を省略し、第1の実施形態のメイン処理と異なるS60の処理について図22及び図23を参照して説明する。第2の実施形態のメイン処理は、ROM62に記憶されたメインプログラムに従って、CPU61が実行する。   Next, main processing executed in the sewing machine 1 of the second embodiment will be described. Although not shown, the main process of the second embodiment is different from the main process of the first embodiment shown in FIG. 5 in the arrangement setting process of S60, and the other processes are the same. Hereinafter, the description of the same process as the main process of the first embodiment will be omitted, and the process of S60 different from the main process of the first embodiment will be described with reference to FIG. 22 and FIG. The main processing of the second embodiment is executed by the CPU 61 according to the main program stored in the ROM 62.

図22において、図13の第1の実施形態の配置設定処理と同様の処理を実行する処理には、同じステップ番号が付与されている。図22に示すように、第2の実施形態の配置設定処理は、S300が実行され、S62に代えてS63が実行され、S70に代えてS71が実行される点で、図13の第1の実施形態の配置設定処理と異なる。第1の実施形態と同様な処理については説明を省略し、以下、第1の実施形態と異なるS63と、S300と、S71の処理について、第1の実施形態と同様の具体例を用いて説明する。   In FIG. 22, the same step number is assigned to the process for executing the same process as the arrangement setting process of the first embodiment in FIG. 13. As shown in FIG. 22, the arrangement setting process of the second embodiment is executed in S300, S63 is executed instead of S62, and S71 is executed instead of S70. This is different from the arrangement setting process of the embodiment. A description of the same processing as that of the first embodiment will be omitted, and the processing of S63, S300, and S71 different from the first embodiment will be described below using specific examples similar to those of the first embodiment. To do.

第2の実施形態では、第1基準に対する第2基準の相対的な位置を数値で設定可能である。S63では、例えば、図23に例示する画面300が表示される。画面300には、模様表示欄301と、模様情報欄302と、配置指定欄303とが表示されている。模様表示欄301は、模様表示欄201と同様であり、模様情報欄302は、模様情報欄202と同様である。配置指定欄303には、第2指定キー群304と、Y軸方向距離設定キー306と、X軸方向距離設定キー307と、OKキー256及び標識検出キー259が表示されている。第2指定キー群304は、図14の第2指定キー群254と同様である。Y軸方向距離設定キー306は、第1基準に対する第2基準の刺繍座標系のY軸方向の相対位置をmm単位の数値で指定するためのキーである。X軸方向距離設定キー307は、第1基準に対する第2基準の刺繍座標系のX軸方向の相対位置をmm単位の数値で指定するためのキーである。   In the second embodiment, the relative position of the second reference with respect to the first reference can be set numerically. In S63, for example, the screen 300 illustrated in FIG. 23 is displayed. On the screen 300, a pattern display field 301, a pattern information field 302, and an arrangement designation field 303 are displayed. The pattern display column 301 is the same as the pattern display column 201, and the pattern information column 302 is the same as the pattern information column 202. In the arrangement designation field 303, a second designation key group 304, a Y-axis direction distance setting key 306, an X-axis direction distance setting key 307, an OK key 256, and a sign detection key 259 are displayed. The second designation key group 304 is the same as the second designation key group 254 in FIG. The Y-axis direction distance setting key 306 is a key for designating the relative position in the Y-axis direction of the second reference embroidery coordinate system with respect to the first reference by a numerical value in mm units. The X-axis direction distance setting key 307 is a key for designating the relative position in the X-axis direction of the second reference embroidery coordinate system with respect to the first reference by a numerical value in mm units.

S63の次に、第2指定キー群304のうちのいずれかの第2指定キーが選択されたか判断される。第2指定キーが選択された場合(S64:YES)、S71に進むが、S71の処理は、図13のS70と同様である。一方、第2指定キーが選択されない場合(S64:NO)、Y軸方向距離設定キー306とX軸方向距離設定キー307のいずれかが選択されたかが判断される(S300)。   Following S63, it is determined whether any second designation key in the second designation key group 304 has been selected. When the second designation key is selected (S64: YES), the process proceeds to S71, but the process of S71 is the same as S70 of FIG. On the other hand, if the second designation key is not selected (S64: NO), it is determined whether either the Y-axis direction distance setting key 306 or the X-axis direction distance setting key 307 is selected (S300).

Y軸方向距離設定キー306又はX軸方向距離設定キー307が選択された場合(S300:YES)、S71では次のように基準模様(N−1番目の模様)の配置に対する次の模様(N番目の模様)の相対的な配置が決定される。基準模様の配置に対する次の模様の相対的な配置は、第1基準に対する第2基準の初期位置から、距離設定キーで指定された距離だけ移動させた位置に基づき設定される。第1基準に対する第2基準の初期位置は、第2指定キー群304に含まれるいずれかの第2指定キーが選択された場合に、図13のS70と同様に設定された位置である。図23の模様表示欄301には、第2指定キー305が選択された後、距離設定キー306及び307が選択された場合の、矩形206で表される1番目の模様205の配置に対する矩形258で表される2番目の模様205の相対的な配置が表示されている。具体的には、Y軸方向距離設定キー306及びX軸方向距離設定キー307で指定された数値に従って、第2基準が上記初期位置からX軸方向に+10.0(mm)、Y軸方向に−6.0mmに相対的に移動された場合の矩形206に対する矩形258の相対的な配置が表示されている。一方、Y軸方向距離設定キー306とX軸方向距離設定キー307のいずれもが選択されない場合(S300:NO)、標識検出キー259が選択され、仮保持位置処理が指示されたかが判断される(S65)。仮保持位置処理が指示されない場合(S65:NO)、S74に進む。一方、仮保持位置処理が指示された場合(S65:YES)、S67に進み、仮保持位置処理が行われる。   When the Y-axis direction distance setting key 306 or the X-axis direction distance setting key 307 is selected (S300: YES), in S71, the next pattern (N-1) is arranged as follows (N-1). The relative arrangement of the second pattern) is determined. The relative arrangement of the next pattern with respect to the arrangement of the reference pattern is set based on the position moved by the distance specified by the distance setting key from the initial position of the second reference with respect to the first reference. The initial position of the second reference with respect to the first reference is a position set in the same manner as in S70 of FIG. 13 when any second specifying key included in the second specifying key group 304 is selected. In the pattern display field 301 of FIG. 23, a rectangle 258 for the arrangement of the first pattern 205 represented by the rectangle 206 when the distance setting keys 306 and 307 are selected after the second designation key 305 is selected. The relative arrangement of the second pattern 205 represented by is displayed. Specifically, according to the numerical values specified by the Y-axis direction distance setting key 306 and the X-axis direction distance setting key 307, the second reference is +10.0 (mm) in the X-axis direction from the initial position, and in the Y-axis direction. The relative arrangement of the rectangle 258 with respect to the rectangle 206 when moved relatively to −6.0 mm is displayed. On the other hand, when neither the Y-axis direction distance setting key 306 nor the X-axis direction distance setting key 307 is selected (S300: NO), it is determined whether the sign detection key 259 is selected and the temporary holding position process is instructed ( S65). When the temporary holding position process is not instructed (S65: NO), the process proceeds to S74. On the other hand, when the temporary holding position process is instructed (S65: YES), the process proceeds to S67, where the temporary holding position process is performed.

上記第2の実施形態のミシン1において、図22のS300を実行するCPU61は、本発明の「数値取得手段」として機能する。S71を実行するCPU61は、本発明の「配置決定手段」として機能する。第2の実施形態のミシン1によれば、ユーザは、数値を設定するという簡単な操作によって、基準模様の配置に対する次の模様の相対的な配置を設定させることができる。第2の実施形態のメイン処理は、例えば、図24に例示する画面310の正六角形の模様311を縫製可能領域86よりも広い範囲に複数個縫製する場合に利用される。ユーザは、刺繍枠84に対する縫製対象物39の保持位置を変更する前後の模様を縫製する場合にメイン処理を実行する。メイン処理では、模様311の範囲を表す矩形312に対して第1基準及び第2基準を設定し、第1基準に対する第2基準の相対位置が調整される。これにより、図25に例示するように、9個の模様311を有する模様群320を、縫製可能領域86よりも広い領域に縫製可能である。   In the sewing machine 1 of the second embodiment, the CPU 61 that executes S300 of FIG. 22 functions as the “numerical value acquisition unit” of the present invention. The CPU 61 that executes S71 functions as the “placement determining unit” of the present invention. According to the sewing machine 1 of the second embodiment, the user can set the relative arrangement of the next pattern with respect to the arrangement of the reference pattern by a simple operation of setting a numerical value. The main processing of the second embodiment is used, for example, when sewing a plurality of regular hexagonal patterns 311 on the screen 310 illustrated in FIG. 24 in a range wider than the sewable area 86. The user executes main processing when sewing patterns before and after changing the holding position of the sewing object 39 with respect to the embroidery frame 84. In the main processing, the first reference and the second reference are set for the rectangle 312 representing the range of the pattern 311 and the relative position of the second reference with respect to the first reference is adjusted. As a result, as illustrated in FIG. 25, the pattern group 320 having nine patterns 311 can be sewn in a wider area than the sewn area 86.

本発明のミシンは、上記した実施の形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更が加えられてもよい。例えば、以下の(A)から(E)までの変形が適宜加えられてもよい。   The sewing machine of the present invention is not limited to the above-described embodiment, and various modifications may be made without departing from the gist of the present invention. For example, the following modifications (A) to (E) may be added as appropriate.

(A)ミシン1の構成は必要に応じて適宜変更されてもよい。例えば、本発明は、工業用ミシン及び家庭用ミシンに適用されてもよい。他の例では、イメージセンサ50の種類と、配置とは適宜変更してもよい。例えば、イメージセンサ50は、CCDカメラ等、CMOSイメージセンサ以外の撮影素子であってもよい。   (A) The configuration of the sewing machine 1 may be changed as appropriate. For example, the present invention may be applied to industrial sewing machines and household sewing machines. In another example, the type and arrangement of the image sensor 50 may be changed as appropriate. For example, the image sensor 50 may be a photographing element other than a CMOS image sensor such as a CCD camera.

(B)基準模様の配置は、基準模様の位置及び角度の少なくともいずれかを含んでいればよい。同様に、次の模様の配置は、次の模様の位置及び角度の少なくともいずれかを含んでいればよい。   (B) The arrangement of the reference pattern only needs to include at least one of the position and the angle of the reference pattern. Similarly, the arrangement of the next pattern only needs to include at least one of the position and angle of the next pattern.

(C)第1基準は、ユーザが指定した基準であって、基準模様が縫製される範囲を表す第1図形に含まれる第1線分及び第1点のいずれかを含む基準であればよい。同様に、第2基準は、ユーザが指定した基準であって、次の模様が縫製される範囲を表す第2図形に含まれる第2線分及び第2点のいずれかを含む基準であればよい。第1図形は、基準模様が縫製される範囲を表す図形であればよく、例えば、基準模様が収まる最小矩形の他、基準模様が収まる、円と、楕円と、多角形とのいずれかであってもよいし、基準模様の輪郭線であってもよい。第2図形は、第1図形と同様に、次の模様が収まる最小矩形以外の図形であってもよい。第1点は、第1図形に含まれる点であればよく、第1線分上の任意の点であってもよいし、第1線分上ではない点であってもよい。第2点は、第1点と同様に、第2図形に含まれる点であればよい。   (C) The first reference is a reference specified by the user, and may be any reference including either the first line segment or the first point included in the first graphic representing the range in which the reference pattern is sewn. . Similarly, the second reference is a reference specified by the user and includes any one of the second line segment and the second point included in the second graphic representing the range in which the next pattern is sewn. Good. The first graphic may be a graphic representing the range in which the reference pattern is sewn, and may be, for example, a circle, an ellipse, or a polygon that accommodates the reference pattern in addition to the minimum rectangle in which the reference pattern can be accommodated. Alternatively, it may be an outline of a reference pattern. Similar to the first graphic, the second graphic may be a graphic other than the smallest rectangle in which the next pattern fits. The first point may be a point included in the first graphic, may be an arbitrary point on the first line segment, or may be a point not on the first line segment. Similar to the first point, the second point may be a point included in the second graphic.

(D)メイン処理で用いる標識110の数は、適宜変更可能である。複数の標識110に基づき基準模様の配置が特定される場合、1つの標識110に基づき基準模様の配置が特定される場合に比べ、基準模様の配置、特に基準模様の傾きを精度よく特定することができる。画像データに基づき検出される標識110の配置は、標識110の位置及び角度の少なくともいずれかであればよい。標識110の構成は適宜変更されてよい。標識110の構成には、例えば、標識の大きさと、材質と、デザインと、色とが含まれる。標識110の配置を特定するための基準(上記実施形態では、標識110の第一中心点111)及び算出方法は、標識110の構成等を考慮して、適宜変更されてよい。   (D) The number of markers 110 used in the main process can be changed as appropriate. When the arrangement of the reference pattern is specified based on a plurality of signs 110, the arrangement of the reference pattern, particularly the inclination of the reference pattern, should be specified with higher accuracy than when the arrangement of the reference pattern is specified based on one sign 110. Can do. The arrangement of the sign 110 detected based on the image data may be at least one of the position and the angle of the sign 110. The configuration of the sign 110 may be changed as appropriate. The configuration of the sign 110 includes, for example, the size, material, design, and color of the sign. The reference for specifying the arrangement of the sign 110 (in the above embodiment, the first center point 111 of the sign 110) and the calculation method may be appropriately changed in consideration of the structure of the sign 110 and the like.

(E)メイン処理は適宜変更されてよい。例えば、以下のような変更が加えられてもよい。
(E−1)基準模様の配置に対する次の模様の相対的な配置の決定方法は適宜変更されてもよい。例えば、上記実施形態では、第1基準は第1指定キーを用いて指定され、第2基準は第2指定キーを用いて指定されていたがこれに限定されない。より具体的には、第1基準(第2基準)は、第1図形(第2図形)に含まれる線分及び点の中からユーザが任意に指定してもよい。他の例では、第1基準に対する第2基準の配置は、上記実施形態の場合に限定されず、適宜変更されてもよい。他の例では、第1基準に含まれる第1線分に対する、第2基準に含まれる第2線分の角度が数値によって指定されてもよい。このようにすれば、基準模様の配置に対して、次の模様の相対的な配置を所望の角度傾けることができる。他の例では、第1基準及び第2基準に相当する基準が自動で設定され、ユーザは設定された基準間の位置及び角度の少なくともいずれかの関係を数値で設定してもよい。第1基準及び第2基準に相当する基準には、例えば、第1図形(第2図形)の代表点と、第1図形(第2図形)の代表線分とが挙げられる。第1図形(第2図形)の代表点は、例えば、図形の中心点及び端点が挙げられる。第1図形(第2図形)の代表線分には、図形の対角線と、図形を構成するいずれかの辺とが挙げられる。
(E) The main process may be changed as appropriate. For example, the following changes may be added.
(E-1) The determination method of the relative arrangement of the next pattern with respect to the arrangement of the reference pattern may be changed as appropriate. For example, in the above-described embodiment, the first reference is specified using the first specifying key, and the second reference is specified using the second specifying key. However, the present invention is not limited to this. More specifically, the first reference (second reference) may be arbitrarily specified by the user from line segments and points included in the first graphic (second graphic). In another example, the arrangement of the second reference with respect to the first reference is not limited to the case of the above embodiment, and may be changed as appropriate. In another example, the angle of the second line segment included in the second reference relative to the first line segment included in the first reference may be designated by a numerical value. In this way, the relative arrangement of the next pattern can be inclined by a desired angle with respect to the arrangement of the reference pattern. In another example, the reference corresponding to the first reference and the second reference may be automatically set, and the user may set at least one of the relationship between the position and the angle between the set reference values numerically. Examples of the reference corresponding to the first reference and the second reference include a representative point of the first graphic (second graphic) and a representative line segment of the first graphic (second graphic). Representative points of the first graphic (second graphic) include, for example, the center point and end point of the graphic. The representative line segment of the first graphic (second graphic) includes a diagonal line of the graphic and any side constituting the graphic.

(E−2)基準模様の配置に対する次の模様の相対的な配置を決定するための処理を行うタイミングは適宜変更されてよい。例えば、第1基準及び第2基準が取得されるタイミングは適宜変更されてもよい。より具体的には、基準模様を縫製した後に、第1基準を取得するための処理が実行されてもよい。   (E-2) The timing for performing the process for determining the relative arrangement of the next pattern with respect to the arrangement of the reference pattern may be appropriately changed. For example, the timing at which the first reference and the second reference are acquired may be changed as appropriate. More specifically, a process for acquiring the first reference may be performed after the reference pattern is sewn.

(E−3)図13のS72の処理は適宜省略されてもよい。同様に、図9のS192の処理は適宜省略されてもよい。図9のS192の処理が実行される場合、配置予定位置は、第1保持位置及び第2保持位置において、刺繍枠の内側且つイメージセンサ50の撮影範囲内に収まる位置であればよい。配置予定位置は、例えば、ユーザによって設定されてもよい。他の例では、配置予定位置の表示方法は適宜変更されてもよい。具体的には、標識の中心の予定位置が星印等の模様で表示されてもよいし、標識全体が収まる予定の範囲が円と、楕円と、多角形といった図形で表示されてもよい。   (E-3) The process of S72 of FIG. 13 may be omitted as appropriate. Similarly, the process of S192 in FIG. 9 may be omitted as appropriate. When the process of S192 in FIG. 9 is executed, the planned placement position may be a position that is within the embroidery frame and within the imaging range of the image sensor 50 at the first holding position and the second holding position. The planned placement position may be set by a user, for example. In another example, the display method of the planned placement position may be changed as appropriate. Specifically, the planned position of the center of the sign may be displayed in a pattern such as an asterisk, or the range in which the entire sign will be accommodated may be displayed as a graphic such as a circle, an ellipse, or a polygon.

(E−4)図5のS40と、S60との間に、N番目の模様を編集する処理が実行されてもよい。N番目の模様を編集する処理としては、例えば、模様の大きさの変更と、回転と、反転とが挙げられる。また、N番目の模様を編集する処理において、模様が回転される場合に、回転後の模様の範囲を表す図形が再設定されてもよい。   (E-4) A process of editing the Nth pattern may be executed between S40 and S60 of FIG. Examples of the process for editing the Nth pattern include a change in the size of the pattern, rotation, and inversion. In the process of editing the Nth pattern, when the pattern is rotated, a graphic representing the range of the rotated pattern may be reset.

1 ミシン
7 液晶ディスプレイ
8 タッチパネル
11 刺繍枠移動機構
32 針棒駆動機構
39 縫製対象物
50 イメージセンサ
61 CPU
62 ROM
63 RAM
64 EEPROM
84 刺繍枠
110 標識
205 基準模様、次の模様
206 矩形(第1図形)
227 第1線分
227A 第2線分
228 第1点
228B 第2点
258 矩形(第2図形)
259 標識検出キー
DESCRIPTION OF SYMBOLS 1 Sewing machine 7 Liquid crystal display 8 Touch panel 11 Embroidery frame moving mechanism 32 Needle bar drive mechanism 39 Sewing target object 50 Image sensor 61 CPU
62 ROM
63 RAM
64 EEPROM
84 Embroidery frame 110 Marking 205 Reference pattern, next pattern 206 Rectangle (first figure)
227 1st line segment 227A 2nd line segment 228 1st point 228B 2nd point 258 rectangle (2nd figure)
259 Sign detection key

Claims (8)

刺繍枠に保持された縫製対象物の表面に配置された標識を撮影する撮影手段と、
前記撮影手段によって撮影された前記標識の画像データを取得する取得手段と、
前記縫製枠による前記縫製対象物の保持位置が第1保持位置である場合に縫製される模様を基準模様とし、前記保持位置が前記第1保持位置とは異なる第2保持位置である場合に縫製される模様であって、前記基準模様の次に縫製される模様を次の模様とした場合に、
前記基準模様の位置及び角度の少なくともいずれかを含む配置に対する前記次の模様の相対的な位置及び角度の少なくともいずれかを含む配置を決定する配置決定手段と、
前記取得手段により取得された前記画像データに基づき、前記基準模様の配置に対する前記標識の位置及び角度の少なくともいずれかを含む配置を検出する配置検出手段と、
前記標識の前記配置を配置情報として記憶する記憶手段と、
前記配置検出手段により検出された前記基準模様の配置に対する標識の位置及び角度の
少なくともいずれかを含む配置に関する情報を記憶情報として前記記憶手段に登録する登録手段と、
前記配置検出手段によって前記基準模様の配置に対する前記標識の位置及び角度の少なくともいずれかを含む配置が新たに検出された場合、前記記憶手段に記憶されている前記記憶情報を更新する更新手段と、
前記記憶手段に記憶されている前記記憶情報が、前記第2保持位置で撮影された前記標識に関するものである場合、前記記憶情報と前記配置決定手段によって決定された前記基準模様の前記配置に対する前記次の模様の前記相対的な配置とから、前記第2保持位置での前記縫製対象物に対する前記次の模様の位置及び角度の少なくともいずれかを含む配置を設定する設定手段と、
を備えることを特徴とするミシン。
Photographing means for photographing a sign placed on the surface of the sewing object held in the embroidery frame;
Obtaining means for obtaining image data of the sign photographed by the photographing means;
A pattern to be sewn when the holding position of the sewing object by the sewing frame is the first holding position is a reference pattern, and sewing is performed when the holding position is a second holding position different from the first holding position. When the pattern to be sewn next to the reference pattern is the next pattern,
Arrangement determining means for determining an arrangement including at least one of a relative position and an angle of the next pattern with respect to an arrangement including at least one of the position and angle of the reference pattern;
An arrangement detecting means for detecting an arrangement including at least one of the position and the angle of the marker with respect to the arrangement of the reference pattern, based on the image data acquired by the acquiring means;
Storage means for storing the arrangement of the sign as arrangement information;
Registration means for registering information relating to the arrangement including at least one of a position and an angle of a sign with respect to the arrangement of the reference pattern detected by the arrangement detection means in the storage means as storage information;
An update unit that updates the stored information stored in the storage unit when the arrangement detection unit newly detects an arrangement including at least one of the position and the angle of the marker with respect to the arrangement of the reference pattern;
When the storage information stored in the storage means relates to the sign taken at the second holding position, the storage information and the arrangement of the reference pattern determined by the arrangement determination means Setting means for setting an arrangement including at least one of a position and an angle of the next pattern with respect to the sewing object at the second holding position from the relative arrangement of the next pattern;
A sewing machine comprising:
前記標識を貼り替えたことを示す指示を受け付ける受付手段をさらに備え、
前記受付手段から前記指示が受け付けられると、
前記配置検出手段は、前記貼り替え前の標識に対する貼り替え後の標識の配置を検出することを特徴とする請求項1に記載のミシン。
And further comprising an accepting means for accepting an instruction indicating that the sign has been replaced,
When the instruction is received from the receiving means,
The sewing machine according to claim 1, wherein the arrangement detection unit detects an arrangement of the label after the replacement with respect to the label before the replacement.
ユーザが指定した基準であって、前記基準模様が縫製される範囲を表す第1図形に含まれる第1線分及び第1点のいずれかを含む基準である第1基準を取得する第1基準取得手段と、
前記ユーザが指定した基準であって、前記次の模様が縫製される範囲を表す第2図形に含まれる第2線分及び第2点を含む基準である第2基準を取得する第2基準取得手段と、
をさらに備え、
前記配置決定手段は、前記第1基準取得手段によって取得された前記第1基準と、前記第2基準取得手段によって取得された前記第2基準とに基づき、前記基準模様の前記配置に対する前記次の模様の前記相対的な配置を決定することを特徴とする請求項1または2に記載のミシン。
A first criterion that is a criterion designated by the user and that is a criterion that includes any one of the first line segment and the first point included in the first graphic representing the range in which the reference pattern is sewn. Acquisition means;
A second reference acquisition that is a reference specified by the user and that is a reference that includes a second line segment and a second point included in a second graphic representing a range in which the next pattern is sewn. Means,
Further comprising
The arrangement determining means is configured to determine the next of the reference pattern with respect to the arrangement based on the first reference acquired by the first reference acquisition means and the second reference acquired by the second reference acquisition means. The sewing machine according to claim 1, wherein the relative arrangement of patterns is determined.
前記基準模様の前記配置に対する前記次の模様の前記相対的な配置を特定する、前記ユーザが指示した数値を取得する数値取得手段をさらに備え、
前記配置決定手段は、前記数値取得手段が取得した前記数値に基づき、前記基準模様の前記配置に対する前記次の模様の前記相対的な配置を決定することを特徴とする請求項1から3のいずれかに記載のミシン。
Further comprising a numerical value acquisition means for acquiring the numerical value specified by the user, for specifying the relative arrangement of the next pattern with respect to the arrangement of the reference pattern;
The said arrangement | positioning determination means determines the said relative arrangement | positioning of the said next pattern with respect to the said arrangement | positioning of the said reference pattern based on the said numerical value which the said numerical value acquisition means acquired. The sewing machine according to Crab.
前記配置決定手段によって決定された前記基準模様の前記配置に対する前記次の模様の前記相対的な配置を画面に表示する第1表示手段をさらに備えたことを特徴とする請求項1から4のいずれかに記載のミシン。   5. The apparatus according to claim 1, further comprising a first display unit configured to display the relative arrangement of the next pattern with respect to the arrangement of the reference pattern determined by the arrangement determination unit on a screen. The sewing machine according to Crab. 前記少なくとも1つの標識の配置予定位置を画面に表示する第2表示手段をさらに備えることを特徴とする請求項1から5のいずれかに記載のミシン。   The sewing machine according to any one of claims 1 to 5, further comprising second display means for displaying a planned arrangement position of the at least one sign on a screen. 前記第1基準取得手段は、前記第1線分と、当該第1線分上の前記第1点とを組み合わせた複数の第1指定キーのうち、前記ユーザが指定した第1指定キーに基づき、前記第1基準を取得し、
前記第2基準取得手段は、前記第2線分と、当該第2線分上の前記第2点とを組み合わせた複数の第2指定キーのうち、前記ユーザが指定した第2指定キーに基づき、前記第2基準を取得し、
前記配置決定手段は、前記基準模様の前記配置に対する前記次の模様の前記相対的な配置を、前記第1基準取得手段によって取得された前記第1指定キーによって表される前記第1線分の延伸方向が、前記第2基準取得手段によって取得された前記第2指定キーによって表される前記第2線分と重なり、且つ、前記第1指定キーによって表される前記第1点が、前記第2指定キーによって表される前記第2点と重なる配置とすることを特徴とする請求項3に記載のミシン。
The first reference acquisition means is based on a first designation key designated by the user among a plurality of first designation keys combining the first line segment and the first point on the first line segment. Obtaining the first criterion,
The second reference acquisition means is based on a second designation key designated by the user among a plurality of second designation keys combining the second line segment and the second point on the second line segment. Obtaining the second criterion,
The arrangement determining unit is configured to display the relative arrangement of the next pattern with respect to the arrangement of the reference pattern, the first line segment represented by the first designation key acquired by the first reference acquisition unit. The stretching direction overlaps the second line segment represented by the second designation key acquired by the second reference acquisition means, and the first point represented by the first designation key is the first point The sewing machine according to claim 3, wherein the sewing machine is arranged so as to overlap the second point represented by a two-designated key.
前記縫製対象物を保持する前記刺繍枠を移動させる機能を有する移動手段と、
下端に縫針が装着される針棒を上下させ前記縫製対象物に模様を縫製する縫製手段と、
前記移動手段と前記縫製手段とを制御して、前記保持位置が前記第1保持位置である状態で前記刺繍枠に保持された前記縫製対象物に前記基準模様を縫製させる第1縫製制御手段と、
前記移動手段と前記縫製手段とを制御して、前記設定手段によって設定された前記次の模様の前記配置に従って、前記保持位置が前記第2保持位置である状態で保持された前記縫製対象物に前記次の模様を縫製させる第2縫製制御手段と、
をさらに備えることを特徴とする請求項1から7のいずれかに記載のミシン。
Moving means having a function of moving the embroidery frame holding the sewing object;
Sewing means for sewing a pattern on the sewing object by raising and lowering a needle bar to which a sewing needle is attached at the lower end;
First sewing control means for controlling the moving means and the sewing means to sew the reference pattern on the sewing object held by the embroidery frame in a state where the holding position is the first holding position; ,
By controlling the moving means and the sewing means, the sewing object held in the state where the holding position is the second holding position according to the arrangement of the next pattern set by the setting means. Second sewing control means for sewing the next pattern;
The sewing machine according to claim 1, further comprising:
JP2011211315A 2011-01-20 2011-09-27 Sewing machine Pending JP2012192156A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2011211315A JP2012192156A (en) 2011-02-28 2011-09-27 Sewing machine
US13/351,606 US8594829B2 (en) 2011-01-20 2012-01-17 Sewing machine and computer program product stored on non-transitory computer-readable medium
EP12151680A EP2484827A1 (en) 2011-01-20 2012-01-19 Sewing machine and computer program product stored on non-transitory computer-readable medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2011043327 2011-02-28
JP2011043327 2011-02-28
JP2011211315A JP2012192156A (en) 2011-02-28 2011-09-27 Sewing machine

Publications (1)

Publication Number Publication Date
JP2012192156A true JP2012192156A (en) 2012-10-11

Family

ID=47084648

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011211315A Pending JP2012192156A (en) 2011-01-20 2011-09-27 Sewing machine

Country Status (1)

Country Link
JP (1) JP2012192156A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8612046B2 (en) 2011-11-09 2013-12-17 Brother Kogyo Kabushiki Kaisha Sewing machine and non-transitory computer-readable storage medium storing sewing machine control program
US8738173B2 (en) 2011-11-09 2014-05-27 Brother Kogyo Kabushiki Kaisha Sewing machine and non-transitory computer-readable storage medium storing sewing machine control program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10305181A (en) * 1997-05-07 1998-11-17 Janome Sewing Mach Co Ltd Display device displaying embroidery information and sewing machine
JP2009172123A (en) * 2008-01-24 2009-08-06 Brother Ind Ltd Sewing machine
JP2010246885A (en) * 2009-03-27 2010-11-04 Brother Ind Ltd Sewing machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10305181A (en) * 1997-05-07 1998-11-17 Janome Sewing Mach Co Ltd Display device displaying embroidery information and sewing machine
JP2009172123A (en) * 2008-01-24 2009-08-06 Brother Ind Ltd Sewing machine
JP2010246885A (en) * 2009-03-27 2010-11-04 Brother Ind Ltd Sewing machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8612046B2 (en) 2011-11-09 2013-12-17 Brother Kogyo Kabushiki Kaisha Sewing machine and non-transitory computer-readable storage medium storing sewing machine control program
US8738173B2 (en) 2011-11-09 2014-05-27 Brother Kogyo Kabushiki Kaisha Sewing machine and non-transitory computer-readable storage medium storing sewing machine control program

Similar Documents

Publication Publication Date Title
JP4862929B2 (en) sewing machine
JP5942389B2 (en) sewing machine
US8738173B2 (en) Sewing machine and non-transitory computer-readable storage medium storing sewing machine control program
US8594829B2 (en) Sewing machine and computer program product stored on non-transitory computer-readable medium
US8594830B2 (en) Computer controlled embroidery sewing machine with image capturing
JP4811508B2 (en) sewing machine
JP5741851B2 (en) sewing machine
JP2011234959A (en) Sewing machine
JP2011161087A (en) Sewing machine
JP2012045020A (en) Sewing machine
JP2011050633A (en) Sewing machine
JP2014042706A (en) Sewing machine
JP2014064660A (en) Sewing machine
JP2012147985A (en) Sewing machine
JP2017093989A (en) Sewing machine and recording medium in which program is recorded
JP2015175071A (en) holding member
US9228279B2 (en) Sewing machine
EP2918720A1 (en) Sewing machine and non-transitory computer-readable medium storing computer-readable instructions
WO2017056605A1 (en) Sewing machine and sewing machine program
JP2012192156A (en) Sewing machine
JP2017064108A (en) Sewing machine and sewing machine program
JP2011005180A (en) Sewing machine
JP2017131493A (en) Sewing machine and sewing data editing program
JP7294184B2 (en) multi-needle sewing machine
US11028512B2 (en) Sewing machine and non-transitory computer-readable medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140401

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141226

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150401

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20150721