JPS63145693A - Data input apparatus of embroidering pattern sewing machine - Google Patents

Data input apparatus of embroidering pattern sewing machine

Info

Publication number
JPS63145693A
JPS63145693A JP28145087A JP28145087A JPS63145693A JP S63145693 A JPS63145693 A JP S63145693A JP 28145087 A JP28145087 A JP 28145087A JP 28145087 A JP28145087 A JP 28145087A JP S63145693 A JPS63145693 A JP S63145693A
Authority
JP
Japan
Prior art keywords
point
data
key
block
arc
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
JP28145087A
Other languages
Japanese (ja)
Inventor
篠宮 宏彰
野口 峰利
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
Juki Corp
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 Juki Corp filed Critical Juki Corp
Priority to JP28145087A priority Critical patent/JPS63145693A/en
Publication of JPS63145693A publication Critical patent/JPS63145693A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 この発明は、円または円弧の針落ちデータを作成する刺
繍模様ミシンのデータ入力装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data input device for an embroidery pattern sewing machine that creates circular or arcuate needle drop data.

従来、この種の刺繍ミシンにおいては、刺繍データを作
成するときには、マイクロコンピュータ等を用いて文字
等の図形の座標点をキーボードにより入力していたが、
これによれば作業が著しく煩雑となり作業能率を低下し
ていた。またキーボードによる入力時に操作ミスによる
誤入力が発生し易く、−立入力したデータは実際に刺繍
を施して確認し、エラーの場合は再び最初から全座標点
をキーボード入力しなければならないから、作業を煩雑
とした。
Conventionally, in this type of embroidery sewing machine, when creating embroidery data, the coordinate points of figures such as characters were entered using a keyboard using a microcomputer, etc.
This made the work extremely complicated and reduced work efficiency. In addition, when inputting data using a keyboard, it is easy to make incorrect inputs due to operational errors. - The data input vertically must be checked by actually embroidering, and if an error occurs, all coordinate points must be entered from the beginning again using the keyboard. became complicated.

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

この発明の実施例を図面により説明する。1は平坦な上
面1aをもつ基台であり、上面1a上にはベッド面2a
を上面1aと同一平面とするようにミシン2を載置し、
ミシン2は主軸(図示しない)と同一軸線上に設置した
駆動モータ3に連動して針4を上下動する。5は支持枠
であり、布を張設して保持する刺繍枠6を着脱可能に枠
内に支持し、支持枠5は基台1内方に配置したステッピ
ングモータ等の駆動手段(図示しない)に連動し。
Embodiments of the invention will be described with reference to the drawings. 1 is a base having a flat upper surface 1a, and a bed surface 2a is provided on the upper surface 1a.
Place the sewing machine 2 so that it is flush with the top surface 1a,
The sewing machine 2 moves a needle 4 up and down in conjunction with a drive motor 3 installed on the same axis as a main shaft (not shown). Reference numeral 5 denotes a support frame, which removably supports an embroidery frame 6 for holding cloth stretched thereon, and the support frame 5 is driven by a driving means (not shown) such as a stepping motor disposed inside the base 1. Linked to.

上面1a上をミシン主軸の軸線方向に沿うX方向及び軸
線方向との交叉方向に沿うY方向との合成方向へ移動可
能とする。7はフロッピ読み取り手段でありフロッピー
ディスク(図示しない)を着脱可能とする差し込み部7
aを有して差し込まれたフロッピーディスクのデータを
読み取る。8はキーボードであり、読み取り手段におい
て読み取ったフロッピーデータの読み出し及びミシン2
の縫い動作や支持枠5の移動制御等に関するデータのフ
ロッピーディスクへの書き込み等のためのキー操作群9
と、操作キ一群9のキー操作に関連して入力または出力
したデータを文字表示する表示部10とをもつ。
It is made movable on the upper surface 1a 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 direction crossing the axial direction. Reference numeral 7 denotes a floppy reading means, and an insertion portion 7 into which a floppy disk (not shown) can be inserted and removed.
Read the data on the inserted floppy disk with a. 8 is a keyboard, which reads the floppy data read by the reading means and which is used by the sewing machine 2.
Key operation group 9 for writing data to a floppy disk regarding sewing operations, movement control of the support frame 5, etc.
and a display section 10 that displays data input or output in relation to key operations of the operation 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);
A cursor (reader) 12 is connected via a cord. 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. A lamp 15 is provided that lights up to confirm the generation of a signal when 14 is operated. 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 the coordinates related to the operation of the operation keys 14 are detected. The position coordinates are read and a coordinate signal corresponding to each coordinate is generated.

16は制御装置であり、CRT表示を行なう表示手段1
7.及び基本データを書き込むシステムフロッピーディ
スク(システムディスク)を着脱可能とする差し込み部
18aとフロッピー読み取り手段7に読み取らすデータ
を書き込むデータフロッピーディスク(データディスク
)を着脱可能とする差し込み部18bとをもち、各フロ
ッピーディスクに書き込みまたは読み出しを行なうフロ
ッピー制御手段18、及び複数のキーをもつ操作手段1
9、及びROM、RAM、CPU等をもつ制御回路(図
示しない)とからなり、制御回路には後述するように第
4図に示すフローに基づくプログラムが記憶されている
。第4図のフローにおいて、システムディスクより図形
入力修正プログラムrPT I N□」 を読み込み、
そのrPRINl」を処理したデータを入力時にはシス
テムディスクに書き込み、修正時にはシステムディスク
から一度書き込んだ処理データを読み出して修正を行な
い、再度システムディスクに処理データとして書き直す
。rPTINlJを処理してから表示指令の有無を判断
し1表示指令が出たときにシステムディスクより入カバ
ターン表示プログラムrPTDI PJを読み込みその
rPTDIPJに基づいてシステムディスクからの前記
処理データを表示手段17にCRT表示する。rPTD
IPJの処理後または表示指令がないときは修正の有無
を判断し、修正時に前記したプログラムrPTIN工」
 に基づく修正処理データの再書き込みを行なう。修正
のないときはシステムディスクより針落ち座標計算出カ
プログラムrRTOUTJを読み込み、システムディス
クの処理データを処理してその処理結果、即ち針落ち座
標等のデータをデータディスクに書き込みフローを終え
る。
16 is a control device, display means 1 for performing CRT display;
7. and an insertion section 18a into which a system floppy disk (system disk) for writing basic data can be removably inserted, and an insertion section 18b into which a data floppy disk (data disk) into which data to be read by the floppy reading means 7 is written can be removably installed; Floppy control means 18 for writing to or reading from each floppy disk, and operation means 1 having a plurality of keys.
9, and a control circuit (not shown) having ROM, RAM, CPU, etc., 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, load the graphic input correction program rPT I N□ from the system disk,
When inputting the processed data of "rPRINl", it is written to the system disk, and when modifying it, the once-written processing data is read out from the system disk, modified, and rewritten to the system disk as processing data. After processing rPTINlJ, it is determined whether there is a display command or not, and when a display command is issued, the input pattern display program rPTDIPJ is read from the system disk and the processed data from the system disk is displayed on the display means 17 on the basis of the rPTDIPJ. indicate. rPTD
After IPJ processing or when there is no display command, it is determined whether or not there is a modification, and the program rPTIN described above is executed at the time of modification.
The correction processing data is rewritten based on. If there is no modification, the needle drop coordinate calculation output program rRTOUTJ 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.

図面入力修正プログラム(PTINl)  についてさ
らに第5図フローにおいて説明する。読み込むデータが
新規入力か、即ち修正か否かを判定し、新規の場合には
、タブレット11上において読み取られる原図が何倍に
拡大されたものかをカーソル12からのキー人力により
読み込む。この倍率の入力はカーソル12の「1」〜「
9」の数字キーによって行なわれ、例えば「4」を入力
したときは「1」を入力したときに較ベスケールは1/
4倍になる。そして次に、「基線」の決定を行う。
The drawing input correction program (PTINl) will be further explained with reference to the flowchart in FIG. It is determined whether the data to be read is a new input, that is, a modification, and if it is new, the number of times the original drawing read on the tablet 11 has been enlarged is read by manual keystrokes from the cursor 12. Input this magnification by moving the cursor 12 from "1" to "
For example, when inputting ``4'', when inputting ``1'', the comparison scale is 1/1.
It becomes 4 times. Next, a "baseline" is determined.

基線とは、針落ち点をプロットするために予め指定する
基準のXn座標であり、第3図Aに示すようにタブレッ
ト11のもつ絶対X座標との傾斜θで特徴づけられる。
The base line is a standard Xn coordinate specified in advance for plotting the needle drop point, and is characterized by an inclination θ with respect to the absolute X coordinate of the tablet 11, as shown in FIG. 3A.

