JPH02237592A - Mosaic embroidery data preparing device - Google Patents

Mosaic embroidery data preparing device

Info

Publication number
JPH02237592A
JPH02237592A JP5826989A JP5826989A JPH02237592A JP H02237592 A JPH02237592 A JP H02237592A JP 5826989 A JP5826989 A JP 5826989A JP 5826989 A JP5826989 A JP 5826989A JP H02237592 A JPH02237592 A JP H02237592A
Authority
JP
Japan
Prior art keywords
data
line
pattern
raphe
embroidery
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
JP5826989A
Other languages
Japanese (ja)
Inventor
Yoshiaki Ozaki
義明 尾崎
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP5826989A priority Critical patent/JPH02237592A/en
Publication of JPH02237592A publication Critical patent/JPH02237592A/en
Pending legal-status Critical Current

Links

Landscapes

  • Sewing Machines And Sewing (AREA)
  • Automatic Embroidering For Embroidered Or Tufted Products (AREA)

Abstract

PURPOSE:To prepare miss-free data by housing pattern line disposing data in memory addresses related to a diverging point to select sewing lines with reference to the condition of disposing data and register and form them on embroidery data. CONSTITUTION:A CPU 1 puts original pictures made by an image scanner 2 in an original picture data memory 4 and develop them on a mosaic plane converted to X, Y coordinates to make diverging points P1-P6 of the terminal points of pattern lines so that the pattern lines L1-L6 existing between the diverging points are adapted to correspond to first and second sewing lines the presence of which is stored in a memory address associated with the diverging points as disposition points through a FDD3. Next, a disposition data memory 5 is rewritten in association with the registration to embroidery data, and the sewing line is selected in association with the disposition data in the diverging point to register the embroidery data on a memory 6. Thus, even in complexed patterns, data can be prepared without any labor and mistakes.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、コンピュータ刺しゅうミシンにおける布片の
移動に関する刺しゅうデータをモザイク原画に基づいて
自動的に作成する刺しゅうデータ作成装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an embroidery data creation device that automatically creates embroidery data regarding the movement of a piece of cloth in a computerized embroidery machine based on an original mosaic image.

(従来の技術) クロススッテチなどのモザイク刺しゅうデータを作成す
る場合、従来は縫順にしたがって、針落点の座標をデジ
タイザーなどで入力してデータを作成していた。
(Prior Art) When creating mosaic embroidery data such as cross stitch, conventionally the data was created by inputting the coordinates of the needle drop point using a digitizer or the like according to the sewing order.

(発明が解決しようとしている課題) ところで、上述のデジタイザーを使用する方法では、I
J!雑な図形の場合にはデータ作成に長時間を要し、ま
た、ミスなく、正確に作成することは困難であった。
(Problem to be solved by the invention) By the way, in the method using the above-mentioned digitizer,
J! In the case of complicated figures, it takes a long time to create data, and it is difficult to create data accurately without mistakes.

本発明の目的は、上述の不具合点を解決するため、模様
を構成する各縫線の縫順をCPUによる演算によって決
定して、モザイク原図に忠実な刺しゅうをおこなう刺し
ゅうデータの作成装置を提供するにある。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, it is an object of the present invention to provide an embroidery data creation device that determines the sewing order of each raphe line constituting a pattern through calculations by a CPU, and performs embroidery faithful to the original mosaic drawing. It is in.

(課題を解決するための手段および作用)本発明のモザ
イク刺しゅうデータ作成装置はミシンの針棒の上下運動
に同期して布片を平面上各位置に移動させて、刺しゅう
を行なうようなコンピューター刺しゅう機に用いられる
、刺しゅうデータを作成するデータ作成装置において、
少なくとも一端は他の模様線と接触している模様線で形
成されているモザイク線画の線上を刺しゆうしてゆく刺
しゅうデータを作成するものであって、上記模様線の端
点を分岐点としその分岐点間に存在する1つの模様線に
、第一と第二の縫線を対応させて、それらの縫線の有、
無を配置データとして上記分岐点に関連したメモリアド
レスに記憶し、下記の刺しゅうデータへの登録に関連し
゜C,吉換えられる配置データ記憶手段と、上記分岐点
における配置データに関連して、縫線を選択し、刺しゅ
うデータに登録する刺しゅうデータ登録手段を有するこ
とを特徴とする。
(Means and Effects for Solving the Problems) The mosaic embroidery data creation device of the present invention is capable of computer embroidery in which embroidery is performed by moving a piece of cloth to various positions on a plane in synchronization with the vertical movement of the needle bar of a sewing machine. In the data creation device used in the machine to create embroidery data,
Embroidery data is created by embroidering on the lines of a mosaic line drawing, which is formed by a pattern line whose at least one end is in contact with another pattern line, and the end point of the pattern line is used as a branching point. Correlate the first and second raphe lines to one pattern line existing between the points, and determine the existence of those raphe lines,
Nothing is stored as placement data in a memory address related to the above-mentioned branch point, and related to the registration in the embroidery data described below. The present invention is characterized by having an embroidery data registration means for selecting a line and registering it in the embroidery data.

(実施例) 本発明の実施例の刺しゅうデータ作成装置は第1図に示
されるように、データ作成プログラム、および、制御部
を有するCPU1と、原画データを取込むためのイメー
ジスキャナ2と、原画データや、刺しゅうデータが記録
できるフロッピディスクドライブFDD3と、上記原画
データを取込むための原画データ記憶部4と、第一と第
二の縫線の有無を記憶する配置データ記憶部5と、刺し
ゅうデータを記憶する刺しゅうデータ記憶部6により構
成されている。また、上記CPU1はコンピュータ刺し
ゅうミシンを構成する、ミシン10と、ミシン駆,動モ
ータ8と、ミシン10と同期して運転される布片用XY
駆動装置9を制御して、上記刺しゅうデータによって刺
しゅうを行なうことも可能である。
(Embodiment) As shown in FIG. 1, an embroidery data creation device according to an embodiment of the present invention includes a CPU 1 having a data creation program and a control section, an image scanner 2 for importing original image data, and an original image scanner 2 for capturing original image data. A floppy disk drive FDD3 that can record data and embroidery data, an original image data storage section 4 for importing the original image data, an arrangement data storage section 5 that stores the presence or absence of the first and second raphe lines, and an embroidery It is composed of an embroidery data storage section 6 that stores data. Further, the CPU 1 is connected to a sewing machine 10, a sewing machine drive motor 8, and an XY machine for a piece of cloth which is operated in synchronization with the sewing machine 10, which constitute a computerized embroidery sewing machine.
It is also possible to control the drive device 9 to perform embroidery based on the embroidery data.

まず、本実施例のデータ作成の方法の概念について説明
する。まず、原画をモザイク化し、そのモザイク画に対
して、刺しゆうしようとする各区画モザイクを各々ON
のモザイクユニットし、それ以外のモザイクユニットを
○FFのモザイクユニットとする。そして、各ONのモ
ザイクユニットに対して所定のパターン線で構成する模
様線を当てはめ、モザイク線画を作成する。そして、そ
の模様線に、本実施例の場合、直線である第一と第二の
縫線を対応させる。刺しゅうデータ生成に際しては、そ
の模様線が分岐する分岐点において、上記模様線毎の縫
線の有り、無しを示す配置データを各分岐方向にて検索
し、後述する複線状態フラグEと単線状態フラグFによ
る判別条件に適合したものを選択し、順次縫線を辿って
ゆく、針落点の相対座標の配列データである刺しゅうデ
ータを作成するものである。
First, the concept of the data creation method of this embodiment will be explained. First, convert the original picture into a mosaic, and then turn on each section of the mosaic that you want to embroider on the mosaic.
, and other mosaic units as FF mosaic units. Then, pattern lines made up of predetermined pattern lines are applied to each ON mosaic unit to create a mosaic line drawing. Then, in this embodiment, the first and second raphes, which are straight lines, are made to correspond to the pattern lines. When generating embroidery data, at the branch point where the pattern line branches, arrangement data indicating the presence or absence of a raphe line for each pattern line is searched in each branch direction, and the double line state flag E and single line state flag, which will be described later, are searched. Embroidery data, which is array data of relative coordinates of needle drop points, is created by selecting those that meet the discrimination conditions by F and sequentially tracing the raphe line.

