JPS6116187B2 - - Google Patents

Info

Publication number
JPS6116187B2
JPS6116187B2 JP8270382A JP8270382A JPS6116187B2 JP S6116187 B2 JPS6116187 B2 JP S6116187B2 JP 8270382 A JP8270382 A JP 8270382A JP 8270382 A JP8270382 A JP 8270382A JP S6116187 B2 JPS6116187 B2 JP S6116187B2
Authority
JP
Japan
Prior art keywords
point
data
key
points
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP8270382A
Other languages
Japanese (ja)
Other versions
JPS58198373A (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 JP8270382A priority Critical patent/JPS58198373A/en
Publication of JPS58198373A publication Critical patent/JPS58198373A/en
Publication of JPS6116187B2 publication Critical patent/JPS6116187B2/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 relates to a data creation device for an embroidery sewing machine that creates data in which needle drop points are set on a contour line so that an embroidery stitch is formed within the contour line, and in particular, The present invention relates to a data creation device that displays an image of the read contour while converting the coordinates of the contour and reading the contour. 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 inputting data using the keyboard, it is easy to make incorrect inputs due to operational errors, and once the data has been entered, it must be checked by actually embroidering it, and if an error occurs, all coordinate points must be entered from the beginning again using the keyboard, but this process is difficult. It was complicated.

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

この発明の実施例を図面により説明する。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座標との傾斜角θ
で特徴づけられる。この傾斜角θの決定は、第1
0図のフローに基づき、カーソル12により次の
ように行なわれる。即ち、カーソル12の印13
aを絶対座標の(Xa、Ya)点にあわせてキー1
4aを押すことにより先ず(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 will be 1/4 times as compared to when "1" is entered. . Next, a "baseline" is determined. The base line is the standard Xn coordinate specified in advance for plotting the needle drop point, and the inclination angle θ with the absolute X coordinate of the tablet 11 is as shown in FIG. 3A.
It is characterized by This inclination angle θ is determined by the first
Based on the flow shown in FIG. 0, the following operations are performed using the cursor 12. That is, the mark 13 of the cursor 12
Align a with the absolute coordinate point (Xa, Ya) and press key 1.
First read the coordinates of point (Xa, Ya) by pressing key 4a, 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
iを押した場合である。キー14iが押されると
点数カウンタの計数値Pが「2」だけカウントダ
ウンした後「1」だけカウントアツプするから一
つ前のデータがクリアされてそこに正しいデータ
を読み込むことが可能となる。キー14jもキー
14iも押されないときに、直ちに以下に示す
「直線」、「円」、または「円弧」の読み取り動作に
入る。
In this embodiment, as will be explained in detail later, when reading the original image, the original image is divided into a plurality of blocks as shown in FIG. 3B, for example. 1st
In this embodiment, the "sewing type" in "sewing type selection" in the flowchart of FIG. 1 is three types: pattern stitching, embroidery stitching, and jump. Instruct by key 14m. Pattern sewing is the first
Embroidery stitching refers to sewing only the outline of the pattern as shown in Figure 2A, embroidery stitching refers to filling the inside of the pattern with sewing thread as shown in Figure 12B, and jump refers to sewing the outline of the pattern as shown in Figure 12C. This means that the stitch progresses from point 1 to point P2 without the needle dropping. For example, as shown in FIG.
This is a counter that sequentially adds up the points in the block from 1 to 5. First, the count value P is set to "0", and each time a point is read with the cursor 12, the count value P is set to "1". Only 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 i is pressed. When the key 14i is pressed, the count value P of the point counter counts down by ``2'' and then counts up by ``1'', so 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.

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

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

第13図において、先ず以下で用いる「直線個
数」「円弧点数」「円点数」「円弧個数」「円個数」
の各カウンタの計数値を予め「0」にセツトす
る。そして以下、カーソル12のキー14b、キ
ー14cまたはキー14dの操作に関連してそれ
ぞれ「直線個数」、「円弧点数」または「円点数」
カウンタを「1」だけカウントアツプする。「直
線個数」カウンタが「1」だけカウントアツプす
ると、「円弧点数」カウンタの計数値が判断され
る。例えば第14図のような点P1〜P4を入力する
場合、P1〜P3が円弧でありP3〜P4が直線であると
する。カーソル12の印13aを点P1に一致させ
てキー14cを押し、次に、印13aを点P2に一
致させてキー14cを押すと、「円弧点数」カウ
ンタの計数値は「2」となる。このとき、印13
aを点P3にあててキー14bを押すと、点P1
P2,P3により円弧が1つ決定されるから「円弧個
数」カウンタの計数値が「1」だけ、カウントア
ツプするとともに、一つの円弧の決定が終了した
ことにより、「円弧点数」カウンタは「0」にク
リアされる。この場合は正常であるから、第13
図のフローのチエツク機能は作動しない。ところ
が、「円弧点数」カウンタが「1」の時点で、即
ち第15図に示すように、P1を入力した時点でカ
ーソル12の印13aを点P2に一致させて直線を
指示するキー14bを押してしまうと、P1とP2
では円弧を決定することができないから、ブザー
が鳴りデータ入力のミスが報告される。この場合
には第11図のフローにより、カーソル12のキ
ー14jまたはキー14yを押してデータを修正
する必要がある。また、第16図において、点
P1,P2でともにキー14Cを押して、点P3でもキ
ー14Cを押した場合には、点P1,P2,P3により
円弧が決定されて「円弧個数」カウンタの計数値
が「1」カウントアツプされることは上記と同様
であるが、点P3は円弧の最終であるとともに次の
円弧の始点と見做され、「円弧個数」カウンタの
計数値は「0」でなく「1」となり、エラーとは
ならない。また、第17図において、点P1,P2
P3でともにキー14dを押すと、円点数カウンタ
の計数値は「3」となつて、点P1,P2,P3により
円が決定されるので「円個数」カウンタの計数値
が「1」だけカウントアツプされる。そこでも
し、円中の点P4にカーソル12の印13aを一致
させてキー14dを押すと、「円点数」カウンタ
の計数値がさらに「1」だけカウントアツプされ
て「4」となるが、本実施例においては第18図
に示すように点P4を通り点P1,P2,P3と同心な円
が形成されるのでこれはエラーとは見做されな
い。しかし、「円点数」カウンタの計数値がさら
に「1」だけカウントアツプされて「5」となる
と、点が多すぎることになるのでブザーが鳴つて
エラーが報知される。
In Figure 13, first of all, "number of straight lines,""number of arc points,""number of circle points,""number of arcs," and "number of circles" used below.
The count value of each counter is set to "0" in advance. 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 14b, points P 1 ,
Since one arc is determined by P 2 and P 3 , the count value of the "Number of arcs" counter increases by "1", and since the determination of one arc is completed, the "Number of arc points" counter increases by "1". Cleared to "0". In this case, it is normal, so the 13th
The flow check function in the diagram does not work. However, when the "arc point number" counter is "1" , that is, when P 1 is input, as shown in FIG. If you press , the arc cannot be determined using P 1 and P 2 , so a buzzer sounds and a data entry error is reported. In this case, it is necessary to correct the data by pressing the key 14j or the key 14y of the cursor 12 according to the flow shown in FIG. Also, in Figure 16, the point
If you press the key 14C at both points P 1 and P 2 , and also press the key 14C at point P 3 , the arc is determined by points P 1 , P 2 , and P 3 , and the count value of the "Number of arcs" counter becomes "1" is counted up in the same way as above, but point P 3 is considered to be the final point of the arc and the starting point of the next arc, and the count value of the "Number of arcs" counter is not "0" but "1" and is not an error. Also, in FIG. 17, points P 1 , P 2 ,
When both keys 14d are pressed at P 3 , the count value of the yen point number counter becomes "3", and since a circle is determined by points P 1 , P 2 , and P 3 , the count value of the "yen number" counter becomes "3". 1” is counted up. So, if you align the mark 13a of the cursor 12 with the point P4 in the circle and press the key 14d, the count value of the "Number of circle points" counter will be counted up by "1" and become "4". In this 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により入力されるデータと
点Pl-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 P l-1 immediately before the final point P l is "2", then at the final point P l , press the cursor 12 key. Complete the arc using the data input by 14n and the three data of points P l-2 and P l-1 to complete one arc, and count up the count value of the "number of arcs" counter 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.2
mmが設定される。
Configuration data refers to the D
They are five numbers (X, 1) to D(X, 5).
X is a serial number for distinguishing 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 you press key 14b and key 14c in succession, the pitch between the needle drop points will be 0.1 x 12 = 1.2.
mm is set.

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

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

パターン入力修正プログラム「PTINI」により
格納したパターンデータをシステムデイスクより
読み込み、そのデータの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 "PTINI" 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 of 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(1), YMAX=Y
(1), substitute YMIN=Y(1). Next, the next point in the first block (X(2), Y(2)) and XMAX, XMIN,
Compare the size with YMAX and YMIN, XMIN>X(2)
If XMIN=X(2), if XMAX<X(2) then XMAX=X
(2), YMIN>Y(2), then YMIN=Y(2), YMAX<Y
If (2), set YMAX=Y(2). 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 and XMIN indicate the maximum and minimum values of the X coordinate of data in all blocks in one pattern, respectively, and YMAX and YMIN indicate Y, respectively.
Indicates the maximum and minimum coordinate values. Therefore, LX=
Calculate the spread LX, LY of the data in the X and Y directions using XMAX−XMIN, LY=YMAX−YMIN, and MX
Calculate the center coordinates of the data using =XMIN+LX/2 and MY=XMIN+LY/2. Also, by setting the larger of LX and LY as LXY and scaling it in inverse proportion to the value of LXY, the pattern can be created at a constant scale regardless of the size of the original pattern.
Display on CRT.

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

この交点(X0、Y0)が円または円弧の中心座標
となるので、R=√(102+(002によ
り半径Rを計算する。
Since this point of 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図ではブロツク
B1のデータはL1よりも上方にあるから、刺繍
を上方に進める。次に、針落ち点座標のための
二次元のエリア(U(J)、V(J))を用意する。J
は針落ち座標カウンタの計数値であり、針落ち
点が一つ演算される毎に「1」だけカウントア
ツプする。初期状態において先ずJ=1とセツ
トして、V(1)=X(1)、U(1)=Y(1)と針落ちの第
1点目にはブロツクB1のスタート点P1の座標
を格納する。次に、直線L1を第5図のフロー
で入力した針落ちのピツチP分だけ上方へ平行
移動して直線L2:aX+bY+c−λ=0(λ=
P√22/b)とする。すると例えば第28
図においては直線L2はユニツトM1及びユニツ
トM2とそれぞれ一点で交わる。
(i) 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), Y(1)) and define a straight line L 1 parallel to the swing direction. Now let L 1 be aX+ with constants a, b, and c.
Let us write bY+c=0. Also, the constant c 1
Straight line DL passing through point P 1 and perpendicular to L 1 with : −bX
+aY+c 1 =0 is determined. Next, check the progress direction of the embroidery, for example, in Figure 30, the block
Since the data for B 1 is above L 1 , the embroidery will proceed upward. Next, a two-dimensional area (U(J), V(J)) for needle drop point coordinates is prepared. J
is the count value of the needle drop coordinate counter, which counts up by "1" every time one needle drop point is calculated. In the initial state, first set J=1, then set V(1)=X(1), U(1)=Y(1), and the first point of needle entry is the start point P1 of block B1 . Store coordinates. Next, the straight line L 1 is translated upward by the needle drop pitch P input in the flowchart of Fig. 5, and the straight line L 2 :aX+bY+c-λ=0(λ=
P√ 2 + 2 /b). Then, for example, the 28th
In the figure, straight line L2 intersects unit M1 and unit M2 at one point.

交点カウンタの計数値Kは、例えば上記一本
の直線L1またはL2等が一つのユニツトに交わ
る毎に「1」だけカウントアツプするものであ
り、ユニツトとの交点が存在るか否かは一つの
直線(L1を上方に(n−1)λだけ平行移動
させたものをLn:aX+bY+C−(n−1)λ
=0とする)上で例えば第30図における右か
ら左へと順次判断してゆき、この判断が終了し
てLnをLn+1と上方へピツチPだけ進めた時
点で計数値Kを「0」にクリアする。
The count value K of the intersection counter is incremented by "1" each 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) above, for example, from right to left in Fig. 30, and when this judgment is completed and Ln is advanced by pitch P to Ln + 1, the count value K is set to ``0''. clear.

ユニツトと直線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)/(Y3−Y0)〕 により算出し、次に、交点P1,P2の方向角
AG4、AG5を AG4=tan-1〔(YK+−Y0)/ (Xk+−X0)〕 AG5=tan-1〔(Yk+−Y0)/ (Xk++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 the unit, it is determined whether P 1 and P 2 belong to the 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 )/(Y 3 − Y 0 )], then calculate the direction angle of intersection P 1 and P 2
AG 4 and AG 5 as AG 4 = tan -1 [(YK+ 1 - Y 0 )/ (Xk+ 1 - X 0 )] AG 5 = tan -1 [(Yk+ 2 - Y 0 )/ (Xk+ 2 + X 0 ) ] Calculated from 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, 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 calculated value of the intersection counter is further counted up 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 the calculated value J of the needle drop coordinate counter is counted up 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−(J))+(1−(J)) D2=√(2−(J))+(2−(J)) により各別に算出し、D1>D2であれば点
x1,x1を選出し、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 mutually different points x 1 , y 1 , x 2 , and y 2 . At this time, the straight line Ln is lowered by P than the straight line Ln.
Needle drop points U(J), V specified as the final needle drop coordinates among the intersections with -1 and each unit
Distances D 1 , D 2 between (J) and points x 1 , y 1 and x 2 , y 2
are calculated separately using D 1 =√( 1 −(J)) 2 +( 1 −(J)) 2 D 2 =√( 2 −(J)) 2 +( 2 −(J)) 2 , and D If 1 > D 2 , point
Select x 1 and x 1 , and if D 1 < D 2 , select points x 2 and y 2 , and calculate the coordinates of the selected point as (U(J
+1) and V(J+1)), and the calculated 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)、
U(J+1))に選出し、針落ち座標カウン
タの計数値Jを「1」だけカウントアツプす
る。
In the case of Fig. 31C, unlike the above, two different intersection points (x 1 , y 1 ) and (x 2 , y 2 ) belong to one arc unit M 4 , but the processing of these two points is performed in the 29th B. The process is carried out in the same way as in the figure, and the point farther from the previous needle drop point (U(J), V(J)) is set to the next needle drop point (U(J+1),
U(J+1)), and the count value J of the needle drop coordinate counter is counted up 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. In this case, by setting x 1 = x 2 and y 1 = y 2 , 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 Yutsunit 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 more sensitive to U(J) and V(J) than the intersection on the unit M 2 side.
Since the intersection point on the unit M1 side is selected as the next needle drop point (U(J+1), V(J+1)). Similarly, Ln+2 and unit
At the intersection with M 1 and M 2 , the unit
The intersection on the M2 side is the needle drop point U(J+2), V(J
+2). In this way, the needle drop point advances while reciprocating between the units M 1 and M 2 , resulting in an embroidery stitch in which the needle swing direction is approximately parallel to the straight line Ln.