この傾斜角θの決定は、第10図のフローに基づき、カ
ーソル12により次のように行なわれる。すなわち、カ
ーソル12の印13aを絶対座標の(Xa、Ya)点に
あわせてキー14aを押すことにより先ず(Xa、Ya
)点の座標を読み込み、次に(Xa、・Y’a)点から
離隔する(xb、yb)点でキー14aを押すことによ
り(xb、yb)点の座標を読み込む。これらから、X
軸方向の距離L X = X b −X a及びy軸方
向の距離LY=Yb−Yaが演算され、続いてLXY=
((Xb−Xa)”+ (Yb−Ya)が演算されて、
cosθ=LX/LXY、LY/LXYが決定され、今
後は絶対座標Xに対しθ傾斜した基線がX軸となる。こ
の基線Xnと絶対座標(x、y)とはXn:Xeo3θ
−Ysinθの関係にある。こうして座標変換係数co
sθ、sinθ が決定されると、次には第11図のフ
ローに基づき、デ・−夕の読み取り動作に入る。
The inclination angle θ is determined as follows using the cursor 12 based on the flow shown in FIG. That is, by aligning the mark 13a of the cursor 12 with the absolute coordinate point (Xa, Ya) and pressing the key 14a, first
), and then by pressing the key 14a at a point (xb, yb) that is distant from the point (Xa, .Y'a), the coordinates of the point (xb, yb) are read. From these,
The axial distance L
((Xb-Xa)"+ (Yb-Ya) is calculated,
cos θ=LX/LXY, LY/LXY are determined, and from now on, the base line inclined θ with respect to the absolute coordinate X will be the X axis. This baseline Xn and absolute coordinates (x, y) are Xn:Xeo3θ
-Y sin θ. Thus, the coordinate transformation coefficient co
Once sθ and sinθ are determined, the data reading operation begins based on the flow shown in FIG.

本実施例では、後の作・用で詳述するように、原図の読
み込みに際して1例えば第3図Bに示すように原図を複
数のブロックに分割している。第11図のフローの「縫
いの種類の選択」における「縫いの種類」とは、本実施
例においては、模様縫い、刺繍縫い、ジャンプの三種類
であり、それぞれカーソル12のキー14k、キー14
1.キー14mによって指示する。模様縫いとは、第1
2A図に示すようにパターンの輪郭のみを縫うことであ
り、刺繍縫いとは第12B図のようにパターンの内部を
縫糸で埋め尽すことであり、ジャンプとは、第12C図
に示すようにPlから針落ちすることなく22点まで縫
目が進むことである。
In this embodiment, as will be described in detail later, when reading the original drawing, the original drawing is divided into a plurality of blocks as shown in FIG. 3B, for example. In this embodiment, the "sewing type" in "sewing type selection" in the flowchart of FIG. 11 is three types: pattern stitching, embroidery stitching, and jump.
1. Instruct with key 14m. Pattern sewing is the first
As shown in Figure 2A, embroidery stitching refers to sewing only the outline of the pattern, as shown in Figure 12B, embroidery stitching refers to filling the inside of the pattern with sewing thread as shown in Figure 12C, and jumping refers to stitching only the outline of the pattern as shown in Figure 12C. This means that the stitches can proceed up to 22 points without needle drop.

点数カウントとは、例えば第3図に示すように、1ブロ
ツク内の点を1〜5と順次加算してゆくためのカウンタ
であり、先ずその計数値Pを「0」にセットし、カーソ
ル12により点の読み取りを行う毎に計数値Pを「1」
だけカウントアツプする。次に、「全点終了」、即ちブ
ロックの読み取りが終了か否かの判断を行う。カーソル
12のr14nJキーが押された時点でブロックの読み
取りの終了が判断される。「全点終了」に至っていない
なら、「ブロック再読取」か否かを判断する。「ブロッ
ク再読取」とは、作業者の操作ミスにより不本意な点が
読み込まれた場合に、ブロック全体のデータを修正する
ために作業者がカーソル12のキー14j を押した場
合である。キー14jが押されると、ブロック内のすべ
ての点のデータがクリアされて、データを始めから読み
直す必要がある。
For example, as shown in FIG. 3, the point count is a counter that sequentially adds up the points in one block from 1 to 5. First, the count value P is set to "0", and the cursor 12 is Each time a point is read, the count value P is set to 1.
Only count up. Next, it is determined whether "all points have been completed", that is, whether reading of the block has been completed. When the r14nJ key of the cursor 12 is pressed, it is determined that reading the block has ended. 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 in order 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.

キー14jが押されていないなら、r画点入力ミス」を
判断する。「画点入力ミス」とは金入力したデータが誤
りであり、そのデータを修正するために作業者がカーソ
ル12のキー14iを押した場合である。キー14jが
押されると点数カウンタの計数値Pが「2」だけカウン
トダウンした後「1」だけカウントアツプするから一つ
前のデータがクリアされてそこに正しいデータを読み込
むことが可能となる。キー14jもキー14jも押され
ないときに、直ちに以下に示す「直線」、1円」、「円
弧」の読み取り動作に入る。
If the key 14j is not pressed, it is determined that there is an error in inputting the r pixel. A "pixel input error" is a case where the input data is incorrect and the operator presses the key 14i of the cursor 12 to correct the data. When the key 14j is pressed, the count value P of the point counter 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. When neither the key 14j nor the key 14j is pressed, the reading operation of "straight line", "1 circle", and "circular arc" shown below immediately starts.

本実施例においては、一つのブロックの縁を構成する個
々の辺(直線)1円弧、及び円をそれぞれユニットと称
する。直線がその両端の二点によ −り決定され1円及
び円弧が同一線上にない三点により決定されることは周
知であり、本実施例におけるユニットの決定には、この
幾何学的性質が利用されている。即ち、例えば円弧を決
定すべき点が一点しかなかったり、逆に四点以上ある場
合はエラーと見做すべきことになり、そのようなチェッ
クは第9図のフローにより行なわれる。
In this embodiment, each side (straight line), one circular arc, and a circle constituting 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 a circle and an arc are determined by three points that are not on the same line, and this geometric property was used to determine the units in this example. It's being used. 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において、直線の指定はキー14bに、円
弧の指定はキー14cに1円の指定はキー14dにそれ
ぞれ対応している。カーソル12によるこれら各別の指
定操作は第13図のフローの中で説明する。
In the cursor 12, the designation of a straight line corresponds to the key 14b, the designation of a circular arc corresponds to the key 14c, and the designation of 1 circle corresponds to the key 14d. These different designating operations using the cursor 12 will be explained in the flowchart of FIG.

第13図において、先ず以下で用いる「直線個数」 「
円弧点数」 「内点数」 「円弧個数」 「円側数」の
各カウンタの計数値を予め「0」にセットする。そして
以下、カーソル12のキー14b、キー14cまたは1
4dの操作に関連してそれぞれ「直線個数」、「円弧点
数」または1円点数」カウンタを「1」だけカウントア
ツプする。「直線個数」カウンタが「1」だけカウント
アツプすると、「円弧点数」カウンタの計数値が判断さ
れる。例えば第14図のような点P2〜P、を入力する
場合、P工〜P3が円弧でありP、〜P4が直線である
とする。カーソル12の印13a  を点P1に一致さ
せてキー14cを押し、次に印13aを点P2 に一致
させてキー14c を押すと、「円弧点数」カウンタの
計数値は「2」となる。このとき、印13aを点P、に
あててキー14cを押すと、点P、、 P2. P、に
より円弧が1つ決定されるからr円弧個数」カウンタの
計数値が「1」だけ、カウントアツプするとともに、一
つの円弧の決定が終了したことにより、「円弧点数」カ
ウンタは「0」にクリアされる。この場合は正常である
から、第13図のフローのチェック機能は作動しない、
ところが、「円弧点数」カウンタが「1」の時点で、即
ち第15図に示すように、P□を入力した時点でカーソ
ル12の印13aを点P2 に一致させて直線を指示す
るキー14bを押してしまうと、P□とP2 とでは円
弧を決定することができないから、ブザーが鳴りデータ
入力のミスが報告される。この場合には第11図のフロ
ーにより、カーソル12のキー14jまたは14yを押
してデータを修正する必要がある。また、第16図にお
いて1点p1. p2でともにキー14Cを押して1点
P、でもキー14Cを押した場合には、  ゛点P□、
P、、P3により円弧が決定されて「円弧個数」カウン
タの計数値が「1」カウントアツプされることは上記と
同様であるが、点P3は円弧の最終であるとともに次の
円弧の始点と見做され。
In Figure 13, first of all, the "linear number" used below is "
The count values of the counters ``Number of arc points'', ``Number of inner points'', ``Number of arcs'', and ``Number of circle sides'' are set to ``0'' in advance. Then, below, key 14b, key 14c or 1 of cursor 12
In connection with the operation 4d, each of the "number of straight lines", "number of circular arc points", or "number of 1 circle points" counters is incremented 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 P2 to P as shown in FIG. 14, it is assumed that P to P3 is an arc and P to P4 is a straight line. When the mark 13a of the cursor 12 is aligned with the point P1 and the key 14c is pressed, and then the mark 13a is aligned with the point P2 and the key 14c is pressed, the count value of the "arc point" counter becomes "2". At this time, when the mark 13a is placed on the point P and the key 14c is pressed, the points P, P2, . Since one arc is determined by P, the count value of the "r number of arcs" counter increases by "1", and since the determination of one arc is completed, the "number of arc points" counter becomes "0". cleared. In this case, it is normal, so the flow check function in Figure 13 does not work.
However, when the "arc point number" counter is "1", that is, when P□ is input, as shown in FIG. If you press the button, the arc cannot be determined using P□ and P2, so a buzzer sounds and a data input error is reported. In this case, it is necessary to correct the data by pressing the key 14j or 14y of the cursor 12 according to the flow shown in FIG. Also, in FIG. 16, one point p1. At p2, press key 14C together to get 1 point P, but if you press key 14C, ゛point P□,
The arc is determined by P, , P3 and the count value of the "Number of arcs" counter is incremented by "1" in the same way as above, but point P3 is the final point of the arc and the starting point of the next arc. Regarded.

「円弧個数」カウンタの計数値は「o」でなく「1」と
なり、エラーとはならない。また、第17図において、
点P□、 P2. P、でともにキー14dを押すと1
円点数カウンタの計数値は「3」となって、点p1. 
pt、 p、により円が決定されるので「円個数」カウ
ンタの計数値が「1」だけカウンタアップされる。そこ
でもし、日中の点P、にカーソル12の印13aを一致
させてキー14dを押すと、r円点数」カウンタの計数
値がさらに「1」だけカウントアツプされてr4Jとな
るが、本実施例においては第18図に示すように点P4
を通り点pi、p、、p、 と同心な円が形成されるの
でこれはエラーとは見做されない、しがし、「円点数」
カウンタの計数値がさらに「1」だけカウントアツプさ
れて「5」となると、点が多すぎることになるのでブザ
ーが鳴ってエラーが報知される。
The count value of the "arc number" counter is not "o" but "1", and no error occurs. Also, in Figure 17,
Point P□, P2. Press key 14d at both P and 1.
The count value of the circle point number counter becomes "3", and the point p1.
Since the circle is determined by pt, p, the count value of the "number of circles" counter is incremented by "1". Therefore, if you align the mark 13a of the cursor 12 with the point P during the day and press the key 14d, the count value of the "r circle score" counter is further counted up by "1" and becomes r4J, but in this implementation In the example, as shown in FIG.
This is not considered an error because a circle concentric with the points pi, p, , p, is formed through .
When the count value of the 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図に示すように最終
点PQよりも一つ前の点PQ−1における「円弧点数」
カウンタの計数値が「2」であれば、最終点PQにおい
て、カーソル12のキー14nにより入力されるデータ
と点PQ−,,PQ−1の三つのデータにより円弧を完
成させて円弧を一つ完成させ、「円弧個数」カウンタの
計数値をrlJだけカウントアツプする。ところがもし
、点PQ−,で「円弧点数」カウンタが「1」であれば
最終点PQにより円弧を完結することが不可能になるか
らブザーを鳴らしてエラーを報知する。
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 shown in Figure 17 is Proceed to. Also, as shown in Figure 19, the "number of arc points" at the point PQ-1, which is one point before the final point PQ.
If the count value of the counter is "2", the arc is completed at the final point PQ using the data input by the key 14n of the cursor 12 and the three data at points PQ-, , PQ-1, and one arc is formed. Complete the process and increment the count value of the "number of arcs" counter by rlJ. However, if the "arc point number" counter is "1" at point PQ-, it will be impossible to complete the arc at the final point PQ, so a buzzer will sound to notify an error.

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

構成データとしは、各ユニットに個別に対するD (X
、1)〜D (X、5)の5個の数字である。
The configuration data includes D (X
, 1) to D (X, 5).

Xは、各ユニットを識別するための続き番号である。先
ずD(X、1)はユニットの種類を示すためのコードで
あり、直線では「O」、円弧では「1」、円では「2」
と与える。D (X、2)には、そのユニットの始点と
なる点の番号(第3図B参照)を与え、 D (X、3
)にはそのユニットの中点となる点の番号を与える。但
し、直線二二ットは中点をもたないので、便宜的に「−
1」を与える。D (X、4)にはそのユニットの終点
となる点の番号を与える。とくに、ブロックの終点のユ
ニットが直線であると、そのユニットの終点はブロック
の始点に一致するため、J=Oとおいて、D (X、4
)=O+1=1、且っJ=o+1=1に戻す。ブロック
の最後のユニットが円弧で有る場合にも、そのユニット
の終点がブロックの始点に一致するため、先ずJ=−1
とおいて、D(X、4)=−1+2=1かっJ=−1+
2=1に戻す。こうしてデータチェック及び各ユニット
への構成データの付与が1ブロツクに亘って終了すると
、第5図のフローに戻って「振り」及び「ピッチ」の指
定入力を行う。「ピッチ」はカーソル12の数字キー1
4 a 〜14 jを用いて0.1m単位で行う。例え
ばキー14b、14cと続けて押すと針落ち点間のピッ
チとして0.lX12=1゜2mmが設定される。
X is a serial number for identifying each unit. First, D(X, 1) is a code to indicate the type of unit; "O" for a straight line, "1" for an arc, and "2" for a circle.
and give. D (X, 2) is given the number of the starting point of the unit (see Figure 3 B), and D (X, 3
) gives the number of the midpoint of the unit. However, since the straight line 22 does not have a midpoint, it is conveniently written as ``−
1” is given. For D (X, 4), give the number of the end point of the unit. In particular, if the unit at the end point of the block is a straight line, the end point of that unit coincides with the start point of the block, so if J=O, D (X, 4
)=O+1=1, and return J=o+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 J = -1
Then, D(X, 4)=-1+2=1 or J=-1+
Return to 2=1. When the data check and the assignment of configuration data to each unit for one block are completed in this way, the process returns to the flow shown in FIG. 5 and the designation input of "swing" and "pitch" is performed. "Pitch" is number key 1 of cursor 12
4 a to 14 j in units of 0.1 m. For example, if keys 14b and 14c are pressed successively, the pitch between the needle drop points will be 0. lX12=1°2mm is set.

続いて、カーソル12を用いて1ブロツク内における「
振り」が指定される。本実施例においては、「振り」に
は第30図に示すような「方向指定」、第36図に示す
ような「中振り」の二種類がある。
Next, use the cursor 12 to select "
"Furi" is specified. In this embodiment, there are two types of "swings": "direction designation" as shown in FIG. 30, and "medium swing" as shown in FIG. 36.

「方向指定」においては、図示しないが第10図と同様
のフローに基づき、カーソル12のキー14aを先ず一
度押し1次にカーソル12の印13aを移動してキー1
4aを再び押すことにより基線Xn(第3図)に対する
振り方向が決定される。
In "direction designation", although not shown, based on the same flow as in FIG.
By pressing 4a again, the swing direction relative to the base line Xn (FIG. 3) is determined.

また、「中振り」はカーソル12のキー14hを押すこ
とによって指定される。
Further, "medium swing" is specified by pressing the key 14h of the cursor 12.

こうして1ブロツクのデータ読み取りが完了するとその
原図(パターン)の全ブロックのデータ読み取りが完了
したか否かを完了指令の有無、即ちカーソル12のキー
14nが二回続けて押されたか否かにより判断し、その
完了時にはそれらのデータをデータディスクへ登録する
際の登録番号(パターンNQ)に関する指令入力を読み
込み、これにrPTIN工」 で処理したデータをパタ
ーンデータとしてシステムディスクに格納する。
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 NQ) for registering those data on the data disk is read, and the data processed by the rPTIN process is stored in the system disk as pattern data.

次に入カバターン表示プログラムrPTDIPJについ
て第6図のフローに沿って説明する。
Next, the input cover turn display program rPTDIPJ will be explained along the flow shown in FIG.

パターン入力修正プログラムrPTIN、J  により
格納したパターンデータをシステムディクより読み込み
、そのデータの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(1)と代入する。次に第1ブロツク内
の次の点(X−(2) 、Y (2))とXMAX、X
MIX、YMAX、YMINとの大小を比較し、XMI
N>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を演算し、M
X=XMI N+LX/2、MY=XMIN+LY/2
によりデータの中心座標を演算する。また、LX、LY
のうち大きい方をLXYとおき、このLXYの値に反比
例してスケーリングすることにより、原パターンの大き
さに拘らず一定のスケールでパターンをCRTに表示す
るようそにする。
Read the pattern data stored by the pattern input correction program rPTIN,J from the system disk, and calculate the maximum values of the X and Y axes of the data, XMAX, YMAX,
and select the minimum XMIN, YMIN. That is, the 21st
.. In the flow shown in Figure 22, first, data in one pattern is loaded, and the first point (X (1)
, Y (1) ), -tanXMAX=X (1
), XMIN=X (1), YMAX=Y (1)
, YMIN=Y(1). Next, the next point in the first block (X-(2), Y(2)) and XMAX,
Compare the size with MIX, YMAX, YMIN, and
If N>X (2), then XMIN=X (2), XMAX<
If x(2), then XMAX=X(2), YMIN>Y(2
), then set YMIN=Y (2), and if YMAX<Y(2), set YMAX=Y (2). Repeat this comparison for successive points in the first block, and make the comparison for all points in the first block. When finished, the data of the next block is read and further comparison is performed. Then, when these comparisons are completed for all blocks, XMAX, XMIN
represent the maximum and minimum values of the X coordinate of data in all blocks in one pattern, respectively, and YMAX and YMIN represent the maximum and minimum values of the Y coordinate, respectively. Therefore, LX
=XMAX-XMIN, LY=YMAX-YMIN, calculate the spread LX, LY of the data in the X and Y directions, and calculate M
X=XMIN+LX/2, MY=XMIN+LY/2
Calculate the center coordinates of the data. Also, LX, LY
By setting the larger of these as LXY and scaling it in inverse proportion to the value of LXY, the pattern can be displayed on the CRT at a constant scale regardless of the size of the original pattern.

スケーリングが終了すると第23.24図のブロック毎
の表示ルーチンに入る。第23図のフローにおいて、1
ブロツクのデータを読み出して前記SCLの値に基づき
データのスケールを拡大または縮小した後、1ブロツク
内において最小のユニットが直線、円弧、または円のう
ちどれかであるかを判断する。ユニットが直線であれば
、始点と終点とをマークしてその間を直線で結ぶ。また
、円または円弧である場合には、その始点P、=(Xz
−Yt)、中点pz=(xz、Yl)、終点P3=(X
 3、Y、)をプロットし、第25図のフローに基づき
中心座標(XOly o )及び半径Rを算出する。即
ち、第23図のフローにおいて、p、、p。
When scaling is completed, the display routine for each block shown in FIGS. 23 and 24 is entered. In the flow of Figure 23, 1
After reading the data of a block and enlarging or reducing the scale of the data based on the value of the SCL, it is determined whether the smallest unit within one block is a straight line, an arc, or a circle. 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, = (Xz
-Yt), midpoint pz=(xz, Yl), end point P3=(X
3, Y, ), and calculate the center coordinates (XOlyo) and radius R based on the flow shown in FIG. That is, in the flow of FIG. 23, p, , p.

を通る直線L1:(X−X□)(yz−yi)= (Y
−Y、)  (xz−xx)  及びP2、P、を通る
直線L2:  (X−X2)  (Yl−Yl)= (
Y−Yl)(Xff  xz)を定める。このとき、L
lとL2とが平行、即ち(Y、−Yl)/ (x、−x
、)= (Yl−y 2 )/< X 3− X 2 
)  であれば三点が同一直線上にあるため円または円
弧は形成できないからフローはリータンする。この場合
は円または円弧を決定するためのデータを入力しなおす
必要がある。
Straight line L1 passing through: (X-X□) (yz-yi) = (Y
-Y, ) (xz-xx) and straight line L2 passing through P2, P: (X-X2) (Yl-Yl) = (
Y−Yl)(Xff xz) is determined. At this time, L
l and L2 are parallel, i.e. (Y, -Yl)/ (x, -x
, )= (Yl-y2)/<X3-X2
), the flow returns because the three points are on the same straight line and a circle or arc cannot be formed. In this case, it is necessary to re-enter the data for determining the circle or arc.