例えば、第3、5図の例で説明すると後述するONのモ
ザイクユニットに当てはめた模様線L1に対し、刺しゆ
うしようとする縫線Al,Blを対応させると第5図(
1)のようになる。そして、第3図の模様線Ll,L2
に対応させた、第5図(2)の縫線Al,Bl,A2,
B2を刺しゆうするデータを作成する場合を考える。上
記縫線の配置データとしてA1〜B2が存在しているこ
とを登録する。スタート点をP1とすると、 まず、分
岐点P1において、後述する分岐状態のチェックを行な
い、右上方向の縫線A1が選択されそれが刺しゅうデー
タに登録される。そして、その縫線A1は配置データか
ら消去される。次に検索点がP2に移り、その点での分
岐状態のチェックを行ない、右下方向の縫線A2が選択
され、それを刺しゅうデータに登録し、縫線A2は配置
データから消去される。このようにして順次登録と消去
が繰返され、配置データの全縫線が消去されるまで処理
を行なうのである。
For example, to explain using the example of Figures 3 and 5, if the raphe lines Al and Bl to be embroidered are made to correspond to the pattern line L1 applied to the ON mosaic unit, which will be described later, as shown in Figure 5 (
1). Then, the pattern lines Ll and L2 in FIG.
The raphe lines Al, Bl, A2, in FIG. 5 (2) correspond to
Consider the case of creating data for printing B2. The existence of A1 to B2 is registered as the above-mentioned raphe arrangement data. Assuming that the starting point is P1, first, at the branch point P1, a branch state, which will be described later, is checked, and the upper right raphe line A1 is selected and registered in the embroidery data. Then, the raphe line A1 is deleted from the arrangement data. Next, the search point moves to P2, the branching state at that point is checked, the lower right raphe A2 is selected, it is registered in the embroidery data, and the raphe A2 is deleted from the arrangement data. In this way, registration and deletion are repeated in sequence until all raphe lines of the arrangement data are deleted.

次に、本実施例のCPU1によって処理されるデータ作
成の詳細について、第6図のメインのプログラムフロー
に従って説明する。まず、スッテブS1のモザイク線画
作成によって、CPU1はイメージスキャナ2を介して
原画を原画データ記憶部4に取込む。そしてモザイク線
画処理を行なうわけであるが、具体例として、まず、第
2図において、xy座標上の原画を所定のビッチU、例
えば、u=10の格子線でモザイク分割化し、そのモザ
イク処理し、赳しゆうしようとする区画をONのモザイ
クユニットとし、刺しゆうしない区画をOFFのモザイ
クユニットとして、上記ONのモザイクユニットを、 
第3図に示されるように、X=x/u,Y=y/uであ
るxy座標に変換したモザイク平面上に展開する。そし
て、各ONのモザイクユニットに対して模様線を当ては
めるが、その模様線は第4図に示されるXY座標におい
て、XとYが、それぞれ偶数どうしである点と奇数どう
しである点間の1区間の傾斜線(図中の破線)が当てら
れる。また、上記の各点はモザイクユニットの頂点であ
り、更に、後述する模様線の分岐点となる。第3図のし
1〜L6は当てはめられた模様線であり、P1〜P6が
それぞれの模様線に対する分岐点である。
Next, details of data creation processed by the CPU 1 of this embodiment will be explained according to the main program flow shown in FIG. First, by creating a mosaic line drawing in step S1, the CPU 1 imports the original image into the original image data storage section 4 via the image scanner 2. Then, mosaic line drawing processing is performed. As a specific example, first, as shown in FIG. , the section to be pierced is set as an ON mosaic unit, the section not to be embroidered is set as an OFF mosaic unit, and the above-mentioned ON mosaic unit is set as
As shown in FIG. 3, it is developed on a mosaic plane converted into xy coordinates where X=x/u and Y=y/u. Then, a pattern line is applied to each ON mosaic unit, and the pattern line is the point between the points where X and Y are even numbers and the points where X and Y are odd numbers, respectively, in the XY coordinates shown in Figure 4. The slope line of the section (dashed line in the figure) is applied. Further, each of the above points is a vertex of a mosaic unit, and also serves as a branching point of a pattern line, which will be described later. Numbers 1 to L6 in FIG. 3 are applied pattern lines, and P1 to P6 are branch points for each pattern line.

以上がモザイク線画処理であり、この線を辿って刺しゅ
うがなされるようなデータを作成することになる。なお
、上記模様線の少なくとも一つは他の模様線との分岐点
とする。即ち、一連の刺しゅうデータとするためには模
様線が連続状態である必要があるが、極く近いところで
切れている場合、模様線を追加することによって連続状
態にすれば、刺しゅうデータとして一連のものを作成す
ることができる。たとえば、第3図のL2とL4の縫線
とが存在しなっかた場合、縫fiL3は断線状態である
が、縫線L2を「あり」にすることによってには模様線
を連続状態にすることができる。
The above is the mosaic line drawing process, and data that will be followed by embroidery will be created. Note that at least one of the pattern lines is a branch point with another pattern line. In other words, in order to create a series of embroidery data, the pattern lines must be continuous, but if the pattern lines are cut very close together, adding pattern lines to make them continuous will create a series of embroidery data. You can create things. For example, if raphe lines L2 and L4 in Fig. 3 do not exist, stitch fiL3 is in a disconnected state, but by setting raphe line L2 to "present", the pattern line is made continuous. be able to.

続いて、メインプログラムの第6図のステップS2の配
置データ登録に処理が移る。上記のモザイク線図の各模
様線に対し、同じ軌跡を持つ第一の縫線Aと第二の縫線
Bを対応させる。即ち、1模様線をAとBの2つの縫線
で形成するものとし、その模様線の分岐点に関連したメ
モリアドレスに上記A,BwAの有無を配置データとし
て、配置データ記憶部5に格納する。ここで、本実施例
では配置データをA (ADD),B (ADD)の配
列で登録するので、上記の模様線の分岐点に関連したメ
モリアドレスは、本実施例では配置データをA (AD
D),B (ADD)の配列で登録するので、その配列
の添字である変数ADDを該当させる(以?&ADDを
アドレス変数と称する)。そこで、模様線の両端の分岐
点の座標をそれぞれ、(XP,YP)、(XP’ ,Y
P”)とすると、アドレス変数ADDは、 ADD=(XP+XP’)¥2+ 100 ・((YP+YP’)¥2) ・・・・・・・・・・・・(1) となる。ただし、¥は小数以下を切捨てる整数除算記号
とする。そして、縫線Aが「あり」の場合、縫線Aの配
置データは A (ADD)=1 また、縫線Bが「あり」の場合、縫線Bの配置データは B  (ADD)= 1 として配置データを登録する。例えば、第3図のモザイ
ク線図に対する配置データにおいて縫線L1については
、その両端は、座標XP=2.YP=2、またXP’=
3,YP”=3であるから、メモリアドレスに相当する
アドレス変数ADDは、202となり、また、配置デー
タは、当然、縫線L1が存在しているから、データA 
(202) , B (202)ともに、1となる。そ
して、第3図のモザイク線図に対するすべて配置データ
は第20図の通りとなる。
Subsequently, the process moves to arrangement data registration in step S2 of FIG. 6 of the main program. A first raphe line A and a second raphe line B having the same locus are made to correspond to each pattern line in the above mosaic diagram. That is, one pattern line is formed by two raphes A and B, and the presence or absence of the above A and BwA is stored as placement data in the placement data storage unit 5 at a memory address related to the branch point of the pattern line. do. Here, in this embodiment, the arrangement data is registered in an array of A (ADD), B (ADD), so the memory address related to the branch point of the pattern line is the arrangement data A (ADD) in this embodiment.
Since it is registered as an array of D), B (ADD), the variable ADD, which is the subscript of the array, is applied (hereinafter, ?&ADD is referred to as an address variable). Therefore, the coordinates of the branch points at both ends of the pattern line are (XP, YP) and (XP', Y
P''), the address variable ADD is ADD=(XP+XP') ¥2+ 100 ・((YP+YP') ¥2) ・・・・・・・・・・・・(1) However, ¥ is an integer division symbol that truncates the decimal. Then, when raphe A is "with", the arrangement data of raphe A is A (ADD) = 1. Also, when raphe B is "with", the sewing The arrangement data for line B is registered as B (ADD)=1. For example, in the arrangement data for the mosaic diagram in FIG. 3, for the raphe L1, both ends thereof have the coordinates XP=2. YP=2, and XP'=
3, YP”=3, the address variable ADD corresponding to the memory address is 202, and the arrangement data is naturally data A since the raphe line L1 exists.
(202) and B (202) both become 1. All arrangement data for the mosaic diagram in FIG. 3 is as shown in FIG. 20.

