JPS6116186B2 - - Google Patents

Info

Publication number
JPS6116186B2
JPS6116186B2 JP57082702A JP8270282A JPS6116186B2 JP S6116186 B2 JPS6116186 B2 JP S6116186B2 JP 57082702 A JP57082702 A JP 57082702A JP 8270282 A JP8270282 A JP 8270282A JP S6116186 B2 JPS6116186 B2 JP S6116186B2
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.)
Expired
Application number
JP57082702A
Other languages
Japanese (ja)
Other versions
JPS58198372A (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 JP8270282A priority Critical patent/JPS58198372A/en
Publication of JPS58198372A publication Critical patent/JPS58198372A/en
Publication of JPS6116186B2 publication Critical patent/JPS6116186B2/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 has a tablet having predetermined coordinates on a flat top surface and a cursor that is movable on the top surface of the tablet. The present invention relates to a data input device for an embroidery pattern sewing machine, which has a reading means that converts the coordinates of the location into a data signal and generates it, and creates circular or arcuate needle drop data.

従来、この種の刺繍ミシンにおいては、刺繍デ
ータを作成するときには、マイクロコンピユータ
等を用いて文字等の図形の座標点をキーボードに
より入力していたが、これによれば作業が著しく
煩雑となり作業能率を低下していた。またキーボ
ードによる入力時に操作ミスによる誤入力が発生
し易く、一旦入力したデータは実際に刺繍を施し
て確認し、エラーの場合は再び最初から全座標点
をキーボード入力しなければならないから、作業
を煩雑とした。
Conventionally, in this type of embroidery machine, when creating embroidery data, the coordinate points of figures such as letters were entered using a keyboard using a microcomputer, but this made the work extremely complicated and reduced work efficiency. was decreasing. In addition, when entering data using the keyboard, it is easy to make incorrect inputs due to operational errors. Once the data has been entered, it must be checked by actually embroidering it, and if an error occurs, all the coordinate points must be entered from the beginning again using the keyboard, which reduces the work. It was 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内方に配置したステツピ
ングモータ等の駆動手段(図示しない)に連動
し、上面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. ) along the axial direction of the main shaft of the sewing machine on the upper surface 1a.
It is possible to move in a direction that is a combination of the direction and the Y direction that intersects the direction and 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 designates 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 a data floppy disk for writing data to be read by the floppy reading means 7. It has an insertion part 18b that allows a disk (data disk) to be attached or detached, a floppy control means 18 for writing to or reading from each floppy disk, an operation means 19 having a plurality of keys, and a ROM, RAM, CPU, etc. The control circuit includes a control circuit (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 that has been written once is read from the system disk and corrected when making corrections. and rewrite it to the system disk as processing data. After processing "PTIN 1 ", 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 processing is executed from the system disk based on the "PTDIP". Data to display means 17
Display on CRT. After processing "PTDIP" or when there is no display command, it is determined whether or not there is any modification, and when modification is performed, the modified processing data is rewritten based on the program "PTIN 1 " 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の印13a
を絶対座標の(Xa、Ya)点にあわせてキー14
aを押すことにより先ず(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 (PTIN 1 ) 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 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 times as large as when "1" is entered. . 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 θ with respect to the absolute X coordinate of the tablet 11, as shown in FIG. 3A. This inclination angle θ is determined by the 10th
Based on the flow shown in the figure, the following operations are performed using the cursor 12. That is, the mark 13a of the cursor 12
Align it with the absolute coordinate (Xa, Ya) point and press key 14.
First read the coordinates of point (Xa, Ya) by pressing a, then read the coordinates of point (Xb, Yb) by pressing key 14a at point (Xb, Yb) which is away from point (Xa, Ya). Load. 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、キー14l、キ
ー14mによつて指示する。模様縫いとは、第1
2A図に示すようにパターンの輪郭のみを縫うこ
とであり、刺繍縫いとは第12B図のようにパタ
ーンの内部を縫糸で埋め尽すことであり、ジヤン
プとは、第12C図に示すようにP1点から針落ち
することなくP2点まで縫目が進むことである。点
数カウンタとは、例えば第3図に示すように、1
ブロツク内の点を1〜5と順次加算してゆくため
のカウンタであり、先ずその計数値Pを「0」に
セツトし、カーソル12により点の読み取りを行
う毎に計数値Pを「1」だけカウントアツプす
る。次に、「全点終了」、即ちブロツクの読み取り
が終了か否かの判断を行う。カーソル12の
「14n」キーが押された時点でブロツクの読み取
りの終了が判断される。「全点終了」に至つてい
ないなら、「ブロツク再読取」か否かを判断す
る。「ブロツク再読取」とは、作業者の操作ミス
により不本意な点が読み込まれた場合に、ブロツ
ク全体のデータを修正するために作業者がカーソ
ル12のキー14jを押した場合である。キー1
4jが押されると、ブロツク内のすべての点のデ
ータがクリアされて、データを始めから読み直す
必要がある。キー14jが押されていないなら、
「前点入力ミス」を判断する。「前点入力ミス」と
は今入力したデータが誤りであり、そのデータを
修正するために作業者がカーソル12のキー14
jを押した場合である。キー14jが押されると
点数カウンタの計数値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 count up. Next, it is determined whether "all points have been completed", that is, whether reading of the block has been completed. When the "14n" key of the cursor 12 is pressed, it is determined that reading of 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 to correct the data of the entire block when an undesired point is read due to an operator's operational error. key 1
When 4j is pressed, the data for all points in the block is cleared and the data must be reread from the beginning. If key 14j is not pressed,
Determine "previous point input error". "Previous point input error" means that the data just entered is incorrect, and the operator presses the key 1 of the cursor 12 to correct the data.
This is the case when you press j. 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 14i is pressed, the following "straight line", "circle", or "arc" reading operation is immediately entered.

本実施例においては、一つのブロツクの縁を構
成する個々の辺(直線)、円弧、及び円をそれぞ
れユニツトと称する。直線がその両端の二点によ
り決定され、円及び円弧が同一線上にない三点に
より決定されることは周知であり、本実施例にお
けるユニツトの決定には、この幾何学的性質が利
用されている。即ち、例えば円弧を決定すべき点
が一点しかなかつたり、逆に四点以上ある場合は
エラーと見做すべきことになり、そのようなチエ
ツクは第9図のフローにより行なわれる。
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にあててキー14cを押すと、点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. Below, 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 14c, 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 embodiment, as shown in FIG. 18, 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図に示すように最終点Plよりも一つ前の
点Pl−1における「円弧点数」カウンタの計数値
が「2」であれば、最終点Plにおいて、カーソル
12のキー14nにより入力されるデータと点P
l-2,Pl-1の三つのデータにより円弧を完成させ
て円弧を一つ完成させ、「円弧個数」カウンタの
計数値を「1」だけカウントアツプする。ところ
がもし、点Pl-1で「円弧点数」カウンタが
「1」であれば最終点Plにより円弧を完結するこ
とが不可能になるからブザーを鳴らしてエラーを
報知する。
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 Pl-1 immediately before the final point Pl is "2", input with the key 14n of the cursor 12 at the final point Pl. data and point P
An arc is completed using the three data l-2 and P l-1 to complete one arc, and the count value of the "number of arcs" counter is incremented by "1". However, if the "arc point number" counter is "1" at point P l-1 , it will be impossible to complete the arc at the final point P l , 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 of FIG.

構成データとは、各ユニツトに個別に対するD
(X、1)〜D(X、5)の5個の数字である。
Xは、各ユニツトを識別するための続き番号であ
る。先ずD(X、1)はユニツトの種類を示すた
めのコードであり、直線では「0」、円弧では
「1」、円では「2」と与える。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かつJ=−1+2=1に
戻す。こうしてデータチエツク及び各ユニツトへ
の構成データの付与が1ブロツクに亘つて終了す
ると、第5図のフローに戻つて「振り」及び「ピ
ツチ」の指定入力を行う。「ピツチ」はカーソル
12の数字キー14a〜14jを用いて0.1mm単
位で行う。例えばキー14b,14cと続けて押
すと針落ち点間のピツチとして0.1×12=1.2mmが
設定される。
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 ``2'' for a circle. D(X, 2) is given the number of the starting point of the unit (see FIG. 3B), 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 given "-1" for convenience. 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+1
= Return to 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 and then set D.
Return (X, 4)=-1+2=1 and J=-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 keys 14b and 14c are pressed successively, 0.1×12=1.2 mm is set as the pitch between needle drop points.

続いて、カーソル12を用いて1ブロツク内に
おける「振り」」が指定される。本実施例におい
ては、「振り」には第30図に示すような「方向
指定」、第36図に示すような「中振り」の二種
類がある。「方向指定」においては、図示しない
が第10図と同様のフローに基づき、カーソル1
2のキー14aを先ず一度押し、次にカーソル1
2の印13aを移動してキー14aを再び押すこ
とにより基線Xn(第3図)に対する振り方向が
決定される。また、「中振り」はカーソル12の
キー14hを押すことによつて指定される。
Subsequently, 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 specification", although not shown, the cursor 1 is
First press the 2 key 14a once, then press the cursor 1
By moving the No. 2 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 No.) when registering those data to the data disk is read,
The data processed by "PTIN1" is then stored on 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(1)と代
入する。次に第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 flowcharts shown in Figs. 21 and 22, data in one pattern is first loaded, and the first point (X(1), Y(1)) of the first block is immediately set to XMAX=X(1). ), XMIN=X
Substitute (1), YMAX=Y(1), and YMIN=Y(1). 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
=X(2), if 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 Fig. 23, after reading one block of data and enlarging or reducing the scale of the data based on the SCL value, the first unit within one block is either 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. Also,
If it is a circle or arc, its starting point P 1 =
(X 1 , Y 1 ), midpoint P 2 = (X 2 , Y 2 ), end point P 3 = (X 3 ,
Y 3 ) is blotted, and the center coordinates (X 0 , Y 0 ) and radius R are calculated based on the flow shown in FIG. That is,
In the flow of Figure 23, a straight line passing through P 1 and P 2
L 1 :(X-X 1 )(Y 2 -Y 1 )=(Y-Y 1 )(X 2 -X 1 )
and straight line L 2 passing through P 2 and P 3 : (X-X 2 ) (Y 3 - Y 2 )
=(Y- Y2 )( X3 - X2 ) is determined. At this time, L 1 and
parallel to L 2 , that is, (Y 2Y 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 passing through the midpoint of P 2 and P 3 and 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 ) becomes the center coordinates 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) are performed.

