JPS6142593B2 - - Google Patents

Info

Publication number
JPS6142593B2
JPS6142593B2 JP8270882A JP8270882A JPS6142593B2 JP S6142593 B2 JPS6142593 B2 JP S6142593B2 JP 8270882 A JP8270882 A JP 8270882A JP 8270882 A JP8270882 A JP 8270882A JP S6142593 B2 JPS6142593 B2 JP S6142593B2
Authority
JP
Japan
Prior art keywords
point
data
key
needle drop
block
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.)
Expired
Application number
JP8270882A
Other languages
Japanese (ja)
Other versions
JPS58198378A (en
Inventor
Hiroaki Shinomya
Minetoshi Noguchi
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.)
Juki Corp
Original Assignee
Tokyo Juki Industrial Co 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 Tokyo Juki Industrial Co Ltd filed Critical Tokyo Juki Industrial Co Ltd
Priority to JP8270882A priority Critical patent/JPS58198378A/en
Publication of JPS58198378A publication Critical patent/JPS58198378A/en
Publication of JPS6142593B2 publication Critical patent/JPS6142593B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 この発明は、内外周を同心円とした輪郭線内に
刺繍縫目を形成するように内外周の輪郭線上に交
互に各別に等間隔の針落ち点を設定する刺繍ミシ
ンの針落ち制御方法に関し、外周に対する内周の
径の比率が所定値より小さく且つ内周の針落ち間
隔が所定長さより短かいときの制御方法に関する
ものである。
Detailed Description of the Invention The present invention provides an embroidery sewing machine that alternately sets needle drop points at equal intervals on the contour line of the inner and outer circumferences so as to form embroidery stitches within the contour line with the inner and outer circumferences being concentric circles. This invention relates to a needle drop control method when the ratio of the diameter of the inner circumference to the outer circumference is smaller than a predetermined value and the needle drop interval on the inner circumference is shorter than a predetermined length.

従来、上記のようなミシンにより、内外周の輪
郭線上に交互に針落ちがされるように刺繍縫いを
行なうと、内周の径が小さい場合等に針落ち点が
密集して団子状となり、目づまり等をおこして縫
い上がり品質が著しく低下する欠点を生じた。
Conventionally, when embroidery is sewn using a sewing machine such as the one described above so that the needle drops are alternately placed on the contour lines of the inner and outer peripheries, the needle drop points become densely packed and form a dumpling when the diameter of the inner periphery is small. This resulted in the disadvantage that the quality of finished stitching deteriorated significantly due to clogging, etc.

この発明は、上記従来の欠点を除去することを
目的とする。
The present invention aims to eliminate the above-mentioned conventional drawbacks.

この発明の実施例を図面により説明する。1は
平坦な上面1aをもつ基台であり、上面1a上に
はベツド面2aを上面1aと同一平面とするよう
にミシン2を載置し、ミシン2は主軸(図示しな
い)と同一軸線上に設置した駆動モータ3に連動
して針4を上下動する。5は支持枠であり、布を
張設して保持する刺繍枠6を着脱可能に枠内に支
持し、支持枠5は基台1内方に配設したステツピ
ングモータ等の駆動手段(図示しない)に連動
し、上面1aをミシン主軸の軸線方向に沿うX方
向及び軸線方向との交乂方向に沿うY方向との合
成方向へ移動可能とする。7はフロツピー読み取
り手段であり、フロツピーデイスク(図示しな
い)を着脱可能とする差し込み部7aを有して差
し込まれたフロツピーデイスクのデータを読み取
る。8はキーボードであり、読み取り手段におい
て読み取つたフロツピーデータの読み出し及びミ
シン2の縫い動作や支持枠5の移動制御等に関す
るデータのフロツピーデーターへの書き込み等の
ためのキー操作群9と、操作キー群9のキー操作
に関連して入力または出力したデータを文字表示
する表示部10とをもつ。
Embodiments of the invention will be described with reference to the drawings. Reference numeral 1 denotes a base having a flat upper surface 1a, and a sewing machine 2 is mounted on the upper surface 1a so that the bed surface 2a is on the same plane as the upper surface 1a.The sewing machine 2 is mounted on the same axis as the main shaft (not shown). The needle 4 is moved up and down in conjunction with a drive motor 3 installed at. Reference numeral 5 denotes a support frame, which removably supports an embroidery frame 6 for holding cloth stretched thereon. (not), the upper surface 1a can be moved in a composite direction of the X direction along the axial direction of the main shaft of the sewing machine and the Y direction along the intersecting direction with the axial direction. Reference numeral 7 denotes a floppy reading means, which has an insertion portion 7a that allows a floppy disk (not shown) to be attached or removed, and reads data from an inserted floppy disk. Reference numeral 8 denotes a keyboard, which includes a group of key operations 9 for reading out the floppy data read by the reading means and writing data related to sewing operations of the sewing machine 2, movement control of the support frame 5, etc. to the floppy data, etc. It has a display section 10 that displays data input or output in relation to key operations of the key group 9 in characters.

11は周知のタブレツト(座標読み取り装置)
であり、コードを介してカーソル(読み取り器)
12を接続する。カーソル12は一端に上下に貫
通した窓孔に対し中心部に十字形の印13aを記
した透明なガラス13をはめこみ、他端の上面に
十六箇の操作キー14を配列し、各操作キー14
の操作時に信号発生を確認するために点灯するラ
ンプ15を設ける。タブレツト11上面にカーソ
ル12を載置すると、その載置位置における十字
形の印13aの交点に対応するタブレツト11上
面上の位置座標が検出され(第2図参照)、操作
キー14の操作に関連してその位置座標を読み取
り、各座標に各別に対応した座標信号を発生す
る。
11 is a well-known tablet (coordinate reading device)
and the cursor (reader) through the code
Connect 12. The cursor 12 has a transparent glass 13 with a cross-shaped mark 13a in the center inserted into a window hole penetrating vertically at one end, and sixteen operation keys 14 arranged on the top surface of the other end. 14
A lamp 15 is provided that lights up to confirm the generation of a signal during operation. When the cursor 12 is placed on the top surface of the tablet 11, the position coordinates on the top surface of the tablet 11 corresponding to the intersection of the cross-shaped marks 13a at the placement position are detected (see FIG. 2), and are related to the operation of the operation keys 14. The position coordinates are read and a coordinate signal corresponding to each coordinate is generated.

16は制御装置であり、CRT表示を行なう表
示手段17、及び基本データを書き込むシステム
フロツピーデイスク(システムデイスク)を着脱
可能とする差し込み部18aとフロツピー読み取
り手段7に読し取らすデータを書き込むデータフ
ロツピーデイスク(データデイスク)を着脱可能
とする差し込み部18bとをもち、各フロツピー
デイスクに書き込みまたは読し出しを行なうフロ
ツピー制御手段18、及び複数のキーをもつ操作
手段19、及びROM,RAM,CPU等をもつ制御
回路(図示しない)とからなり、制御回路には後
述するように第4図に示すフローに基づくプログ
ラムが記憶されている。第4図のフローにおい
て、システムデイスクより図形入力修正プログラ
ム「PTIN1」を読み込み、その「PTIN1」を処
理したデータを入力時にはシステムデイスクに書
き込み、修正時にはシステムデイスクから一度書
き込んだ処理データを読し出して修正を行ない、
再度システムデイスクに処理データとして書き直
す。「PTIN1」を処理してから表示指令の有無を
判断し、表示指令が出たときにシステムデイスク
より入力パターン表示プログラム「PTDIP」を
読み込み、その「PTDIP」に基づいてシステム
デイスクからの前記処理データを表示手段17に
CRT表示する。「PTDIP」の処理後または表示指
令がないときは修正の有無を判断し、修正時には
前記したプログラム「PTIN1」に基づく修正処
理データの再書き込みを行なう。修正のないとき
はシステムデイスクより針落ち座標計算出力プロ
グラム「PTOUT」を読み込み、システムデイス
クの処理データを処理してその処理結果、即ち針
落ち座標等のデータをデータデイスクに書き込み
フローを終える。
Reference numeral 16 denotes a control device including a display means 17 for performing CRT display, an insertion section 18a for removably attaching a system floppy disk (system disk) for writing basic data, and data for writing data to be read into the floppy reading means 7. It has an insertion part 18b that allows a floppy disk (data disk) to be attached or removed, a floppy control means 18 for writing to or reading from each floppy disk, an operation means 19 having a plurality of keys, and ROM, RAM. , a CPU (not shown), and a program based on the flow shown in FIG. 4 is stored in the control circuit as described later. In the flow shown in Figure 4, the graphic input correction program "PTIN1" is read from the system disk, the processed data of "PTIN1" is written to the system disk when inputting, and the processed data once written is read from the system disk when making corrections. and make the corrections.
Rewrite the process data to the system disk again. After processing "PTIN1", it is determined whether there is a display command, and when a display command is issued, the input pattern display program "PTDIP" is read from the system disk, and the above-mentioned processed data from the system disk is read based on the "PTDIP". to the display means 17
Display on CRT. After processing "PTDIP" or when there is no display command, it is determined whether or not there is a modification, and when modification is performed, the modified processing data is rewritten based on the program "PTIN1" described above. If there is no correction, the needle drop coordinate calculation output program ``PTOUT'' is read from the system disk, the processing data on the system disk is processed, and the processing results, that is, data such as needle drop coordinates, are written to the data disk and the flow is completed.

図面入力修正プログラム(PTIN1)について
さらに第5図フローにおいて説明する。読み込む
データが新規入力か、即ち修正か否かを判断し、
新規の場合には、タブレツト11上において読み
取られる原図が何倍に拡大されたものかをカーソ
ル12からのキー入力により読み込む。この倍率
の入力はカーソル12の「1」〜「9」の数字キ
ーによつて行なわれ、例えば「4」を入力したと
きは「1」を入力したときに較べスケールは1/4
倍になる。そして次に、「基線」の決定を行う。
基線とは、針落ち点をプロツトするために予め指
定する基準のXn座標であり、第3図Aに示すよ
うにタブレツト11のもつ絶対X座標との傾斜角
θで特徴づけられる。この傾斜角θの決定は、第
10図のフローに基づき、カーソル12により次
のように行なわれる。即ち、カーソル12の印1
3aを絶対座標の(Xa,Ya)点にあわせてキー
14aを押すことにより先ず(Xa,Ya)点の座
標を読み込み、次に(Xa,Ya)点から離隔する
(Xb,Yb)点でキー14aを押すことにより
(Xb,Yb)点の座標を読み込む。これらから、
X軸方向の距離LX=Xb−Xa及びy軸方向の距離
LY=Yb−Yaが演算され、続いてLXY=√(−
Xa)2(Yb−Ya)2が演算されて、cosθ=LX/
LXY,sinθ=LY/LXYが決定され、今後は絶対
座標Xに対してθ傾斜した基線がX軸となる。こ
の基線Xnと絶対座標(X,Y)とはXn=Xcosθ
−Ysinθの関係にある。こうして座標変換係数
cosθ,sinθが決定されると、次には第11図の
フローに基づき、データの読み取り動作に入る。
The drawing input correction program (PTIN1) will be further explained with reference to the flowchart in FIG. Determine whether the data to be read is new input or modification,
In the case of a new drawing, the number of times the original image read on the tablet 11 has been enlarged is read by key input from the cursor 12. This magnification is entered using the numeric keys "1" to "9" of the cursor 12. For example, when "4" is entered, the scale is 1/4 compared to when "1" is entered.
Double. Next, a "baseline" is determined.
The base line is a standard Xn coordinate specified in advance for plotting the needle drop point, and is characterized by an inclination angle θ with respect to the absolute X coordinate of the tablet 11, as shown in FIG. 3A. The inclination angle θ is determined as follows using the cursor 12 based on the flow shown in FIG. That is, mark 1 of cursor 12
By aligning 3a with the (Xa, Ya) point of the absolute coordinates and pressing the key 14a, first read the coordinates of the (Xa, Ya) point, and then read the coordinates of the (Xb, Yb) point away from the (Xa, Ya) point. By pressing the key 14a, the coordinates of the point (Xb, Yb) are read. From these,
Distance in the X-axis direction LX = Xb - Xa and distance in the y-axis direction
LY=Yb−Ya is calculated, followed by LXY=√(−
Xa) 2 (Yb−Ya) 2 is calculated and cosθ=LX/
LXY, sin θ=LY/LXY is determined, and from now on, the base line tilted θ with respect to the absolute coordinate X will be the X axis. This baseline Xn and absolute coordinates (X, Y) are Xn=Xcosθ
The relationship is −Ysinθ. Thus the coordinate transformation coefficient
Once cos θ and sin θ are determined, data reading operation is started based on the flow shown in FIG.

本実施例では、後の作用で詳述するように、原
図の読み込みに際して、例えば第3図Bに示すよ
うに原図を複数のブロツクに分割している。第1
1図のフローの「縫いの種類の選択」における
「縫いの種類」とは、本実施例においては、模様
縫い、刺繍縫い、ジヤンプの三種類であり、それ
ぞれカーソル12のキー14k、キー14、キ
ー14mによつて指示する。模様縫いとは、第1
2A図に示すようにパターンの輪郭のみを縫うこ
とであり、刺繍縫いとは第12B図のようにパタ
ーンの内部を縫糸で埋め尽すことであり、ジヤン
プとは、第12C図に示すようにP1点から針落ち
することなくP2点まで縫目が進むことである。点
数カウンタとは、例えば第3図に示すように、1
ブロツク内の点を1〜5と順次加算してゆくため
のカウンタであり、先ずその計数値Pを「0」に
セツトし、カーソル12により点の読み取りを行
う毎に計数値Pを「1」だけカウントアツプる。
次に、「全点終了」、即ちブロツクの読み取りが終
了か否かの判断を行う。カーソル12の「14n」
キーが押された時点でブロツクの読み取りの終了
が判断される。「全点終了」に至つていないな
ら、「ブロツク再読取」か否かを判断する。「ブロ
ツク再読取」とは、作業者の操作ミスにより不本
意な点が読み込まれた場合に、ブロツク全体のデ
ータを修正するために作業者がカーソル12のキ
ー14jを押した場合である。キー14jが押さ
れらると、ブロツク内のすべての点のデータがク
リアされて、データを始めから読み直す必要があ
る。キー14jが押されていないなら、「前点入
力ミス」を判断する。「前点入力ミス」とは今入
力したデータが誤りであり、そのデータを修正す
るために作業者がカーソル12のキー14iを押
した場合である。キー14iが押されると点数カ
ウントの計数値Pが「2」だけカウントダウンし
た後「1」だけカウントアツプするから一つ前の
データがクリアされてそこに正しいデータを読み
込むことが可能となる。キー14jもキー14i
も押されないときに、直ちに以下に示す「直
線」、「円」、または「円弧」の読み取り動作に入
る。
In this embodiment, as will be explained in detail later, when reading the original image, the original image is divided into a plurality of blocks as shown in FIG. 3B, for example. 1st
In this embodiment, the "sewing type" in "sewing type selection" in the flowchart of FIG. 1 is three types: pattern stitching, embroidery stitching, and jump. Instruct by key 14m. Pattern sewing is the first
Embroidery stitching refers to sewing only the outline of the pattern as shown in Figure 2A, embroidery stitching refers to filling the inside of the pattern with sewing thread as shown in Figure 12B, and jump refers to sewing the outline of the pattern as shown in Figure 12C. This means that the stitch progresses from point 1 to point P2 without the needle dropping. For example, as shown in FIG.
This is a counter that sequentially adds up the points in the block from 1 to 5. First, the count value P is set to "0", and each time a point is read with the cursor 12, the count value P is set to "1". Only the count is up.
Next, it is determined whether "all points have been completed", that is, whether reading of the block has been completed. “14n” at cursor 12
The end of reading the block is determined when the key is pressed. If "all points completed" has not been reached, it is determined whether "block rereading" is to be performed. "Block rereading" is a case where the operator presses the key 14j of the cursor 12 to correct the data of the entire block when an undesired point is read due to an operator's operational error. When key 14j is pressed, the data for all points within the block is cleared and the data must be reread from the beginning. If the key 14j is not pressed, it is determined that there is a "previous point input error". A "previous point input error" is a case where the data that has just been input is incorrect and the operator presses the key 14i of the cursor 12 to correct the data. When the key 14i is pressed, the count value P of the point count counts down by ``2'' and then counts up by ``1'', so that the previous data is cleared and it becomes possible to read the correct data there. Key 14j and key 14i
When neither is pressed, the "straight line", "circle", or "arc" reading operation shown below immediately begins.