次に、その配霞データをもとにして、刺しゅうデータを
作ってゆくように、メインプログラムのスッテブS3に
よってルーチンR1の刺しゅうデータ生成がコールされ
るが、ここで、本ルーチンの説明に先立って、本ルーチ
ンRl内にて使用されるサブルーチン群SUB3〜8の
内容について説明する。
Next, step S3 of the main program calls the embroidery data generation routine R1 to create embroidery data based on the haze distribution data. , the contents of the subroutine group SUB3 to SUB8 used in this routine Rl will be explained.

まず、第9図に示す、サブルーチンSUB3の次方向演
算は、検索する次の方向を求める演算である。ここで、
検索方向について説明すると、検索方向は、第7図に示
すように、検索分岐点P(XP.YP)lこ対して4方
向あり、その方向を示す変数としてDTを設け、その4
方向、即ち、右上、左上、左下、右下、:こ対して指数
O、1、2、3を対応させるものとする。たとえば、第
3図の分岐点P2Sこおいて、配霞データ分岐している
模様線の方向指数(以下方向と称する)、DT=0方向
には、模様線L5があり、DT=1方向には、模様線L
6があり、DT=2方向(こは模様線L1があり、DT
=3方向には、模様線L2がある。従って、検索点座標
XP,YPと検索方向DTが与えられると模様線が抽出
でき、縫線の配置データも参照できることシこなる。そ
して、検索を反時計回りとするならば、次方向は、DT
= (DT+1 )%4 によって演算される(530 1 )。ここで、%は剰
余演算子である。これは3以上はOからの値に直すため
ラこ行なうものである。なお、検索によって模様線が選
択されると、その方向DTによって刺しゅうデータの登
録時:こは次の伝達(分岐)方向、即ち、次の分岐点の
ある方向が与えられる。
First, the next direction calculation of subroutine SUB3 shown in FIG. 9 is a calculation for determining the next direction to be searched. here,
To explain the search direction, as shown in Fig. 7, there are four search directions with respect to the search branch point P (XP.
The directions, ie, upper right, upper left, lower left, lower right, are associated with indices O, 1, 2, and 3. For example, at the branch point P2S in Fig. 3, there is a pattern line L5 in the DT=0 direction, and a pattern line L5 in the DT=1 direction, which is the direction index (hereinafter referred to as the direction) of the pattern line where the haze distribution data branches. is pattern line L
6, DT = 2 directions (there is a pattern line L1, DT
There is a pattern line L2 in the =3 direction. Therefore, if the search point coordinates XP, YP and the search direction DT are given, the pattern line can be extracted and the placement data of the raphe line can also be referred to. Then, if the search is counterclockwise, the next direction is DT
Calculated by = (DT+1)%4 (530 1 ). Here, % is a remainder operator. This is done in order to change the value from 0 to a value of 3 or more. When a pattern line is selected by the search, the direction DT gives the next transmission (branch) direction, ie, the direction of the next branch point, when the embroidery data is registered.

次に、第10図に示す、サブルーチンS)UB4のXY
変位演算は、ステップS401において、与えられた方
向DTに対して、第21図に示される方向DTとXY変
位ΔXP,ΔYPの関係から変位ΔXP,ΔYPを求め
るものであって、この変位ΔXP,ΔYPは現検索点か
ら検索方向あるいは伝達方向のDTの模様線分岐点まで
のXY座標上の相対変位値を示す。
Next, the subroutine S) XY of UB4 shown in FIG.
The displacement calculation is performed in step S401 to obtain displacements ΔXP, ΔYP for a given direction DT from the relationship between the direction DT and the XY displacements ΔXP, ΔYP shown in FIG. represents the relative displacement value on the XY coordinates from the current search point to the pattern line branching point of DT in the search direction or transmission direction.

次に、第11図に示す、サブルーチンSUB5のアドレ
ス演算は、上記検索方向DTが与えられた状態で、演算
配置データが格納されているメモリアドレス、即ち、本
実施例では、配列A(ADD),B (ADD)のアド
レス変数ADDを計算するものである。
Next, the address calculation of the subroutine SUB5 shown in FIG. , B (ADD).

まず、ステップ850 1において、サブルーチンSU
B4をコールし、検索、または伝達(分岐)方向DTに
対する相対変位ΔXP,ΔYPを求める。次に、ステッ
プ S502において、現分岐点の座標値xp,ypに
変位分ΔXP,ΔYPを加算して、検索方向分岐点、ま
たは、伝達(分岐)する次の分岐点の座標xp’,yp
”求める。
First, in step 8501, subroutine SU
Call B4 to find relative displacements ΔXP and ΔYP with respect to the search or transmission (branch) direction DT. Next, in step S502, the displacement ΔXP, ΔYP is added to the coordinate values xp, yp of the current branch point to determine the coordinates xp', yp of the search direction branch point or the next branch point to be transmitted (branched).
"demand.

ソシテ、ステップS503おいて、座mfIi!IXP
,YP,XP’,YP’から、配霞データの登録のとき
に使用した式(1)によりアドレス変数ADDがもとめ
られる。
So, in step S503, zamfIi! IXP
, YP, XP', and YP', the address variable ADD is obtained using the formula (1) used when registering the haze distribution data.

次に、第12図に示すサブルーチンSUB6の刺しゅう
データ登録は、与えられた伝達(分岐)方向DTにより
XY座標上の相対変位を求め、そして、刺しゅうデータ
の針落点相対座標に換算してその配列に格納するもので
ある。まず、変位を求めるため、ステップS601に於
いて、上記SUB4をコールし、相対変位ΔXP,ΔY
Pを求める。そして、ステップS602において、上記
相対変位ΔXP,△YPにモザイクユニット寸法Uを乗
じて、それを刺しゅうデータ配列である、Δxp (N
),Δyp (N)に代入するものである。
Next, the embroidery data registration in subroutine SUB6 shown in FIG. 12 involves finding the relative displacement on the XY coordinates using the given transmission (branching) direction DT, and converting it into the relative coordinates of the needle drop point of the embroidery data. It is stored in an array. First, in order to obtain the displacement, in step S601, the above SUB4 is called and the relative displacements ΔXP, ΔY
Find P. Then, in step S602, the relative displacements ΔXP, ΔYP are multiplied by the mosaic unit dimension U, and the product is calculated as the embroidery data array, Δxp (N
), Δyp (N).

次に、第13図に示すサブルーチンSUB7の変数置換
は、刺しゅうデータに選択された縫線を登録したことに
よって、次の伝達(分岐)先に検索分岐点を移す為に座
標を書換えるもので、まず、スッテプS701において
、現分岐点座tMxp,YPにサブルーチンSUB5で
求めた次の分岐点座標xp’,yp”を代入する。また
、スッテブS702において、次期検索のスタート方向
DTOを選択された縫線のある方向即ち、最終の検索方
向、即ち伝達(分岐)方向DTから求める。このスター
ト方向は、分岐方向の逆方向とするので、本実施例のよ
うに全方向が4方向の場合、DToは、 DTo=  (DT+2)%4 によって演算される。ここで、%は剰余演算子である。
Next, variable replacement in subroutine SUB7 shown in Figure 13 rewrites the coordinates in order to move the search branch point to the next transmission (branch) destination by registering the selected raphe line in the embroidery data. , First, in step S701, the next branch point coordinates xp', yp'' obtained in subroutine SUB5 are substituted for the current branch point coordinates tMxp, YP.Furthermore, in step S702, the start direction DTO of the next search is selected. It is determined from the direction in which the raphe exists, that is, the final search direction, that is, the transmission (branching) direction DT.This starting direction is the opposite direction to the branching direction, so when there are four directions as in this embodiment, DTo is calculated by DTo=(DT+2)%4, where % is a remainder operator.

そして、次の検索の都合上DT=DToの設定をしてお
く。更に、刺しゅう配列データのための変数Nに対しN
=N+1のインクリメントを行なう(S703)。
Then, for convenience of the next search, DT=DTo is set. Furthermore, for the variable N for embroidery arrangement data, N
=N+1 is incremented (S703).

そして、第14図に示すサブルーチンSUB8の分岐状
態チェックは、分岐点回りの配置データ参照し、刺しゅ
うデータ生成のときに縫線の選択に用いられる複線状態
フラグEと単線状態フラグFをセットを行なうサブルー
チンである。ここで、単、複線状態ついて説明すると、
まず、′6.線状態とは、1つの模a線に対して、初期
のモザイク線登録直後であれば、縫線AとBが共存して
おり、模様線の該当するアドレス変数の配置データは、
A (ADD)= 1 B(ADD)=.1 である。この状態を複線状態とする。また単線状態とは
、刺しゅうデータの登録に際して、各模様線においては
縫iBより、縫線Aの方を優先して登録し、配置データ
は、縫線Aのみを消去するので、 A (ADD)=O B  (ADD)= 1 となる。この状態を単腺状態とする。更に、縫線Bも刺
しゅうデータに登録されてしまうと、配置データは、 A (ADD)=O B (ADD)=0 となり、登録の対象となる縫線が無くなったことを示す
The branch state check in subroutine SUB8 shown in FIG. 14 refers to the arrangement data around the branch point and sets the double line state flag E and single line state flag F, which are used to select raphe lines when generating embroidery data. It is a subroutine. Here, to explain the single and double track conditions,
First, '6. Line status means that for one pattern line, immediately after the initial mosaic line registration, raphe lines A and B coexist, and the arrangement data of the address variable corresponding to the pattern line is
A (ADD)=1 B(ADD)=. It is 1. This state is called a double track state. In addition, the single-line state means that when registering embroidery data, raphe line A is registered with priority over stitch iB for each pattern line, and only raphe line A is deleted from the placement data, so A (ADD). =OB(ADD)=1. This state is called a single gland state. Furthermore, when raphe B is also registered in the embroidery data, the arrangement data becomes A (ADD)=OB (ADD)=0, indicating that there is no longer a raphe to be registered.

第16図の例で説明すると、破線は刺しゅうデータ登録
済、即ち、該当する47線がもう存在しない、配置デー
タがOであることを示し、実線は未登録、即ち、縫線が
存在し配置データが1゛であることを示す。第16図(
1)のP2,P5間の模様線は、縫線A,Bともに存在
(未登録)しているから複線状態であり、また、PI,
P2間の模様線は縫線Bのみ存在く未登録)いているの
で単線状態であり、P2,P3間の模様線も同様に単線
状態である。なお、図中分岐点間の繍線A, Hの左右
の位置は意味を持たない。
To explain using the example in Fig. 16, the broken line indicates that the embroidery data has been registered, that is, the corresponding 47 lines no longer exist, and the placement data is O, and the solid line indicates that the embroidery data has not been registered, that is, the raphe line exists and is placed. Indicates that the data is 1. Figure 16 (
The pattern line between P2 and P5 in 1) is a double line because both raphe A and B exist (unregistered), and PI,
The pattern line between P2 is a single line because only raphe B exists (and is not registered), and the pattern line between P2 and P3 is also a single line. Note that the left and right positions of the embroidery lines A and H between the branch points in the figure have no meaning.