さて、Ll とL2 とが平行でないならP工、P2の
中点を通り、Llに垂直な直線L1’  : −(x−
(Xi+X、)/2)(X、−X、)= (Y (Y、
+Y2)/2)(Yl−YL)及びp、 p、の中点を
通り、L2に垂直な直線Lx’ ニー(X−(X2+X
3) /2)((x、−x、) = (Y−(y2+y
3) /2)  (Y、−Y、)  を定めて、L1′
  とり、/の交点(x、、Y、)を次のようにしても
とめる。
Now, if Ll and L2 are not parallel, a straight line L1' passing through the midpoint of P2 and perpendicular to Ll: -(x-
(Xi+X,)/2)(X,-X,)=(Y (Y,
+Y2)/2)(Yl-YL) and p, the straight line Lx' perpendicular to L2 passing through the midpoint of p, knee(X-(X2+X
3) /2)((x, -x,) = (Y-(y2+y
3) /2) Determine (Y, -Y,) and L1'
Find the intersection (x,, Y,) of / as follows.

この交点(Xo、y a )が円または円弧の中心座標
となるので、R=v’″(x x −x o ) 2+
 (y o−y。)2により半径Rを計算する。
This intersection (Xo, ya) becomes the center coordinates of the circle or arc, so R=v'''(x x - x o ) 2+
(y o-y.) Calculate the radius R by 2.

ユニットが円であれば、中心座標(xo、yo)と半径
Rに基づき直ちに円を描くが、円弧の場合は方向角が限
定されているので、さらにその方向角AG1.AG2を
演算する。即ち。
If the unit is a circle, a circle is immediately drawn based on the center coordinates (xo, yo) and radius R, but in the case of a circular arc, the direction angle is limited, so the direction angle AG1. Compute AG2. That is.

AGt = tan−1((yt −Y、 )/ (x
x −X、 )) xAG2 = tan−” ((Y
l −Yo )/ (X3−Xo ))こうして、方向
角AG1とAG、の範囲内に円弧を描く。
AGt = tan-1((yt-Y, )/(x
x −X, )) xAG2 = tan-” ((Y
l-Yo)/(X3-Xo)) Thus, an arc is drawn within the range of direction angles AG1 and AG.

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

次に、針落ち座標計算出カプログラムrPT○UTJに
ついて、第7図のフローに沿っ説明する。
Next, the needle drop coordinate calculation output program rPT○UTJ will be explained along the flowchart of FIG.

先ず、システムディスクよりパターンを読み出し、後述
する針落ち座標データを格納すべきデータディスクのデ
ータ内容をチェックして書き込み容量の有無を確認する
。次に、全ブロックのデータ格納の終了を判断し、終了
していないときには、−ブロック毎のデータをシステム
ディスクより読み出し1次に説明する針落ち座標算出ル
ーチン(フロー第26〜29図、第35図〜第37図)
の処理を行う。
First, a pattern is read from the system disk, and the data content of the data disk in which needle drop coordinate data to be described later is to be stored is checked to confirm whether or not there is a write capacity. Next, it is determined whether the data storage of all blocks has been completed, and if it has not been completed, the data for each block is read from the system disk. Figure ~ Figure 37)
Process.

第26図のフローに示すように、針落ち座標算出には(
i)振り方向指定刺繍(ii)中振り刺繍市)模様縫い
(tv)飛ばしくジャンプ)の四種類があり、このうち
どの方式で針落ち座標を算出するかは、1ブロツクのデ
ータ読み取り時に、カーソル12のキー14Ω(刺1)
、キー14k(模様)、またはキー14m(ジョンプ)
の縫い種類選択操作(第11図によって指定され、第2
6図フローにより操作内容を判断されそれぞれのサブル
ーチンを選択する。
As shown in the flowchart of Fig. 26, the needle drop coordinate calculation is performed by (
There are four types of embroidery: i) Specified swing direction embroidery (ii) Medium swing embroidery (Ichi) Pattern sewing (TV) Skipping jump), and which method to use to calculate the needle drop coordinates is determined when reading one block of data. Cursor 12 key 14Ω (thorn 1)
, key 14k (pattern), or key 14m (jump)
sewing type selection operation (specified in Fig. 11, second stitch type selection operation)
The operation content is determined according to the flowchart shown in FIG. 6, and each subroutine is selected.

(i)  振り方向指定刺繍 第27〜29図のフローに基づき第30図を用いて説明
する。ブロックB1の始点pi=(x(1) 、Y (
1))を通り振り方向に平行な直線L1 を定める。今
L□ を定数a、 b、 cをもってaX+bY+c=
 Oと記すことにする。また、定数C工をもって点P1
を通りLlに垂直な直線DL:bX+a Y + c工
=0を定める。次に刺繍の進行方向をチェックし、例え
ば第30図ではブロックBrのデータはL工よりも上方
にあるから、刺繍を上方に進める。次に、針落ち点のた
めの二次元のエリア(U (J) 、 V (J) )
を用意する。Jは針落ち座標カウンタの計数値であり、
針落ち点が一つ演算される毎に「1」だけカウントアツ
プする。
(i) Swing direction specified embroidery This will be explained using FIG. 30 based on the flow of FIGS. 27 to 29. Starting point pi of block B1 = (x(1), Y (
1) Determine a straight line L1 that passes through ) and is parallel to the swing direction. Now L□ is expressed as aX+bY+c= with constants a, b, and c.
I will write it as O. Also, with constant C, point P1
A straight line DL passing through and perpendicular to Ll: bX+aY+c=0 is determined. Next, the direction in which the embroidery progresses is checked. For example, in FIG. 30, since the data of block Br is above the L stitch, the embroidery is advanced upward. Next, the two-dimensional area for the needle drop point (U (J), V (J))
Prepare. J is the count value of the needle drop coordinate counter,
Every time one needle drop point is calculated, the count is increased by "1".

初期状態において先ずJ=1とセットして、V(1)=
X (1)、U (1)=Y (1)と針落ちの第1魚
目にはブロックB1のスタート点P工の座標を格納する
。次に、直線L1を第5図のフローで入力した針落ちピ
ッチ2分だけ上方へ平行移動して直線L2:a X+ 
b Y + c−λ=0(λ=Pv’a”+b”/b)
とする。すると例えば第28図においては直線L2はユ
ニットM1及びユニットM2とそれぞれ一点で交わる。
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 P of block B1 are stored in the first fish of the needle entry. Next, straight line L1 is translated upward by 2 minutes of the needle drop pitch input using the flow shown in Fig. 5, and straight line L2: a X+
b Y + c-λ=0 (λ=Pv'a"+b"/b)
shall be. For example, in FIG. 28, the straight line L2 intersects the unit M1 and the unit M2 at one point.

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

ユニットと直線Lnとの交点の座標は第′29図のフロ
ーに従って算出される。先ず、ユニットが直線である場
合、そのユニットの両端の座標を(X、、Yl)、(x
z、Y2)とする。直線Ln:aX+bY+c−(n−
1)λ=Oがこのユニットと交わるために点(X L 
−Y t )及び(x z、Y2)が直線Lnを挾んで
対向することが必要十分である。即ち、Z□=aX1+
bY、+c−(n−1)λ、Z、=aX、+bY2+c
 (n−1) λとおいたときZ IZ 2>Oであれ
ば、そのユニットと直線Ln  とは交点なしと見做し
、ziZ2≦0であれば交点ありとして次の交点ありと
して次の交点計算に進む。即ち、点(xl、 y工)及
び(X 2、y z )を通る直線はCX−X工)(y
z−yt)= (y−yt)(Xi−Xi) 、これと
Ln  との交点(x5”t、y、+、)は、 こうして交点が一つ算出されたので交点カウンタの計算
値Kを「1」だけカウントアツプする。
The coordinates of the intersection of the unit and the straight line Ln are calculated according to the flow shown in Figure '29. First, if the unit is a straight line, the coordinates of both ends of the unit are (X,, Yl), (x
z, Y2). Straight line Ln: aX+bY+c-(n-
1) In order for λ=O to intersect with this unit, the point (X L
It is necessary and sufficient that -Y t ) and (x z, Y2) face each other across the straight line Ln. That is, Z□=aX1+
bY, +c-(n-1)λ, Z, = aX, +bY2+c
(n-1) When λ, if Z IZ 2>O, it is assumed that there is no intersection between that unit and the straight line Ln, and if ziZ2≦0, there is an intersection and the next intersection is calculated. Proceed to. That is, the straight line passing through the points (xl, y) and (X 2, y z ) is CX-X) (y
z-yt) = (y-yt) (Xi-Xi), the intersection point (x5''t, y, +,) between this and Ln is, Since one intersection point has been calculated in this way, the calculated value K of the intersection counter is Counts up by "1".

次に、ユニットが円または円弧である場合1円弧ノ三点
を(xiyx)(xayi)(X3Y3)とする。この
3点から第25図のフローに基づき円(円弧)の中心座
標(X Oly o )及び円(円弧)の半径Rを算出
する1次にLnに垂直で点(X OlY、) ヲiM6
直Al1L t ニーb (x−x、) +i(y −
Y、)=Oを定める。そして、LtとLnとの交点(X
X、 YY)を により算出し、点(X Oly a )と点(xx、y
y)との距111H□をHz ” V’ (X o−X
 X ) ” + (Y o−YY)”により計算する
。このHlと半径Rとを比較し、 Hl>Rであれば直
線Ln  は円(円弧)に対してその中心(Xo、 Y
、)から半径Rよりも遠い箇所を横切ることになるので
円とは交わらず、従って交点なしとする。ところがH1
≦RであればLn  と円とは交わるので次の交点計算
に進む。
Next, when the unit is a circle or an arc, the three points of one arc are defined as (xiyx) (xayi) (X3Y3). From these three points, calculate the center coordinates (X Oly o ) of the circle (arc) and the radius R of the circle (arc) based on the flow shown in Figure 25. First, the point (X Oly Y, ) perpendicular to Ln.
Straight Al1L t Knee b (x-x,) +i(y-
Y, )=O is determined. Then, the intersection of Lt and Ln (X
X, YY) is calculated by, and the point (X Oly a ) and the point (xx, y
y) and the distance 111H□ from Hz ” V' (X o-X
Calculated by ``X)'' + (Yo-YY)''. This Hl is compared with the radius R, and if Hl>R, the straight line Ln is at its center (Xo, Y
, ) since it crosses a point farther than the radius R, it does not intersect with the circle, and therefore there is no intersection point. However, H1
If ≦R, Ln and the circle intersect, so proceed to the next intersection point calculation.

即ち、 Ln : aX+bY+C(n−1)  λ=0円: 
(x−xo) ”+ (Y−Yo) ”=R”をXとY
について連立して解いて二つの交点P1=(xk+1、
Yk+、)P=’(Xk+、、Y k+2)を得る。(
煩雑になるので具体的な計算式は省略する)さて、ユニ
ットが円であれば算出した交点P1゜P2は必ずユニッ
トに稟しているので交点カウンタの計数値Kを「2」だ
けカウントアツプする。
That is, Ln: aX+bY+C(n-1) λ=0 yen:
(x-xo) ”+ (Y-Yo) ”=R” as X and Y
Solve simultaneously for two intersection points P1=(xk+1,
Yk+,)P='(Xk+,,Yk+2) is obtained. (
(The specific calculation formula will be omitted as it will be complicated.) Now, if the unit is a circle, the calculated intersection points P1 and P2 are always fixed to the unit, so the count value K of the intersection counter is counted up by "2". .

ところがユニットが円弧であれば、交点Pユ、P2がユ
ニット内に属さない場合があるので、P工。
However, if the unit is a circular arc, the intersections Pyu and P2 may not belong to the unit, so it is called P.

P2について次のようにしてユニットに属するが否かを
判断する。即ち、円弧の三点(X□、Y□)。
Regarding P2, it is determined whether it belongs to a unit or not in the following manner. That is, the three points of the circular arc (X□, Y□).

(x t、yz)、(x、、Y 3 )について中心(
XOlY、)からの方向角AG1、AG、、AG、をA
Gl: tan−1〔(Yx  yo) / (Xt  Xo)
 ]AG、: tan−1((Y2  Yo) / (Xi  Xa)
 )AG、= tan−1((Y、−Y、) / (xi−xo) ]
により算出し1次に、交点p、、 p、の方向角AG4
.AG、を AG4==tan−’((Yk+、 Yo) / (X
k+、−xo))AG、==tan−1((Yk+、−
’Ya)  /  (xk+、   Xo)  )によ
り算出し、AGl<AG、<AG2またはAG。
(x t, yz), (x,, Y 3 ) at the center (
The direction angle AG1, AG, ,AG, from XOlY, ) is A
Gl: tan-1 [(Yx yo) / (Xt Xo)
]AG,: tan-1((Y2 Yo) / (Xi Xa)
)AG,=tan-1((Y,-Y,)/(xi-xo)]
The direction angle AG4 of the intersection point p, p, is calculated by
.. AG, AG4==tan-'((Yk+, Yo)/(X
k+, -xo)) AG, ==tan-1((Yk+, -
'Ya)/(xk+, Xo)), AGl<AG, <AG2 or AG.

< A G 4 < A G zが成立するときのみP
□を円弧の交点と見做して交点カウンタの計数値Kをr
lJだけカウントアツプし1次にAGl<AG、<AG
よまたAG、<AG、<AG3が成立するときのみP2
を円弧の交点と見做して交点カウンタの計数値をさらに
「1」だけカウントアツプする。
P only when < A G 4 < A G z holds.
Regarding □ as the intersection of the arcs, the count value K of the intersection counter is r
Only lJ counts up and the first one is AGl<AG,<AG
P2 only when AG, <AG, <AG3 holds.
is regarded as the intersection of the circular arcs, and the count value of the intersection counter is further incremented by "1".

1つの直線Lnについて、各ユニットの交点がすべて算
出されると、交点カウンタの計数値くの値に関連して第
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 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, it is checked whether the final point has been calculated, and if the final point has been calculated, the calculation of the needle entry point for that block is performed. finish.

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

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

第31A図の場合、直線Lnが二つのユニットMi、 
M、の連結点と交叉しているので、直線Lnは二つのユ
ニットM1、M2の双方と交わることにより、従って、
交点に=2と見做される。ところが、実は二つの交点(
xt、y工)、(xi、yz)は同一であるからx1=
X2、’/1=’/iとおいてに=1の場合に帰着され
る。
In the case of FIG. 31A, the straight line Ln connects two units Mi,
Since it intersects the connection point of M, the straight line Ln intersects both of the two units M1 and M2, and therefore,
The intersection point is considered to be =2. However, in reality, there are two intersections (
xt, y engineering) and (xi, yz) are the same, so x1=
This results in the case of =1 in X2, '/1='/i.

第31B図の場合、一つの直線Lnが異なる二つのユニ
ットMi、M、に、互いに相違なる点(X2、y工)、
(Xi、yz)で交わっている。
In the case of Fig. 31B, one straight line Ln has two different units Mi, M, different points (X2, y work),
They intersect at (Xi, yz).

このときは直線LnよりもPだけ下降した、直線Ln−
1との各ユニットとの交点のうち最終の針落ち座標に指
定された針落ち点(U(J)、V(J))と点(xt、
y工)及び(xz、yz)との距離D□、D2を pt=v’ (x、  U (J) )” + (yt
  V (J ) )”D、=17″(xi−u (J
 ) )” (yi−V (J ) )”により各別に
算出し、Dt>D、であれば点(Xよ。
At this time, the straight line Ln- is lowered by P than the straight line Ln.
The needle drop point (U(J), V(J)) specified as the final needle drop coordinate among the intersection points with each unit with 1 and the point (xt,
y engineering) and (xz, yz), pt = v' (x, U (J) )" + (yt
V(J))"D,=17"(xi-u(J
))" (yi-V (J))", and if Dt>D, then the point (X).

yt)  を選出し、D 1< D zであれば点(X
i、yz)を選出し、選出した方の点の座標値を(U(
J+1) 、V (J+1))に格納し、針落ち座標カ
ウンタの計数値Jを「1」だけカウントアツプする。
yt), and if D 1 < D z, select the point (X
i, yz), and the coordinates of the selected point are expressed as (U(
J+1) and V(J+1)), and the count value J of the needle drop coordinate counter is counted up by "1".

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

(4)   K=3 第32図のように、一方の交点がユニットM82M2の
両者に亘り、(xz−yz)、(X2、yz)とが重複
している場合のことである。このときはx1=X、、y
1=y2とおくことにより第31B図の場合に帰着され
る。もし、第31B図の場合に帰着し得ないならエラー
と見做す。
(4) K=3 As shown in FIG. 32, one of the intersections extends over both units M82M2, and (xz-yz) and (X2, yz) overlap. In this case, x1=X,,y
Setting 1=y2 results in the case of FIG. 31B. 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の
両者に亘り(xz、yz)、(X2、yi)と重複する
とともに、他方の交点が、ユニットM12M4の両者に
亘りCxs、y3)、(X4.yi)も重複している場
合であり、X工=x2、yよ=VzかつX z ” X
 4 s ’/ s ” y4とおくことにより第31
B図の場合に帰着される。もし、第31B図の場合に帰
着し得ないならエラーと見做す。
(5) K=4 As shown in Fig. 33, one intersection spans both units M1 and M2 and overlaps with (xz, yz) and (X2, yi), and the other intersection spans both units M1 and M4. This is a case where Cxs, y3) and (X4.yi) are also overlapped, and X = x2, y = Vz and X z ''
4 s'/s'' By setting y4, the 31st
This results in the case of diagram B. If the result cannot be returned to the case shown in FIG. 31B, it is regarded as an error.

(6)  K)4 本実施例では一つの直線Lnのユニットとの交点には最
大「4」であるため、もしKが「4」よりも大きくなる
と、直ちにエラーと見做す。
(6) K) 4 In this embodiment, the maximum number of intersections 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はさらにピッチ2分上方に移動してLn+1
となり、今度はこの直線Ln+1について第29図のフ
ローに基づきユニットとの交点が算出され、その交点の
数Kについて第28図のフローに基づきチェックが行な
われる。
When the flow returns from FIG. 28 to FIG.
Then, the intersection points of this straight line Ln+1 with the unit are calculated based on the flow shown in FIG. 29, and the number K of the intersection points is checked based on the flow shown in FIG. 28.

とくに、第34図のようなに=2の典型的な場合につい
て説明する。この場合、直線Ln、Ln+1、Ln+2
はそれぞれユニットM1.M、と一回づつ交叉し、Ln
、Ln+1、Ln+2とユニットM、、 M、との交叉
は全部で6個となる。ところが、これらの交点がすべて
針落ち点に指定される訳ではなく、第28図のフローに
示されるように針落ち点は、一つの直線Lnのうち一点
が選択されるのみである。今、直線Lnについては、ユ
ニットM2 と交叉する右側(第34図)の方が針落ち
点(U (J) 、V (J) )に選択されていると
する。すると、Ln+1のユニットM1.M2との二つ
の交点のうち明らかにユニシト間工側の交点の方がユニ
ット量2側の交点よりも(U(J)、V(J))から遠
いので、ユニシト量工側の交点が次の針落ち点(U (
J+1) 、V (J+1))に選択される。同様にし
てLn+2とユニットM1゜M2との交点が針落ち点(
U (J+2) 、V (J+2))に選択される。こ
のようにして、針落ち点はユニット量工3 Mz間を往
復しながら進行し、針振り方向が直線Lnにほぼ平行す
る刺繍縫目となる。
In particular, a typical case where N=2 as shown in FIG. 34 will be explained. In this case, straight lines Ln, Ln+1, Ln+2
are unit M1. Intersect with M once, Ln
, Ln+1, Ln+2 and the units M,, M, have a total of six intersections. However, not all of these intersection points are 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. Assume now that the right side (FIG. 34) of straight line Ln, which intersects unit M2, is selected as the needle drop point (U (J) , V (J) ). Then, unit M1 of Ln+1. Of the two intersections with M2, the intersection on the Unisito machining side is clearly farther from (U(J), V(J)) than the intersection on the Unit Amount 2 side, so the intersection on the Unisito machining side is next. Needle drop point (U (
J+1), V(J+1)). Similarly, the intersection of Ln+2 and units M1゜M2 is the needle drop point (
U (J+2) , V (J+2)). In this way, the needle drop point progresses while reciprocating between unit weights 3 and 3 Mz, resulting in an embroidery stitch whose needle swing direction is substantially parallel to the straight line Ln.

(1:)中掘り刺繍 「中掘り」とは刺繍縫目において、針振り方向がある中
心点から放射状に変化してゆくものを言い、針落ち点は
第35図のフローに基づいて算出される。即ち、先ず第
37図のブロックの外側の円弧ユニットM1について、
その三点pt=(x+、Yl)、P2=(X2、Y2)
、P3=(Xs、Yl>から第25図のフローに基づき
円弧の中心(XXo YYa )及び円弧の半径Roを
算出する。次に始点P、の方向角AGI =jan  
[(Ys  YYo )/ (Xt  XXo )コ及
び終点の方向角AG2 =jan  [(Yl  YY
O)/ (X3−XXo)]を計算し、1ピツチに対応
する角度AGPを、RoXAGP=PからAGP=P/
R。
(1:) Naka-dori embroidery "Naka-dori" 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. Ru. That is, first, regarding the arcuate unit M1 outside the block in FIG. 37,
The three points pt=(x+, Yl), P2=(X2, Y2)
, P3=(Xs, Yl>, calculate the center of the arc (XXo YYa) and the radius Ro of the arc based on the flow shown in FIG. 25. Next, the direction angle AGI = jan of the starting point P,
[(Ys YYo )/(Xt XXo) and the direction angle of the end point AG2 =jan [(Yl YY
O)/(X3-XXo)], and calculate the angle AGP corresponding to one pitch from RoXAGP=P to AGP=P/
R.

と算出し、角度の初期値AGXをAG、とおく。The initial value AGX of the angle is set as AG.

続いて、P= (Xt 、Yt )を第一針目の座標(
U(1) 、 V(1) )に格納し、円弧ユニットM
1の全体角度P IO= l AG、−AG、lを計算
し、全点数I=P IO/AGPをもとめる。次に計数
カウンタの計算値Jを「1」にセットし、既にU(1)
=X+ 、V(1)=YtとおいているのでJを「1」
だけカウントアツプし、AGXにAGPを加える。
Next, P = (Xt, Yt) is the coordinate of the first stitch (
U(1), V(1)) and arc unit M
1, the total angle P IO = l AG, -AG, l is calculated, and the total number of points I = P IO / AGP is obtained. Next, set the calculated value J of the counting counter to "1", and it is already U(1).
=X+ and V(1)=Yt, so J is "1"
count up and add AGP to AGX.

以上のように設定すると、J=1の針落ち点が外側の円
弧ユニットM、に属することになるから、Jが奇数のと
きはユニット量1側の点を選択し、Jが偶数のときはユ
ニット量2側の点を選択することにすれば、針落ち点は
ユニットM1とユニット量2間を往復して刺繍縫いとな
る。そこで、Jを「1」だけカウントアツプし、AGX
にAGPを加えた後に、Jが偶数か奇数かを判断し、J
が奇数であれば中心点(XXO、YYO)から針落ち点
までの距離RRをRoとおく、またJが偶数であればブ
ロックが中抜きであるか否かを判断する。中抜きでない
とは、例えば第38図の円の場合のように中心点(Xo
、Yo)がブロック内に含まれてしまう場合のことであ
る。もし中抜きでないならR= l +u+とおく。後
述するように、このことは例えば第39図において半径
IIIII+の円形の中抜きEを設けることに等しい。
With the above settings, the needle drop point of J=1 belongs to the outer arc unit M, so when J is an odd number, select the point on the unit amount 1 side, and when J is an even number, select the point on the unit amount 1 side, and when J is an even number, select If a point on the unit amount 2 side is selected, the needle drop point will reciprocate between unit M1 and unit amount 2, resulting in embroidery stitching. Therefore, we count up J by "1" and AGX
After adding AGP to , determine whether J is even or odd, and J
If J is an odd number, the distance RR from the center point (XXO, YYO) to the needle drop point is set as Ro. If J is an even number, it is determined whether the block is hollow. Not hollow means that the center point (Xo
, Yo) are included in the block. If it is not hollow, set R= l +u+. As will be described later, this is equivalent to providing a circular hollow E of radius III+ in FIG. 39, for example.

また、中抜きであれば円弧ユニットM1の内側に他のユ
ニットM2が存在するから点(XXO、YYO)を通り
方向角janAGXの直線LA: Y  YO=tan
 AGX (X  Xo )とユニットM2との交点を
もとめる。これには、第29図のフローにおいて直線L
1の方程式のかわりに直線LAの方程式を代入し、交点
の座標(xk+ 1 、yk+1 )を算出する。
In addition, if it is hollow, there is another unit M2 inside the arc unit M1, so the straight line LA with the direction angle janAGX passes through the point (XXO, YYO): Y YO = tan
Find the intersection between AGX (X Xo ) and unit M2. For this, in the flow of Fig. 29, the straight line L
1, the equation of the straight line LA is substituted, and the coordinates (xk+1, yk+1) of the intersection point are calculated.

そして、R=v’ (xk+1−Xo  )”+ (y
k+I  Y、アを計算する。
And R=v'(xk+1-Xo)"+ (y
Calculate k+I Y, a.

さて、中掘りにおいては第37図から明らかなように縫
目感覚は中心座標(X、、Yo)に近づくほど挟まり、
目づまりが生じやすくなる。そこで、第38図に示すよ
うに、ピッチPが小さい場合及び内側のユニットM2が
中心座標(Xo、YO)に近接している場合には次のよ
うにして目づまりを防止する。即ち、先ず設定したピッ
チPが例えば0.4 amよりも大きいか否かを判断し
、ピッチが0.4 asよりも大きい場合は目づまりは
生じないものとして以下に示す処理は行わず直ちにRR
=Rとおく、ピッチが0.4I1mより小さければRが
Ra/3より小さいか否かを判断し、RがR8/3より
大きければ内側のユニットM2(第38図)における縫
目の密集度は外側のユニットM、に較べてあまり高くな
いとしてやはりRR=Rとおく。ピッチが0.4 mi
+より小さくRがRa/3よりちいさければJが4の倍
数か否かを判断し、4の倍数でなければRR=Rとおき
、Jが4の倍数であれば RR−エ 3RO とおく。そして、Jの偶奇性及び4の倍数が否かで各別
に算出したRRを以て、 U (J ) =XXO+RR−cos AGXV (
J ) =YYO+RR−sin AGXによりJをr
l、づつカウントアツプしながら針落ち点の座標(U 
(J)、 V (J) )をJ<Iとなるまで順次算出
し、J>1に関連して(U(J)、V(J))=P3=
(Xi、Y3 ))の座標点の値を格納してフローはリ
ターンする。
Now, when digging in the middle, as is clear from Figure 37, the seam feels more pinched as it gets closer to the center coordinates (X,, Yo).
Clogs are more likely to occur. Therefore, as shown in FIG. 38, when the pitch P is small and when the inner unit M2 is close to the center coordinates (Xo, YO), clogging is prevented as follows. That is, first, it is determined whether the set pitch P is larger than, for example, 0.4 am, and if the pitch is larger than 0.4 as, it is assumed that clogging will not occur, and the process shown below is not performed and the RR is immediately set.
= R. If the pitch is smaller than 0.4I1m, it is determined whether R is smaller than Ra/3. If R is larger than R8/3, the density of stitches in inner unit M2 (Fig. 38) is determined. Assuming that M is not very high compared to the outer unit M, let us assume that RR=R. Pitch is 0.4 mi
If it is less than + and R is less than Ra/3, determine whether J is a multiple of 4 or not. If it is not a multiple of 4, set RR=R. If J is a multiple of 4, set RR-E3RO. . Then, using the RR calculated separately depending on the parity of J and whether it is a multiple of 4, U (J) = XXO + RR-cos AGXV (
J ) =YYO+RR-sin AGX makes J r
The coordinates of the needle drop point (U
(J), V(J)) are calculated sequentially until J<I, and in relation to J>1, (U(J), V(J))=P3=
The value of the coordinate point (Xi, Y3)) is stored and the flow returns.

即ち、ピッチP≧O14市または R≧丁R6 となる場合は目づまりを生じないものとしてJが偶数の
ときはRR=Rと設定するので、針振り方向は1点(X
o、Yo)を中心とする放射方向となり、針落ち点は第
37図においてJが奇数のときは円弧ユニットMl上に
あり、Jが偶数のときはユニット量2上にあるように時
計方向に進行する、ところがピッチP < 0.4 a
mかつR<R6/3のときはJが偶数の場合において、
Jが4の倍数であれば RR=、3− RO とおきJが4の倍数でなければRR=Rとおくので、第
38図に示すように、ユニット量2上にあるべき針落ち
点のうち半数がRよりも(Xo、Y。)に対して外側の
RR= Ro / 3上に設定されることになり、従っ
てユニット量2上の縫目の密集度が半分に軽減されて目
づまりが防止される。
In other words, if the pitch P≧O14 city or R≧Town R6, it is assumed that no clogging will occur, and if J is an even number, it is set as RR=R, so the needle swing direction is set to 1 point (X
o, Yo), and the needle drop point is on the arc unit Ml when J is an odd number in Fig. 37, and on the unit amount 2 when J is an even number, in a clockwise direction. However, the pitch P < 0.4 a
When m and R<R6/3, when J is an even number,
If J is a multiple of 4, set RR=, 3-RO, and if J is not a multiple of 4, set RR=R, so as shown in Figure 38, the needle drop point that should be on unit amount 2 is set. Half of them are set above R by RR = Ro / 3 on the outside of (Xo, Y.), so the density of stitches on unit amount 2 is reduced to half and clogging is prevented. Prevented.

第39図の円の場合も、中心点(Xo、Yo)の周囲に
設定した中抜きEを第38図におけるユニットM2に見
たてて、同様の処理を行う。
In the case of the circle shown in FIG. 39, similar processing is performed using the hollow E set around the center point (Xo, Yo) as the unit M2 in FIG.

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

(1)直線 ユニットの両端の点(X、 、Y、)、(X2、Y2)
からユニットの方向角A G X = tan[(Y 
2−Yr )/ (X2  Xl)]及びユニットの長
さH=r (X2  Xl )”+ (Y2  Yl)
”を算出し、ピッチPによりユニット内の点数I=H/
Pを計算する。
(1) Points at both ends of the linear unit (X, , Y,), (X2, Y2)
The direction angle of the unit from A G X = tan [(Y
2-Yr )/(X2 Xl)] and unit length H=r (X2 Xl)”+ (Y2 Yl)
”, and the number of points in the unit I=H/ according to the pitch P.
Calculate P.

次に、ユニット個別の針数カウンタの計数値JOをr□
、にリセットし、 U (J+1 >=X、+J○−P −cos AGX
V (J+1 > =Y+ 十J○−P −sin A
GXとおいて針落ち点(U (J+1)、V (、J+
1))を算出し、この算出が終了するとJO及びJを「
1」だけカウントアツプして再び(U(J+1)、V(
J+1))・の算出を繰り返えす、こうしてJOが点数
1よりも大きくなるとUCJ+1> =X2 、V (
J+ 1 ) =Y2  (−L二’7 )(7)jl
N点)とおいてJを「1」だけカウントアツプし、次の
ユニットの針落ち点の計算に進む。
Next, set the count value JO of the stitch number counter for each unit to r□
, and U (J+1 >=X, +J○−P −cos AGX
V (J+1 > =Y+ 1 J○−P −sin A
With GX, the needle drop point (U (J+1), V (, J+
1)), and when this calculation is completed, JO and J are
1” and again (U(J+1), V(
The calculation of J+1)) can be repeated. In this way, when JO becomes larger than the score 1, UCJ+1> =X2, V (
J+ 1) = Y2 (-L2'7) (7) jl
N point), count up J by "1", and proceed to calculation of the needle drop point of the next unit.

■円弧 ユニットの三点(Xl、Yt ) 、(X2 、Y2)
、(Xs、Ys)から第25図のフローに基づき中心座
標(Xo、Yo)及び半径Rを算出し、さらには角度の
初期値AG1=tan−’[(Yt −YO)/(Xi
  XO)]、角度の最終値AG2=tan−’[(Y
3  YO)/(Xi  XO)]全体角AGT= l
 AG2°−AG、l、及び1ピツチに対する角度AG
P=P/Rを算出する。I=AGT/AGPにより点数
Iを計算してユニット個別のカウンタの計数値JOを「
0」にリセットし、U(J+1)= XO+R−CO5(AGI +JO−AGP)V(J+
1)= Ya +R−gin  (AGI +J(、−AGP)
とおいて針落ち点(U (J+1 > 、V (J+1
 >)を算出し、この算出が終了するとJO及びJを「
1」だけカウントアツプして再び(U(J+1)、V(
J+1))の算出を繰り返す。こうしてJOが点数■よ
りも大きくなるとU(J+1>=Xs 、V (J+ 
1 ) =Ys  (最終点)とおいてJを「1」だけ
カウントアツプする。針数カウンタの計数値Jは−ブロ
ック内において各ユニットに亘る針落ち番号の連番を与
える。
■Three points of arc unit (Xl, Yt), (X2, Y2)
, (Xs, Ys), calculate the center coordinates (Xo, Yo) and radius R based on the flow shown in FIG.
XO)], the final value of the angle AG2=tan-'[(Y
3 YO)/(Xi XO)] Total angle AGT= l
AG2° - Angle AG for AG, l, and 1 pitch
Calculate P=P/R. Calculate the score I using I=AGT/AGP and calculate the count value JO of the unit individual counter as "
0” and U(J+1)=XO+R-CO5(AGI+JO-AGP)V(J+
1) = Ya +R-gin (AGI +J(,-AGP)
and the needle drop point (U (J+1 > , V (J+1
>), and when this calculation is completed, JO and J are
1” and again (U(J+1), V(
Repeat the calculation of J+1)). In this way, when JO becomes larger than the score ■, U(J+1>=Xs, V(J+
1) Set = Ys (final point) and count up J by "1". The count value J of the stitch number counter gives a serial number of needle drop numbers across each unit within the block.

以上の算出が−ブロック内の全ユニットに亘って終了す
ると、フローはリターンする。
When the above calculations are completed for all units in the block, the flow returns.

(1リジヤンプ ジャンプとは、第12C図に示すように21点から22
点まで針落ち点が針落ちすることなく移動することであ
り縫目形成には関与しない。
(One rigid jump is from 21 points to 22 points as shown in Figure 12C.
The needle drop point moves to the point without the needle dropping, and does not participate in stitch formation.

尚、本実施例では、ジャンプを−ブロックと見做す。In this embodiment, a jump is regarded as a -block.

こうして針落ち座標の算出が終了すると、第40.41
.42図の針落ち座標格納フローに入る。
When the calculation of the needle drop coordinates is completed in this way, the 40.41
.. The needle drop coordinate storage flow shown in Fig. 42 is entered.

針落ち座標格納フローは針落ち座標データに振りを指定
する特定の16進コマンドコードを与えるとともに、針
落ち座標データを相対座標に変換するためのものである
。相対座標に変換するのは、刺繍ミシンの駆動源にとっ
て必要なデータが針落ち座標自体でなく、現在の針落ち
座標から次の針落ち座標までどの方向にどれだけの距離
進むかであるためである。
The needle drop coordinate storage flow is for giving a specific hexadecimal command code specifying swing to the needle drop coordinate data and converting the needle drop coordinate data into relative coordinates. The reason for converting to 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. be.

フローにおいて、先ず現在のデータが第一ブロックのも
のであるか否かを判断し、第一ブロックであれば直ちに
スタートコード7Dを出力するとともにUO=U(1)
 、 VO=V(1)とおく。また、第一ブロックでな
ければ、第42図のフローに基づき前ブロックとのつな
ぎ目のチェックを行う。即ち、前ブロックの最終点を(
UOlVO)、現在の第1点を(U(1) 、V(1)
)とするとき、二点を算出してLの値を判断し、L=O
なら直ちにリターンし、L≠0なら「80」(模様を指
令するコマンドコード)を出力して、(uo、vo)と
(U(1) 、 ■(1))とを直線縫目で結ぶ。
In the flow, first it is determined whether the current data belongs to the first block, and if it is the first block, it immediately outputs the start code 7D and sets UO=U(1).
, VO=V(1). Moreover, if it is not the first block, the joint with the previous block is checked based on the flow shown in FIG. That is, the final point of the previous block is (
UOlVO), the current first point is (U(1), V(1)
), calculate the two points and determine the value of L, L=O
If so, return immediately, and if L≠0, output "80" (command code for commanding the pattern) and connect (uo, vo) and (U(1), (1)) with a straight stitch.

次に、カーソル12のキー14a、14hより入力した
振りの種類に基づき、r振り方向指定刺繍」のうち振り
方向が基線Xn(第3図)に対して45°よりも大きけ
れば縦振り刺繍と見做してコマンドコードrFFJを出
力し、振り方向が基線に対して45°よりも小さければ
横振り刺繍と見做してコマンドコード「FE」を出力し
、「中振り」であればコマンドコード「7F」を出力し
、模様であればコマンドコード「80」を出力し、ジャ
ンプであればコマンドコード「7E」を出力する。コマ
ンドコードが指定されると、1ブロツク内の全針数Jを
読み出して、所定カウンタの計数値JJを1にリセット
してから、JJを「1」だけカウントアツプする。この
JJを用いて、1ブロツク内の全データを次のようにし
て相対座標(UU、VV)4:変換する。即ち、UU=
U (JJ)−UO、VV=V (JJ)−VO、初期
状態ではUO=U(1) 、VO=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
))についても、UO=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図のデイレクトリ部書き込みフローを処理し、デー
タディスクのディレクトリ部にパターン阻、各トラック
魚等を書き込んで終える。
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 Xn (Fig. 3), vertical embroidery is selected. If the swing direction is less than 45 degrees with respect to the base line, it is assumed to be horizontal swing embroidery and outputs the command code "FE". If it is "medium swing", the command code is output. It outputs "7F", if it is a pattern it outputs a command code "80", and if it is a jump it outputs a command code "7E". When a command code is specified, the total number of stitches J in one block is read out, the counted 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) 4 as follows. That is, UU=
U (JJ) - UO, VV = V (JJ) - VO, in the initial state, set UO = U (1), VO = V (1), and count up JJ by one from "1", so UU =
U(2>-U(1), VV=V(2)-V(1)UU
, VV is checked to see if either one exceeds the pitch P, and if both UU and vv are smaller than the pitch, the values of UU and VV are converted into binary codes and output to the data disk. If either UU or vv is larger than pitch P, this corresponds to some kind of data calculation error and is therefore considered an error. After that, generally the coordinates of the JJ-th needle drop point (U (JJ), V (JJ
)) also, UO=U <JJ>, V (0) =
Set V(JJ), count up JJ by 1, and get UU=U(JJ+1)-U(JJ), VV=V(JJ+
1) By calculating -V<JJ), the JJ-th relative coordinates (UU, VV) are output to the data disk. In this way, JJ is counted up by "1"JJ>
When J is reached, all needle drop point coordinates of the block have been converted to relative coordinates and storage on the data disk has been completed, so the directory section write flow shown in Fig. 43 is processed and the pattern block and each block are written in the directory section of the data disk. Finish by writing in the track fish, etc.

この発明は以上のようにな構成であり、次にパターンを
入力する場合を具体例に基づいて説明する。タブレット
11上に原図の用紙を載置し、例えばアルファベットの
「B」及びエクスクラメーションマーク「!」を読みと
るものとする。先ずrB」については第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, the alphabet "B" and the exclamation mark "!" are read. First, "rB" is divided into large cylinder 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上の
81点にカーソル12の印13aを一致させてキー14
aを押し、続いて82点に印13aを一致させてキー1
4aを押すことによりS、、32点を結ぶ基線Xnを指
定され、次に座標変換計数算出ルーチン(第10図)に
よりタブレット11のX軸に対する基線Xnの傾きθが
算出される。
Now, after specifying a new input by operating the operating means 19 and setting the school to 1x by pressing, for example, the key 14b of the cursor 12, in FIG. key 14
Press a, then match mark 13a to 82 points and press key 1.
By pressing 4a, the base line Xn connecting the 32 points is designated, and then the inclination θ of the base line Xn with respect to the X axis of the tablet 11 is calculated by the coordinate transformation count calculation routine (FIG. 10).

次に、第44図において、カーソル12のキー14!を
押して「刺繍縫い」を指定した後にアルファベット「B
」の第1ブロツクの左下隅の点PIにカーソル12の印
13aを一致させ、次の点P2までの経路が直線である
から「直線」の入力に対応するキー14bを押し、次に
点P2に印13aを一致させてキー14bを押し、これ
によりp、、p、間の読み取りが終了する。さらに、引
き続きP2−P3−P4  Ps  P6  P7と印
13aを一致させて各別にキー14bを押し、第1ブロ
ツクの最終点P8でブロックの終了を指示するキー14
nを押すことにより、第一ブロックのデータ読み取りを
終える6次に、タブレット11上のQ+点にカーソル1
2の印13aを一致させてキー14aを押し、続いて9
2点に印13aを一致させてキー14aを押すことによ
りQ+ −Q2方向(横方向)に振り方向が指定される
。この後、カーソル12の数字キー、例えばキー14C
を押すことにより振りのピッチ’ P ” 0.2 y
am 」が設定される。
Next, in FIG. 44, key 14 of cursor 12! Press to specify "embroidery stitch" and then select the alphabet "B".
”, align the mark 13a of the cursor 12 with the point PI at the lower left corner of the first block, press the key 14b corresponding to the input of “straight line” because the path to the next point P2 is a straight line, and then press the key 14b corresponding to the input of “straight line”. When the mark 13a is aligned with the key 14b, the reading between p and p is completed. Furthermore, continue to match P2-P3-P4 Ps P6 P7 with the mark 13a and press the key 14b separately, and press the key 14 to instruct the end of the block at the final point P8 of the first block.
Finish reading the first block of data by pressing n.Next, move the cursor 1 to the Q+ point on the tablet 11.
Match the 2 marks 13a and press the key 14a, then 9
By aligning the mark 13a with two points and pressing the key 14a, the swing direction is specified in the Q+-Q2 direction (lateral direction). After this, use the numeric keys of the cursor 12, for example, the key 14C.
The pitch of the swing can be changed by pressing 'P'' 0.2 y
am” is set.

第45図の第2ブロツクについても、先ずカーソル12
のキー14jを押して「刺繍縫い」を指定する。第2ブ
ロツクは、第1ブロツクと同様に直線ユニットのみから
成るもので、第1ブロツクの場合と同様にして点PI 
 P2  P3  P4−P5と順次読み取ってゆけば
よい。読み、収りが終了すると、カーソル12の印13
aを点Q+に一致させてキー14aを押し、続いて印1
3aをQ2に一致させてキー14aを押すことによりQ
l−Q 2方向(11方向)に振り方向が指定される。
Regarding the second block in FIG.
Press the key 14j to specify "embroidery stitching". The second block, like the first block, consists of only linear units, and the point PI
It is sufficient to read them sequentially as P2 P3 P4-P5. When the reading is finished, the mark 13 on the cursor 12
Align a with point Q+ and press key 14a, then mark 1
By matching 3a with Q2 and pressing key 14a, Q
The swing direction is specified in 2 directions (l-Q) (11 directions).

この後、カーソル12の、例えばキー14bを押すこと
により振りのピッチr P = 0.1 lll Jが
設定される。
Thereafter, by pressing, for example, the key 14b of the cursor 12, the swing pitch r P = 0.1 lll J is set.

第46図の第3ブロツクについても、先ず、カーソル1
2のキー141を押して「刺繍縫い」を指定する。第3
ブロツクはp、  p2 p、及びP 4  P s 
−P e、が円弧ユニットなので先ずカーソル12の印
13aを点P1に一致させて「円弧Jを指定するキー1
4cを押す、すると、第13図のデータチェックルーチ
ンにおいて、「円弧点数」カウンタの計数値「1」とな
る。そこでもし、点P2で誤って「直線」を指定するキ
ー14bを押すと、円弧点数が「1」の状態で「直線個
数」カウンタの計数値がカウントアツプされるので、第
13図のフローによりエラーが判断され、このエラーは
ブザーにより報知される。ここで、カーソル12のキー
14jを押すと第11図のフローにより点P2に関連し
て入力したデータが消去されるからブザーは停止する。
Regarding the third block in Fig. 46, first, move the cursor 1
Press the 2 key 141 to specify "embroidery stitching". Third
The blocks are p, p2 p, and P 4 P s
-P e, is an arc unit, so first align the mark 13a of the cursor 12 with the point P1, and press "Key 1 to specify arc J".
4c is pressed, and in the data check routine shown in FIG. 13, the count value of the "arc point" counter becomes "1". If you accidentally press the key 14b specifying ``straight line'' at point P2, the count value of the ``number of straight lines'' counter will be counted up while the number of arc points is ``1''. An error is determined and this error is signaled by a buzzer. Here, when the key 14j of the cursor 12 is pressed, the data inputted in relation to the point P2 is erased according to the flow shown in FIG. 11, and the buzzer stops.

そこで再び点P2にカーソル12の印13aを一致させ
て今度は「円弧」を指定するキー14cを押す。次に、
点P3にカーソル12の印13aを一致させ、次の点P
4と点PSとの間が直線であることから「直線」を指定
するキー14bを押す。こうして、点P1r 22.P
3の三点により円弧が決定される。
Then, the mark 13a of the cursor 12 is again aligned with the point P2, and this time the key 14c for specifying "arc" is pressed. next,
Align the mark 13a of the cursor 12 with point P3 and move to the next point P.
Since the line between 4 and point PS is a straight line, the user presses the key 14b to specify "straight line". Thus, point P1r 22. P
The arc is determined by the three points.

次に、点Pa 、Psにおいて、カーソル12の印13
aを一致させて「円弧」を指定するキー14Cを各別に
押す。最終点P6においては「終了」を指定するキー1
4nを押すと点P、、P、、P6の三点により円弧が決
定されるとともに、第三ブロックのデータ読み取りが終
了する。そこでキー14hを押して「中振り」を指示す
ると、円弧P、、P2.p、の中心点に対して放射状と
なる「中振りノが指定され、続いて数字キーのうち例え
ばキー14eを押すとと・ソチrP=0.4ml」が設
定される。
Next, at points Pa and Ps, the mark 13 of the cursor 12
a and press the keys 14C for specifying "arc" individually. At the final point P6, key 1 to specify "end"
When 4n is pressed, the arc is determined by the three points P, P, P6, and data reading of the third block is completed. Then, if you press the key 14h to instruct "medium swing", arcs P, , P2. ``Middle swing'' is specified, which is radial to the center point of p, and then, for example, when key 14e of the numeric keys is pressed, ``Sochi rP=0.4ml'' is set.

以下、第47.49図の第4.6ブロツクについては第
1.2ブロツクと同様にしてデータ読み取りを行い、第
48図の第5ブロツクについては第3ブロツクと同様に
してデータ読み取りを行う。尚、第4.6ブロツクは縦
方向の振りを指定し、第5ブロツクについては「中振り
」を指定する、さて、最終ブロックである第6ブロツク
(第49図)のデータの読み取り終了後、次の刺繍パタ
ーンのために予め針落ち点を移動させるべく、第6ブロ
ツクの最終点P5にカーソル12の印13aを一致させ
て「ジャンプ」を指定するキー14mを押し、次に印1
3aを点P5がら右方に離隔する点Q3に一致させて1
パターンの読み取り終了を指示するキー14nの二度押
しを行うと点P5から点Q3までの「ジャンプ」が読み
込まれるとともに、1パターン「B」の読み取りが終了
する。読み込まれたパターンrB、のデータに対し、操
作手段19のキー操作によりパターン磁が決定され、シ
ステムディスクにパターンデータが格°納される。
Hereinafter, data is read for block 4.6 in FIGS. 47 and 49 in the same manner as for block 1.2, and data for block 5 in FIG. 48 is read in the same manner as for block 3. Note that the 4.6th block specifies vertical swing, and the 5th block specifies "medium swing".Now, after reading the data of the 6th block (Fig. 49), which is the final block, In order to move the needle drop point in advance for the next embroidery pattern, align the mark 13a of the cursor 12 with the final point P5 of the 6th block, press the key 14m to specify "Jump", and then press the mark 1
1 by aligning 3a with point Q3, which is separated to the right from point P5.
When the key 14n, which instructs the end of pattern reading, is pressed twice, "jump" from point P5 to point Q3 is read, and reading of one pattern "B" is completed. With respect to the data of the read pattern rB, a pattern magnet is determined by key operations on the operating means 19, and the pattern data is stored in the system disk.

次にパターンデータが読み出され、パターン「B」のX
方向最大値、Y方向最大値、X方向最小値、Y方向最小
値がそれぞれ選択され、座標変換計数算出ルーチンによ
り表示手段17のCR7表示部への表示図形のスケール
が決定されて、第24図のフローに基づき第1ブロツク
は「赤」、第2ブロツクは「黄」、第3ブロツクは「青
」、第4ブロツクは「緑」、第5ブロツクは「白」、第
6ブロツクは「紫」、第7ブロツクとして「ジャンプj
の箇所は再び「赤Jでそれぞれ色分けしてCRTに表示
される。
Next, the pattern data is read out, and the
The maximum value in the direction, the maximum value in the Y direction, the minimum value in the X direction, and the minimum value in the Y direction are respectively selected, and the scale of the figure to be displayed on the CR7 display section of the display means 17 is determined by the coordinate transformation count calculation routine, and the scale of the figure to be displayed on the CR7 display section of the display means 17 is determined. Based on the flow, the first block is "red", 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 "purple". ”, as the seventh block “Jump j
The parts are again displayed on the CRT with each color coded in red J.

この表示されたパターンrB、に関するデータは、rp
’rou’r、1 (第25〜28図、第35゜36図
、第40図〜42図のフロー)により針落ち座標算出、
針落ち格納、及びディレクトリ部書き込み処理を行い、
データディスクに格納する。
The data regarding this displayed pattern rB is rp
'rou'r, 1 (Flowcharts in Figures 25-28, 35-36, and 40-42) to calculate needle drop coordinates,
Performs needle drop storage and directory section writing processing,
Store on data disk.

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

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

次に、第50図においてrg様縫1を指示するカーソル
12のキー14kを押した後に、点P1にカーソル12
の印13aを一致させて「直線」を指示するキー14b
を押し、次に点Q1に印13aを一致させて「終了」を
指示するキー14nを押す。こうして、点P1.Qsを
直線の模様縫いで結ぶ、このようにしたのは、その模様
縫いブロックの上端点P1を「!」の上方のブロックB
l (第51図)の第一点PLに指定することにより、
上方のブロックB1において上から下へ刺繍が進行する
ようにするなめである。
Next, in FIG. 50, after pressing the key 14k of the cursor 12 which instructs rg stitch 1, move the cursor 12 to point P1.
Key 14b to specify "straight line" by matching marks 13a
, and then align mark 13a with point Q1 and press key 14n to instruct "end". Thus, point P1. The reason why I connected Qs with a straight pattern stitch is to connect the upper end point P1 of the pattern stitch block to the block B above "!"
By specifying the first point PL of l (Fig. 51),
This is a lick so that the embroidery progresses from top to bottom in the upper block B1.

次に第51図において、カーソル12のキー141を押
して「刺繍縫い」を指定する。そして、第50図の模様
縫いブロックの始点PIをブロックB、の始点に設定し
第51図の点p、、P2にカーソル12の印L3aを一
致させて「円弧」を指定するキー14cを各別に押し、
点P3で「直線」を指定するキー14bを押すことによ
り点P1 、p2.p、で円弧が決定される0次に点P
4、P、、p6.p、と印13aを順次一致させながら
キー14bを各別に押していき、点P8、P9と印13
aを順次一致させながらそれぞれキー14cを押し、点
P1とほぼ一致する点ptoで「終了」を指示するキー
14nを押すと、点P8゜P9.PIOで円弧が決定さ
れブロックB1の読み取りが終了する。そこで、第51
図において、点Q+にカーソル12の印13aを一致さ
せてキー14aを押し、続いて点Q2に印13aを一致
させてキー14aを押すことにより振り方向がQ。
Next, in FIG. 51, the key 141 of the cursor 12 is pressed to specify "embroidery stitching". Then, set the starting point PI of the pattern sewing block in Fig. 50 to the starting point of block B, align the mark L3a of the cursor 12 with points p, , P2 in Fig. 51, and press the key 14c to specify "arc". Press separately,
By pressing the key 14b for specifying "straight line" at point P3, points P1, p2, . The zero-order point P where the arc is determined at p
4, P,, p6. Press the key 14b separately while aligning the mark 13a with the point P8, P9 and the mark 13 in sequence.
a, and press the key 14c to instruct "end" at point pto, which almost coincides with point P1, and the points P8, P9, . The arc is determined by PIO and reading of block B1 is completed. Therefore, the 51st
In the figure, the swing direction is set to Q by aligning the mark 13a of the cursor 12 with point Q+ and pressing the key 14a, then aligning the mark 13a with point Q2 and pressing the key 14a.

−Q2方向(横方向)に指示される。- Directed in the Q2 direction (horizontal direction).

この後、カーソル12の1例えばキー14dを押すこと
にり振りのピッチ’ P = 0.3 an Jが設定
される。
Thereafter, by pressing 1 of the cursor 12, for example, the key 14d, the pitch 'P=0.3 an J' is set.

次に、第52図において、ブロックB1の点PIoにカ
ーソル12の印13aを一致させて「ジャンプ」を指示
するキー14mを押し、次にブロックB2の始点PIに
印13aを一致させて「終了」を指示するキー14nを
押す。こうして、針落ち点がPIGからPlまで移動す
る。キー141を押して刺繍縫いを設定した後に、点P
1.P2と順次カーソル12の印13aを一致させなが
ら「円」を指定するキー14dをそれぞれ押し、点P3
でキー14nを押すことにより、点PR,p2、P3に
より円が決定されてブロックB2の読み取りが終了する
。そこでキー14hを押してr中掘り」を指示し、続い
てキー14cを押すことによりピッチ’ P =0.2
 Ill Jを設定する。データの読み取りの終了後、
次の刺繍パターンのなめに予め針落ち点を移動させるべ
く、B2ブロックの最終点P3にカーソル12の印13
aを一致させて「ジャンプ」を指定するキー14mを押
し、次に印13aを点P5から離隔する点Qtに一致さ
せて1パターンの読み取りの終了を指示する。キー14
nの二度押しを行うと□、点P3から点Qtの「ジャン
プ」が読み込まれるとともに、1パターン「!」の読み
取りが終了する。
Next, in FIG. 52, align the mark 13a of the cursor 12 with the point PIo of block B1 and press the key 14m to instruct "jump", then align the mark 13a with the starting point PI of block B2 and click "End". ” is pressed. In this way, the needle drop point moves from PIG to Pl. After pressing key 141 to set the embroidery stitch,
1. While sequentially aligning the mark 13a of the cursor 12 with P2, press the key 14d for specifying "circle", and select the point P3.
By pressing the key 14n, a circle is determined by points PR, p2, and P3, and reading of block B2 is completed. Then, by pressing the key 14h and instructing ``R Medium Digging'', and then pressing the key 14c, the pitch' P = 0.2
Set Ill J. After finishing reading the data,
In order to move the needle drop point in advance for the next embroidery pattern, the mark 13 of the cursor 12 is placed on the final point P3 of the B2 block.
a and presses the key 14m to designate "jump", and then aligns the mark 13a with a point Qt separated from point P5 to instruct the end of reading one pattern. key 14
When n is pressed twice □, "jump" from point P3 to point Qt is read and reading of one pattern "!" is completed.

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

こうして入力したアルファベット「B」及びエクスクラ
メーションマーク「!」の刺繍縫目は第53図のように
なる。
The embroidery stitches of the alphabet "B" and the exclamation mark "!" thus input are as shown in FIG. 53.

なお、本実施例においては、支持枠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 structure 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 zigzag stitch is performed in which the needles are swung in the horizontal direction by the control of a servo motor, a stepping motor, etc. A sewing machine may be arranged, and the swinging of the needle may be controlled simultaneously with the movement of the support frame based on the data on the data disk.

また、本実施例においてはブザーにより報知するものを
示したが、LED等の発光表示にしてもよい。
Further, in this embodiment, a buzzer is used for notification, but a light emitting display such as an LED may also be used.

さらに、本実施例は「刺繍」だけでなく「模様」適用し
てもよい。
Furthermore, in this embodiment, not only "embroidery" but also "pattern" may be applied.

以上のようにこの発明によれば、 手動操作により円または円弧を指定する第1信号を発生
する第1スイッチ(14c、14d)と、手動操作によ
り適宜指令となる第2信号を発生する第2スイッチ(1
4b、14n)と、一平面上を移動操作可能とする操作
手段を有し前記第1信号発生時における操作手段の一平
面上位置に対応した座標データ信号を発生する読み取り
手段と、連続する所定数の座標データ信号の入力に基づ
き対応する所定数の読み取り位置を通る円または円弧を
演算設定し、円周上または円弧上に針落ち点を設定する
データ作成手段と、座標データ信号の発生箇数が前記所
定数以外のときに第2信号が発生するときデータ作成手
段を不作用とし表示する禁止手段とを設けたことにより
、 第1スイッチの所定数の操作により円または円弧を設定
する場合に、第1スイッチを所定数操作しないうちに直
線を指定するキーや読み取りを終了指定するキー等の第
2スイッチを操作した場合にはデータ作成手段が針落ち
データを作成せず且つそれを表示するので、作成したデ
ータによりミシンを作動する前にデータの誤入力を確認
でき、常に確実に円または円弧のデータが作成できるか
ら、作業能率を著しく向上する効果が得られる。
As described above, according to the present invention, the first switch (14c, 14d) generates the first signal specifying a circle or arc by manual operation, and the second switch (14c, 14d) generates the second signal as an appropriate command by manual operation. Switch (1
4b, 14n), a reading means having an operating means capable of moving on one plane and generating a coordinate data signal corresponding to the position of the operating means on one plane when the first signal is generated; data creation means for calculating and setting a circle or arc passing through a corresponding predetermined number of reading positions based on the input of a number of coordinate data signals, and setting a needle drop point on the circumference or on the arc; When a circle or an arc is set by operating a predetermined number of first switches, by providing a prohibition means that disables and displays the data creation means when the second signal is generated when the number is other than the predetermined number. If the second switch, such as the key for specifying a straight line or the key for specifying the end of reading, is operated before the first switch has been operated a predetermined number of times, the data creation means does not create needle drop data and displays it. Therefore, it is possible to check for erroneous data input before operating the sewing machine using the created data, and data for circles or arcs can always be created reliably, resulting in the effect of significantly improving work efficiency.

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

第1図は、刺繍ミシン、タブレット、及び表示装置の斜
視図、第2図はデータ入力のためのカーソル正面図、第
3図Aはタブレットの座標と基線の関係を示す図、第3
図Bはパターンをブロック分けする図、第4図は本発明
の制御手段のデータ処理のゼネラルフローチャート、第
5図はデータの入力及びチェックのフローチャート、第
6図はデータの表示フローチャート、第7図はデータか
ら針落ち点を算出しデータディスクに格納するためのフ
ローチャート、第8.9図はミシンの制御フローチャー
ト、第10図は図面拡大率(スケール)の入力及び基線
決定のためのフローチャート、第11図は1ブロツク内
のデータ読取フローチャート、第12A図は模様縫いの
図、第12B図は刺繍縫いの図、第12C図はジャンプ
の図、第13図は1ブロツク内のデータチェックフロー
チャート、第14〜19図はデータチェックの具体例を
示す図、第20図はユニットに構成データを付与するフ
ローチャート、第21.22図は1パターンの最大座標
及び最小座標を演算するフローチャート、第23図はC
RTにおける表示座標を算出するフローチャート、第2
4図は各ブロック毎に異なるカラー表示コードを与える
フローチャート、第25図は円または円弧の中心座標及
び半径を算出するフローチャート、第26図は振りの種
類を指定するフローチャー ト、第27.28図は振り
方向指定における針落ち点を算出するフローチャート、
第29図はユニットと直線Lnとの交点の座標を算出す
るフローチャート、第30図は振り方向指定における針
落ち点の指定の説明図、第31A〜31C図は直線Ln
と各ユニットとの交点が「2」となる場合の位置関係を
示す図、第32図は直線Lnと各ユニットとの交点が「
3jとなる場合の説明図、第33図は直線Lnと各ユニ
ットとの交点が「4」となる場合の説明図、第34図は
各ユニットの交点の中から針落ち座標を選択する状態の
説明図、第35.36図は中振りにおける針落ち点を算
出するフローチャート、第37図は、中振りにおける針
落ち点の指定説明図、第38図は中振りにおいて目づま
り防止用の縫目を示す図、第39図は円における中振り
図、゛ 第40図は模様縫目算出のフローチャート、第
41.42図は針落ち座標のデータディスクへの格納の
フローチャート、第43図はデータにディレクトリ部分
を付加するためのフローチャート、第44〜49図はパ
ターンrB、の読み取り状態の図、第50〜52図はパ
ターンrijの読み取り状態図、第53図はパターンr
B、及び「!」の刺繍縫目の図である。 出願人の名称  東京重機工業株式会社千 2 口 オ  3  図 ヤ 4 邑 才  5 図 才 6 図 オ 7 l 才12A図       矛12B図 第12C図 矛13日 第20日 出、を 書り JII′Ij イεS ”       RETURN −χすl;ット C礁11 直蛛円 Flジ( J NON’     ゞ6J吐か 、九            点          
   6J=OJ・−1 +14日 第15図 第16図 第17図 第23図 第24図 第25日 矛26日 才30口 第31A図 第3旧図 介32図 第33図           − 第34図 ヤ任 V″″ 才35日 才36図
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.
Figure B is a diagram showing how the pattern is divided into blocks, Figure 4 is a general flowchart of data processing by the control means of the present invention, Figure 5 is a flowchart of data input and checking, Figure 6 is a data display flowchart, and Figure 7. 8.9 is a flowchart for calculating the needle drop point from data and storing it in the data disk, FIG. 8.9 is a control flowchart for the sewing machine, FIG. Figure 11 is a flowchart for reading data within one block, Figure 12A is a diagram for pattern stitching, Figure 12B is a diagram for embroidery stitching, Figure 12C is a diagram for jumping, Figure 13 is a flowchart for checking data within one block, and Figure 13 is a flowchart for checking data within one block. Figures 14 to 19 are diagrams showing specific examples of data checking, Figure 20 is a flowchart for assigning configuration data to a unit, Figures 21 and 22 are flowcharts for calculating the maximum and minimum coordinates of one pattern, and Figure 23 is a flowchart for calculating the maximum and minimum coordinates of one pattern. C
Flowchart for calculating display coordinates in RT, 2nd
Figure 4 is a flowchart that gives different color display codes for each block, Figure 25 is a flowchart that calculates the center coordinates and radius of a circle or arc, Figure 26 is a flowchart that specifies the type of swing, and Figure 27.28. The figure is a flowchart for calculating the needle drop point when specifying the swing direction.
Fig. 29 is a flowchart for calculating the coordinates of the intersection of the unit and the straight line Ln, Fig. 30 is an explanatory diagram of specifying the needle drop point in specifying the swing direction, and Figs. 31A to 31C are the flowchart for calculating the coordinates of the intersection of the unit and the straight line Ln.
Figure 32 is a diagram showing the positional relationship when the intersection of the straight line Ln and each unit is "2", and the intersection of the straight line Ln and each unit is "2".
3j is an explanatory diagram, FIG. 33 is an explanatory diagram when the intersection of the straight line Ln and each unit is "4", and FIG. 34 is an explanatory diagram when the needle drop coordinate is selected from the intersections of each unit Explanatory drawings, Figures 35 and 36 are flowcharts 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, and Figure 38 shows the stitches for preventing clogging in the middle swing. , Figure 39 is a middle diagram of a circle, Figure 40 is a flowchart for calculating pattern stitches, Figures 41 and 42 are flowcharts for storing needle drop coordinates in a data disk, and Figure 43 is a flowchart for storing needle drop coordinates in a data disk. A flowchart for adding a directory part. Figures 44 to 49 are diagrams of the reading state of pattern rB. Figures 50 to 52 are diagrams of the reading state of pattern rij. Figure 53 is a diagram of the reading state of pattern r.
It is a diagram of embroidery stitches of B and “!”. Applicant's name: Tokyo Heavy Equipment Industry Co., Ltd. εS ” RETURN −χsl; t C reef 11 J NON' ゞ6J vomit, 9 points
6J=OJ・-1 +14 days 15 days 16 days 17 days 23 days 24 days Ren V″″ 35 days old, 36 years old

Claims (1)

【特許請求の範囲】 手動操作により円または円弧を指定する第1信号を発生
する第1スイッチ(14c、14d)と、手動操作によ
り適宜指令となる第2信号を発生する第2スイッチ(1
4b、14n)と、 一平面上を移動操作可能とする操作手段を有し前記第1
信号発生時における操作手段の一平面上位置に対応した
座標データ信号を発生する読み取り手段と、 連続する所定数の座標データ信号の入力に基づき対応す
る所定数の読み取り位置を通る円または円弧を演算設定
し、円周上または円弧上に針落ち点を設定すデータ作成
手段と、 座標データ信号の発生箇数が前記所定数以外のときに第
2信号が発生するときデータ作成手段を不作用とする禁
止手段、 を備えた刺繍模様ミシンのデータ入力装置。
[Claims] A first switch (14c, 14d) that generates a first signal specifying a circle or an arc by manual operation, and a second switch (14c, 14d) that generates a second signal that is an appropriate command by manual operation.
4b, 14n), and an operating means that allows movement on one plane.
A reading means that generates a coordinate data signal corresponding to the position on one plane of the operating means when the signal is generated, and a circle or an arc that passes through a corresponding predetermined number of reading positions based on input of a predetermined number of continuous coordinate data signals. a data creation means for setting a needle drop point on a circumference or an arc; and a data creation means for inactivating the data creation means when a second signal is generated when the number of occurrences of the coordinate data signal is other than the predetermined number. A data input device for an embroidery pattern sewing machine, comprising:
JP28145087A 1987-11-06 1987-11-06 Data input apparatus of embroidering pattern sewing machine Pending JPS63145693A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28145087A JPS63145693A (en) 1987-11-06 1987-11-06 Data input apparatus of embroidering pattern sewing machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28145087A JPS63145693A (en) 1987-11-06 1987-11-06 Data input apparatus of embroidering pattern sewing machine

Publications (1)

Publication Number Publication Date
JPS63145693A true JPS63145693A (en) 1988-06-17

Family

ID=17639346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28145087A Pending JPS63145693A (en) 1987-11-06 1987-11-06 Data input apparatus of embroidering pattern sewing machine

Country Status (1)

Country Link
JP (1) JPS63145693A (en)

Similar Documents

Publication Publication Date Title
JPS6116185B2 (en)
AU622598B2 (en) Automatic embroidering machine with pattern input means
US20020038162A1 (en) Embroidery data generating apparatus
JPS60119981A (en) Embroidering sewing machine
JPH08266759A (en) Embroidery data processing device
JPS63125284A (en) Needle location control method of embroidering machine
JPS61199892A (en) Stitch pattern input apparatus
JPS622556B2 (en)
JPS61247491A (en) Pattern selector of sewing machine
JPS63145693A (en) Data input apparatus of embroidering pattern sewing machine
JPH0815512B2 (en) Sewing data of sewing machine
JPS6116189B2 (en)
JPS60148584A (en) Stitch data fabrication apparatus for sewing machine
JPS6116188B2 (en)
JPS6142592B2 (en)
JPS6116186B2 (en)
JPS58198378A (en) Controlling of falling of needle in embroidering machine
US5960727A (en) Embroidery sewing machine
JPS6116190B2 (en)
JPS62391A (en) Coordinates axis indication method in data input apparatus of embroidering machine
JPS6116187B2 (en)
JPS6116191B2 (en)
US5957070A (en) Programmable electronic sewing machine
JP2861437B2 (en) Needle entry data creation device for embroidery sewing machine
JPH01111285A (en) Character recognition result confirmation/correction processing system for graphic recognizing processing