本実施例においては、一つのブロツクの縁を構
成する個々の辺(直線)、円弧、及び円をそれぞ
れユニツトと称する。直線がその両端の二点によ
り決定され、円及び円弧が同一線上にない三点に
より決定されることは周知であり、本実施例にお
けるユニツトの決定には、この幾何学的性質が利
用されている。即ち、例えば円弧を決定すべき点
が一点しかなかつたり、逆に四点以上ある場合は
エラーと見做すべきことになり、そのようなチエ
ツクは第13図のフローにより行なわれる。
In this embodiment, each side (straight line), circular arc, and circle forming the edge of one block is referred to as a unit. It is well known that a straight line is determined by two points at both ends of the line, and circles and arcs are determined by three points that are not on the same line, and this geometric property is utilized to determine the units in this example. There is. That is, for example, if there is only one point to determine an arc, or conversely if there are four or more points, it should be regarded as an error, and such a check is performed according to the flow shown in FIG.

カーソル12において、直線の指定はキー14
bに、円弧の指定はキー14cに、円の指定はキ
ー14dにそれぞれ対応している。カーソル12
によるこれら各別の指定操作は第13図のフロー
の中で説明する。
At cursor 12, specify a straight line using key 14.
b, the designation of an arc corresponds to the key 14c, and the designation of a circle corresponds to the key 14d, respectively. cursor 12
These different designating operations will be explained in the flowchart of FIG. 13.

第13図において、先ず以下で用いる「直線個
数」「円弧点数」「円点数」「円弧個数」「円個数」
の各カウンタの計数値を予め「0」にセツトす
る。そして以下、カーソル12のキー14b,キ
ー14cまたはキー14dの操作に関連してそれ
ぞれ「直線個数」、「円弧点数」または「円点数」
カウンタを「1」だけカウントアツプする。「直
線個数」カウンタが「1」だけカウントアツプす
ると、「円弧点数」カウンタの計数値が判断され
る。例えば第14図のような点P1〜P4を入力する
場合、P1〜P3が円弧でありP3〜P4が直線であると
する。カーソル12の印13aを点P1に一致させ
てキー14cを押し、次に、印13aを点P2に一
致させてキー14cを押すと、「円弧点数」カウ
ンタの計数値は「2」となる。このとき、印13
aを点P3にあててキー14bを押すと、点P1
P2,P3により円弧が1つ決定されるから「円弧個
数」カウンタの計数値が「1」だけ、カウントア
ツプするとともに、一つの円弧の決定が終了した
ことにより、「円弧点数」カウンタは「0」にク
リアされる。この場合は正常であるから、第13
図のフローのチエツク機能は作動しない。ところ
が、「円弧点数」カウンタが「1」の時点で、即
ち第15図に示すように、P1を入力した時点でカ
ーソル12の印13aを点P2に一致させて直線を
指示するキー14bを押してしまうと、P1とP2
では円弧を決定することができないから、ブザー
が鳴りデータ入力のミスが報告される。この場合
には第11図のフローにより、カーソル12のキ
ー14jまたはキー14yを押してデータを修正
する必要がある。また、第16図において、点
P1,P2でともにキー14Cを押して、点P3でもキ
ー14Cを押した場合には、点P1,P2,P3により
円弧が決定されて「円弧個数」カウンタの計数値
が「1」カウントアツプされることは上記と同様
であるが、点P3は円弧の最終であるとともに次の
円弧の始点と見做され、「円弧個数」カウンタの
計数値は「0」でなく「1」となり、エラーとは
ならない。また、第17図において、点P1,P2
P3でともにキー14dを押すと、円点数カウンタ
の計数値は「3」となつて、点P1,P2,P3により
円が決定されるので「円個数」カウンタの計数値
が「1」だけカウントアツプされる。そこでも
し、円中の点P4にカーソル12の印13aを一致
させてキー14dを押すと、「円点数」カウンタ
の計数値がさらに「1」だけカウントアツプされ
て「4」となるが、本実施例においては、第18
図に示すように点P4を通り点P1,P2,P3と同心な
円が形成されるのでこれはエラーとは見做されな
い。しかし、「円点数」カウンタの計数値がさら
に「1」だけカウントアツプされて「5」となる
と、点が多すぎることになるのでブザーが鳴つて
エラーが報知される。
In Figure 13, first of all, "number of straight lines,""number of arc points,""number of circle points,""number of arcs," and "number of circles" used below.
The count value of each counter is set to "0" in advance. Then, in connection with the operation of the key 14b, key 14c, or key 14d of the cursor 12, the "number of straight lines", "number of arc points", or "number of circle points" will be described, respectively.
Count up the counter by 1. When the "number of straight lines" counter counts up by "1", the counted value of the "number of arc points" counter is determined. For example, when inputting points P 1 to P 4 as shown in FIG. 14, it is assumed that P 1 to P 3 are circular arcs and P 3 to P 4 are straight lines. If you align the mark 13a of the cursor 12 with point P1 and press the key 14c, then align the mark 13a with point P2 and press the key 14c, the count value of the "arc point" counter will be "2". Become. At this time, mark 13
When you put a on point P 3 and press key 14b, points P 1 ,
Since one arc is determined by P 2 and P 3 , the count value of the "Number of arcs" counter increases by "1", and since the determination of one arc is completed, the "Number of arc points" counter increases by "1". Cleared to "0". In this case, it is normal, so the 13th
The flow check function in the diagram does not work. However, when the "arc point number" counter is "1" , that is, when P 1 is input, as shown in FIG. If you press , the arc cannot be determined using P 1 and P 2 , so a buzzer sounds and a data entry error is reported. In this case, it is necessary to correct the data by pressing the key 14j or the key 14y of the cursor 12 according to the flow shown in FIG. Also, in Figure 16, the point
If you press the key 14C at both points P 1 and P 2 , and also press the key 14C at point P 3 , the arc is determined by points P 1 , P 2 , and P 3 , and the count value of the "Number of arcs" counter becomes "1" is counted up in the same way as above, but point P 3 is considered to be the final point of the arc and the starting point of the next arc, and the count value of the "Number of arcs" counter is not "0" but "1" and is not an error. Also, in FIG. 17, points P 1 , P 2 ,
When both keys 14d are pressed at P 3 , the count value of the yen point number counter becomes "3", and since a circle is determined by points P 1 , P 2 , and P 3 , the count value of the "yen number" counter becomes "3". 1” is counted up. So, if you align the mark 13a of the cursor 12 with the point P4 in the circle and press the key 14d, the count value of the "Number of circle points" counter will be counted up by "1" and become "4". In this example, the 18th
As shown in the figure, a circle passing through point P4 and concentric with points P1 , P2 , and P3 is formed, so this is not considered an error. However, when the count value of the "yen score" counter is further incremented by "1" and reaches "5", there are too many points, and a buzzer sounds to notify an error.

こうして、全点のチエツクが終了すると、その
終点における「円弧点数」カウンタの計数値を判
断し、その計数値が「0」であれば既に円弧が完
結しているので次の第17図のフローに進む。ま
た第19図に示すように最終点Pよりも一つ前
の点P−1における「円弧点数」カウンタの計
数値が「2」であれば、最終点Pにおいて、カ
ーソル12のキー14nにより入力されるデータ
と点P−2,P−1の三つのデータにより円
弧を完成させて円弧を一つ完結させ、「円弧個
数」カウンタの計数値を「1」だけカウントアツ
プする。ところがもし、点P−1で「円弧点
数」カウンタが「1」であれば最終点Pにより
円弧を完結することが不可能になるからブザーを
鳴らしてエラーを報知する。
In this way, when all points have been checked, the count value of the "arc point number" counter at the end point is judged, and if the count value is "0", the arc has already been completed, so the next flowchart in Figure 17 is shown. Proceed to. Further, as shown in FIG. 19, if the count value of the "arc point number" counter at the point P-1 immediately before the final point P is "2", then at the final point P, the input is made using the key 14n of the cursor 12. The circular arc is completed using the data at the point P-2 and the three data at points P-2 and P-1 to complete one circular arc, and the count value of the "number of circular arcs" counter is counted up by "1". However, if the "arc point number" counter is "1" at point P-1, it will be impossible to complete the arc at the final point P, so a buzzer will sound to notify an error.