第26図のフローに示すように、針落ち座標算
出には(i)振り方向指定刺繍(ii)中振り刺繍(iii)模様縫
い(iv)飛ばし(ジヤンプ)の四種類があり、このう
ちどの方式で針落ち座標を算出するかは、1ブロ
ツクのデータ読み取り時に、カーソル12のキー
14l(刺繍)、キー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 key 14l (embroidery), key 14k (pattern), or key 14m (jump) of the cursor 12 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図ではブロツク
Brのデータは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) Embroidery with designated swing direction This will be explained using FIG. 30 based on the flowcharts of FIGS. 27 to 29. Starting point P 1 of block B 1 = (X
(1), a straight line passing through Y(1)) and parallel to the swing direction
Define L 1 . Now let L 1 have constants a, b, and c.
Let us write aX+bY+c=0. Also, a straight line DL passing through point P 1 and perpendicular to L 1 with constant c 1 :
Define bX+aY+c 1 =0. Next, check the progress direction of the embroidery, for example, in Figure 30, the block
Since the Br data is above L1 , proceed with the embroidery 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,
Every time one needle drop point is calculated, the count is increased by "1". In the initial state, first J=1
Then, V(1)=X(1), U(1)=
Block B 1 is placed at Y(1) and the first point of needle entry.
Stores the coordinates of the starting point P1 . Next, a straight line
Translate L 1 upward by the needle drop pitch P input using the flow shown in Figure 5 to create a straight line L 2 :aX+
Let bY+c-λ=0 (λ=P√ 2 + 2 /b). Then, for example, in Fig. 28, the straight line L 2
intersects unit M1 and unit M2 at one point each.