複線状態フラグEは、検索分岐点において分岐している
模様線の上記単複線状態をチェックし、単線状態の模様
線が1つ以下であって、さらに複線状態の模様線が少な
くとも1つあれば、フラグEが1にセットされるもので
ある。
The double track state flag E checks the single double track state of the pattern lines branching at the search branch point, and if there is one or less pattern line in the single track state and at least one pattern line in the double track state, , flag E is set to 1.

単線状態フラグFは、同様に検索分岐点において分岐し
ている模様線の上記単複線状態をチェックし、単線状態
の模様線が2つ以上ある場合か、単線状態の模様線が1
つのみで複線状態の模様線が1つもない場合に、フラグ
Fが1にセットされるものである。第16図の例で説明
すると、いま伝達登録順が分岐点P1から、P2、そし
て検索分岐点が第16図(1)の点P3 となった場合
、ここでは、単腺状態の模様線が1つあり、複線状態の
模様線も1つあるので、フラグEが1にセットされる。
The single-line state flag F similarly checks the single-double-line state of the pattern lines branching at the search branch point, and if there are two or more pattern lines in the single-line state, or there is only one pattern line in the single-line state.
Flag F is set to 1 when there is only one pattern line and no double pattern line. To explain using the example of Fig. 16, if the transmission registration order is now from branch point P1 to P2, and the search branch point is point P3 in Fig. 16 (1), here, the pattern line of the single gland state is Since there is one pattern line and there is also one double pattern line, flag E is set to 1.

また、更に伝達登録順が進んでP4、P5、そして、次
の検索分岐点が第16図(2)の点P2に達した時、こ
こでは、単線状態の模様線が3つあるので、フラグFが
1にセットされる。また、第16図(3)のようにP1
、P2、そして、点P3 に到達した場合、ここでは、
単線状態の模様線が1つあり、複線状態の模様線がない
ので、フラグFが1にセットされる。なお、これらのフ
ラグはルーチンR1の刺しゅうデータ生成において、次
のように縫線の選択手段として用いられる。
In addition, when the transmission registration order further advances to P4, P5, and the next search branch point reaches point P2 in FIG. F is set to 1. Also, as shown in Fig. 16 (3), P1
, P2, and when the point P3 is reached, here,
Since there is one single pattern line and no double pattern line, flag F is set to 1. These flags are used as raphe selection means in the embroidery data generation of routine R1 as follows.