(ii) 中振り刺繍 「中振り」とは刺繍縫目において、針振り方
向がある中心点から放射状に変化してゆくもの
を言い、針落ち点は第35図のフローに基づい
て算出される。即ち、先ず第37図のブロツク
の外側の円弧ユニツトM1について、その三点
P1=(X1、Y1)、P2=(X2、Y2)、P3=(X3
Y3)から第25図のフローに基づき円弧の中心
(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 U(1) = X 1 and V(1) = Y 1 have already been set, count up J by ``1'' and set AGX# Add AGP.

以上のように設定すると、J=1の針落ち点
が外側の円弧ユニツトM1に属することになる
から、Jが奇数のときはユニツトM1側の点を
選択し、Jが偶数のときはユニツトM2側の点
を選択することによれば、針落ち点はユニツト
M1とユニツトM2間を往復して刺繍縫いとな
る。そこで、Jを「1」だけカウントアツプ
し、AGXにAGPを加えた後に、Jが偶数か奇
数かを判断し、Jが奇数であれば中心点
(XX0、YY0)から針落ち点までの距離PRをR0
とおく。またJが偶数であればブロツクが中抜
きであるか否かを判断する。中抜きでないと
は、例えば第38図の円の場合のように中心点
(X0、Y0)がブロツク内に含まれてしまう場合
のことである。もし中抜きでないならR=1mm
とおく。後述するように、このことは例えば第
39図において半径1mmの円形の中抜きEを設
けることに等しい。また、中抜きであれば円弧
ユニツトM1の内側に他のユニツトM2が存在す
るから点XX0,YY0を通り方向角tanAGXの
直線LA:Y−Y0=tanAGX(X−X0)とユニツ
トM2との交点をもとめる。これには、第29
図のフローにおいて直線L1の方程式のかわり
に直線LAの方程式を代入し、交点の座標(xk
+1、yk+1)を算出する。そして、R= √(+1−02+(+1−02 を計算する。
With the above settings, the needle drop point of J=1 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. By selecting 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. PR 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 straight line L A with the direction angle tanAGX passes through the points XX0 and YY0: Y-Y 0 = tanAGX (X-X 0 ). Find the intersection with unit M2 . This includes the 29th
In the flowchart of the figure, substitute the equation of the straight line L A instead of the equation of the straight line L 1 , and the coordinates of the intersection (xk
+1, yk+1). Then, calculate R=√(+ 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.4
mmより小さく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 mm, it is determined whether R is smaller than R 0 /3, and 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 1 . Assuming that it is not very high compared to , let us assume that RR=R. Pitzchi is 0.4
If R is smaller than mm and R is smaller than R 0 /3, determine whether J is a multiple of 4, and if it is not a multiple of 4.
Let RR=R, and if J is a multiple of 4, RR=1/
Set it as 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 (U(J), V(J)) of the point are calculated sequentially until J<I, and in relation to J>I, (U(J), V
The value of the coordinate point of (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 will occur, and if J is an even number, RR=R is set, so the needle swing direction is centered around the point (x 0 , Y 0 ). In FIG. 37, when J is an odd number, the needle drop point is on arc unit M1 , and when J is an even number, it is on unit M2 , so that the needle drop point advances clockwise.

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

(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が点数Iよりも大きく
なると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)) again. In this way, when JO becomes larger than the score I, 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 consecutive number of needle drop numbers across each unit within one block.

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

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

こうして針落ち座標の算出が終了すると、第
40,41,42図の針落ち座標格納フローに
入る。針落ち座標格納フローは針落ち座標デー
タに振りを指定する特定の16進コマンドコード
を与えるとともに、針落ち座標データを相対座
標に変換するためのものである。相対座標に変
換するのは、刺繍ミシンの駆動源にとつて必要
なデータが針落ち座標自体でなく、現在の針落
ち座標から次の針落ち座標までどの方向にどれ
だけの距離進むかであるためである。
When the calculation of the needle drop coordinates is completed in this way, the needle drop coordinate storage flow shown in FIGS. 40, 41, and 42 is entered. 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−
U(1))+(V0−V(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. Also, if it is not the first block, the 42nd block
Check the connection with the previous block based on the flow shown in the diagram. That is, the final point of the previous block is (U0, V0), and the current first point is (U(1), V
(1)), the distance between two points L=√(0−
U (1)) 2 + (V0 - V (1)) 2 is calculated and L
Determine the value of and return immediately if L=0,
If L≠0, output “80” (command code for commanding the pattern) and write (U0, V0) and (U(1),
V(1)) with a straight seam.

次に、カーソル12のキー14a、14bに
より入力した振りの種類に基づき、「振り方向
指定刺繍」のうち振り方向が基線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 14b of the cursor 12, the swing direction of the "designated swing direction embroidery" is determined based on the base line Xn (third
If the angle is larger than 45 degrees with respect to the figure), it is assumed to be vertical embroidery and the command code "FF" is output.
If the swing direction is less than 45 degrees from the base line, it is considered horizontal embroidery and the command code is "FE".
If it is a "medium swing", it will output the command code "7F", if it is a pattern, it will output the command code "80", and if it is a jump, it will output the command code "7E". 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), V0 =
Let 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
Converts UU and VV values into binary code and outputs to data disk. If UU or VV
If one of them is larger than the pitch P, it 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)), U0=
Set U (JJ), V (0) = V (JJ), count up JJ by "1" and get UU = U (JJ +
1) By calculating −U(JJ), VV=V(JJ+1)−V(JJ), the JJth relative coordinates (UU,
VV) to the data disk. thus
Count up JJ by "1"JJ>J
Then, all the needle drop point coordinates of the block have been converted to relative coordinates and have been stored in the data disk, so the directory section write flow shown in Fig. 43 is processed and the pattern number and each pattern are stored in the directory section of the data disk. Finish by writing the truck number etc.

この発明は以上のような構成であり、次にパタ
ーンを入力する場合を具体例に基づいて説明す
る。タブレツト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 2 points S and press the key 14a to specify the base line Xn connecting the 2 points S 1 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 and specifying "embroidery stitch", the mark 13a of the cursor 12 is aligned with the point P1 at the lower left corner of the first block of the alphabet "B", and the next Since the route to point 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 ends. Furthermore, P 2 −P 3
By aligning marks 13a with P 4 -P 5 -P 6 -P 7 and pressing the key 14b separately, the first block is completed by pressing the key 14n to instruct the end of the block at the final point P8 of the first block. Finish reading the data. Next, align the mark 13a of the cursor 12 with the Q1 point on the tablet 11 , press the key 14a, and then
By aligning the mark 13a with the Q2 point and pressing the key 14a, the swing direction is specified in the Q1 - Q2 direction (lateral direction). After this, cursor 12 number key,
For example, by pressing 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, so it is sufficient to read the points P 1 -P 2 -P 3 -P 4 -P 5 sequentially in the same way as in the case of the first block. When reading is completed, align the mark 13a of the cursor 12 with point Q1 and press the key 14a, then align the mark 13a with point Q2 and press the key 14a to move in the Q1 - Q2 direction (vertical direction). ) specifies the swing direction. Thereafter, by pressing, for example, the key 14b of the cursor 12, the swing pitch "P=0.1 mm" is set.

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

次に第51図においてカーソル12のキー14
lを押して「刺繍縫い」を指定する。そして、第
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, the key 14 of the cursor 12 is
Press l to specify "embroidery stitch". Then, block the starting point P1 of the pattern sewing block in Figure 50.
Set the starting point of B 1 , align the mark 13a of the cursor 12 with points P 1 and P 2 in Figure 51, press the key 14c to specify "arc" for each, and specify "straight line" at point P 3 . By pressing the key 14b, the points P 1 , P 2 , P 3
The arc is determined by Next, press the keys 14b individually while sequentially aligning the points P 4 -P 5 -P 6 -P 7 with the mark 13a, and press the key 14c while sequentially aligning the points P8 and P9 with the mark 13a. When the key 14n instructing "end" is pressed at point P10 , which almost coincides with point P1 , an arc is determined at points P8 , P9 , and P10 , and reading of block B1 is completed. Therefore, in FIG. 51, align mark 13a of cursor 12 with point Q 1 and press key 14a, then move mark 1 to point Q 2 .
By aligning keys 3a and pressing key 14a, the direction of swing is specified in the Q 1 -Q 2 direction (horizontal direction).
Thereafter, by pressing, for example, the key 14d of the cursor 12, the swing pitch "P=0.3 mm" is set.

次に、第52図において、ブロツクB1の点P10
にカーソル12の印13aを一致させて「ジヤン
プ」を指示するキー14mを押し、次にブロツク
B2の始点P1に印13aを一致させて「終了」を
指示するキー14nを押す。こうして、針落ち点
がP10からP1まで移動する。キー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 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 needles are moved in a zigzag manner 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.

以上のようにこの発明によれば、映像を表示す
る表示部をもちデータ信号に対応する位置座標に
基づいて読み取り線を結ぶ線を読み取り順序に従
い順次に表示するとともに、輪郭線の各辺の交点
に対応する表示位置に読み取り順序に従い記号を
表示可能とした表示手段17を設けたことによ
り、作業者が作成した原図が順序どおりに確実に
読み込まれたかを視覚により確認できるから、作
成されたデータによりミシンを動かす前にデータ
を確実にチエツクでき、また誤入力がある場合に
どこに誤まりがあるかが簡単に確認でき作業能率
を著しく向上する効果が得られる。また対称図形
のような図でも各ポイントを特定して修正等の作
業を容易にする等の効果が得られる。
As described above, according to the present invention, it has a display section that displays images, and sequentially displays lines connecting reading lines based on position coordinates corresponding to data signals in accordance with the reading order, and also displays intersections of each side of contour lines. By providing a display means 17 that can display symbols according to the reading order at display positions corresponding to The data can be reliably checked before starting the sewing machine, and if there is an error in input, it can be easily confirmed where the error is, which has the effect of significantly improving work efficiency. Further, even in a diagram with a symmetrical figure, it is possible to specify each point and make corrections easier.

【図面の簡単な説明】[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図はCRTにおける表示座標
を算出するフローチヤート、第24図は各ブロツ
ク毎に異なるカラー表示コードを与えるフローチ
ヤート、第25図は円または円弧の中心座標及び
半径を算出するフローチヤート、第26図は振り
の種類を指定するフローチヤート、第27,28
図は振り方向指定における針落ち点を算出するフ
ローチヤート、第29図はユニツトと直線Lnと
の交点の座標を算出するフローチヤート、第30
図は振り方向指定における針落ち点の指定の説明
図、第31A〜31C図は直線Lnと各ユニツト
との交点が「2」となる場合の位置関係を示す
図、第32図は直線Lnと各ユニツトとの交点が
「3」となる場合の説明図、第33図は直線Lnと
各ユニツトとの交点が「4」となる場合の説明
図、第34図は各ユニツトの交点の中から針落ち
座標を選択する状態の説明図、第35,36図は
中振りにおける針落ち点を算出するフローチヤー
ト、第37図は中振りにおける針落ち点の指定の
説明図、第38図は中振りにおいて目づまり防止
用の縫目を示す図、第39図は円における中振り
の図、第40図は模様縫目算出のフローチヤー
ト、第41,42図は針落ち座標のデータデイス
クへの格納のフローチヤート、第43図はデータ
にデイレクトリ部分を付加するためのフローチヤ
ート、第44〜49図はパターン「B」の読み取
り状態の図、第50〜52図はパターン「!」の
読み取りの状態の図、第53図はパターン「B」
及び「!」の刺繍縫目の図である。
1 is a perspective view of an embroidery sewing machine, a tablet, and a display device, FIG. 2 is a front view of a cursor for data input, FIG. 3A is a diagram showing the relationship between the coordinates of the tablet and a baseline, FIG. 4 is a general flowchart of data processing by the control means of the present invention, FIG. 5 is a flowchart of data input and checking, and FIG. 6 is a diagram of dividing the pattern into blocks.
The figure is a data display flowchart, Figure 7 is a flowchart for calculating the needle drop point from the data and storing it in the data disk, Figures 8 and 9 are sewing machine control flowcharts, and Figure 10 is the drawing magnification ( Figure 11 is a flowchart for reading data in one block, Figure 12A is a diagram for pattern sewing, Figure 12B is
The figure is a diagram of embroidery sewing, Figure 12C is a diagram of a jump,
Figure 13 is a flowchart for checking data in 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, and Figures 21 and 22 are for 1
Figure 23 is a flowchart for calculating the maximum and minimum coordinates of a pattern, Figure 23 is a flowchart for calculating display coordinates on a CRT, Figure 24 is a flowchart for giving a different color display code for each block, Figure 25 is a flowchart for calculating a circle or Flowchart for calculating the center coordinates and radius of an arc, Figure 26 is a flowchart for specifying the type of swing, Figures 27 and 28
The figure is a flowchart for calculating the needle drop point in specifying the swing direction, Fig. 29 is a flowchart for calculating the coordinates of the intersection of the unit and the straight line Ln, and Fig. 30 is a flowchart for calculating the coordinates of the intersection of the unit and the straight line Ln.
The figure 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 Figure 32 is a diagram showing the positional relationship between the straight line Ln and each unit. An explanatory diagram when the intersection point with each unit is "3", Figure 33 is an explanatory diagram when the intersection point between the straight line Ln and each unit is "4", and Figure 34 is an explanatory diagram from among the intersection points of each unit. An explanatory diagram of the state of selecting needle drop coordinates, Figures 35 and 36 are flowcharts for calculating the needle drop point in the middle swing, Figure 37 is an explanatory diagram of specifying the needle drop point in the middle swing, and Figure 38 is a flowchart for calculating the needle drop point in the middle swing. Figure 39 is a diagram showing the stitches to prevent clogging in the swing, Figure 39 is a diagram of the middle swing in a circle, Figure 40 is a flowchart for calculating pattern stitches, and Figures 41 and 42 are the needle drop coordinates to the data disk. Flowchart of storage, Figure 43 is a flowchart for adding a directory part to data, Figures 44-49 are diagrams of the reading state of pattern "B", Figures 50-52 are diagrams of reading of pattern "!" State diagram, Figure 53 is pattern "B"
It is a diagram of the embroidery stitches of “!” and “!”.

Claims (1)

【特許請求の範囲】 1 刺繍縫いすべき図柄を連続する複数の辺によ
り構成する輪郭線により描いた原図と、 輪郭線の各辺の交点を含む輪郭線上の複数の点
を位置座標に変換して読み取り、データ信号とし
て発生可能とした読み取り手段11,12と、 映像を表示するCRT表示部をもちデータ信号
に対応する位置座標に基づいて読み取り点を結ぶ
線を読み取り順序に表示するとともに、輪郭線の
各辺の交点に対応する位置に読み取り順序に従い
順序を表わす記号を表示可能とした表示手段17
と、 データ信号に基づいて各輪郭線内に刺繍縫目を
形成するように輪郭線上に針落ち点を設定する針
落ちデータを算出する演算手段(PTOUT)、と
を備えた刺繍縫いミシンのデータ作成装置。
[Claims] 1. An original drawing of a design to be embroidered using a contour line composed of a plurality of consecutive sides, and a plurality of points on the contour line including the intersections of each side of the contour line are converted into position coordinates. It has reading means 11 and 12 that can be read and generated as a data signal, and a CRT display section that displays images, and displays lines connecting reading points in the reading order based on position coordinates corresponding to the data signal, and outlines. Display means 17 capable of displaying a symbol representing the order according to the reading order at a position corresponding to the intersection of each side of the line
and a calculation means (PTOUT) for calculating needle drop data for setting needle drop points on contour lines so as to form embroidery stitches within each contour line based on data signals. Creation device.
JP8270382A 1982-05-17 1982-05-17 Data fabricating apparatus of embroidering machine Granted JPS58198373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8270382A JPS58198373A (en) 1982-05-17 1982-05-17 Data fabricating apparatus of embroidering machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8270382A JPS58198373A (en) 1982-05-17 1982-05-17 Data fabricating apparatus of embroidering machine

Publications (2)

Publication Number Publication Date
JPS58198373A JPS58198373A (en) 1983-11-18
JPS6116187B2 true JPS6116187B2 (en) 1986-04-28

Family

ID=13781754

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8270382A Granted JPS58198373A (en) 1982-05-17 1982-05-17 Data fabricating apparatus of embroidering machine

Country Status (1)

Country Link
JP (1) JPS58198373A (en)

Also Published As

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

Similar Documents

Publication Publication Date Title
JPS6116185B2 (en)
US4429364A (en) Sewing machine-pattern data processor
US4622907A (en) Programming and display systems for an embroidery machine
US4446520A (en) Process of preparing and processing sewing data for an automatic sewing machine
JP3434075B2 (en) Embroidery data processing device
AU622598B2 (en) Automatic embroidering machine with pattern input means
JPS6317474B2 (en)
JPS622556B2 (en)
JPS63125284A (en) Needle location control method of embroidering machine
JPS6142592B2 (en)
JPS6116189B2 (en)
JPS60148584A (en) Stitch data fabrication apparatus for sewing machine
JPS6116187B2 (en)
JPS6142593B2 (en)
JPS6116188B2 (en)
JPS6116186B2 (en)
JPS6116190B2 (en)
JPH0214077B2 (en)
JPS63139592A (en) Embroidering pattern forming apparatus
JPS63145693A (en) Data input apparatus of embroidering pattern sewing machine
JPS58198379A (en) Control of embroidering machine
JPS62253098A (en) Sewing pattern data forming apparatus for sewing machine
JP2861437B2 (en) Needle entry data creation device for embroidery sewing machine
JPS63139589A (en) Embroidering pattern forming apparatus
JPH09176953A (en) Device for treating data of embroidery and treatment of data of embroidery