交点カウンタの計数値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. One straight line (L 1 translated upward by (n-1)λ is Ln: aX+bY+C-(n-1)
λ = 0), for example, from right to left in Fig. 30, and when this judgment is completed and Ln is advanced by pitch P upwards to Ln + 1, the count value K is set to ``0''. Clear to.

ユニツトと直線Lnとの交点の座標は第29
図のフローに従つて算出される。先ず、ユニツ
トが直線である場合、そのユニツトの両端の座
標を(X1、Y1)、(X2、Y2)とする。直線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 the 29th
Calculated according to the flow shown in the figure. First, if the unit is a straight line, let the coordinates of both ends of the unit be (X 1 , Y 1 ) and (X 2 , Y 2 ). Straight line Ln:
In order for aX+bY+c-(n-1)λ=0 to intersect with this unit, the points (X 1 , Y 1 ) and (X 2 , Y 2 )
It is necessary and sufficient for the two to be opposite to each other with the straight line Ln in between. That is, Z 1 =aX 1 +bY 1 +c-(n-1)
When we set λ, Z 2 = aX 2 + bY 2 + c-(n-1) λ, if Z 1 Z 2 > 0, there is a straight line with that unit.
It is assumed that there is no intersection with Ln, and if Z 1 Z 2 0, 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 ), and this
The intersection with Ln (x k+1 , y k+1 ) is 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とを比較
し、H1>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」だけカウントアツプする。
Then, if the unit is a circle or an arc,
The three points of the arc are (X 1 , Y 1 ) (X 2 , Y 2 ) (X 3 , Y 3 )
shall be. From these three points, the center coordinates (X 0 , Y 0 ) of the circle (arc) and the radius R of the circle (arc) are calculated based on the flow shown in FIG. Next, a straight line Lt perpendicular to Ln and passing through the point (X 0 , Y 0 ): -b (X - X 0 ) + a
(Y-Y 0 )=0 is determined. Then, the intersection of Lt and Ln (XX, YY) is Calculated by the point (X 0 , Y 0 ) and point (XX, YY)
H1=√( 0 −) 2 + ( 0 −) 2
Calculate by Compare this H1 and the radius R, and if H1>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 is not a circle. do not intersect,
Therefore, there is no intersection. However, in the case of 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 2 is solved simultaneously for X and Y to find the two intersection points P 1
=(X k+1 , Y k+1 )P 2 =(X k+2 , Y k+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
Since P 1 and P 2 always belong to a unit, the count value K of the intersection counter is counted up by "2". However, if the unit is an arc, the intersection
Since P 1 and P 2 may not belong to a unit, it is determined whether P 1 and P 2 belong to a unit as follows. That is, the direction angles AG 1 , AG 2 , AG 3 from the center (X 0 , Y 0 ) for the three points (X 1 , Y 1 ), (X 2 , Y 2 ), (X 3 , Y 3 ) of the circular arc 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 = Calculate by tan -1 [(Y 3 − Y 0 )/(X 3 − X 0 )], and then calculate the direction angle of intersection P 1 and P 2
AG 4 and AG 5 as AG 4 = tan -1 [(Y k+1 - Y 0 )/(X k+1 - X 0 )] AG 5 = tan -1 [(Y k+2 - Y 0 )/ (X k+2 −X 0 )], and AG 1 <AG 4 <AG 2 or AG 2 <
Only when AG 4 <AG 3 holds, P 1 is regarded as the intersection of the arcs, and 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 ) as is, and the needle drop coordinates (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とな
るのは第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 Fig. 31A, since the straight line Ln intersects the connection point of the two units 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 an intersection point K=2. However, in reality, there are two intersection points (x 1 ,
y 1 ) and (x 2 , y 2 ) are the same, so 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, it has descended by P from the straight line Ln,
The needle drop point (U
(J), V(J)) and points (x 1 , y 1 ) and (x 2 ,
D 1 = √( 1 −( ) ) 2 +( 1 −()) 2 D 2 =√( 2 −() ) 2 + ( 2 ()) 2 If D 1 > D 2 , select the point (x 1 , y 1 ), and if D 1 < D 2 , select the point (x 2 , y 1 ).
y 2 ), the coordinate value of the selected point is stored in (U(J+1), V(J+1)), and the count value J of the needle drop coordinate counter is counted up by "1".

第31C図の場合、上記とは異なつて二つ
の相違なる交点(x1、y1)、(x2、y2)は一つ
の円弧ユニツト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 (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 B. This is done in the same way as in the figure, and the previous needle drop point (U(J), V(J))
Set the point further away from the next needle drop point (U(J+
1), V(J+1)) and increments the count value of the needle drop coordinate counter by "1".

(4) K=3 第32図のように、一方の交点がユニツト
M1,M2の両者に亘り、(x1、y1)、(x2、y2
とが重複している場合のことである。このち
きはx1=x2、y1=y2とおくことにより第31
B図の場合に帰着される。もし、第31B図
の場合に帰着し得ないならエラーと見做す。
(4) K=3 As shown in Figure 32, one of the intersections is a unit.
Across both M 1 and M 2 , (x 1 , y 1 ), (x 2 , y 2 )
This is the case when there is overlap. By setting x 1 = x 2 and y 1 = y 2 , this is 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.

(5) K=4 第33図のように、一方の交点がユニツト
M1,M2の両者に亘り(x1、y1)、(x2、y2)と
が重複するとともに、他方の交点が、ユニツ
トM3,M4の両者に亘り(x3、y3)、(x4
y4)も重複している場合であり、x1=x2、y1
=y2かつx3=x4、y3=y4とおくことにより第
31B図の場合に帰着される。もし、第31
B図の場合に帰着し得ないならエラーと見做
す。
(5) K=4 As shown in Figure 33, one of the intersections is a unit.
(x 1 , y 1 ) and (x 2 , y 2 ) overlap across both M 1 and M 2, and the other intersection point overlaps (x 3 , y 2 ) across both units M 3 and M 4 . 3 ), (x 4 ,
y 4 ) is also an overlapping case, and x 1 = x 2 , y 1
By setting =y 2 and x 3 =x 4 and y 3 =y 4 , the case of FIG. 31B is obtained. If the 31st
If the result cannot be reduced to the case in Figure B, it is considered 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と一回づつ交叉し、Ln、Ln+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 line
Ln, Ln+1, and Ln+2 are each a unit.
Crosses M 1 and M 2 once each, Ln, Ln+1,
There are a total of six crossovers between Ln+2 and units M 1 and M 2 . However, not all of these intersection points are designated as needle drop points;
As shown in the flowchart of the figure, only one needle drop point is selected from one straight line Ln. Now, for the straight line Ln, unit M 2
It is assumed that the right side (FIG. 34), which intersects with , is selected as the needle drop point (U(J), V(J)). 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 (U
Since it is far from (J) and V(J)), unit M 1
The intersection of the sides is the next needle drop point (U(J+1), V
(J+1)). . Similarly, Ln
At the intersection of +2 and units M 1 and M 2 , the intersection on the unit M 2 side is the needle drop point (U
(J+2), V(J+2)). In this way, the needle drop points are set at units M 1 and M 2
The direction of needle movement is straight.
The embroidery stitch is almost parallel to Ln.

(ii) 中振り刺繍 「中振り」とは刺繍縫目において、針振り方
向がある中心点から放射状に変化してゆくもの
を言い、針落ち点は第35図のフローに基づい
て算出される。即ち、先ず第37図のブロツク
の外側の円弧ユニツトM1について、その三点
P1=(X1、Y1)、P2=(X2、Y2)、P3=(X3
Y3)から第25図のフローに基づき円弧の中心
(XX0YY0)及び円弧の半径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=|AG1−AG2|を
計算し、全点数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, for the arc unit M1 outside the block in Fig. 37, the three points are
P 1 = (X 1 , Y 1 ), P 2 = (X 2 , Y 2 ), P 3 = (X 3 ,
Y 3 ), the center of the arc (XX 0 YY 0 ) and the radius R 0 of the arc are calculated based on the flow shown in FIG. Next, the direction angle AG 1 of the starting point P 1 = tan -1 [(Y 1 − YY 0 )/
(X 1 −XX 0 )] and the direction angle of the end point AG 2 = tan -1
Calculate [(Y 3 − YY 0 )/(X 3 − XX 0 )] and calculate the angle AGP corresponding to 1 pitch from R 0 ×AGP=P.
Calculate AGP=P/R 0 , and initial value of angle AGX
Let's call it AG 1 . Next, P 1 = (X 1 , Y 1 ) is stored in the coordinates of the first stitch (U (1), V (1)), and the total angle PIO of arc unit M 1 = |AG 1 −AG 2 | Calculate the total score I=PIO/AGP. Next, set the count value J of the stitch number counter to "1", and since we have already set U(1) = X 1 and V(1) = Y 1 , count up J by "1",
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との交点をもとめる。これには、第2
9図のフローにおいて直線L1の方程式のかわ
りに直線LAの方程式を代入し、交点の座標
(xk+1、yk+1)を算出する。そして、R=
√(+1−02+(+1−02を計算す
る。
With the above settings, the needle drop point of J=1 belongs 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 you choose a point on the unit M2 side, the needle drop point will be on the unit M2 side.
The embroidery is sewn by going back and forth between M1 and unit M2 . Therefore, after counting up J by "1" and adding AGP to AGX, determine whether J is an even number or an odd number. If J is an odd number, the distance from the center point (XX0, YY0) to the needle drop point is determined. RR to R0
far. 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 not hollow, R = 1mm
far. 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 it is hollow, there is another unit M2 inside the arc unit M1 , so the direction angle tanAGX passes through the point (XX0, YY0).
Find the intersection of the straight line L A :Y-Y 0 = tanAGX (X-X 0 ) and the unit M 2 . This includes the second
In the flow shown in Figure 9, the equation for the straight line L A is substituted for the equation for the straight line L 1 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、Y0)に近接している場合には次のように
して目づまりを防止する。即ち、先づ設定した
ピツチPが例えば0.4mmよりも大きいか否かを
判断し、ピツチPが0.4mmよりも大きい場合は
目づまりは生じないものとして以下に示す処理
は行なわず直ちにRR=Rとおく。ピツチが0.4
mmより小されば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<I
となるまで順次算出し、J>Iに関連して(U
(J)、V(J))=P3=(X3、Y3)の座標点の値
を格納してフローはリターンする。
Now, in the middle stitching, as is clear from FIG. 37, the stitch interval 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 when the inner unit M 2 is close to the center coordinates (X 0 , Y 0 ), clogging is prevented as follows. That is, first, it is determined whether or not 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 clogging will not occur, and the process shown below is not performed and RR=R is immediately set. far. Pitzchi is 0.4
If R is smaller than R 0 /3, it is determined whether or not R is smaller than R 0 /3. If R is larger than R 0 /3, the stitch density in the inner unit M 2 (Fig. 38) is lower than that of the outer unit M. Assuming that it is not much higher than 1 , we will still set RR=R. Pitch is 0.4mm
If R is smaller than R 0 /3, J is 4.
Determine whether it is a multiple of 4, and if it is not a multiple of 4.
Set RR=R, and if J is a multiple of 4, set RR=1/3R 0 . Then, using the RR calculated separately depending on the parity of J and whether it is a multiple of 4, the needle drops while counting up J by 1 using U (J) = XX0 + RR・cosAGX V (J) = YY0 + RR・sinAGX. The coordinates of the point (U(J), V(J)) are J<I
Calculate sequentially until J > I, and (U
The value of the coordinate point of (J), V(J))=P 3 =(X 3 , Y 3 ) is stored and the flow returns.

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

ところがピツチ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, RR = 1/3R 0 , and if J is a multiple of 4, RR = R Therefore, as shown in Fig. 38, half of the needle drop points that should be on unit M2 are set outside R with respect to (X 0 , Y 0 ) by RR = R 0 /3. Therefore, the density of the seams on unit M2 is reduced by half and clogging is prevented. In the case of the circle in Fig. 39, the hollow E set around the center point (X 0 , Y 0 ) is
Similar processing is performed using unit M2 in the figure.

(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+(212を算出し、ピツチ
Pによりユニツト内の点数I=H/Pを計算
する。
(1) Straight line Points at both ends of the unit (X 1 , Y 1 ), (X 2 ,
Direction angle AGX of the unit from Y 2 ) = tan -1 [(Y 2
−Y 1 )/(X 2 −X 1 )] and unit length H=
Calculate √( 21 ) 2 + ( 21 ) 2 , and calculate the number of points in the unit I = H/P using pitch P.

次に、ユニツト個別の針数カウンタの計数
値JOを「0」にリセツトし、 U(J+1)=X1+JO・P・cos AGX V(J+1)=Y1+JO・P・sin AGX とおいて針落ち点(U(J+1)、V(J+
1))を算出し、この算出が終了するとJO及
びJを「1」だけカウントアツプして再び
(U(J+1)、V(J+1))・の算出を繰り
返えす。こうしてJOが点数1よりも大きく
なるとU(J+1)=X2、V(J+1)=Y2
(ユニツトの最終点)とおいてJを「1」だ
けカウントアツプし、次のユニツトの針落ち
点の計算に進む。
Next, reset the count value JO of the stitch number counter for each unit to "0", and set the needle as U(J+1)=X 1 +JO・P・cos AGX V(J+1)=Y 1 +JO・P・sin AGX Falling point (U(J+1), V(J+
1)), and when this calculation is completed, count up JO and J by "1" and repeat the calculation of (U(J+1), V(J+1)). In this way, when JO becomes larger than the score 1, U(J+1)=X 2 , V(J+1)=Y 2
(the final point of the unit), count up J by 1, and proceed 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−X0)〕全体角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 arc unit (X 1 , Y 1 ), (X 2 , Y 2 ),
From (X 3 , Y 3 ), calculate the center coordinates (X 0 , Y 0 ) and radius R based on the flow shown in FIG . )/
(X 1 −X 0 )], the final value of the angle AG 2 = tan -1 [(Y 3
−Y 0 )/(X 3 −X 0 )〕Total angle AGT=|AG 2
AG 1 |, and the angle AGP for 1 pitch =
Calculate P/R. Calculate the score I by I=AGT/AGP and reset the count value JO of the individual counter of the unit 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 the needle drop point (U(J+1), V(J+
1)) is calculated, and when this calculation is completed, JO and J are counted up by "1" and the calculation of (U(J+1), V(J+1)) is repeated again. In this way, when JO becomes larger than the score I, U(J+1)=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 sequential number of needle drop numbers across each unit within the -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, and if it is the first block, it immediately outputs the start code 7D and sets U0=U(1) and 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 either UU or VV exceeds the pitch P, and if both UU and VV are smaller than the pitch, convert the UU and VV values into binary codes and output them 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 for the coordinates of the JJ-th needle drop point (U (JJ), V (JJ)), set U0 = U (JJ), V (0) = V (JJ),
Count up JJ by 1, UU = U (JJ + 1) - U (JJ), VV = V (JJ +
1) Output the JJ-th relative coordinates (UU, VV) to the data disk by calculating -V(JJ). 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 The pattern number, each track number, etc. are written in the directory section of the data disk.

この発明は以上のような構成であり、次にパタ
ーンを入力する場合を具体例に基づいて説明す
る。タブレツト11上に原図の用紙を載置し、例
えばアルフアベツトの「B」及びエクスクラメー
シヨンマーク「!」を読み取るものとする。先ず
「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 "!" 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 inclination θ of the base line Xn with respect to the X axis of the tablet 11 is calculated.

次に、第44図において、カーソル12のキー
14l押して「刺繍縫い」を指定した後にアルフ
アベツト「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 14l of the cursor 12 to specify "embroidery stitching", align the mark 13a of the cursor 12 with the point P1 at the lower left corner of the first block of the alphabet "B", and select the next point. Since the route to P 2 is a straight line, press the key 14b corresponding to the input of "straight line", then align the mark 13a with point P 2 and press the key 14b, thereby reading between P 1 and P 2 . ends. 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 rob block at the final point P8 of the first block. Finish reading the block data. Next, align mark 13a of cursor 12 with point Q1 on tablet 11 and press key 14a.
Next, match mark 13a with Q 2 points and press key 14a.
By pressing , the swing direction is specified in the Q 1 - Q 2 direction (horizontal direction). 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のキー14lを押して「刺繍縫い」を指
定する。第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 14l of the cursor 12 is pressed to specify "embroidery stitching". The second block, like the first block, consists only of linear units, and can be read sequentially as points P 1 - P 2 - P 3 - P 4 - P 5 in the same way as in the case of the first block. . When reading is finished,
By aligning the mark 13a of the cursor 12 with the point Q1 and pressing the key 14a, then by aligning the mark 13a with the point Q2 and pressing the key 14a, the swing direction is changed in the Q1 - Q2 direction (vertical direction). It is specified. 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の印1
3aを点P1に一致させて「円弧」を指定するキー
14cを押す。すると、第13図のデータチエツ
クルーチンにおいて、「円弧点数」カウンタの計
数値が「1」となる。そこでもし、点P2で誤つて
「直線」を指定するキー14bを押すと、円弧点
数が「1」の状態で「直線個数」カウンタの計数
値がカウントアツプされるので、第13図のフロ
ーによりエラーが判断され、このエラーはブザー
により報知される。ここで、カーソル12のキー
14jを押すと第11図のフローにより点P2に関
連して入力したデータが消去されるからブザーは
停止する。そこで再び点P2にカーソル12の印1
3aを一致させて今度は「円弧」を指定するキー
14cを押す。次に、点P3にカーソル12の印1
3aを一致させ、次の点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, first mark 1 of cursor 12
3a to point P1 and press key 14c to specify "arc". 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, when the key 14j of the cursor 12 is pressed, the data inputted in relation to point P2 is erased according to the flow shown in FIG. 11, and the buzzer stops. So again mark 1 of cursor 12 at point P 2
3a and then press the key 14c to specify "arc". Next, mark 1 of cursor 12 at point P 3
3a, 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 mark 13a of the cursor 12 is aligned and the key 14c for specifying "arc" is pressed separately. At the final point P6 , press the key 14n to specify "end", and the point P4 ,
The arc is determined by the three points P 5 and P 6 , and
Data reading of the third block is completed. So, if you press key 14h and instruct "medium swing",
"Medium swing" which is radial with respect to the center point of the arcs P 1 , P 2 and P 3 is specified, and then, by pressing, for example, key 14e of the numeric keys, the 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 for 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 setting the scale to 1x by pressing the key 14b of the cursor 12, align the mark 13a of the cursor 12 with the S1 point on the tablet 11 and press the key 14a. Next, by aligning the mark 13a with S 2 and pressing the key 14a, the base line Xn connecting the two points S 1 and S is specified, and the coordinate conversion coefficient calculation routine (Fig. 10) The slope of the baseline Xn is calculated.

次に、第50図において「模様縫い」を指示す
るカーソル12のキー14kを押した後に、点P1
にカーソル12の印13aを一致させせて「直
線」を指示するキー14bを押し、次に点Q1
印13aを一致させて「終了」を指示するキー1
4nを押す。こうして、点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 mark 13a of cursor 12 with point Q1 and press key 14b to instruct "straight line", then align mark 13a with point Q1 and press key 1 to instruct "end".
Press 4n. In this way, points P 1 and Q 1 are connected with straight pattern stitches. I did this by setting the upper end point P 1 of the pattern sewing block to the block above “!”
By specifying the first point P 1 of B 1 (FIG. 51), the embroidery progresses from top to bottom in the upper block B 1 .

次に第51図において、カーソル12のキー1
4lを押して「刺繍縫い」を指定する。そして、
第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 1 of cursor 12
Press 4l and specify "embroidery stitch". and,
Block the starting point P 1 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まで移動する。キー14lを押して
刺繍縫いを設定した後に、点P1,P2と順次カーソ
ル12の印13aを一致させながら「円」を指定
するキー14dをそれぞれ押し、点P3でキー14
nを押すことにより、点P1,P2,P3により円が決
定されてブロツクB2の読み取りが終了する。そ
こでキー14hを押して「中振り」を指示し、続
いてキー14cを押すことによりピツチ「P=
0.2mm」を設定する。データの読み取りの終了
後、次の刺繍パターンのために予め針落ち点を移
動させるべく、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 setting the embroidery stitch by pressing the key 14l, press the key 14d for specifying "circle" while aligning the mark 13a of the cursor 12 with the points P1 and P2 in sequence, and press the key 14d to specify "circle" at the point P3 .
By pressing n, a circle is determined by points P 1 , P 2 and P 3 and reading of block B 2 is completed. Then, press key 14h to instruct "medium swing", then press key 14c to select pitch "P=
0.2mm”. After reading the data, 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 P3 of the B2 block and press the key 14m to specify "Jump". When the key 14n is pressed twice, the mark 13a is aligned with the point Q1 separated from the point P5 to instruct the end of reading one pattern . ” 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」及びエ
クスクラメーシヨンマーク「!」の刺繍縫目は第
53図のようになる。
The embroidery stitches of the alphabet "B" and the exclamation mark "!" thus input are as shown in FIG.

なお、本実施例においては、支持枠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.

また、本実施例においてはブサーにより報知す
るものを示したが、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.

以上のようにこの発明によれば、 連続する三箇のデータ信号に関連してタブレツ
ト上の異なる三点の座標を読み取つた後に、終了
信号に関連して三点を通る円または円弧を設定
し、円周上または円弧上に針落ち点を設定するデ
ータ作成手段(PTTNI、PTOUT)と、終了信号
発生時までに発生するデータ信号の箇数が三箇以
外のときデータ作成手段を不作用とし音または光
で表示する禁止手段、とを設けたことにより、作
成したデータによりミシンを作動する前にデータ
の誤入力が確認でき、常に確実に円または円弧の
データが作成できるから、作業能率を著しく向上
する効果が得られる。
As described above, according to the present invention, after reading the coordinates of three different points on the tablet in relation to three consecutive data signals, a circle or arc passing through the three points is set in relation to the end signal, The data creation means (PTTNI, PTOUT) that sets the needle drop point on the circumference or arc, and when the number of data signals generated before the end signal is generated is other than three, the data creation means is inactive and the sound or By providing a prohibition means that displays with light, it is possible to check for incorrect input of data before operating the sewing machine based on the created data, and data for circles or arcs can always be created reliably, significantly improving work efficiency. The effect of

【図面の簡単な説明】[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,21図
は1パターンの最大座標及び最小座標を演算する
フローチヤート、第23図はCRTにおける表示
座標を算出するフローチヤート、第24図は各ブ
ロツク毎に異なるカラー表示コードを与えるフロ
ーチヤート、第25図は円または円弧の中心座標
及び半径を算出するフローチヤート、第26図は
振りの種類を指定するフローチヤート、第27,
28図は振り方向指定における針落ち点を算出す
るフローチヤート、第29図はユニツトと直線
Lnとの交点の座標を算出するフローチヤート、
第30図は振り方向指定における針落ち点の指定
の説明図、第31A〜31C図は直線Lnと各ユ
ニツトとの交点が「2」となる場合の位置関係を
示す図、第3,2図は直線Lnと各ユニツトとの
交点が「3」となる場合の説明図、第33図は直
線Lnと各ユニツトとの交点が「4」となる場合
の説明図、第34図は各ユニツトの交点の中から
針落ち座標を選択する状態の説明図、第35,3
6図は中振りにおける針落ち点を算出するフロー
チヤート、第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 stitching, 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 diagram of a unit. Flowchart for adding configuration data, Figures 21 and 21 are flowcharts for calculating the maximum and minimum coordinates of one pattern, Figure 23 is a flowchart for calculating display coordinates on a CRT, and Figure 24 is for each block. Flowchart for giving different color display codes, Fig. 25 is a flowchart for calculating the center coordinates and radius of a circle or arc, Fig. 26 is a flowchart for specifying the type of swing, Fig. 27.
Figure 28 is a flowchart for calculating the needle drop point when specifying the swing direction, and Figure 29 is a flowchart for calculating the needle drop point when specifying the swing direction.
Flowchart for calculating the coordinates of the intersection with Ln,
Figure 30 is an explanatory diagram of specifying the needle drop point in specifying the swing direction, Figures 31A to 31C are diagrams showing the positional relationship when the intersection of the straight line Ln and each unit is "2", and Figures 3 and 2 is an explanatory diagram when the intersection point between straight line Ln and each unit is "3", Figure 33 is an explanatory diagram when the intersection point between straight line Ln and each unit is "4", and Figure 34 is an explanatory diagram when the intersection point between straight line Ln and each unit is "4". Explanatory diagram of the state of selecting needle drop coordinates from intersection points, No. 35, 3
Figure 6 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, Figures 44-49 are diagrams of the reading state of pattern "B", Figures 50-52 are diagrams of the reading state of pattern "!", and Figure 53 is a diagram of pattern "B" and "!" ” is a diagram of the embroidery stitches.

Claims (1)

【特許請求の範囲】[Claims] 1 手動操作により円または円弧を指定する読み
取り信号を発生する第一スイツチ14c,14d
と、手動操作により終了信号を発生する第二スイ
ツチ14nと、平坦な上面に予め定められた座標
をもつタブレツト11及びタブレツト上面を移動
可能としたカーソル12とをもち、読み取り信号
の発生時におけるタブレツト上面に対してカーソ
ルの位置する座標をデータ信号に変換して発生す
る読み取り手段と、連続する三箇のデータ信号に
基づいて読み取られたタブレツト上の異なる三点
の座標に基づき、終了信号の発生に関連して三点
を通る円または円弧を演算設定し、円周上または
円弧上に針落ち点を設定するデータ作成手段
(PTTNI、PTOUT)と、終了信号発生時までに
発生するデータ信号の箇数が三箇以外のときデー
タ作成手段を不作用とし音または光で表示する禁
止手段、とを備えた刺繍模様ミシンのデータ入力
装置。
1 First switches 14c and 14d that generate a read signal specifying a circle or arc by manual operation
, a second switch 14n that generates an end signal by manual operation, a tablet 11 having predetermined coordinates on a flat top surface, and a cursor 12 that is movable on the top surface of the tablet, and a tablet 14n that generates a termination signal when a reading signal is generated. A reading means generates a data signal by converting the coordinates where the cursor is located with respect to the top surface, and generates an end signal based on the coordinates of three different points on the tablet read based on three consecutive data signals. Relatedly, data creation means (PTTNI, PTOUT) that calculates and sets a circle or arc that passes through three points and sets the needle drop point on the circumference or arc, and the data signal that is generated until the end signal is generated. A data input device for an embroidery pattern sewing machine, comprising: a prohibition means for inactivating the data creation means and displaying the data by sound or light when the number is other than three.
JP8270282A 1982-05-17 1982-05-17 Data input apparatus of pattern embroidering machine Granted JPS58198372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8270282A JPS58198372A (en) 1982-05-17 1982-05-17 Data input apparatus of pattern embroidering machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8270282A JPS58198372A (en) 1982-05-17 1982-05-17 Data input apparatus of pattern embroidering machine

Publications (2)

Publication Number Publication Date
JPS58198372A JPS58198372A (en) 1983-11-18
JPS6116186B2 true JPS6116186B2 (en) 1986-04-28

Family

ID=13781726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8270282A Granted JPS58198372A (en) 1982-05-17 1982-05-17 Data input apparatus of pattern embroidering machine

Country Status (1)

Country Link
JP (1) JPS58198372A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0248928Y2 (en) * 1984-07-25 1990-12-21

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55170074U (en) * 1979-05-24 1980-12-06

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0248928Y2 (en) * 1984-07-25 1990-12-21

Also Published As

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

Similar Documents

Publication Publication Date Title
JPS6116185B2 (en)
US4429364A (en) Sewing machine-pattern data processor
EP0147087B1 (en) Embroidery machine
US4446520A (en) Process of preparing and processing sewing data for an automatic sewing machine
AU622598B2 (en) Automatic embroidering machine with pattern input means
JP3434075B2 (en) Embroidery data processing device
JPS622556B2 (en)
JPS6317474B2 (en)
JPS6116186B2 (en)
JPS6116189B2 (en)
JPS6142592B2 (en)
JPS6116188B2 (en)
JPS60148584A (en) Stitch data fabrication apparatus for sewing machine
JPS6142593B2 (en)
JPS6116187B2 (en)
JPS6116190B2 (en)
JPH0214077B2 (en)
US5960727A (en) Embroidery sewing machine
JPS6116191B2 (en)
JPS63145693A (en) Data input apparatus of embroidering pattern sewing machine
JP2861437B2 (en) Needle entry data creation device for embroidery sewing machine
JP2598777B2 (en) Piercing information confirmation device
JPS62253098A (en) Sewing pattern data forming apparatus for sewing machine
JPS63139589A (en) Embroidering pattern forming apparatus
JPH09176953A (en) Device for treating data of embroidery and treatment of data of embroidery