まず、フラグEが1にがセットされていれば、該当複線
状態のうちの縫腺、Aを選択し、一方、フラグFが1に
セットされていて、その単線状態の模様線(縫線B)が
後述するループを形成している場合、ループ該当単線状
態の縫線Bを選択する。但し、本実施例の場合、プログ
ラムを簡単にするため、後述するように戻り模8!線(
B縫線)を選択する。また、ループ線を形成しない場合
、即ち、単線状態の模様線が1つあり、複線状態の模様
線がない場合(行止まり点)では、該当する単線状態の
41線を選択する(Uターン)。そして、フラグE,F
ともセットされていなければ、全縫線は登録終了の状態
と判定する。
First, if the flag E is set to 1, select the raphe A in the corresponding double-line state, and on the other hand, if the flag F is set to 1, select the pattern line (raphe B) in the single-line state. ) forms a loop to be described later, select the raphe B in the single line state corresponding to the loop. However, in the case of this embodiment, in order to simplify the program, the return model 8! line(
B raphe). In addition, when a loop line is not formed, that is, when there is one patterned line in a single-track state and no patterned line in a double-track state (end-of-line point), select the corresponding single-track pattern line 41 (U-turn). . And flags E, F
If both are not set, it is determined that all raphes have been registered.

なお、上記ループを形成している該当単腺状態の縫線と
は、例えば、第16図(2)の点P2に達した時の単線
状態の縫線B2、B3、B4、B5のようにループを描
いている縫線を指す。フラグF=1のとき、例えば、B
2、B5以外の縫線であるB1やB6またはA6などを
選択すると全部の!!線を刺しゅうデータに登録できな
くなる。
Note that the raphes in the single-gland state forming the above-mentioned loops are, for example, the raphes B2, B3, B4, and B5 in the single-gland state when reaching point P2 in FIG. 16 (2). Points to the raphe that draws the loop. When flag F=1, for example, B
2. If you select a raphe line other than B5, such as B1, B6, or A6, all of them! ! Lines cannot be registered to embroidery data.

なぜならば、Blを選択すると戻る線がなくなるし、A
6またはB6を選択するとP2に戻って来たとき伝達(
分岐)先が定まらなくなるからである。
This is because if you select Bl, there will be no return line, and A
If you select 6 or B6, it will be transmitted when you return to P2 (
This is because the destination (branch) becomes uncertain.

また、本実施例では、ループ状の単腺状態の縫線Bの選
択でB2とB5のうち戻り側であるB5を選択するが、
これは下記の単線状態分岐指定方向DFによって指定さ
れる。
In addition, in this embodiment, B5, which is the return side, is selected between B2 and B5 when selecting the raphe B in the loop-like single gland state.
This is designated by the following single-track state branch designation direction DF.

そこで、上述のフラグ処理を行なう本サブルーチンSU
B8の分岐点チェックのフローを第14図で説明すると
、まず、フラグE,Fおよび複、単線状態の模様線数の
カウンターKE,KFを0にリセットする(5801)
。次に、サブルーチンSUB3をコールして、次の検索
方向DTを求める(S802)。そして、その検索方向
DTに対する模様線の配置データのアドレス変数A D
 I)を求める(S803)。次にそのアドレスADD
によって、検索方向DTに対する模様線のうち縫線の配
霞データA (ADD)を参照し、A (ADD)=1
であれば、カウンタKE=Oの時のみKEをイクリメン
トし、そのときの検索方向値DTを反時計回りの複線状
態分岐指定方向DEに格納する。また、すでに、カウン
タKE=1の時には、直接ステップ8806ヘジャンプ
する。そして、A (ADD)=Oであって、B (A
DD)=1であれば、カウンタKFをインクリメントし
、そのときの検索方向値DTを単線状態分岐指定方向D
Fに格納する(S804)。なお、縫線Aは縫線Bより
先に刺しゅうデータに登録するので縫線Aのみチェック
すれば複線状態かどうかは分る。
Therefore, this subroutine SU, which performs the flag processing described above,
The flow of checking the branch point of B8 will be explained with reference to FIG. 14. First, flags E and F and counters KE and KF for the number of pattern lines in double and single line states are reset to 0 (5801).
. Next, subroutine SUB3 is called to obtain the next search direction DT (S802). Then, the address variable A D of the pattern line arrangement data for the search direction DT
I) is obtained (S803). Then add that address
, refer to the haze distribution data A (ADD) of the raphe among the pattern lines in the search direction DT, and calculate A (ADD)=1.
If so, KE is incremented only when counter KE=O, and the search direction value DT at that time is stored in the counterclockwise double-track state branch designation direction DE. Furthermore, when the counter KE=1, the process directly jumps to step 8806. Then, A (ADD)=O and B (A
DD) = 1, the counter KF is incremented and the search direction value DT at that time is set as the single-track state branch designation direction D.
It is stored in F (S804). Note that since the raphe line A is registered in the embroidery data before the raphe line B, checking only the raphe line A will tell whether or not it is a double line condition.

そして、検索が全方向一巡するまでチェックし(S80
6)、最後に、フラグE,Fのセツ.ト処理をする(S
807)。即ち、カウンタKE<2であって、カウンタ
KF>Oの場合にはフラグEを1に、また、カウンタK
F>1の場合と、カウンタKF=1であって、KE=O
の場合にはフラグFを1にそれぞれセットする。
Then, check until the search completes in all directions (S80
6), Finally, the set of flags E and F. process (S
807). That is, if counter KE<2 and counter KF>O, flag E is set to 1, and counter K
If F>1 and counter KF=1 and KE=O
In each case, flag F is set to 1.

以上がサブルーチンSUB2〜8の説明であり続いて、
ルーチンR1の刺しゅうデータ生成のフローを第15図
を用いて説明する。まず、初期値を設定入力する(SI
OI)。なお、初期値とはスタート点の座標xp,yp
と、外部からの進入方向を仮定し、その逆方向DToと
である。同時に検索開始方向としてDT=DToに設定
しておく。
The above is the explanation of subroutines SUB2 to SUB8, and then
The flow of embroidery data generation in routine R1 will be explained with reference to FIG. First, set and input the initial values (SI
OI). Note that the initial values are the coordinates xp, yp of the starting point.
and, assuming the direction of approach from the outside, the opposite direction DTo. At the same time, the search start direction is set to DT=DTo.

次に、上記サブルーチンSUB8をコールし、分岐状態
チェックを行ない、その配置データによってフラグE,
Fのセット行なう(5102)。
Next, the above subroutine SUB8 is called to check the branch status, and depending on the placement data, the flag E,
Set F (5102).

そして、フラグE.Fに従って、次の縫線が選択される
(S103、5104)。即ち、フラグE=1の場合、
ステップS105ヘジャンプし、また、フラグF=1の
場合、ステップS109ヘジャンプする。また、E,F
共に0の場合、登録終了であるので本ルーチンからリタ
ーンしてメインのフローに戻る。そして、上記ジャンプ
先のステップS105は、複線状態の縫線を選択して刺
しゅうデータに登録する方であり、登録模様線方向値D
TにサブルーチンSUB8でセットされている複線状態
分岐指定方向DEを代入し、サブルーチンSUB6をコ
ールして、刺しゅう配列データΔxp(N)、△yp 
(N)を登録する(5106)。
And flag E. The next raphe is selected according to F (S103, 5104). That is, when flag E=1,
The process jumps to step S105, and if the flag F=1, the process jumps to step S109. Also, E, F
If both are 0, the registration is complete, and the routine returns to the main flow. Then, the jump destination step S105 is to select a double-line raphe line and register it in the embroidery data, and the registered pattern line direction value D
Assign the double-track state branch designation direction DE set in subroutine SUB8 to T, call subroutine SUB6, and write the embroidery array data Δxp(N), Δyp.
(N) is registered (5106).

そして、サブルーチンSUB5をコールして、アドレス
演算を行ない(S107)、そのアドレス変数の縫線A
の配置データA (ADD)=Oに書換える(3108
)。
Then, subroutine SUB5 is called to perform address calculation (S107), and the raphe A of the address variable is
Rewrite the arrangement data A (ADD) = O (3108
).