第20図は、第11,12図により入力した点
のデータを直線、円弧、または円の複数のユニツ
トに分割し、各ユニツトに対し、後述する針落ち
点の計算に利用する構成データを与えるためのフ
ローである。ここでユニツト個数とは第16図の
フローにおける{直線個数」カウンタ、「円弧個
数」カウンタ及び「円個数」カウンタの計数値の
総和である。
Figure 20 shows how the point data input in Figures 11 and 12 is divided into multiple units of straight lines, circular arcs, or circles, and configuration data used in calculating the needle drop point described later is given to each unit. This is the flow for Here, the number of units is the sum of the counts of the {number of straight lines'' counter, ``number of circular arcs'' counter, and ``number of circles'' counter in the flow shown in FIG.

構成データとは、各ユニツトに個別に対するD
(X,1)〜D(X,5)の5個の数字である。
Xは、各ユニツトを識別するための続き番号であ
る。先ずD(X,1)はユニツトの種類を示すた
めのコードであり、直線では「0」、円弧では
「1」、円では「72」と与えられる。D(X,2)
には、そのユニツトの始点となる点の番号(第3
図B参照)を与え、D(X,3)にはそのユニツ
トの中点となる点の番号を与える。但し、直線ユ
ニツトは中点をもたないので、便宜的に「−1」
を与える。D(X,4)にはそのユニツトの終点
となる点の番号を与える。とくに、ブロツクの最
終のユニツトが直線であると、そのユニツトの終
点はブロツクの始点に一致するため、J=0とお
いて、D(X,4)=0+1=1、且つJ=0+
1=1に戻す。ブロツクの最後のユニツトが円弧
である場合にも、そのユニツトの終点がブロツク
の始点に一致するため、先ずJ=−1とおいて、
D(X,4)=−1+2=1かつ−1+2=1に
戻す。こうしてデータチエツク及び各ユニツトへ
の構成データの付与が1ブロツクに亘つて終了す
ると、第5図のフローに戻つて「振り」及び「ピ
ツチ」の指定入力を行う。「ピツチ」はカーソル
12の数字キー14a〜14jを用いて0.1mm単
位で行う。例えばキー14b、キー14cと続け
て押すと針落ち点間のピツチとして0.1×12=1.2
mmが設定される。
Configuration data refers to the D
They are five numbers (X, 1) to D(X, 5).
X is a serial number for identifying each unit. First, D(X, 1) is a code to indicate the type of unit, and is given as ``0'' for a straight line, ``1'' for a circular arc, and ``72'' for a circle. D(X, 2)
is the number of the starting point of the unit (the third
(see Figure B), and D(X, 3) is the number of the midpoint of the unit. However, since a straight line unit does not have a midpoint, it is conveniently set to "-1".
give. D(X, 4) is given the number of the end point of the unit. In particular, if the final unit of a block is a straight line, the end point of that unit coincides with the start point of the block, so if J=0, D(X,4)=0+1=1 and J=0+
Return to 1=1. Even if the last unit of the block is an arc, the end point of that unit coincides with the start point of the block, so first set J = -1,
Return D(X,4)=-1+2=1 and -1+2=1. When the data check and the assignment of configuration data to each unit are completed for one block, the process returns to the flow shown in FIG. 5 and the designations of "swing" and "pitch" are input. "Pitch" is performed in units of 0.1 mm using the numerical keys 14a to 14j of the cursor 12. For example, if you press key 14b and key 14c in succession, the pitch between the needle drop points will be 0.1 x 12 = 1.2.
mm is set.

続いて、カーソル12を用いて1ブロツク内に
おける「振り」が指定される。本実施例において
は、「振り」には第30図に示すような「方向指
定」、第36図に示すような「中振り」の二種類
がある。「方向指示」においては、図示しないが
第10図と同様のフローに基づき、カーソル12
のキー14aを先ず一度押し、次にカーソル12
の印13aを移動してキー14aを再び押すこと
による基線Xn(第3図)に対する振り方向が決
定される。また、「中振り」はカーソル12のキ
ー14hを押すことによつて指定される。
Next, the cursor 12 is used to specify the "swing" within one block. In this embodiment, there are two types of "swings": "direction designation" as shown in FIG. 30, and "medium swing" as shown in FIG. 36. In "direction indication", although not shown, the cursor 12 is
First press the key 14a once, then move the cursor 12
By moving the mark 13a and pressing the key 14a again, the swing direction with respect to the base line Xn (FIG. 3) is determined. Further, "medium swing" is specified by pressing the key 14h of the cursor 12.

こうして1ブロツクのデータ読み取りが完了す
るとその原図(パターン)の全ブロツクのデータ
読み取りが完了したか否かを完了指令の有無、即
ちカーソル12のキー14nが二回続けて押され
たか否かにより判断し、その完了時にはそれらの
データをデータデイスクへ登録する際の登録番号
(パターンNo.)に関する指令入力を読み込み、こ
れに「PTIN1」で処理したデータをパターンデ
ータとしてシステムデイスクに格納する。
When data reading of one block is completed in this way, it is determined whether data reading of all blocks of the original pattern (pattern) has been completed or not based on the presence or absence of a completion command, that is, whether or not the key 14n of the cursor 12 has been pressed twice in succession. When the process is completed, the command input regarding the registration number (pattern number) when registering those data on the data disk is read, and the data processed with "PTIN1" is stored in the system disk as pattern data.

次に入力パターン表示プログラム「PTDIP」
について第6図のフローに沿つて説明する。
Next, input pattern display program "PTDIP"
will be explained along the flow shown in FIG.

パターン入力修正プログラム「PTIN1」によ
り格納したパターンデータをシステムデイスクよ
り読み込み、そのデータのX,Y軸の最大値
XMAX,YMAX、及び最小値XMIN,YMINを選
出する。即ち、第21,22図のフローにおい
て、先ず1パターン中のデータをロードし、その
第1ブロツクの最初の点(X(1),Y(1))を
以つて一たんXMAX=X(1),XMIN=X
(1),YMAX=Y(1),YMIN=Y(Y1)と代
入する。次に第1ブロツク内の次の点(X
(2),Y(2)とXMAX,XMIN,YMAX,
YMINとの大小を比較し、XMIN>X(2)なら
XMIN=X(2),XMAX<X(2)ならXMAX
=X(2)YMIN>Y(2)ならYMIN=Y
(2),YMAX<Y(2)ならYMAX=Y(2)
とおく。この比較を第1ブロツク内の次々の点に
ついて繰り辺し、第1ブロツク内の全点について
その比較が終了すると次のブロツクのデータを読
み出してさらに比較を行う。すると全ブロツクに
ついてこれらの比較が終了した時点でXMAX,
XMINはそれぞれ1パターンにおける全ブロツク
中のデータのX座標の最大値、最小値を示し、
YMAX,YMINはそれぞれY座標の最大値、最小
値を示す。そこで、LX=XMAX−XMIN,LY=
YMAX−YMINによりデータのX,Y方向の広が
りLX,LYを演算し、MX=XMIN+LX/2,MY
=XMIN+LY/2によりデータの中心座標を演
算する。また、LX,LYのうち大きい方をLXYと
おき、このLXYの値に反比例してスケーリング
することにより、原パターンの大きさに拘らず一
定のスケールでパターンをCRTに表示するよう
にする。
Read the pattern data stored by the pattern input correction program "PTIN1" from the system disk, and calculate the maximum values of the X and Y axes of that data.
Select XMAX, YMAX, and minimum values XMIN, YMIN. That is, in the flows shown in Figures 21 and 22, first load the data in one pattern, then use the first point (X(1), Y(1)) of the first block to immediately calculate XMAX=X(1). ), XMIN=X
Substitute (1), YMAX=Y(1), YMIN=Y(Y1). Next, the next point in the first block (X
(2), Y(2) and XMAX, XMIN, YMAX,
Compare the size with YMIN, and if XMIN>X(2)
If XMIN=X(2), XMAX<X(2) then XMAX
If =X(2)YMIN>Y(2) then YMIN=Y
(2), if YMAX<Y(2) then YMAX=Y(2)
far. This comparison is repeated for successive points within the first block, and when the comparison is completed for all points within the first block, the data of the next block is read out and further comparison is performed. Then, when these comparisons are completed for all blocks, XMAX,
XMIN indicates the maximum and minimum values of the X coordinate of data in all blocks in one pattern, respectively.
YMAX and YMIN indicate the maximum value and minimum value of the Y coordinate, respectively. Therefore, LX=XMAX−XMIN, LY=
Calculate the spread LX, LY of the data in the X and Y directions using YMAX−YMIN, MX=XMIN+LX/2, MY
Calculate the center coordinates of the data using =XMIN+LY/2. Further, by setting the larger of LX and LY as LXY and scaling in inverse proportion to the value of LXY, the pattern is displayed on the CRT at a constant scale regardless of the size of the original pattern.

スケーリングが終了すると第23,24図のブ
ロツク毎の表示ルーチンに入る。第23図のフロ
ーにおいて、1ブロツクのデータを読み出して前
記SCLの値に基づきデータのスケールを拡大また
は縮小した後、1ブロツク内において最初のユニ
ツトが直線、円弧、または円のうちどれであるか
を判断する。ユニツトが直線であれば、始点と終
点とをマークしてその間を直線で結ぶ。また、円
または円弧である場合には、その始点P1=(X1
Y1)、中点P2=(X2,Y2)、終点P3=(X3,Y3)をプ
ロツトし、第25図のフローに基づき中心座標
(X0,Y0)及び半径Rを算出する。即ち、第23
図のフローにおいて、P1,P2を通る直線L1
(X−X1)(Y2−Y1)=(Y−Y1)(X2−X1)及び
P2,P3を通る直線L2:(X−X2)(Y3−Y2)=(Y
−Y2)(X3−X2)を定める。このとき、L1とL2
が平行、即ち(Y2−Y1)/(X2−X1)=(Y3
Y2)/(X3−X2)であれば三点が同一直線上にあ
るため円または円弧は形成できないからフローは
リータンする。この場合は円または円弧を決定す
るためのデータを入力し直す必要がある。さて、
L1とL2とが平行でないならP1,P2の中点を通
り、L1に垂直な直線L1′:−〔X−(X1+X2)/
2〕(X2−X1)=〔Y−(Y1+Y2)/2〕(Y2−Y1
及びP2,P3の中点を通り、L2に垂直な直線L2′:
−〔X−(X2+X3)/2〕(X3−X2)〔Y−(Y2
Y3)/2〕(Y3−Y2)を定めて、L1′とL2′の交点
(X0,Y0)を次のようにしてもとめる。
When scaling is completed, the display routine for each block shown in FIGS. 23 and 24 is entered. In the flow shown in Figure 23, after reading one block of data and enlarging or reducing the scale of the data based on the SCL value, it is determined whether the first unit in one block is a straight line, an arc, or a circle. to judge. If the unit is a straight line, mark the start and end points and connect them with a straight line. In addition, if it is a circle or an arc, its starting point P 1 = (X 1 ,
Y 1 ), midpoint P 2 = (X 2 , Y 2 ), and end point P 3 = (X 3 , Y 3 ), and based on the flow in Figure 25, center coordinates (X 0 , Y 0 ) and radius are plotted. Calculate R. That is, the 23rd
In the flow shown in the figure, the straight line L 1 passing through P 1 and P 2 :
(X- X1 )( Y2 - Y1 )=(Y- Y1 )( X2 - X1 ) and
Straight line L 2 passing through P 2 and P 3 : (X - X 2 ) (Y 3 - Y 2 ) = (Y
−Y 2 ) (X 3 −X 2 ). At this time, L 1 and L 2 are parallel, that is, (Y 2 − Y 1 )/(X 2 − X 1 ) = (Y 3
If Y 2 )/(X 3 −X 2 ), the three points are on the same straight line, so a circle or arc cannot be formed, so the flow returns. In this case, it is necessary to re-enter the data for determining the circle or arc. Now,
If L 1 and L 2 are not parallel, a straight line L 1 ′ passing through the midpoint of P 1 and P 2 and perpendicular to L 1 : −[X−(X 1 +X 2 )/
2] (X 2 - X 1 ) = [Y - (Y 1 + Y 2 )/2] (Y 2 - Y 1 )
and a straight line L 2 ′ that passes through the midpoint of P 2 and P 3 and is perpendicular to L 2 :
−[X−(X 2 +X 3 )/2](X 3 −X 2 )[Y−(Y 2 +
Y 3 )/2] (Y 3 −Y 2 ), and find the intersection (X 0 , Y 0 ) of L 1 ′ and L 2 ′ as follows.

この交点(X0,Y0)が円または円弧の中心座標と
なるので、R=√(102+(002により
半径Rを計算する。
Since this intersection (X 0 , Y 0 ) is the center coordinate of the circle or arc, the radius R is calculated by R=√( 10 ) 2 +( 00 ) 2 .

ユニツトが円であれば、中心座標(X0,Y0)と
半径Rに基づき直ちに円を描くが、円弧の場合は
方向角が限定されているので、さらにその方向角
AG1,AG2を演算する。即ち、 AG1=tan-1〔(Y1−Y0)/(X1−X0)〕1 AG2=tan-1〔(Y3−Y0)/(X3−X0)〕 こうして、方向角AG1とAG2の範囲内に円弧を描
く。
If the unit is a circle, a circle is immediately drawn based on the center coordinates (X 0 , Y 0 ) and radius R, but in the case of a circular arc, the direction angle is limited, so the direction angle is
Compute AG 1 and AG 2 . That is, AG 1 = tan -1 [(Y 1 - Y 0 )/(X 1 - X 0 )] 1 AG 2 = tan -1 [(Y 3 - Y 0 )/(X 3 - X 0 )] Thus , draw an arc within the direction angles AG 1 and AG 2 .

上記のようにして1ブロツク内のユニツトを一
つづつCRTに表示していくとともに、第24図
のフローにより1ブロツクの表示の完了に関連し
てブロツクカウンタの計数値Nを「1」だけカウ
ントアツプし、併せてブロツクカウンタの計数値
Nを、今表示を完了したブロツクの近傍に表示す
る。次に、この計数値Nを「6」で割り、その余
りSが0であれば、例えば、「紫」のカラーコー
ドを発生し、S=1であれば「赤」のカラーコー
ドを発生し、S=2であれば「黄」のカラーコー
ドを発生し、S=3であれば「青」のカラーコー
ドを発生し、S=4であれば「緑」のカラーコー
ドを発生し、S=5であれば「白」のカラーコー
ドを発生する。即ち、各ブロツクの輪郭線は順次
に異なる色でCRTに表示される。全ブロツクの
表示の終了時には先に登録したパターンNo.を表示
し、ハードコピー(PRINT)が必要なときはコ
ピーして終える。
As described above, the units in one block are displayed on the CRT one by one, and the count value N of the block counter is counted by "1" in connection with the completion of displaying one block according to the flow shown in Figure 24. At the same time, the count value N of the block counter is displayed near the block that has just been displayed. Next, divide this count value N by "6", and if the remainder S is 0, for example, a "purple" color code is generated, and if S=1, a "red" color code is generated. , if S=2, it will generate a "yellow" color code, if S=3, it will generate a "blue" color code, if S=4, it will generate a "green" color code, and S =5, a "white" color code is generated. That is, the outline of each block is sequentially displayed in a different color on the CRT. When the display of all blocks is finished, the previously registered pattern number is displayed, and if a hard copy (PRINT) is required, it is copied and finished.

次に、針落ち座標計算出力プログラム
「PTOUT」について、第7図のフローに沿つて
説明する。先ず、システムデイスクよりパターン
を読み出し、後述する針落ち座標データを格納す
べきデータデイスクのデータ内容をチエツクして
書き込み容量の有無を確認する。次に、全ブロツ
クのデータ格納の終了を判断し、終了していない
ときには、一ブロツク毎のデータをシステムデイ
スクより読み出し、次に説明する針落ち座標算出
ルーチン(フロー第26〜29図、第35〜37
図の処理を行う。
Next, the needle drop coordinate calculation output program "PTOUT" will be explained along the flowchart of FIG. 7. First, a pattern is read from the system disk, and the data contents of the data disk in which needle drop coordinate data to be described later are to be stored are checked to see if there is a write capacity. Next, it is determined whether data storage for all blocks has been completed, and if it has not been completed, the data for each block is read from the system disk, and the needle drop coordinate calculation routine (flow diagrams 26 to 29 and 35) to be described next is performed. ~37
Process the diagram.

第26図のフローに示すように、針落ち座標算
出には(i)振り方向指定刺繍(ii)中振り刺繍(iii)模様縫
い(iv)飛ばし(ジヤンプ)の四種類があり、このう
ちどの方式で針落ち座標を算出するかは、1ブロ
ツクのデータ読み取り時に、カーソル12のキー
14(刺繍)、キー14k(模様)、またはキー
14m(ジヤンプ)の縫い種類選択操作(第11
図)によつて指定され、第26図フロにより操作
内容を判断されそれぞれのサブルーチンを選択す
る。
As shown in the flowchart in Figure 26, there are four types of needle drop coordinate calculations: (i) embroidery with specified swing direction, (ii) mid-swing embroidery, (iii) pattern stitching, and (iv) jump. To determine whether to calculate the needle drop coordinates using the method, select the stitch type using the cursor 12's key 14 (embroidery), key 14k (pattern), or key 14m (jump) when reading one block of data.
The operation contents are determined according to the flowchart shown in FIG. 26, and each subroutine is selected.

(i)振り方向指定刺繍 第27〜29図のフローに基づき第30図を用
いて説明する。ブロツクB1の始点P1=(X
(1),Y(1)を通り振り方向に平行な直線L1
を定める。今L1を定数a,b,cをもつてaX+
bY+c=0と記すことにする。また、定数c1
もつて点P1を通りL1に垂直な直線DL:−bX+aY
+c1=0を定める。次に刺繍の進行方向をチエツ
クし、例えば第30図ではブロツクB1のデータ
はL1よりも上方にあるから、刺繍を上方に進め
る。次に、針落ち点座標のための二次元のエリア
(U(J),V(J))を用意する。Jは針落ち座
標カウンタの計数値であり、針落ち点が一つ演算
される毎に「1」だけカウントアツプする。初期
状態において先ずJ=1とセツトして、V(1)
=X(1),U(1)=Y(1)と針落ちの第1点
目にはブロツクB1のスタート点P1の座標を格納
する。次に、直線L1を第5図のフローで入力し
た針落ちのピツチP分だけ上方へ平行移動して直
線L2:aX+bY+c−λ=0(λ=P√22
b)とする。すると例えば第28図においては直
線L2はユニツトM1及びユニツトM2とそれぞれ一
点で交わる。
(i) Swing direction specified embroidery This will be explained using FIG. 30 based on the flow of FIGS. 27 to 29. Starting point P 1 of block B 1 = (X
(1), a straight line L 1 passing through Y(1) and parallel to the swing direction
Establish. Now L 1 is aX+ with constants a, b, c
Let us write bY+c=0. Also, a straight line DL passing through point P 1 and perpendicular to L 1 with constant c 1: −bX + aY
+c 1 =0 is determined. Next, check the direction in which the embroidery will proceed. For example, in FIG. 30, the data of block B1 is above L1 , so the embroidery will proceed upward. Next, a two-dimensional area (U(J), V(J)) for needle drop point coordinates is prepared. J is the count value of the needle drop coordinate counter, which counts up by "1" every time one needle drop point is calculated. In the initial state, first set J = 1 and then set V(1)
=X(1), U(1)=Y(1), and the coordinates of the starting point P1 of block B1 are stored at the first point of the needle drop. Next, the straight line L 1 is translated upward by the needle drop pitch P input in the flow shown in Figure 5, and the straight line L 2 : aX + bY + c - λ = 0 (λ = P√ 2 + 2 /
b). For example, in FIG. 28, straight line L2 intersects unit M1 and unit M2 at one point.

交点カウンタの計数値Kは、例えば上記一本の
直線L1またはL2等が一つのユニツトに交わる毎
に「1」だけカウントアツプするものであり、ユ
ニツトとの交点が存在するか否かは一つの直線
(L1を上方に(n−1)λだけ平行移動させたも
のをLn:aX+bY+C−(n−1)λ=0とす
る)上で例えば第30図における右から左へと順
次判断してゆき、この判断が終了してLnをLn+
1と上方へピツチPだけ進めた時点で計数値Kを
「0」にクリアする。
For example, the count value K of the intersection counter is incremented by 1 every time the above-mentioned straight line L1 or L2 intersects one unit, and it does not matter whether there is an intersection with the unit or not. For example, sequentially from right to left in Figure 30 on one straight line (Ln:aX+bY+C-(n-1)λ=0 when L 1 is translated upward by (n-1)λ) After making a judgment, when this judgment is completed, change Ln to Ln+
1 and the count value K is cleared to "0" at the point when it has advanced by a pitch P upwards.

ユニツトと直線Lnとの交点の座標は第29図
のフローに従つて算出される。先ず、ユニツトが
直線である場合、そのユニツトの両端の座標を
(X1,Y1),(X2Y2)とする。直線Ln:aX+bY+
c−(n−1)λ=0がこのユニツトと交わるた
めには点(X1,Y1)及び(X2,Y2)が直線Lnを挟
んで対向することが必要十分である。即ち、Z1
aX1+bY1+c−(n−1)λ,Z2=aX2+bY2+c
−(n−1)λとおいたときZ1Z2>0であれば、
そのユニツトと直線Lnとは交点なしと見做し、
Z1Z20であれば交点ありとして次の交点計算に
進む。即ち、点(X1,Y1)及び(X2,Y2)を通る
直線は(X−X1)(Y2−Y1)=(Y−Y1)(X2
X1)、これとLnとの交点(xk+1,yk+1)
は、 こうして交点が一つ算出されたので交点カウンタ
の計数値Kを「1」だけカウントアツプする。
The coordinates of the intersection of the unit and the straight line Ln are calculated according to the flow shown in FIG. First, if the unit is a straight line, let the coordinates of both ends of the unit be (X 1 , Y 1 ), (X 2 Y 2 ). Straight line Ln: aX+bY+
In order for c-(n-1)λ=0 to intersect with this unit, it is necessary and sufficient that the points (X 1 , Y 1 ) and (X 2 , Y 2 ) face each other across the straight line Ln. That is, Z 1 =
aX 1 +bY 1 +c-(n-1)λ,Z 2 =aX 2 +bY 2 +c
-(n-1)λ, if Z 1 Z 2 > 0, then
Assuming that there is no intersection between that unit and the straight line Ln,
If Z 1 Z 2 is 0, it is assumed that there is an intersection and the process proceeds to the next intersection calculation. That is, the straight line passing through the points (X 1 , Y 1 ) and (X 2 , Y 2 ) is (X−X 1 )(Y 2 −Y 1 )=(Y−Y 1 )(X 2
X 1 ), the intersection of this and Ln (xk+1, yk+1)
teeth, Since one intersection point has been calculated in this way, the count value K of the intersection point counter is counted up by "1".

次に、ユニツトが円または円弧である場合、円
弧の三点を(X1,Y1)(X2,Y2(X3,Y3)とす
る。この三点から第25図のフローに基づき円
(円弧)の中心座標(X0,Y0)及び円(円弧)の
半径Rを算出する。次にLnに垂直で点(X0
Y0)を通る直線Lt:−b(X−X0)+a(Y−
Y0)=0を定める。そして、LtとLnとの交点
(XX,YY)を により算出し、点(X0,Y0)と点(XX,YY)と
の距離H1をH1=√(0−)2+(0−)2

より計算する。このH1と半径Rとを比較し、H
1>Rであれば直線Lnは円(円弧)に対してそ
の中心(X0,Y0)から半径Rよりも遠い箇所を横
切ることになるので円とは交わらず、従つて交点
なしとする。ところがH1RであればLnと円
とは交わるので次の交点計算に進む。即ち、
Ln:aX+bY+C−(n−1)λ=0 円:(X−X02+(Y−Y02=R2 をXとYについて連立して解いて二つの交点P1
(Xk+1,Yk+1)P2=(Xk+2,Yk+2)を
得る。(煩雑になるので具体的な計算式は省略す
る) さて、ユニツトが円であれば算出した交点P1
P2は必ずユニツトに属しているので交点カウンタ
の計数値Kを「2」だけカウントアツプする。と
ころがユニツトが円弧であれば、交点P1,P2がユ
ニツト内に属さない場合があるので、P1,P2につ
いて次のようにしてユニツトに属するか否かを判
断する。即ち、円弧の三点(X1,Y1),(X2
Y2),(X3,Y3)について中心(X0,Y0)からの方
向角AG1,AG2,AG3を AG1=tan-1〔(Y1−Y0)/(X1−X0)〕 AG2=tan-1〔(Y2−Y0)/(X2−X0)〕 AG3=tan-1〔(Y3−Y0)/(X3−X0)〕により算
出し、次に、交点P1,P2の方向角AG4,AG5を AG4=tan-1〔(Yk+1−Y0)/Xk+1−X0)〕 AG5=tan-1〔(Yk+2−Y0)/Xk+2−X0)〕に
より算出し、AG1<AG4<AG2またはAG2<AG4
<AG3が成立するときのみP1を円弧の交点と見做
して交点カウンタの計数値Kを「1」だけカウン
トアツプし、次にAG1<AG5<AG2またはAG2
AG5<AG3が成立するときのみP2を円弧の交点と
見做して交点カウンタの計数値をさらに「1」だ
けカウントアツプする。
Next, if the unit is a circle or an arc, let the three points of the arc be (X 1 , Y 1 ) (X 2 , Y 2 (X 3 , Y 3 ). From these three points, proceed to the flow shown in Figure 25. Based on this, calculate the center coordinates (X 0 , Y 0 ) of the circle (arc) and the radius R of the circle (arc).Next, calculate the point (X 0 , Y 0 ) perpendicular to Ln.
Straight line Lt passing through Y 0 ): -b(X-X 0 )+a(Y-
Y 0 )=0 is determined. Then, the intersection of Lt and Ln (XX, YY) is Calculate the distance H1 between the point (X 0 , Y 0 ) and the point (XX, YY) as H1=√( 0 −) 2 + ( 0 −) 2
Calculate by. Compare this H1 and the radius R, and
If 1>R, the straight line Ln will cross the circle (arc) at a point farther from the center (X 0 , Y 0 ) than the radius R, so it will not intersect with the circle, and therefore there will be no intersection. . However, if it is H1R, Ln and the circle intersect, so proceed to the next intersection point calculation. That is,
Ln: aX+bY+C-(n-1)λ=0 Circle: (X-X 0 ) 2 + (Y-Y 0 ) 2 = R Solve 2 simultaneously for X and Y and find the two intersections P 1 =
(Xk+1, Yk+1)P 2 =(Xk+2, Yk+2) is obtained. (The specific calculation formula is omitted as it is complicated.) Now, if the unit is a circle, the calculated intersection P 1 ,
Since P2 always belongs to a unit, the count value K of the intersection counter is counted up by "2". However, if the unit is a circular arc, the intersections P 1 and P 2 may not belong to the unit, so whether or not P 1 and P 2 belong to the unit is determined as follows. That is, the three points of the circular arc (X 1 , Y 1 ), (X 2 ,
The direction angles AG 1 , AG 2 , AG 3 from the center (X 0 , Y 0 ) for Y 2 ), (X 3 , Y 3 ) are calculated as AG 1 = tan -1 [(Y 1 − Y 0 )/(X 1 −X 0 )] AG 2 = tan -1 [(Y 2 − Y 0 )/(X 2 − X 0 )] AG 3 = tan -1 [(Y 3 − Y 0 )/(X 3 − X 0 )], and then calculate the direction angles AG 4 and AG 5 of the intersection points P 1 and P 2 as AG 4 = tan -1 [(Yk+1-Y 0 )/Xk+1-X 0 )] AG 5 = tan -1 Calculated by [(Yk+2-Y 0 )/Xk+2-X 0 )], AG 1 < AG 4 < AG 2 or AG 2 < AG 4
Only when <AG 3 holds, P 1 is regarded as the intersection of the arcs, the count value K of the intersection counter is counted up by "1", and then AG 1 <AG 5 <AG 2 or AG 2 <
Only when AG 5 <AG 3 holds, P 2 is regarded as the intersection of the circular arcs, and the count value of the intersection counter is further incremented by "1".

1つの直線Lnについて、各ユニツトの交点が
すべて算出されると、交点カウンタの計数値Kの
値に関連して第28図のフローに基づき次のよう
なチエツクを行う。
When all the intersection points of each unit have been calculated for one straight line Ln, the following check is performed based on the flow shown in FIG. 28 in relation to the count value K of the intersection counter.

(1) K=0 この場合には、ユニツトと直線Lnとの交点が
ないので最終点を算出したかどうかをチエツク
し、最終点が算出されていればそのブロツクに関
する針落ち点の演算は終了する。
(1) K=0 In this case, since there is no intersection between the unit and the straight line Ln, check whether the final point has been calculated. If the final point has been calculated, the calculation of the needle drop point for that block is completed. do.

(2) K=1 この場合には、得られた交点の値(x1,y1)を
そのまま針落ち座標(U(J+1),V(J+
1)を格納して、針落ち座標カウンタの計数値J
を「1」だけカウントツプする。
(2) K=1 In this case, the obtained intersection value (x 1 , y 1 ) is directly converted into needle drop coordinates (U(J+1), V(J+
1) and calculate the count value J of the needle drop coordinate counter.
Count down by "1".

(3) K=2 ユニツトと直線Lnとの交点の数が2となるの
は第31A,31B,31C図のような三つの場
合がある。
(3) K=2 There are three cases in which the number of intersections between the unit and the straight line Ln is 2, as shown in Figures 31A, 31B, and 31C.

第31A図の場合、直線Lnが二つのユニツト
M1,M2の連結点と交又しているので、直線Lnは
二つのユニツトM1,M2の双方と交わることにな
り、従つて、交点K=2と見做される。ところ
が、実は二つの交点(x1,y1),(x2,y2)は同一
であるからx1=x2,y1=y2とおいてK=1の場合
に帰着される。
In the case of Figure 31A, the straight line Ln has two units.
Since it intersects the connecting point of M 1 and M 2 , the straight line Ln intersects both of the two units M 1 and M 2 , and is therefore regarded as the intersection point K=2. However, since the two intersections (x 1 , y 1 ) and (x 2 , y 2 ) are actually the same, the result is a case where x 1 =x 2 , y 1 =y 2 and K=1.

第31B図の場合、一つの直線Lnが異なる二
つのユニツトM1,M2に、互いに相違なる点
(x1,y1),(x2,y2)で交わつている。このときは
直線LnよりもPだけ下降した、直線Ln−1との
各ユニツトとの交点のうち最終の針落ち座標に指
定された針落ち点(U(J),V(J))と点
(x1,y1)及び(x2,y2)との距離D1,D2を D1=√(1−())+(1−()) D2=√(2−())2−()) により各別に算出し、D1>D2であれば点(x1
y1)を選出し、D1<D2であれば点(x2,y2)を選出
し、選出した方の点の座標値を(U(J+1),
V(J+1))に格納し、針落ち座標カウンタの
計数値Jを「1」だけカウントアツプする。
In the case of FIG. 31B, one straight line Ln intersects two different units M 1 and M 2 at different points (x 1 , y 1 ) and (x 2 , y 2 ). At this time, the needle drop point (U(J), V(J)) specified as the final needle drop coordinate among the intersections of each unit with the straight line Ln-1, which is lowered by P than the straight line Ln, and the point The distances D 1 and D 2 from (x 1 , y 1 ) and (x 2 , y 2 ) are D 1 =√( 1 − ()) 2 + ( 1 − ()) 2 D 2 =√( 2 − ()) 2 + 2 - ()) 2 , and if D 1 > D 2 , the point (x 1 ,
y 1 ), and if D 1 < D 2 , select the point (x 2 , y 2 ), and set the coordinates of the selected point to (U(J+1),
V(J+1)) and increments the count value J of the needle drop coordinate counter by "1".

第31C図の場合、上記とは異なつて二つの相
違なる交点(x1,y1),(x2,y2)は一つの円弧ユ
ニツトM4に属するが、この二点の処理は第29
B図の場合と同様に行なわれて、一つ前の針落ち
点(U(J),V(J))よりも遠い方の点を次の
針落ち点(U(J+1),V(J+1))に選出
し、針落ち座標カウンタの計数値Jを「1」だけ
カウントアツプする。
In the case of Fig. 31C, unlike the above, two different intersection points (x 1 , y 1 ) and (x 2 , y 2 ) belong to one arc unit M 4 , but the processing of these two points is performed in the 29th point.
This is done in the same way as in the case of figure B, and the point farther from the previous needle drop point (U(J), V(J)) is set to the next needle drop point (U(J+1), V(J+1). )) and increments the count value J of the needle drop coordinate counter by "1".

(4) K=3 第32図のように、一方の交点がユニツト
M1,M2の両者に亘り、(x1,y1),(x2,y2)とが
重複している場合のことである。このときはx1
x2,y1=y2とおくことにより第31B図の場合に
帰着される。もし、第31B図の場合に帰着し得
ないならエラーと見做す。
(4) K=3 As shown in Figure 32, one of the intersections is a unit.
This is a case where (x 1 , y 1 ) and (x 2 , y 2 ) overlap in both M 1 and M 2 . In this case x 1 =
By setting x 2 , y 1 =y 2 , the case of FIG. 31B is obtained. If the result cannot be returned to the case shown in FIG. 31B, it is regarded as an error.

(5) K=4 第33図のように、一方の交点がユニツト
M1,M2の両者に亘り(x1,y1),(x2,y2)とが重
複するとともに、他方の交点が、ユニツトM3
M4の両者に亘り(x3,y1),(x4,y4)も重複して
いる場合であり、x1=x2,y1=y2かつx3=x4,y3
=y4とおくことにより第31B図の場合に帰着さ
れる。もし、第31B図の場合に帰着し得ないな
らエラーと見做す。
(5) K=4 As shown in Figure 33, one of the intersections is a unit.
( x 1 , y 1 ), (x 2 , y 2 ) overlap both M 1 and M 2 , and the other intersection point is the unit M 3 ,
This is a case where (x 3 , y 1 ) and (x 4 , y 4 ) are also overlapped across both M 4 , and x 1 = x 2 , y 1 = y 2 and x 3 = x 4 , y 3
By setting = y 4 , the case of FIG. 31B is obtained. If the result cannot be returned to the case shown in FIG. 31B, it is regarded as an error.

(6) K>4 本実施例では一つの直線Lnのユニツトとの交
点Kは最大「4」であるため、もしKが「4」よ
りも大きくなると、直ちにエラーと見做す。
(6) K>4 In this embodiment, the maximum number of intersections K of one straight line Ln with a unit is "4", so if K becomes larger than "4", it is immediately regarded as an error.

こうしてフローが第28図から第27図にリタ
ーンすると直線LnはさらにピツチP分上方に移
動してLn+1となり、今度はこの直線Ln+1に
ついて第29図のフローに基づきユニツトとの交
点が算出され、その交点の数Kについて第28図
のフローに基づきチエツクが行なわれる。
In this way, when the flow returns from Fig. 28 to Fig. 27, the straight line Ln further moves upward by a pitch P to become Ln+1.Then, the intersection point of this straight line Ln+1 with the unit is calculated based on the flow of Fig. 29, and its The number K of intersections is checked based on the flow shown in FIG.

とくに、第34図のようなK=2の典型的な場
合について説明する。この場合、直線Ln,Ln+
1,Ln+2はそれぞれユニツトM1,M2と一回づ
つ交又し、LnLn+1,Ln+2とユニツトM1
M2との交又は全部で6個となる。ところが、こ
れらの交点がすべて針落ち点に指定される訳でか
なく、第28図のフローに示されるように針落ち
点は、一つの直線Lnのうち一点が選択されるの
みである。今、直線Lnについては、ユニツトM2
と交又する右側(第34図)の方が針落ち点(U
(J),V(J))に選択されているとする。する
と、Ln+1のユニツトM1,M2との二つの交点の
うち明らかにユニツトM1側の交点の方がユニツ
トM2側の交点よりも(U(J),V(J))から
遠いので、ユニツトM1側の交点が次の針落ち点
(U(J+1),V(J+1))に選択される。同
様にしてLn+2とユニツトM1,M2との交点にお
いては今度はユニツトM2側の交点が針落ち点
(U(J+2),V(J+2))に選択される。こ
のようにして、針落ち点はユニツトM1,M2間を
往復しながら進行し、針振り方向が直線Lnにほ
ぼ平行する刺繍縫目となる。
In particular, a typical case where K=2 as shown in FIG. 34 will be explained. In this case, the straight lines Ln, Ln+
1, Ln+2 intersect with units M 1 and M 2 once each, and LnLn+1, Ln+2 and units M 1 ,
Intersection with M 2 or 6 pieces in total. However, not all of these intersection points can be designated as needle drop points, and as shown in the flowchart of FIG. 28, only one point on one straight line Ln is selected as the needle drop point. Now, for the straight line Ln, unit M 2
The needle drop point (U
(J), V(J)) is selected. Then, of the two intersections of Ln+1 with units M 1 and M 2 , the intersection on the unit M 1 side is clearly farther from (U(J), V(J)) than the intersection on the unit M 2 side. , the intersection on the unit M1 side is selected as the next needle drop point (U(J+1), V(J+1)). Similarly, at the intersection of Ln+2 and units M 1 and M 2 , the intersection on the unit M 2 side is selected as the needle drop point (U(J+2), V(J+2)). In this way, the needle drop point advances while reciprocating between the units M 1 and M 2 , resulting in an embroidery stitch in which the needle swing direction is approximately parallel to the straight line Ln.

(ii) 中振り刺繍 「中振り」とは刺繍縫目において、針振り方向
がある中心点から放射状に変化してゆくものを言
い、針落ち点は第35図のフローに基づいて算出
される。即ち、先ず第37図のブロツクの外側の
円弧ユニツトM1について、その三点P1=(X1
Y1),P2=(X2,Y2),P3(X3,Y3)から第25図
のフローに基づき円弧の中心(XX0,YY0)及び
円弧の半径R0を算出する。次に始点P1の方向角
AG1=tan-1〔(Y1−YY0)/(X1−XX0)〕及び終点
の方向角AG2=tan-1〔(Y3−YY0)/(X3
XX0)〕を計算し、1ピツチに対応する角度AGP
を、R0×AGP=PからAGP=P/R0と算出し、
角度の初期値AGXをAG1とおく。続いて、P1
(X1,Y1)を第一針目の座標(U(1),V
(1))に格納し、円弧ユニツトM1の全体角度
PIO=1,AG1−AG21を計算し、全点数I=
PIO/AGPをもとめる。次に針数カウンタの計数
値Jを「1」にセツトし、既にU(1)=X1,V
(1)=Y1とおいているのでJを「1」だけカウ
ントアツプし、AGXにAGPを加える。
(ii) Medium swing embroidery “Middle swing” refers to an embroidery stitch in which the needle swing direction changes radially from a certain center point, and the needle drop point is calculated based on the flow shown in Figure 35. . That is, first, regarding the arc unit M 1 outside the block in FIG. 37, its three points P 1 = (X 1 ,
Y 1 ), P 2 = (X 2 , Y 2 ), P 3 (X 3 , Y 3 ), calculate the center of the arc (XX 0 , YY 0 ) and the radius R 0 of the arc based on the flow in Figure 25. do. Next, the direction angle of the starting point P 1
AG 1 = tan -1 [(Y 1 − YY 0 )/(X 1 − XX 0 )] and the direction angle of the end point AG 2 = tan -1 [(Y 3 − YY 0 )/(X 3
XX 0 )] and calculate the angle AGP corresponding to 1 pitch.
is calculated from R 0 ×AGP=P as AGP=P/R 0 ,
Let the initial value of the angle AGX be AG 1 . Then, P 1 =
(X 1 , Y 1 ) as the coordinates of the first stitch (U(1), V
(1)), the entire angle of the arc unit M1
Calculate PIO=1, AG 1 −AG 2 1, total score I=
Request PIO/AGP. Next, the count value J of the stitch number counter is set to "1", and already U(1)=X 1 , V
(1) = Y 1 , so count up J by 1 and add AGP to AGX.

以上のように設定すると、J=1の針落ち点が
外側の円弧ユニツトM1に属することにになるか
ら、Jが奇数のときはユニツトM1側の点を選択
し、Jが偶数のときはユニツトM2側の点を選択
することにすれば、針落ち点はユニツトM1とユ
ニツトM2間を往復して刺繍縫いとなる。そこ
で、Jを「1」だけカウントアツプし、AGXに
AGPを加えた後に、Jが偶数か奇数かを判断
し、Jが奇数であれば中心点(XX0,YY0)から
針落ち点までの距離RRをR0とおく。またJが偶
数であればブロツクが中抜きであるか否かを判断
する。中抜きでないとは、例えば第38図の円の
場合のように中心点(X0,Y0)がブロツク内に含
まれてしまう場合のことである。もし中抜きでき
ないならR=1mmとおく。後述するように、この
ことは例えば第39図において半径1mmの円形の
中抜きEを設けることに等しい。また、中抜きで
あれば円弧ユニツトM1の内側に他のユニツトM2
が存在するから点(XX0,YY0)を通り方向角
tanAGXの直線LA:Y−Y0=tanAGX(X−X0
とユニツトM2との交点をもとめる。これには、
第29図のフローにおいて直線L1の方程式のか
わりに直線LAの方程式を代入し、交点の座標
(xk+1,yk+1)を算出する。そして、R=√
(+1−02+(+1−02を計算する。
With the above settings, the needle drop point of J=1 will belong to the outer arc unit M1 , so when J is an odd number, select the point on the unit M1 side, and when J is an even number, select the point on the unit M1 side. If the point on the unit M2 side is selected, the needle drop point will move back and forth between unit M1 and unit M2 to perform embroidery stitches. So, count up J by "1" and set it to AGX.
After adding AGP, determine whether J is even or odd, and if J is odd, set the distance RR from the center point (XX0, YY0) to the needle drop point as R0. If J is an even number, it is determined whether the block is hollow. Not hollowed out means that the center point (X 0 , Y 0 ) is included within the block, as in the case of the circle in FIG. 38, for example. If it is not possible to hollow out, set R = 1mm. As will be described later, this is equivalent to providing a circular hollow E with a radius of 1 mm in FIG. 39, for example. In addition, if the unit is hollow, there is another unit M2 inside the arc unit M1 .
exists, so the direction angle passing through the point (XX0, YY0)
Straight line L A of tanAGX: Y-Y 0 = tanAGX (X-X 0 )
Find the intersection of and unit M2 . This includes:
In the flowchart of FIG. 29, the equation of the straight line LA is substituted for the equation of the straight line L1 , and the coordinates (xk+1, yk+1) of the intersection point are calculated. And R=√
Calculate (+ 1-0 ) 2 +(+ 1-0 ) 2 .

さて、中振りにおいては第37図から明らかな
ように縫目間隔は中心座標(X0,Y0)に近づくほ
ど狭まり、目づまりが生じやすくなる。そこで、
第38図に示すように、ピツチPが小さい場合及
び内側の内側円弧ユニツトM2が中心座標(X0
Y3)に近接している場合には次のようにして目づ
まりを防止する。即ち、先づ設定したピツチPが
例えば0.4mmよりも大きいか否かを判断し、ピツ
チPが0.4mmよりも大きい場合は目づまりは生じ
ないものとして以下に示す処理は行なわず直ちに
RR=Rとおく。ピツチが0.4mmより小さければR
がR0/3より小さいか否かを判断し、RがR0
3より大きければ内側の内側円弧ユニツトM2
(第38図)における縫目の密集度は外側の円弧
ユニツトM1に較べてあまり高くないとしてやは
りRR=Rとおく。ピツチが0.4mmより小さくRが
R0/3より小さければJが4の倍数は否かを判
断し、4の倍数でなければRR=Rとおき、Jが
4の倍数であればRR=1/3R0とおく。そして、J の偶奇性及び4の倍数か否かで各別に算出した
RRを以て、 U(J)=XX0+RR・cosAGX V(J)=YY0+RR・sinAGXによりJを
「1」づつカウントアツプしながら針落ち点の座
標(U(J),V(J))をJ<1となるまで順次
算出し、J>Iに関連して(U(J),V(J))
=P3=(X3,Y3)の座標点の値を格納してフロー
はリターンする。
Now, in the middle stitch, as is clear from FIG. 37, the stitch spacing becomes narrower as it approaches the center coordinates (X 0 , Y 0 ), and clogging becomes more likely to occur. Therefore,
As shown in FIG. 38, when the pitch P is small and the inner arc unit M 2 has center coordinates (X 0 ,
If it is located close to Y3 ), prevent clogging as follows. That is, first, it is determined whether the set pitch P is larger than, for example, 0.4 mm, and if the pitch P is larger than 0.4 mm, it is assumed that no clogging will occur, and the following processing is not performed immediately.
Let RR=R. If the pitch is smaller than 0.4mm, R
is smaller than R 0 /3, and determines whether R is smaller than R 0 /3.
If it is larger than 3, the inner inner arc unit M 2
Assuming that the density of stitches in (Fig. 38) is not so high compared to the outer arc unit M1 , it is assumed that RR=R. The pitch is smaller than 0.4mm and the radius is smaller than 0.4mm.
If it is smaller than R 0 /3, it is determined whether or not J is a multiple of 4. If it is not a multiple of 4, it is set as RR=R, and if J is a multiple of 4, it is set as RR=1/3R 0 . Then, it was calculated separately depending on the parity of J and whether it is a multiple of 4 or not.
Using RR, U (J) = XX0 + RR・cosAGX V (J) = YY0 + RR・sinAGX, while counting up J by 1, set the coordinates of the needle drop point (U (J), V (J)) to J < 1 Calculate sequentially until , and in relation to J>I, (U(J), V(J))
The flow returns after storing the value of the coordinate point =P 3 =(X 3 , Y 3 ).

即ち、ピツチP0.4mmまたはR1/3R0となる場 合は目づまりを生じないものとしてJが偶数のと
きはRR=Rと設定するので、針振り方向は点
(X0,Y1)を中心とする放射方向となり、針落ち
点は第37図においてJが奇数のときは円弧ユニ
ツトM1上にあり、Jが偶数のときは内側円弧ユ
ニツトM2上にあるように時計方向に進行する。
In other words, if the pitch is P0.4mm or R1/ 3R0 , it is assumed that no clogging will occur, and if J is an even number, RR=R is set, so the needle swing direction is centered around the point (X 0 , Y 1 ). In FIG. 37, when J is an odd number, the needle drop point is on the circular arc unit M1 , and when J is an even number, it is on the inner circular arc unit M2 , so that the needle drop point advances clockwise.

ところがピツチP<0.4mmかつR<R0/3のと
きはJが偶数の場合において、Jが4の倍数であ
ればRR=1/3R0とおきJが4の倍数でなけれだRR =Rとおくので、第38図に示すように、内側円
弧ユニツトM2上にあるべき針落ち点のうち半数
がRよりも(X0,Y0)に対して外側のRR=R0
3上(中間点)上に設定されることになり、従つ
て内側円弧ユニツトM2上の縫目の密集度が半分
に軽減されて目づまりが防止される。第39図の
円の場合も、中心点(X0,Y0)の周囲に設定した
中抜きEを第38図における内側円弧ユニツト
M2に見たてて、同様の処理を行う。
However, when pitch P < 0.4 mm and R < R 0 /3, if J is an even number, if J is a multiple of 4, then RR = 1/3R 0 , and J must be a multiple of 4. RR = R Therefore, as shown in Fig. 38, half of the needle drop points that should be on the inner arc unit M2 are outside R with respect to (X 0 , Y 0 ), RR = R 0 /
Therefore, the density of the stitches on the inner arcuate unit M2 is reduced by half and clogging is prevented. In the case of the circle shown in Figure 39, the hollow E set around the center point (X 0 , Y 0 ) is used as the inner circular arc unit in Figure 38.
Perform the same process using M 2 .

(iii) 模様縫い 「模様縫い」とは、前記したようにユニツトの
輪郭上に所定ピツチPで縫目を形成するものであ
り、第40図のフローに基づき、針落ち座標の算
出を行う。フローにおいて、先ず針数カウンタの
計数値Jを0にリセツトし、縫目を形成すべきユ
ニツトが直線か円(円弧)かを判断する。以下、
直線の場合と円弧の場合に分けて説明する。
(iii) Pattern sewing As described above, "pattern sewing" is to form stitches at a predetermined pitch P on the outline of the unit, and the needle drop coordinates are calculated based on the flow shown in FIG. In the flow, first, the count value J of the stitch number counter is reset to 0, and it is determined whether the unit in which a stitch is to be formed is a straight line or a circle (arc). below,
The case of a straight line and the case of a circular arc will be explained separately.

(1) 直線 ユニツトの両端の点(X1,Y1),(X2,Y2)から
ユニツトの方向角AGX=tan-1〔(Y2−Y1)/(X2
−X1)〕及びユニツトの長さH=√(212
(Y2−Y12を算出し、ピツチPによりユニツト内
の点数I=H/Pを計算する。
(1) Straight line The direction angle of the unit from the points (X 1 , Y 1 ), (X 2 , Y 2 ) at both ends of the unit is AGX = tan -1 [(Y 2 − Y 1 )/(X 2
−X 1 )] and unit length H=√( 21 ) 2 +
(Y 2 −Y 1 ) 2 is calculated, and the number of points in the unit I=H/P is calculated using the pitch P.

次に、ユニツト個別の針数カウンタの計数値
JOを「0」にリセツトし、 U(J+1)=X1+JO・P・cosAGX V(J+1)=Y1+JO・P・sinAGXとおいて
針落ち点(U(J+1),V(J+1))を算出
し、この算出が終了するとJO及びJを「1」だ
けカウントアツプして再び(U(J+1),V
(J+1))の算出を繰り返えす。こうしてJOが
点数Iよりも大きくなるとU(J+1)=X2,V
(J+1)=Y2(ユニツトの最終点)とおいてJ
を「1」だけカウントアツプし、次のユニツトの
針落ち点の計算に進む。
Next, the count value of the stitch count counter for each unit
Reset JO to "0" and set the needle drop point (U(J+1), V(J+1)) as U(J+ 1)=X 1 + JO・P・cosAGX V(J+1)=Y 1 +JO・P・sinAGX When this calculation is completed, count up JO and J by "1" and again (U (J + 1), V
(J+1)) can be repeated. In this way, when JO becomes larger than the score I, U(J+1)=X 2 ,V
(J+1)=Y 2 (final point of unit) and J
is counted up by ``1'' and proceeds to calculate the needle drop point of the next unit.

(2) 円弧 ユニツトの三点(X1,Y1),(X2,Y2),(X3
Y3)から第25図のフローに基づき中心座標
(X0,Y0)及び半径Rを算出し、さらには角度の
初期値AG1=tan-1〔(Y1−Y0)/(X1−X0)〕、角
度の最終値AG2=tan-1〔(Y3−Y0)/(X3
Y0)〕全体角AGT=|AG2−AG1|、及び1ピツ
チに対する角度AGP=P/Rを算出する。I=
AGT/AGPにより点数Iを計算してユニツト個
別のカウンタの計数値JOを「0」にリセツト
し、 U(J+1)=X0+R・cos(AG1+J0・AGP) V(J+1)=Y0+R・sin(AG1+J0・AGP) とおいて針落ち点(U(J+1),V(J+1))
を算出し、この算出が終了するとJO及びJを
「1」だけカウントアツプして再び(U(J+
1),V(J+1))の算出を繰りかえす。こうし
てJOが点数Iよりも大きくなるとU(J+1)=
X3,V(J+1)=Y3(最終点)とおいてJを
「1」だけカウントアツプする。針数カウンタの
計数値Jは一ブロツク内において各ユニツトに亘
る針落ち番号の連番を与える。
(2) Three points of the arc unit (X 1 , Y 1 ), (X 2 , Y 2 ), (X 3 ,
Y 3 ) , the center coordinates (X 0 , Y 0 ) and radius R are calculated based on the flow shown in FIG. 1 −X 0 )], the final value of the angle AG 2 = tan -1 [(Y 3 −Y 0 )/(X 3
Y 0 )] Total angle AGT=|AG 2 −AG 1 | and the angle AGP=P/R for one pitch are calculated. I=
Calculate the score I using AGT/AGP and reset the count value JO of each unit's counter to "0", U (J + 1) = X 0 + R・cos (AG 1 + J 0・AGP) V (J + 1) = Y 0 +R・sin (AG 1 +J 0・AGP) and needle drop point (U (J+1), V (J+1))
When this calculation is completed, JO and J are counted up by 1 and again (U(J+
1), repeat the calculation of V(J+1)). In this way, when JO becomes larger than the score I, U(J+1)=
Set X 3 , V(J+1)=Y 3 (final point), and count up J by "1". The count value J of the stitch number counter gives a consecutive number of needle drop numbers across each unit within one block.

以上の算出が一ブロツク内の全ユニツトに亘つ
て終了すると、フローはリターンする。
When the above calculation is completed for all units in one block, the flow returns.

(iv) ジヤンプ ジヤンプとは、第12C図に示すようにP1点か
らP2点まで針落ち点が針落ちすることなく移動す
ることであり縫目形成には関与しない。尚、本実
施例では、ジヤンプを一ブロツクと見做す。
(iv) Jump Jump refers to the movement of the needle drop point from point P 1 to point P 2 without needle drop, as shown in Fig. 12C, and does not involve stitch formation. In this embodiment, a jump is regarded as one block.

こうして針落ち座標の算出が終了すると、第4
0,41,42図の針落ち座標格納フローに入
る。針落ち座標格納フローは針落ち座標データに
振りを指定する特定の16進コマンドコードを与え
るとともに、針落ち座標データを相対座標に変換
するためのものである。相対座標に変換するの
は、刺繍ミシンの駆動源にとつて必要なデータが
針落ち座標自体でなく、現在の針落ち座標から次
の針落ち座標までどの方向にどれだけの距離進む
かであるためである。
When the calculation of the needle drop coordinates is completed in this way, the fourth
0, 41, and 42 enter the needle drop coordinate storage flow. The needle drop coordinate storage flow is used to give a specific hexadecimal command code specifying swing to the needle drop coordinate data and to convert the needle drop coordinate data into relative coordinates. What is converted into relative coordinates is that the data necessary for the drive source of the embroidery sewing machine is not the needle drop coordinate itself, but the direction and distance to travel from the current needle drop coordinate to the next needle drop coordinate. It's for a reason.

フローにおいて、先ず現在のデータが第一ブロ
ツクのものであるのか否かを判断し、第一ブロツ
クであれば直ちにスタートコード7Dを出力する
とともにU0=U(1),V0=V(1)とおく。ま
た、第一ブロツクでなければ、第42図のフロー
に基づき前ブロツクとのつなぎ目のチエツクを行
う。即ち、前ブロツクの最終点を(U0,V0)、現
在の第1点を(U(1),V(1))とするとき、
二点間の距離L=√(0−(1))+(0−
(1))を算出してLの値を判断し、L=0なら
直ちにリターンし、L≠0なら「80」(模様を指
令するコマンドコード)を出力して、(U0,V0)
と(U(1),V(1))とを直線縫目で結ぶ。
In the flow, first it is determined whether the current data belongs to the first block or not, and if it is the first block, the start code 7D is immediately output and U0 = U (1), V0 = V (1). put. If it is not the first block, a check is made for the joint with the previous block based on the flow shown in FIG. That is, when the final point of the previous block is (U0, V0) and the current first point is (U(1), V(1)),
Distance between two points L=√(0-(1)) 2 +(0-
(1)) Calculate 2 and determine the value of L. If L = 0, return immediately, if L≠0, output "80" (command code to command the pattern), and (U0, V0)
and (U(1), V(1)) are connected with a straight seam.

次に、カーソル12のキー14a,14hによ
り入力した振りの種類に基づき、「振り方向指定
刺繍」のうち振り方向が基線Xn(第3図)に対
して45゜よりも大きければ縦振り刺繍と見做して
コマンドコード「FF」を出力し、振り方向が基
線に対して45゜よりも小さければ横振り刺繍と見
做してコマンドコード「FE」を出力し、「中振
り」であればコマンドコード「7F」を出力し、
模様であればコマンドコード「80」を出力し、ジ
ヤンプであればコマンドコード「7E」を出力す
る。コマンドコードが指定されると、1ブロツク
内の全針数Jを読み出して、所定のカウンタの計
数値JJを1にリセツトしてから、JJを「1」だけ
カウントアツプする。このJJを用いて、1ブロツ
ク内の全データを次のようにして相対座標
(UU,VV)に変換する。即ち、UU=U(JJ)−
U0,VV=V(JJ)−V0、初期状態ではU0=U
(1),V0=V(1)とおき、かつJJを「1」か
ら一つカウントアツプするからUU=U(2)−
U(1),VV=V(2)−V(1),UU,VVのう
ちどちらか一方がピツチPを越えていないかどう
かを確認し、UU,VVともにピツチより小さけば
UU,VVの値をバイナリーコードに変換してデー
タデイスクに出力する。もし、UUまたはVVのう
ち一方がピツチPよりも大きければそれは何らか
のデータの演算ミスに該当するのでエラーと見做
す。その後一般にJJ番目の針落ち点の座標(U
(JJ),V(JJ))についても、U0=U(JJ),V
(0)=V(JJ)とおき、JJを「1”だけカウント
アツプしてUU=U(JJ+1)−U(JJ),VV=V
(JJ+1)−V(JJ)を演算することによりJJ番目
の相対座標(UU,VV)をデータデイスクに出力
する。こうしてJJを「1」づつカウントアツプし
てゆきJJ>Jとなるとブロツクのすべての針落ち
点座標を相対座標に変換し、データデイスクへの
格納を終了したので、第43図のデイレクトリ部
書き込みフローを処理し、データデイスクのデイ
レクトリ部にパターンNo.、各トラツクNo.等を書き
込んで終える。
Next, based on the type of swing input using the keys 14a and 14h of the cursor 12, if the swing direction is larger than 45 degrees with respect to the base line If the swing direction is smaller than 45 degrees with respect to the base line, it is assumed to be horizontal swing embroidery and outputs the command code "FE". Output the command code "7F",
If it is a pattern, the command code ``80'' is output, and if it is a jump, the command code ``7E'' is output. When a command code is specified, the total number of stitches J in one block is read out, the count value JJ of a predetermined counter is reset to 1, and then JJ is counted up by "1". Using this JJ, all data within one block is converted into relative coordinates (UU, VV) as follows. That is, UU=U(JJ)−
U0, VV = V (JJ) - V0, in the initial state U0 = U
(1), set V0 = V (1), and count up JJ by one from "1", so UU = U (2) -
U (1), VV = V (2) - V (1), Check whether one of UU, VV exceeds the pitch P, and if both UU and VV are smaller than the pitch.
Converts UU and VV values into binary code and outputs to data disk. If one of UU or VV is larger than pitch P, this corresponds to some kind of data calculation error and is considered an error. After that, generally the coordinates of the JJ-th needle drop point (U
(JJ), V(JJ)), U0=U(JJ), V
Set (0) = V (JJ), count up JJ by "1", UU = U (JJ + 1) - U (JJ), VV = V
By calculating (JJ+1)-V(JJ), the JJ-th relative coordinates (UU, VV) are output to the data disk. In this way, JJ is counted up by 1, and when JJ>J, all the needle drop point coordinates of the block are converted to relative coordinates, and the storage to the data disk is completed, so the directory section write flow shown in Figure 43 is processed and the pattern number, each track number, etc. are written in the directory section of the data disk.

この発明は以上のような構成であり、次にパタ
ーンを入力する場合を具体例に基づいて説明す
る。タブレツト11上に原図の用紙を載置し、例
えばアルフアベツトの「B」及びエクスクラメー
シヨンマーク「1」を読み取るものとする。先ず
「B」については第47図に示すように六個のブ
ロツクに分割する。尚、第44〜53図において
は既に読み取つたブロツクのみを図示し、順次読
み取りの終了したブロツクをそれに付け加えてい
く。
The present invention has the above-described configuration, and next, the case of inputting a pattern will be explained based on a specific example. Assume that an original sheet of paper is placed on the tablet 11 and, for example, an alphanumeric character "B" and an exclamation mark "1" are read. First, "B" is divided into six blocks as shown in FIG. In FIGS. 44 to 53, only blocks that have already been read are shown, and blocks that have been read are sequentially added to them.

さて、操作手段19の操作により新規入力を指
定し、カーソル12の例えばキー14bを押して
スケールを1倍に設定した後に、第42図におい
てタブレツト11上のS1点にカーソル12の印1
3aを一致させてキー14aを押し、続いてS2
に印13aを一致させてキー14aを押すことに
よりS1,S2点を結ぶ基線Xnが指定され、次に座
標変換係数算出ルーチン(第10図)によりタブ
レツト11のX軸に対する基線Xnのきθが算出
される。
Now, after specifying a new input by operating the operating means 19 and setting the scale to 1x by pressing, for example, the key 14b of the cursor 12, in FIG .
3a and press the key 14a, then match the mark 13a with the two points S and press the key 14a to specify the base line Xn connecting the two points S1 and S. Next, the coordinate transformation coefficient calculation routine ( 10), the angle θ of the base line Xn with respect to the X axis of the tablet 11 is calculated.

次に、第44図において、カーソル12のキー
14を押して「刺繍縫い」を指定した後にアル
フアベツト「B」の第1ブロツクの左下隅の点P1
にカーソル12印13aを一致させ、次の点P2
での経路が直線であるから「直線」の入力に対応
するキー14bを押し、次に点P2に印13aを一
致させてキー14bを押し、これによりP1,P2
の読み取りが終了する。さらに、引き続きP2−P3
−P4−P5−P6−P7と印13aを一致させて各別に
キー14bを押し、第1ブロツクの最終点P8でブ
ロツクの終了を指示するキー14nを押すことに
より、第一ブロツクのデータ読し取りを終える。
次に、タブレツト11上のQ1点にカーソル12
の印13aを一致させてキー14aを押し、続い
てQ2点に印13aを一致させてキー14aを押
すことによりQ1−Q2方向(横方向)に振り方向
が指定される。この後、カーソル12の数字キ
ー、例えばキー14cを押すことにより振りのピ
ツチ「P=0.2mm」が設定される。
Next, in FIG. 44, after pressing the key 14 of the cursor 12 and specifying "embroidery stitch", point P 1 at the lower left corner of the first block of the alphabet "B" is pressed.
Align the mark 13a of the cursor 12 with the point P2, press the key 14b corresponding to the input of "straight line" since the route to the next point P2 is a straight line, then align the mark 13a with the point P2 and press the key 14b. This completes the reading between P 1 and P 2 . Furthermore, P 2P 3 continues
-P 4 -P 5 -P 6 -P 7 and marks 13a are pressed individually, and the key 14n is pressed to instruct the end of the block at the final point P8 of the first block. Finish reading the block data.
Next, move the cursor 12 to point Q1 on the tablet 11.
The swing direction is specified in the Q 1 -Q 2 direction (horizontal direction) by aligning the marks 13a with the Q 2 point and pressing the key 14a, then aligning the marks 13a with the Q 2 point and pressing the key 14a. Thereafter, by pressing the numeric key of the cursor 12, for example, the key 14c, the swing pitch "P=0.2 mm" is set.

第45図の第2ブロツクについても、先ずカー
ソル12のキー14を押して「刺繍縫い」を指
定する。第2ブロツクは、第1ブロツクと同様に
直線ユニツトのみから成るので、第1ブロツクの
場合と同様にして点P1−P2−P3−P4−P5と順次読
み取つてゆけばよい。読み取りが終了すると、カ
ーソル12の印13aを点Q1に一致させてキー
14aを押し、続いて印13aを点Q2に一致さ
せてキー14aを押すことによりQ1−Q2方向
(縦方向)に振り方向が指定される。この後、カ
ーソル12の、例えばキー14bを押すことによ
り振りのピツチ「P=0.1mm」が設定される。
Regarding the second block in FIG. 45, first, the key 14 of the cursor 12 is pressed to specify "embroidery stitching". The second block, like the first block, consists only of linear units, so it is sufficient to read the points P 1 -P 2 -P 3 -P 4 -P 5 sequentially in the same way as in the case of the first block. When reading is completed, align the mark 13a of the cursor 12 with point Q1 and press the key 14a, then align the mark 13a with point Q2 and press the key 14a to move in the Q1 - Q2 direction (vertical direction). ) specifies the swing direction. Thereafter, by pressing, for example, the key 14b of the cursor 12, the swing pitch "P=0.1 mm" is set.

第44図の第3ブロツクについても、先ずカー
ソル12のキー14を押して「刺繍縫い」を指
定する。第3ブロツクはP1−P2−P3及びP4−P5
P6が円弧ユニツトなので先カーソル12の印13
aをP1に一致させて「円弧」を指定するキー14
cを押す。すると、第13図のデータチエツクル
ーチンにおいて、「円弧点数」カウンタの計数値
が「1」となる。そこでもし、点P2で誤つて「直
線」を指定するキー14bを押すと、円弧点数が
「1」の状態で「直線個数」カウンタの計数値が
カウントアツプされるので、第13図のフローに
よりエラーが判断され、このエラーはブザーによ
り報知される。ここで、カーソル12のキー14
jを押すと第11図のフローにより点P2に関連し
て入力したデータが消去されるからブザーは停止
する。そこで再び点P2にカーソル12の印13a
を一致させて今度は「円弧」を指定するキー14
cを押す。次に、点P3にカーソル12の印13a
を一致させ、次の点P4と点P3との間が直線である
ことから「直線」を指定するキー14bを押す。
こうして、点P1,P2,P3の三点により円弧が決定
される。次に、点P4,P5において、カーソル12
の印13aを一致させて「円弧」を指定するキー
14cを各別に押す。最終点P6においては「終
了」を指定するキー14nを押すと点P4,P5,P6
の三点により円弧が決定されるとともに、第三ブ
ロツクのデータ読み取りが終了する。そこでキー
14hを押して「中振り」を指示すると、円弧
P1,P2,P3の中心点に対して放射状となる「中振
り」が指定され、続いて数字キーのうち例えばキ
ー14eを押すとピツチ「P=0.4mm」が設定さ
れる。
Regarding the third block in FIG. 44, first, the key 14 of the cursor 12 is pressed to specify "embroidery stitching". The third block is P 1 −P 2 −P 3 and P 4 −P 5
Since P 6 is an arc unit, mark 13 of the previous cursor 12
Key 14 to specify "arc" by matching a with P 1
Press c. Then, in the data check routine of FIG. 13, the count value of the "arc point number" counter becomes "1". Therefore, if you accidentally press the key 14b specifying "straight line" at point P2 , the count value of the "straight line number" counter will be counted up while the number of arc points is "1", so the flowchart shown in Fig. 13 will be counted up. An error is determined, and this error is notified by a buzzer. Here, key 14 of cursor 12
When j is pressed, the data entered in connection with point P2 is erased according to the flow shown in FIG. 11, and the buzzer stops. Then, mark 13a of cursor 12 again at point P2.
key 14 to match and specify "arc" this time.
Press c. Next, mark 13a of cursor 12 at point P3
match, and since there is a straight line between the next point P4 and point P3 , press the key 14b to specify "straight line".
In this way, a circular arc is determined by the three points P 1 , P 2 , and P 3 . Next, at points P 4 and P 5 , the cursor 12
align the marks 13a and press the key 14c for specifying "arc" separately. At the final point P 6 , press the key 14n to specify "end" and the points P 4 , P 5 , P 6 are reached.
The arc is determined by the three points, and the data reading of the third block is completed. Then, if you press key 14h and instruct "medium swing", the circular arc
``Medium swing'' is specified, which is radial to the center point of P 1 , P 2 , and P 3 , and then, by pressing, for example, key 14e among the numeric keys, pitch ``P=0.4 mm'' is set.

以下、第47,49図の第4,6ブロツクにつ
いては第1,2ブロツクと同様にしてデータ読み
取りを行い、第48図の第5ブロツクについては
第3ブロツクと同様にしてデータ読み取りを行
う。尚、第4,6ブロツクは縦方向に振りを指定
し、第5ブロツクについては「中振り」を指定す
る。
Hereinafter, data is read for the fourth and sixth blocks in FIGS. 47 and 49 in the same manner as the first and second blocks, and data is read for the fifth block in FIG. 48 in the same manner as for the third block. The fourth and sixth blocks specify vertical swing, and the fifth block specifies "medium swing."

さて、最終ブロツクである第6ブロツク(第4
9図)のデータの読み取り終了後、次の刺繍パタ
ーンのために予め針落ち点を移動させるべく、第
6ブロツクの最終点P5にカーソル12の印13a
を一致させて「ジヤンプ」を指定するキー14m
を押し、次に印13aを点P5から右方に離隔する
点Q3に一致させて1パターンの読み取り終了を
指示するキー14nの二度押しを行うと点P5から
点Q3までの「ジヤンプ」が読み込まれるととも
に、1パターン「B」の読み取りが終了する。読
み込まれたパターン「B」のデータに対し、操作
手段19のキー操作によりパターンNo.が決定さ
れ、システムデイスクにパターンデータが格納さ
れる。
Now, the final block, the 6th block (4th block)
After reading the data in Figure 9), move the mark 13a of the cursor 12 to the final point P5 of the 6th block in order to move the needle drop point in advance for the next embroidery pattern.
Key 14m to match and specify "jump"
, and then align mark 13a with point Q 3 , which is spaced to the right from point P 5 , and press key 14n twice to instruct the end of one pattern reading. At the same time that "jump" is read, reading of one pattern "B" is completed. A pattern number is determined for the read pattern "B" data by key operations on the operating means 19, and the pattern data is stored in the system disk.

次にパターンデータが読み出され、パターン
「B」のX方向最大値、Y方向最大値、X方向最
小値、Y方向最小値がそれぞれ選択され、座標変
換係数算出ルーチンにより表示手段17のCRT
表示部への表示図形のスケールが決定されて、第
24図のフローに基づき第1ブロツクは「赤」、
第2ブロツクは「黄」、第3ブロツクは「青」、第
4ブロツクは「緑」、第5ブロツクは「白」、第6
ブロツクは「紫」、第7ブロツクとして「ジヤン
プ」の箇所は再び「赤」でそれぞれ色分けして
CRT上に表示される。
Next, the pattern data is read out, the maximum value in the X direction, the maximum value in the Y direction, the minimum value in the X direction, and the minimum value in the Y direction of pattern "B" are respectively selected, and a coordinate conversion coefficient calculation routine is performed on the CRT of the display means 17.
The scale of the figure to be displayed on the display unit is determined, and the first block is set to "red" based on the flow shown in FIG.
The second block is "yellow", the third block is "blue", the fourth block is "green", the fifth block is "white", and the sixth block is "white".
The block is colored “purple” and the 7th block “jump” is colored “red” again.
Displayed on CRT.

この表示されたパターン「B」に関するデータ
は、「PTOUT」(第25〜28図、第35,36
図、第40〜42図のフロー)により針落ち座標
算出、針落ち座標格納、及びデイレクトリ部書き
込み処理を行い、データデイスクに格納する。
The data regarding this displayed pattern “B” is “PTOUT” (Figs. 25 to 28, 35 and 36).
40 to 42), needle drop coordinate calculation, needle drop coordinate storage, and directory section write processing are performed and stored in the data disk.

次にエクスクラメーシヨンマーク「!」の読み
取りについて説明する。エクスクラメーシヨンマ
ーク「!」はそのパターンどおり二箇のブロツク
に分割する。
Next, reading the exclamation mark "!" will be explained. The exclamation mark "!" is divided into two blocks according to its pattern.

さて、操作手段19の操作により再び新規入力
を指定する。ここでもパターン「B」の場合と同
様にカーソル12の例えばキー14bを押してカ
ーソルを1倍に設定した後、タブレツト11上の
S1点にカーソル12の印13aを一致させてキー
14aを押し、続いてS2に印13aを一致させて
キー14aを押すことにより、S1,S2点を結ぶ基
線Xnが指定し、すると座標変換係数算出ルーチ
ン(第10図)によりタブレツト11のX軸に対
する基線Xnの傾きが算出される。
Now, by operating the operating means 19, a new input is designated again. Here, as in the case of pattern "B", after pressing the key 14b of the cursor 12 to set the cursor to 1x,
By aligning the mark 13a of the cursor 12 with point S1 and pressing the key 14a, then by aligning the mark 13a with S2 and pressing the key 14a, a baseline Xn connecting the two points S1 and S is specified. Then, the inclination of the base line Xn with respect to the X axis of the tablet 11 is calculated by the coordinate conversion coefficient calculation routine (FIG. 10).

次に、第50図において「模様縫い」を指示す
るカーソル12のキー14kを押した後に、点P1
にカーソル12の印13aを一致させて「直線」
を指示するキー14bを押し、次に点Q1に印1
3aを一致させて「終了」を示指示するキー14
nを押す。こうして、点P1,Q1を直線の模様縫
いで結ぶ。このようにしたのは、その模様縫いブ
ロツクの上端点P1を「!」の上方のブロツクB1
(第51図)の第一点P1に指定することにより、
上方のブロツクB1において上から下へ刺繍が進
行するようにするためである。
Next, in FIG. 50, after pressing the key 14k of the cursor 12 which instructs "pattern sewing", point P 1 is pressed.
Align the mark 13a of the cursor 12 with "Straight line"
Press key 14b to instruct Q1, then mark 1 at point Q1.
Key 14 to indicate "end" by matching 3a
Press n. In this way, points P 1 and Q 1 are connected with straight pattern stitches. I did this by moving the upper end point P 1 of the pattern sewing block to the block B 1 above the "!"
By specifying the first point P 1 in (Figure 51),
This is so that the embroidery progresses from top to bottom in the upper block B1 .

次に第51図において、カーソル12のキー14
を押して「刺繍縫い」を指定する。そして、第
50図の模様縫いブロツクの始点P1をブロツク
B1の始点に設定し第51図の点P1,P2にカーソ
ル12の印13aを一致させて「円弧」を指定す
るキー14cを各別に押し、点P3で「直線」を指
定するキー14bを押すことにより点P1,P2,P3
で円弧が決定される。次に点P4−P5−P6−P7と印
13aを順次一致させながらキー14bを各別に
押していき、点P8,P9と印13aを順次一致させ
ながらそれぞれキー14cを押し、点P1とほぼ一
致する点P10で「終了」を指示するキー14nを
押すと、点P8,P9,P10で円弧が決定されブロツ
クB1の読み取りが終了する。そこで、第51図
において、点Q1にカーソル12の印13aを一
致させてキー14aを押し、続いて点Q2に印1
3aを一致させてキー14aを押すことにより振
り方向がQ1−Q2方向(横方向)に指示される。
この後、カーソル12の、例えばキー14dを押
すことにより振りのピツチ「P=0.3mm」が設定
される。
Next, in FIG. 51, key 14 of cursor 12
Press to specify "embroidery stitch". Then, block the starting point P1 of the pattern sewing block in Figure 50.
Set the starting point of B 1 , align the mark 13a of the cursor 12 with points P 1 and P 2 in Figure 51, press the key 14c to specify "arc" for each, and specify "straight line" at point P 3 . By pressing the key 14b, the points P 1 , P 2 , P 3
The arc is determined by Next, press the keys 14b individually while sequentially aligning the points P 4 -P 5 -P 6 -P 7 with the mark 13a, and press the key 14c while sequentially aligning the points P8 and P9 with the mark 13a. When the key 14n instructing "end" is pressed at point P10 , which almost coincides with point P1 , an arc is determined at points P8 , P9 , and P10 , and reading of block B1 is completed. Therefore, in FIG. 51, align mark 13a of cursor 12 with point Q 1 and press key 14a, then move mark 1 to point Q 2 .
By aligning keys 3a and pressing key 14a, the direction of swing is specified in the Q 1 -Q 2 direction (horizontal direction).
Thereafter, by pressing, for example, the key 14d of the cursor 12, the swing pitch "P=0.3 mm" is set.

次に、第52図において、ブロツクB1の点P10
にカーソル12の印13aを一致させて「ジヤン
プ」を指示するキー14mを押し、次にブロツク
B2の始点P1に印13aを一致させて「終了」を
指示するキー14nを押す。こうして、針落ち点
がP10からP1まで移動する。キー14を押して刺
繍縫いを設定した後に、点P1P2と順次カーソル1
2の印13aを一致させながら「円」を指定する
キー14dをそれぞれ押し、点P3でキー14nを
押すことにより、点P1,P2,P3により円が決定さ
れてブロツクB2の読み取りが終了する。そこで
キー14hを押して「中振り」を指示し、続いて
キー14cを押すことによりピツチ「P=0.2
mm」を設定する。データの読み取りの終了後、次
の刺繍パターンのために予め針落ち点を移動させ
るべく、B2ブロツクの最終点P3にカーソル12
の印13aを一致させて「ジヤンプ」を指定する
キー14mを押し、次に印13aを点P5から離隔
する点Q1に一致させて1パターンの読み取りの
終了を指示する、キー14nの二度押しを行う
と、点P3から点Q1の「ジヤンプ」が読み込まれ
るとともに、1パターン「!」の読み取りが終了
する。
Next, in FIG. 52, point P 10 of block B 1
Align mark 13a of cursor 12 with
Align the mark 13a with the starting point P1 of B2 and press the key 14n to instruct "end". In this way, the needle drop point moves from P10 to P1 . After pressing key 14 to set the embroidery stitch, move the point P 1 P 2 and cursor 1 in sequence.
By pressing the keys 14d for specifying "circle" while matching the marks 13a of 2, and pressing the key 14n at point P3 , a circle is determined by points P1 , P2 , and P3, and the circle is set in block B2 . Reading ends. Then, by pressing the key 14h to instruct "medium swing" and then pressing the key 14c, the pitch "P=0.2" is pressed.
mm”. After reading the data, move the cursor 12 to the final point P3 of the B2 block in order to move the needle drop point in advance for the next embroidery pattern.
Align mark 13a and press key 14m to specify "jump", then press key 14n to align mark 13a with point Q1 separated from point P5 to instruct the end of reading one pattern. When pressed a second time, the "jump" from point P 3 to point Q 1 is read, and the reading of one pattern "!" is completed.

こうして読み込んだデータはパターン「B」の
場合と同様に、入力パターン表示ルーチン及び針
落ち座標算出ルーチンを経て細分化されデータデ
イスクに格納される。
As in the case of pattern "B", the data read in this way is subdivided through the input pattern display routine and needle drop coordinate calculation routine and stored on the data disk.

こうして入力したアフアベツト「B」及びエク
スクラメーシヨンマーク「!」の刺繍縫目は第5
3図のようになる。
The embroidery stitch of the Af A bet “B” and the exclamation mark “!” entered in this way is the 5th stitch.
It will look like Figure 3.

なお、本実施例においては、支持枠5に刺繍枠
6を支持し、支持枠を作動手段により移動する構
成のものを示したが、刺繍枠を作動手段に連結し
て移動するようにしてもよい。
In this embodiment, the embroidery frame 6 is supported by the support frame 5, and the support frame is moved by the actuating means. However, the embroidery frame may be moved by being connected to the actuating means. good.

また、本実施例においては、データデイスクの
データにより支持枠をX,Y方向へ移動する構成
のものを示したが、サーボモータ、ステツピング
モータ等の制御により針を横方向に揺動する千鳥
縫いミシンを配置し、データデイスクのデータに
より支持枠の移動と同時に針の揺動を制御するよ
うにしてもよい。
In addition, in this embodiment, a configuration in which the support frame is moved in the X and Y directions according to the data on the data disk was shown, but the needles are oscillated in the horizontal direction by control of a servo motor, a stepping motor, etc. A sewing machine may be arranged, and the movement of the support frame and the swinging of the needle may be controlled simultaneously with the data on the data disk.

また、本実施例においては、内外周の径の比が
1:3でピツチが0.4mm以下のとき内周針落ち点
を内外周の間の1/3の位置としたが、上記の各数
値は本実施例のものに限定されるものではない。
また本実施例においては、タブレツト11、カー
ソル12とによる読み取り手段により原図を読み
取り、その読み取りデータに基づいてコンピータ
により針落ち点を設定するデータを作成するもの
を示したが、作業者が針落ち点を一点づつ指示し
てデータを作成するようにしても、他の方法によ
つてもよい。
In addition, in this example, when the ratio of the diameters of the inner and outer circumferences is 1:3 and the pitch is 0.4 mm or less, the inner circumference needle drop point is set at a position 1/3 between the inner and outer circumferences, but each of the above values is not limited to that of this embodiment.
In addition, in this embodiment, an original drawing is read by a reading means including a tablet 11 and a cursor 12, and data for setting a needle drop point is created by a computer based on the read data. The data may be created by specifying points one by one, or by other methods.

以上のようにこの発明によれば、 外周に対する内周の径の比率が所定値より小さく
且つ内周の針落ち間隔が所定長さより短かいとき
に、内周の輪郭線上の針落ち点が内外周の中間点
と内周の輪郭線上とに交互に位置するように設定
したことにより、内周部の針落ち間隔が短かくて
も目づまり等がなくなり、刺繍縫目が綺麗に仕上
がつて商品の品質を向上する効果が得られる。
As described above, according to the present invention, when the ratio of the diameter of the inner circumference to the outer circumference is smaller than a predetermined value and the needle drop interval on the inner circumference is shorter than a predetermined length, the needle drop points on the contour line of the inner circumference are By setting the needles to be located alternately at the midpoint of the circumference and on the contour line of the inner circumference, even if the needle drop interval on the inner circumference is short, there will be no clogging, and the embroidery stitches will be finished neatly. The effect of improving product quality can be obtained.

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

第1図は、刺繍ミシン、タブレツト、及び表示
装置の斜視図、第2図はデータ入力のためのカー
ソルの正面図、第3図Aはタブレツトの座標と基
線との関係を示す図、第3図Bはパターンをブロ
ツク分けする図、第4図は本発明の制御手段のデ
ータ処理のゼネラルフローチヤート、第5図はデ
ータの入力及びチエツクのフローチヤート、第6
図はデータの表示フローチヤート、第7図はデー
タから針落ち点を算出しデータデイスクに格納す
るためのフローチヤート、第8,9図はミシンの
制御フローチヤート、第10図は図面拡大率(ス
ケール)の入力及び基線決定のためのフローチヤ
ート、第11図は1ブロツク内のデータ読取フロ
ーチヤート、第12A図は模様縫いの図、第12
B図は刺繍縫いの図、第12C図はジヤンプの
図、第13図は1ブロツク内のデータチエツクフ
ローチヤート、第14図〜19図はデータチエツ
クの具体例を示す図、第20図はユニツトに構成
データを付与するフローチヤート、第21,22
図は1パターンの最大座標及び最小座標を演算す
るフローチヤート、第23図はCRTにおける表
示座標を算出するフローチヤート、第24図は各
ブロツク毎に異なるカラー表示コードを与えるフ
ローチヤート、第25図は円または円弧の中心座
標及び半径を算出するフローチヤート、第26図
は振りの種類を指定するフローチヤート、第2
7,28図は振り方向指定における針落ち点を算
出するフローチヤート、第29図はユニツトと直
線Lnとの交点の座標を算出するフローチヤー
ト、第30図は振り方向指定における針落ち点の
指定の説明図、第31A〜31C図は直線Lnと
各ユニツトとの交点が「2」となる場合の位置関
係を示す図、第32図は直線Lnと各ユニツトと
の交点が「3」となる場合の説明図、第33図は
直線Lnと各ユニツトとの交点が「4」となる場
合の説明図、第34図は各ユニツトの交点の中か
ら針落ち座標を選択する状態の説明図、第35,
36図は中振りにおける針落ち点を算出するフロ
ーチヤート、第37図は中振りにおける針落ち点
の指定の説明図、第38図は中振りにおいて目づ
まり防止用の縫目を示す図、第39図は円におけ
る中振りの図、第40図は模様縫目算出のフロー
チヤート、第41,42図は針落ち座標のデータ
デイスクへの格納のフローチヤート、第43図は
データにデイレクトリ部分を付加するためのフロ
ーチヤート、第44〜49図はパターン「B」の
読み取り状態の図、第50〜52図はパターン
「!」の読み取り状態の図、第53図はパターン
「B」及び「!」の刺繍縫目の図である。
1 is a perspective view of an embroidery sewing machine, a tablet, and a display device, FIG. 2 is a front view of a cursor for data input, FIG. 3A is a diagram showing the relationship between the coordinates of the tablet and a baseline, FIG. 4 is a general flowchart of data processing by the control means of the present invention, FIG. 5 is a flowchart of data input and checking, and FIG. 6 is a diagram of dividing the pattern into blocks.
The figure is a data display flowchart, Figure 7 is a flowchart for calculating the needle drop point from the data and storing it in the data disk, Figures 8 and 9 are sewing machine control flowcharts, and Figure 10 is the drawing magnification ( Figure 11 is a flowchart for reading data in one block, Figure 12A is a diagram for pattern sewing, Figure 12
Figure B is a diagram of embroidery sewing, Figure 12C is a diagram of a jump, Figure 13 is a flowchart of a data check in one block, Figures 14 to 19 are diagrams showing specific examples of data checks, and Figure 20 is a unit. Flowchart for adding configuration data to 21st and 22nd
The figure is a flowchart for calculating the maximum and minimum coordinates of one pattern, Figure 23 is a flowchart for calculating display coordinates on a CRT, Figure 24 is a flowchart for giving a different color display code for each block, and Figure 25 is a flowchart for calculating display coordinates on a CRT. Figure 26 is a flowchart for calculating the center coordinates and radius of a circle or arc, and Figure 26 is a flowchart for specifying the type of swing.
Figures 7 and 28 are flowcharts for calculating the needle drop point when specifying the swing direction, Figure 29 is a flowchart for calculating the coordinates of the intersection of the unit and straight line Ln, and Figure 30 is a flowchart for specifying the needle drop point when specifying the swing direction. 31A to 31C are diagrams showing the positional relationship when the intersection of the straight line Ln and each unit is "2", and FIG. 32 is a diagram showing the positional relationship when the intersection of the straight line Ln and each unit is "3". FIG. 33 is an explanatory diagram of the case where the intersection point of the straight line Ln and each unit is "4", FIG. 34 is an explanatory diagram of the state where the needle drop coordinate is selected from the intersection points of each unit, 35th,
Figure 36 is a flowchart for calculating the needle drop point in the middle swing, Figure 37 is an explanatory diagram for specifying the needle drop point in the middle swing, Figure 38 is a diagram showing the stitches for preventing clogging in the middle swing, Figure 39 is a diagram of the middle swing in a circle, Figure 40 is a flowchart for calculating pattern stitches, Figures 41 and 42 are flowcharts for storing needle drop coordinates in the data disk, and Figure 43 is a diagram of adding the directory part to the data. Flowchart for adding, FIGS. 44-49 are diagrams of the reading state of pattern "B", FIGS. 50-52 are diagrams of the reading state of pattern "!", and FIG. 53 is a diagram of pattern "B" and "!" ” is a diagram of the embroidery stitches.

Claims (1)

【特許請求の範囲】 1 所定の輪郭線の刺繍縫目を形成するように布
に対する針落ち点に対応する座標データに基づい
て電気的に作用し布を針上下動位置に対しX方向
またはY方向またはその合成方向に移動する布移
送手段を有する刺繍ミシンにおいて、 内外周を同心円とした輪郭線内に刺繍縫目を形
成するように内外周の輪郭線上に交互に各別に等
間隔の針落ち点を設定するについて、 前記座標データまたは座標データを形成するた
めの原始パターンデータに基づいて、外周に対す
る内周の径の比率及び内周の針落ち間隔を判断
し、比率が所定値より小さく且つ間隔が所定長さ
より短かいときに内外周輪郭線の間の所定点を演
算設定し、内周輪郭線上の針落ち点が前記所定点
と内周輪郭線上とに交互に位置するように座標デ
ータを演算設定する刺繍ミシンの針落ち制御方
法。
[Claims] 1. The embroidery stitch is electrically actuated based on the coordinate data corresponding to the needle drop point on the cloth to form an embroidery stitch with a predetermined contour line, and the cloth is moved in the X direction or Y direction relative to the vertical movement position of the needle. In an embroidery sewing machine having a cloth transfer means that moves in a direction or a composite direction, needle drops are placed at equal intervals on the inner and outer contours of the inner and outer circumferences so as to form embroidery stitches within the contour lines with the inner and outer circumferences being concentric circles. For setting points, the ratio of the diameter of the inner circumference to the outer circumference and the needle drop interval of the inner circumference are determined based on the coordinate data or the original pattern data for forming the coordinate data, and if the ratio is smaller than a predetermined value and When the interval is shorter than a predetermined length, a predetermined point between the inner and outer circumferential contours is calculated and set, and coordinate data is set so that the needle drop points on the inner circumferential contour are alternately located at the predetermined point and on the inner circumferential contour. How to control the needle drop of an embroidery sewing machine by calculating and setting.
JP8270882A 1982-05-17 1982-05-17 Controlling of falling of needle in embroidering machine Granted JPS58198378A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8270882A JPS58198378A (en) 1982-05-17 1982-05-17 Controlling of falling of needle in embroidering machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8270882A JPS58198378A (en) 1982-05-17 1982-05-17 Controlling of falling of needle in embroidering machine

Publications (2)

Publication Number Publication Date
JPS58198378A JPS58198378A (en) 1983-11-18
JPS6142593B2 true JPS6142593B2 (en) 1986-09-22

Family

ID=13781898

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8270882A Granted JPS58198378A (en) 1982-05-17 1982-05-17 Controlling of falling of needle in embroidering machine

Country Status (1)

Country Link
JP (1) JPS58198378A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008022992A (en) 2006-07-19 2008-02-07 Brother Ind Ltd Embroidery data creating device, embroidery data creating program, and computer-readable recording medium recording embroidery data creating program
JP2012100788A (en) 2010-11-09 2012-05-31 Brother Ind Ltd Embroidery data creating device, embroidery data creating program, and computer-readable medium storing the program

Also Published As

Publication number Publication date
JPS58198378A (en) 1983-11-18

Similar Documents

Publication Publication Date Title
JPS6116185B2 (en)
US4429364A (en) Sewing machine-pattern data processor
US4446520A (en) Process of preparing and processing sewing data for an automatic sewing machine
JP3434075B2 (en) Embroidery data processing device
JPS622556B2 (en)
JPS6317474B2 (en)
US5189623A (en) Embroidery data processing apparatus
JPS6142593B2 (en)
JPS63125284A (en) Needle location control method of embroidering machine
JPH0815512B2 (en) Sewing data of sewing machine
JPS6116188B2 (en)
JPS6142592B2 (en)
JPS6357802B2 (en)
JPS6116189B2 (en)
JPS6116186B2 (en)
JPS6116187B2 (en)
JPH0214077B2 (en)
JPS6116190B2 (en)
JP2717537B2 (en) How to set character spacing on embroidery sewing machines
JPS63145693A (en) Data input apparatus of embroidering pattern sewing machine
JP2861437B2 (en) Needle entry data creation device for embroidery sewing machine
JPS62253098A (en) Sewing pattern data forming apparatus for sewing machine
JPH0377579A (en) Inputting device for sewing pattern data of sewing machine
JP2823135B2 (en) Pattern sewing machine
JP3473970B2 (en) Original sheet for tatami sewing and method of determining tatami sewing direction