一方、ジャンプ先のステップS109の側は、単腺状態
の縫腺を選択して刺しゅうデータに登録する方であり、
全パターン線を登録するためにはループを形成する単線
状態の縫線から選択する必要がある。そのため、R録模
様線方向値DTにサブルーチンSUB8でセットされて
いる上記の単線状態分岐指定方向値DFを代入して、サ
ブルーチンSUB6をコールして、刺しゅう配列データ
Δxp(N)、Δyp (N)  を登録する(S11
0)。そして、サブルーチンSUB5をコールして、ア
ドレス演算を行ない、アドレス値ADDをもとめ(Si
ll)、そのアドレス変数の縫線Bの配置データB (
ADD)=Oに書換える(S112)。そして、双方の
場合とも、サブルーチンSUB7をコールして、変数置
換により検索点を次の分岐点に移す処理を行なって、ス
テップS102に戻る。
On the other hand, the jump destination step S109 is for selecting a single suture gland and registering it in the embroidery data.
In order to register all pattern lines, it is necessary to select from single-line raphe lines forming a loop. Therefore, the above-mentioned single line state branch designation direction value DF set in subroutine SUB8 is assigned to the R record pattern line direction value DT, subroutine SUB6 is called, and the embroidery array data Δxp(N), Δyp(N) (S11)
0). Then, subroutine SUB5 is called to perform address calculation and obtain address value ADD (Si
ll), the arrangement data B (
ADD)=O (S112). In both cases, subroutine SUB7 is called to move the search point to the next branch point by variable substitution, and the process returns to step S102.

具体例として、第3図のモザイク線図に各縫線を対応さ
せた、第16図(4)の縫線パターンの場合(配置デー
タは第20図参照)のルーチンR1の処理を説明する。
As a specific example, the processing of routine R1 in the case of the raphe pattern shown in FIG. 16 (4) in which each raphe line corresponds to the mosaic diagram shown in FIG. 3 (see FIG. 20 for arrangement data) will be described.

スタート点をP1として、外部からの進入方向値をOと
考えて、その逆方向値2をスタート方向として設定する
。即ち、XP=2 YP=2 DTo=DT=2 と設定する。次に、まず、分岐状態をチェックするが、
このスタート分岐点においては、方向DT=0、アドレ
ス値ADD=202にて、配置データはA(202)=
1のみであるから、複線状態の模様線が1つあるだけで
、フラグEが1にセットされる。従って、ステップS1
05の方ヘジャンブし、複線状態である模様線L1の縫
線A1の登録がなされる。即ち、登録模様線方向DT=
0であるから、第21図よりΔXP=1,ΔYP=1が
求められ、1針目の相対変位座標の刺しゅうデータは、
ビッチu=10として、 Δxp (0)=10 Δyp(0)=10 が登録され、配置データはA (202)=Oに書換え
られる。そして、次の検索分岐点は変数置換によって、
座標XP=3、YP=3、即ち、分岐点P2となり、検
索方向はD I’ o = D T = 2となる。そ
して、再び、ステップS102のサブルーチンSUB2
の処理から繰返される。、分岐点P2ではA2が2針目
として、分岐点P3ではA3が、分岐点P4ではA4が
、そして分岐点P5ではA5が、それぞれ選択、そして
登録され、分岐点P2に達する。ここでの分岐点の座標
と、スタート検索方向は、 XP=3  YP=3 DTo=DT=0 である。また、このときの配置データは、第2表に示さ
れ、また、縫線の登録状憇は第16図(2)の通りであ
る。
Assuming that the starting point is P1 and the approach direction value from the outside is O, the opposite direction value 2 is set as the starting direction. That is, it is set as follows: XP=2 YP=2 DTo=DT=2. Next, first check the branch status,
At this start branch point, the direction DT=0, the address value ADD=202, and the arrangement data is A(202)=
Since there is only one pattern line, the flag E is set to 1 even if there is only one double pattern line. Therefore, step S1
05, and the raphe line A1 of the pattern line L1, which is in a double line state, is registered. That is, registered pattern line direction DT=
0, ΔXP=1 and ΔYP=1 are obtained from FIG. 21, and the embroidery data of the relative displacement coordinates of the first stitch is
As bit u=10, Δxp (0)=10 Δyp(0)=10 is registered, and the arrangement data is rewritten to A (202)=O. Then, the next search branch point is by variable substitution,
The coordinates are XP=3 and YP=3, that is, the branch point P2, and the search direction is D I' o =D T =2. Then, again, the subroutine SUB2 of step S102
The process is repeated from , A2 is selected and registered as the second stitch at the branch point P2, A3 is selected and registered at the branch point P3, A4 is selected and registered at the branch point P4, and A5 is selected and registered at the branch point P5, and the stitch reaches the branch point P2. The coordinates of the branch point and the start search direction are as follows: XP=3 YP=3 DTo=DT=0. Further, the arrangement data at this time is shown in Table 2, and the registration form of the raphe line is as shown in FIG. 16 (2).

この場合のステップS102の処理を説明すると、即ち
、サブルーチンSUB8により、KF=3となるので、
フラグF=1がセットされ、また、伝達方向DTに単線
状憇分岐指定方向DFのOが代入される。したがって、
ステップS109にジャンプしia綜B5が選択され、
刺しゅうデータに登録されることになる。以下の処理は
省略する。
To explain the process of step S102 in this case, that is, KF=3 is set by subroutine SUB8, so
The flag F=1 is set, and O of the single-line branch designation direction DF is substituted for the transmission direction DT. therefore,
Jumping to step S109, ia head B5 is selected,
This will be registered in the embroidery data. The following processing is omitted.

なお、この分岐点でループ状単線の縫線B5、またはB
2(本ルーチンではB5選択)以外の縫線を選択すると
パターン上の全縫線を登録することが不可能になってし
まう。
In addition, at this branch point, loop-shaped single line raphe B5 or B
If a raphe other than 2 (B5 is selected in this routine) is selected, it becomes impossible to register all the raphes on the pattern.

次に、本実施例の変形例として縫線AとBのパターンが
異なる場合について説明する。例えば、第17図(1)
のように分岐点Pa,Pb間において縫線Aは直線とし
縫線Bはジグザグ線 (Pa,c,d,e,f,Pbは
針落点)とした場合は、第15図のルーチンR1におい
て、スデップ8106、およびS110のサブルーチン
SUB6の刺しゅうデータ登録の処理を変更する。即ち
、サブルーチンSUB6の刺しゅうデータ登録のうちス
テップS602の処理のΔxp (N)・、Δyp (
N)の演算に対して第23図を用いる必要がある。
Next, as a modification of this embodiment, a case where the patterns of the raphe lines A and B are different will be described. For example, Figure 17 (1)
If raphe A is a straight line and raphe B is a zigzag line between branch points Pa and Pb (Pa, c, d, e, f, and Pb are needle drop points) as shown in FIG. In step 8106, the embroidery data registration process in subroutine SUB6 of S110 is changed. That is, in the embroidery data registration of subroutine SUB6, Δxp (N)·, Δyp (
It is necessary to use FIG. 23 for the calculation of N).

mlQA登録の場合は、第23図のA線パターンを使用
するので上記の実施例と同じであるが、縫線B(ジグザ
グ縫い)登録の場合は、第23図のB線パターン、即ち
、ジグザグ縫いの針落点に関連した座標値を用いるので
ある。そして実際の針落点はこの値にUを乗じた値であ
る。なお、縫線Bを登録した場合、第23図のB線パタ
ーンに示されるようにジグザグの5針分を一度に登録す
るので、サブルーチンSUB7のステップS703のN
=N+1の演算は、 N=N+5 に変更する必要がある。なお、上述パターンは方向DT
=Oに対するものであり、方向DT=1に対しては、第
17図(2)のパターンとする。ここで点Pa,c,d
,e,f,Pbは針落点である。他の方向のパターンは
省略するが、第23図のB線パターンにジグザグ縫いの
針落点に関連した座標は示される。
In the case of mlQA registration, the A line pattern in Fig. 23 is used, so it is the same as the above embodiment, but in the case of raphe B (zigzag stitch) registration, the B line pattern in Fig. 23, that is, the zigzag Coordinate values related to the needle drop point of sewing are used. The actual needle drop point is the value obtained by multiplying this value by U. Note that when raphe B is registered, five zigzag stitches are registered at once as shown in the B line pattern in FIG. 23, so N in step S703 of subroutine SUB7 is
The operation of =N+1 needs to be changed to N=N+5. Note that the above pattern is in the direction DT.
=O, and for the direction DT=1, the pattern shown in FIG. 17(2) is used. Here points Pa, c, d
, e, f, Pb are needle drop points. Although patterns in other directions are omitted, the coordinates related to the needle drop point of the zigzag stitch are shown in the B line pattern in FIG. 23.

次に、本実施例の別の変形例として、前述したステップ
S1のモザイク線画作成において、原画のモザイク処理
によってONのモザイクユニットをXY座標上に展開し
たが、その場合隣り合う4つのモザイクユニットを1組
として取扱って処理する方法を説明する。まず、隣り合
う4つのモザイクユニットの1組ずつについて、ONの
モザイクユニットが2つ以下の場合と、3つ以上の場合
に分け、前者の組のモザイクユニット4つはすべてOF
Fのモザイクユニットとし、後者の組のモザイクユニッ
トをすべてONのモザイクユニットとしてモザイク画を
書換える。そして、後の処理は上述の実施例と同じとす
る。
Next, as another modification of this embodiment, in the creation of the mosaic line drawing in step S1 described above, the ON mosaic unit is developed on the XY coordinates by the mosaic processing of the original image, but in this case, four adjacent mosaic units are A method of handling and processing them as one set will be explained. First, each set of four adjacent mosaic units is divided into two or less ON mosaic units and three or more ON mosaic units, and all four mosaic units in the former set are OF.
F as a mosaic unit, and rewrite the mosaic image by making the latter set of mosaic units all ON mosaic units. The subsequent processing is the same as in the above embodiment.

第18図にその具体例を示す。まず、隣り合う4つのモ
ザイクユニットの1組として、Mll、M12、M17
、M18があり、これは4つともONであるので、変更
はしない。つぎの隣り合う1組のM13、M14、M1
5、M16は3つがONであるからすべてONのモザイ
クユニットとするため、M15をOFFからONに変更
し、また、つぎの隣り合う1組のM19、M20、M2
1、M22は2つだけがONであるからすべてOFFの
モザイクユニットとするため、M19とM20を○Nか
らOFFに変更する。
A specific example is shown in FIG. First, as one set of four adjacent mosaic units, Mll, M12, M17
, M18, and all four are ON, so no changes are made. The next adjacent pair of M13, M14, M1
5. Since three of M16 are ON, in order to make it a mosaic unit with all ON, change M15 from OFF to ON, and also change the next set of adjacent M19, M20, M2
1. Since only two M22 are ON, change M19 and M20 from ○N to OFF in order to make the mosaic unit all OFF.

そして、ONのモザイクユニットに前述したステップS
1の処理と同様に模様線を当てはめるとLLl〜L18
の8本のモザイク線画が生成される。これによって、所
謂、クロスステッチ模様の刺しゅうデータが生成される
のである。またーヒ記1組の区切り方によって四角模様
にすることもできる。なお、このあとの生成処理は前述
の実施例と同じであるので説明は省略する。
Then, step S described above is applied to the ON mosaic unit.
Applying pattern lines in the same way as in step 1 yields LLl~L18
Eight mosaic line drawings are generated. As a result, embroidery data of a so-called cross-stitch pattern is generated. It is also possible to create a rectangular pattern depending on how one set of letters is divided. Note that the subsequent generation processing is the same as in the above-described embodiment, so a description thereof will be omitted.

次に、本実施例の更に別の変形例として、上記の四角模
様に対して六角模様の刺しゅうデータを生成するプログ
ラムについて説明する。模様としては第19図に示すよ
うな六角形の線模様とし、各々の線、L22〜L25な
どが模様線であり、分岐点はP21、P22などである
。そして、上述の実施例における方向DTO〜3に対し
て方向DTとして指数0〜5を対応させる。具体的な値
は第8図に示される。
Next, as yet another modification of the present embodiment, a program for generating embroidery data of a hexagonal pattern for the above-mentioned square pattern will be described. The pattern is a hexagonal line pattern as shown in FIG. 19, each line L22 to L25 is a pattern line, and the branching points are P21, P22, etc. Then, the directions DTO to 3 in the above embodiment are made to correspond to the indices 0 to 5 as the direction DT. Specific values are shown in FIG.

そして模様線の検索は、例えば、検索点P21において
検索方向 DT=O、2、4の模様線は無しで、検索方
向DT=1の模様線はL23、また、検索方向DT=3
の模様線はL21、検索方向DT=5の模様線はL22
となり、上述の実施例の場合と同じ様に配置データの登
録処理はできるが、但し、サブルーチンSUB3におけ
る次方向演算式は、次のように変更する。
The pattern line search is performed, for example, at the search point P21 in the search direction DT=O, there are no pattern lines in 2 and 4, and the pattern line in the search direction DT=1 is L23, and the search direction DT=3.
The pattern line in the search direction DT=5 is L21, and the pattern line in the search direction DT=5 is L22.
Thus, the arrangement data registration process can be performed in the same manner as in the above embodiment, however, the next direction calculation formula in subroutine SUB3 is changed as follows.

DT= (DT+1)%6 また、サブルーチンSUB7における変数置換も次のよ
うに変更する。
DT=(DT+1)%6 Also, change the variable substitution in subroutine SUB7 as follows.

DTo= (DT+3)%6 また、サブルーチンSUB4における変位演算の変位X
P,YPを求めるには第22図から方向DTに対する値
を参照すればよい。
DTo= (DT+3)%6 Also, the displacement X of the displacement calculation in subroutine SUB4
To find P and YP, refer to the values for the direction DT from FIG.

また、サブルーチンSUB6における刺しゅうデータ登
録における相対変位量演算は次のように変更する。
Further, the calculation of the relative displacement amount in the embroidery data registration in the subroutine SUB6 is changed as follows.

Δxp=ΔXP−u ΔyP=o.58−△YP − u その他の処理プログラムは上述の実施例と殆ど同じであ
るから説明は省略する。
Δxp=ΔXP−u ΔyP=o. 58-ΔYP-u Since the other processing programs are almost the same as those in the above embodiment, their explanation will be omitted.

(発明の効果) 上述のように、モザイク刺しゅうデータを作成するに際
して、模様線の配置データを分岐点に関連メモリアドレ
スに格納し、配置データの状態を参照して41線を選択
し、刺しゅうデータに登録することによって刺しゅうデ
ータを生成するもので、本装置によれば、複雑な模様で
も、人手を使うこともなく、ミスのないデータを作成す
ることができるのである。
(Effect of the invention) As described above, when creating mosaic embroidery data, the pattern line arrangement data is stored in the memory address related to the branch point, 41 lines are selected by referring to the state of the arrangement data, and the embroidery data is This device generates embroidery data by registering it in the embroidery machine, and with this device, it is possible to create error-free data even with complex patterns without the need for manual labor.

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

第1図は、本発明の実施例のモザイク刺しゅうデータの
作成装置のブロック図、 第2図は、上記第1図の装置に使用される刺しゅう原画
パターン図、 第3図は、上記第1図の装置に使用される刺しゅうモザ
イク線図、 第4図は、上記第1図の装置の説明用の模様線パターン
図 第5図は、上記第1図の装置の説明用の縫線サンプル図
、 第6図は、上記第1図の装置に用いるメインプログラム
フロー 第7図は、上記第1図置のサブルーチンSU83次方向
演算フロー 第10図は、上記第1図の装置のサブルーチンSUB4
XY変位演算フロー 第11図は、上記第1図の装置のサブルーチンSUB5
アドレス演算フロー 第12図は、上記第1図の装霞のサブルーチンSUB6
刺しゅうデータ登録フロー 第13図は、上記第1図の装置のサブルーチンSUB7
変数置換フロー 第14図は、上記第1図の装置のサブルーチンSUB8
分岐状態チェックフロー 第15図は、上記第1図の装置に用いるルーチンR1刺
しゅうデータ生成フロー 第16図(1)、(2)、(3)、(4)は、上記装置
に説明用の縫線パターン図、 第17図は、本発明の実施例のモザイク刺しゅうデータ
の作成装置の変形例に用いる縫線ジグザグパターン図、 第18図は、本発明の実施例のモザイク刺しゅうデータ
の作成装置の別の変形例に用いるモザイク線図(クロス
ステッチ原画)、 第19図は、本発明の実施例のモザイク刺しゅうデータ
の作成装置の別の変形例に用いるモザイク線図(六角形
ステッチ原画) 第20図(1)、(2)は、上記第1図の装置の配置デ
ータの具体例、 第21図は、上記第1図の装置の方向と座標の関係図、 第22図は、上記実施例第1図の装置の別の変形例の方
向と座標の関係図、 第23図は、上記第17図の変形例のジグザグ縫線Aと
!!綜Bのパターン図である。 1・・・・・・CPU (刺しゅうデータ登録手段)5
・・・・・・・・・・・・・・・配置データ記憶部(配
置データ記憶手段)
FIG. 1 is a block diagram of a mosaic embroidery data creation device according to an embodiment of the present invention, FIG. 2 is a diagram of an original embroidery pattern used in the device shown in FIG. 1, and FIG. 3 is a diagram of the device shown in FIG. 1 above. Embroidery mosaic diagram used in the device shown in FIG. FIG. 6 shows the main program flow used in the apparatus shown in FIG. 1 above. FIG. 7 shows the subroutine SU8 shown in FIG.
The XY displacement calculation flow in FIG. 11 is the subroutine SUB5 of the apparatus shown in FIG.
The address calculation flow in FIG. 12 is the Soka subroutine SUB6 in FIG. 1 above.
The embroidery data registration flow in FIG. 13 is the subroutine SUB7 of the device shown in FIG.
The variable substitution flow in FIG. 14 is the subroutine SUB8 of the device shown in FIG.
The branch status check flow in FIG. 15 shows the routine R1 embroidery data generation flow used in the device shown in FIG. Figure 17 is a diagram of a raphe zigzag pattern used in a modified example of the mosaic embroidery data creation device according to the embodiment of the present invention; 19 is a mosaic diagram (original cross-stitch image) used in another modification; FIG. Figures (1) and (2) are specific examples of the arrangement data of the device in Figure 1 above, Figure 21 is a relationship between the direction and coordinates of the device in Figure 1, and Figure 22 is the example of the above embodiment. A diagram showing the relationship between directions and coordinates of another modification of the device shown in FIG. 1, and FIG. 23 shows the zigzag raphe line A of the modification shown in FIG. ! It is a pattern diagram of skein B. 1...CPU (embroidery data registration means) 5
・・・・・・・・・・・・・・・Arrangement data storage section (arrangement data storage means)

Claims (1)

【特許請求の範囲】[Claims] (1)ミシンの針棒の上下運動に同期して布片を平面上
各位置に移動させて刺しゅうを行なうようなコンピュー
ター刺しゆう機に用いられる、刺しゆうデータを作成す
るデータ作成装置において、 少なくとも一端は他の模様線と接触している模様線で形
成されているモザイク線画の線上を刺しゆうしてゆく刺
しゆうデータを作成するものであって、 上記模様線の端点を分岐点としその分岐点間に存在する
1つの模様線に、第一と第二の縫線を対応させて、それ
らの縫線の有無を配置データとして、上記分岐点に関連
したメモリアドレスに記憶し、下記の刺しゆうデータへ
の登録に関連して、書換えられる配置データ記憶手段と
、 上記分岐点における配置データに関連して、縫線を選択
して、刺しゆうデータに登録する刺しゆうデータ登録手
段と、 を有することを特徴とする刺しゆうデータ作成装置。
(1) In a data creation device for creating embroidery data used in computer embroidery machines that perform embroidery by moving a piece of cloth to various positions on a plane in synchronization with the vertical movement of the needle bar of a sewing machine, at least One end is used to create embroidery data that is embroidered on the lines of a mosaic line drawing formed by pattern lines that are in contact with other pattern lines, and the end point of the pattern line is used as a branching point. The first and second raphe lines are made to correspond to one pattern line existing between the points, and the presence or absence of those raphe lines is stored as placement data in the memory address related to the branch point, and the following stitching is performed. A layout data storage means that is rewritten in connection with the registration in the sewing data; and a sewing data registration means that selects a raphe line and registers it in the sewing data in connection with the layout data at the branching point. A stabilization data creation device comprising:
JP5826989A 1989-03-11 1989-03-11 Mosaic embroidery data preparing device Pending JPH02237592A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5826989A JPH02237592A (en) 1989-03-11 1989-03-11 Mosaic embroidery data preparing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5826989A JPH02237592A (en) 1989-03-11 1989-03-11 Mosaic embroidery data preparing device

Publications (1)

Publication Number Publication Date
JPH02237592A true JPH02237592A (en) 1990-09-20

Family

ID=13079459

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5826989A Pending JPH02237592A (en) 1989-03-11 1989-03-11 Mosaic embroidery data preparing device

Country Status (1)

Country Link
JP (1) JPH02237592A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010213748A (en) * 2009-03-13 2010-09-30 Brother Ind Ltd Embroidery data generating device, embroidery data generating program, and computer-readable medium storing embroidery data generating program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010213748A (en) * 2009-03-13 2010-09-30 Brother Ind Ltd Embroidery data generating device, embroidery data generating program, and computer-readable medium storing embroidery data generating program
US8335583B2 (en) 2009-03-13 2012-12-18 Brother Kogyo Kabushiki Kaisha Embroidery data generating device and computer-readable medium storing embroidery data generating program

Similar Documents

Publication Publication Date Title
US4429364A (en) Sewing machine-pattern data processor
JP3434075B2 (en) Embroidery data processing device
JPH03140187A (en) Data processor for embroidery sewing machine
US6688144B2 (en) Knit design system
EP0684333B1 (en) Method and apparatus for inputting embroidery lines
GB2197735A (en) Sewing machine stitch pattern transformation device
US5311439A (en) Embroidery data processing system and method
JPH02237592A (en) Mosaic embroidery data preparing device
JPH02277488A (en) Method and device for creating sewing data of sewing machine
JP2903630B2 (en) Embroidery data processing device
JP2739088B2 (en) Cross stitch embroidery data automatic creation device
JPH11104373A (en) Embroidery sewing machine
JP2940230B2 (en) Embroidery data creation device
JPH10108987A (en) Method and device for editing sewing data
US5355319A (en) Pattern data processing apparatus for sewing machine
US5748480A (en) Embroidery data processing apparatus
JP3733626B2 (en) Embroidery data processing device
EP0761860A2 (en) Embroidery data generating system
JP3623276B2 (en) 3D image display method
Zaharieva-Stoyanova et al. CAD module for knitting patterns design
JP3083552B2 (en) Hierarchy editing processor
JPH09137357A (en) Making of embroidery data
JP2884844B2 (en) Data processing device for embroidery sewing machine
JPH10263230A (en) Embroidery pattern preparing device
JP2874289B2 (en) Substrate CAD system