JPS6116188B2 - - Google Patents

Info

Publication number
JPS6116188B2
JPS6116188B2 JP57082704A JP8270482A JPS6116188B2 JP S6116188 B2 JPS6116188 B2 JP S6116188B2 JP 57082704 A JP57082704 A JP 57082704A JP 8270482 A JP8270482 A JP 8270482A JP S6116188 B2 JPS6116188 B2 JP S6116188B2
Authority
JP
Japan
Prior art keywords
point
data
key
block
unit
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
JP57082704A
Other languages
Japanese (ja)
Other versions
JPS58198374A (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 JP8270482A priority Critical patent/JPS58198374A/en
Publication of JPS58198374A publication Critical patent/JPS58198374A/en
Publication of JPS6116188B2 publication Critical patent/JPS6116188B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 この発明は、平坦な上面に予め定められた座標
をもつタブレツト11及びタブレツト上面を移動
可能としたカーソル12とをもち、操作信号に関
連してタブレツト上面に対してカーソルの位置す
る座標をデータ信号に変換して発生する読み取り
手段を有する刺繍ミシンのデータ入力装置に関
し、特に、直線に対応する操作スイツチと円弧線
に対応する操作スイツチとの操作により直線と円
弧線が交互に連続する線を読み取つて針落ち位置
を指定するためのものである。従来、この種の刺
繍ミシンにおいては、刺繍データを作成するとき
には、マイクロコンピユータ等を用いて文字等の
図形の座標点をキーボードにより入力していた
が、これによれば作業が著しく煩雑となり作業能
率を低下していた。またキーボードによる入力時
に操作ミスによる誤入力が発生し易く、一旦入力
したデータは実際に刺繍を施して確認し、エラー
の場合は再び最初から全座標点をキーボード入力
しなければならないから、作業を煩雑とした。
DETAILED DESCRIPTION OF THE INVENTION The present invention has 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. Regarding a data input device for an embroidery sewing machine, which has a reading means that generates data by converting the coordinates of the position of It is used to specify the needle drop position by reading alternately continuous lines. 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.

この発明は、上記従来のものの欠点を除去する
ことを目的とする。
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内方に配置したステツピングモー
タ等の駆動手段(図示しない)に連続し、上面1
a上をミシン主軸の軸線方向に沿うX方向及び軸
線方向との交叉方向に沿うY方向との合成方向へ
移動可能とする。7はフロツピー読み取り手段で
あり、フロツピーデイスク(図示しない)を着脱
可能とする差し込み部7aを有して差し込まれた
フロツピーデイスクのデータを読み取る。8はキ
ーボードであり、読み取り手段において読み取つ
たフロツピーデータの読み出し及びミシン2の縫
い動作や支持枠5の移動制御等に関するデータの
フロツピーデータへの書き込み等のためのキー操
作群9と、操作キー群9のキー操作に関連して入
力または出力したデータを文字表示する表示部1
0とをもつ。
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, in which an embroidery frame 6 is removably supported with a cloth stretched over it. Continuous, top surface 1
A can be moved in a composite direction of the X direction along the axial direction of the main shaft of the sewing machine and the Y direction along the direction crossing 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.; Display unit 1 that displays data input or output in characters related to key operations of key group 9
0.

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 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上において読み取ら
れる原図が何倍に拡大されたものかをカーソル1
2からのキー入力により読み込む。この倍率の入
力はカーソル12の「1」〜「9」の数字キーに
よつて行なわれ、例えば「4」を入力したときは
「1」を入力したときに較べスケールは1/4倍にな
る。そして次に、「基線」の決定を行う。基線と
は、針落ち点をプロツトするために予め指定する
基準のXn座標であり、第3図(A)に示すようにタ
ブレツト11のもつ絶対X座標との傾斜角θで特
徴づけられる。この傾斜角θの決定は、第10図
のフローに基づき、カーソル12により次のよう
に行なわれる。即ち、カーソル12の印13aを
絶対座標の(Xa、Ya)点にあわせてキー14a
を押すことにより先ず(Xa、Ya)点の座標を読
み込み、次に(Xa、Ya)点から離隔する(Xb、
Yb)点でキー14aを押すことにより(Xb、
Yb)点の座標を読み込む。これから、X軸方向
の距離LX=Xb−Xa及びy軸方向の距離LY=Yb
−Yaが演算され、続いてLXY=√(−)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. Determine whether the data to be read is a new input, that is, a modification, and if it is new, use the cursor 1 to indicate how many times the original image to be read is enlarged on the tablet 11.
Read by key input from 2. 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 the inclination angle θ with respect to the absolute X coordinate of the tablet 11, as shown in FIG. 3(A). The inclination angle θ is determined as follows using the cursor 12 based on the flow shown in FIG. That is, align the mark 13a of the cursor 12 with the absolute coordinate point (Xa, Ya) and press the key 14a.
By pressing , first read the coordinates of the (Xa, Ya) point, then (Xb,
By pressing key 14a at point (Xb,
Yb) Read the coordinates of the point. From this, the distance in the X-axis direction LX = Xb - Xa and the distance in the y-axis direction LY = Yb
−Ya is calculated, then LXY=√(−) 2 +
(Yb−Ya) 2 is calculated, cosθ=LX/LXY,
sinθ=LY/LXY has been determined, and from now on the absolute coordinate
The base line tilted θ relative to the base line becomes the X-axis. this baseline
Xn and absolute coordinates (X, Y) are Xn=Xcosθ−Ysin
There is a relationship of θ. Thus, the coordinate transformation coefficient cosθ,
Once sin θ is determined, data reading operation begins based on the flow shown in FIG.

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

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

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

第13図において、先ず以下で用いる「直線個
数」「円弧点数」「円点数」「円弧個数」「円個数」
の各カウンタの計数値を予め「0」にセツトす
る。そして以下、カーソル12のキー14b、キ
ー14cまたはキー14dの操作に関連してそれ
ぞれ「直線個数」、「円弧点数」または「円点数」
カウンタを「1」だけカウントアツプする。「直
線個数」カウンタが「1」だけカウントアツプす
ると、「円弧点数」カウンタの計数値が判断され
る。例えば第14図のような点P1〜P4を入力する
場合、P1〜P3が円弧でありP3〜P4が直線であると
する。カーソル12の印13aを点P1に一致させ
てキー14cを押し、次に、印13aを点P2に一
致させてキー14cを押すと、「円弧点数」カウ
ンタの計数値は「2」となる。このとき、印13
aを点P3にあててキー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 , an 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". It becomes "1" and does not result in an error. Also, in FIG. 17, points P 1 ,
When the key 14d is pressed at both P 2 and P 3 , the count value of the yen point counter becomes "3", and since a circle is determined by points P 1 , P 2 , and P 3 , the count of the "yen number" counter becomes ``3''. The number is counted up by "1". So, if you align the mark 13a of the cursor 12 with the point P4 in the circle and press the key 14d, the count value of the "Number of circle points" counter will be counted up by "1" and become "4". In this example, the 18th
As shown in the figure, a circle passing through point P4 and concentric with points P1 , P2 , and P3 is formed, so this is not considered an error. However, when the count value of the "yen score" counter is further incremented by "1" and reaches "5", there are too many points, and a buzzer sounds to notify an error.

こうして、全点のチエツクが終了すると、その
終点における「円弧点数」カウンタの計数値を判
断し、その計数値が「0」であれば既に円弧が完
結しているので次の第17図のフローに進む。ま
た第19図に示すように最終点Plよりも一つ前の
点Pl-1における「円弧点数」カウンタの計数値
が「2」であれば、最終点Plにおいて、カーソル
12のキー14nにより入力されるデータと点P
l-2,Pl-1の三つのデータにより円弧を完成させ
て円弧を一つ完結させ、「円弧個数」カウンタの
計数値を「1」だけカウントアツプする。ところ
がもし、点Pl-1で「円弧点数」カウンタが
「1」であれば最終点lにより円弧を完結するこ
とが不可能になるからブザーを鳴らしてエラーを
報知する。
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. In addition, 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 Pl is "2", at the final point Pl, press the key 14n of the cursor 12. Input 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 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 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 the number of the starting point of the unit (Figure 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 successively, the pitch between the needle drop points will be 0.1×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.

パターン入力修正プログラム「PTIN1」により
格納したパターンデータをシステムデイスクより
読み込み、そのデータのX、Y軸の最大値
XMAX、YMAX、及び最小値XMIN、YMINを選
出する。即ち、第21,22図のフローにおい
て、先ず1パターン中のデータをロードし、その
第1ブロツクの最初の点(X(1)、Y(1))を以つて
一たんYMAX=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 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 YMAX=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 then calculate the center coordinates (X 0 , Y 0 ) and radius based on the flow in Figure 25. 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 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 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.
Which of these methods should be used to calculate the needle drop coordinates?
When reading one block of data, cursor 12
It is specified by the sewing type selection operation (Fig. 11) of the key 14l (embroidery), key 14k (pattern), or key 14m (jump), and the operation content is determined according to the flowchart in Fig. 26 and the respective subroutine is selected. do.

(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,
Every time one needle drop point is calculated, it is counted up by "1". In the initial state, first set J = 1, V(1) = X(1), U(1) = Y(1) and the first needle drop.
The coordinates of the starting point P1 of block B1 are stored in the point. 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). For example, in Fig. 28, the straight line L 2 connects the unit M 1 and the unit
Intersect with M 2 at one point.

交点カウンタの計数値Kは、例えば上記一本
の直線L1またはL2等が一つのユニツトに交わ
る毎に「1」だけカウントアツプするものであ
り、ユニツトとの交点が存在するか否かは一つ
の直線(L1を上方に(n−1)λだけ平行移
動させたものをLn:aX+bY+C−(n−1)
λ=0とする)上で例えば第30図における右
から左へと順次判断してゆき、この判断が終了
してLnをLn+1と上方へピツチPだけ進めた
時点で計数値Kを「0」にクリアする。
For example, the count value K of the intersection counter is incremented by 1 every time the above-mentioned straight line L1 or L2 intersects one unit, and it does not matter whether there is an intersection with the unit or not. 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 (xk+1, yk+1) is Since one intersection point has been calculated in this way, the count value K of the intersection point counter is incremented 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
= (Xk+1, Yk+1) P 2 = (Xk+2, Yk+
2) is obtained. (The specific calculation formula will be omitted as it will be complicated.) Now, if the unit is a circle, the calculated intersection
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 )/(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 [(Yk+1-Y 0 )/(Xk+1-
X 0 )] AG 5 = tan -1 [(Yk+2-Y 0 )/(Xk+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, it is checked whether the final point has been calculated, and if the final point has been calculated, the needle drop point for that block can be calculated. finish.

(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 ).
In this case, the needle drop point (U(J), V(J)) specified as the final needle drop coordinate among the intersections with each unit with the straight line Ln-1, which is lower than the straight line Ln by P The distances D 1 and D 2 from the points (x 1 , y 1 ) and (x 2 , y 2 ) are D 1 =√( 1 − ()) 2 + ( 1 − ()) 2 D 2 =√( 2 −()) 2 +( 2 −()) 2 , and if D 1 > D 2 , select the point (x 1 , y 1 ), and if D 1 > D 2 , select the point (x 2 ,
y 2 ) and the coordinate value of the selected one as (U(J
+1) and V(J+1)), and the count value J of the needle drop coordinate counter is counted up by "1".

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

(4) K=3 第32図のように、一方の交点がユニツト
M1,M2の両者に亘り、(x1、y1)、(x2、y2
とが重複している場合のことである。このと
きはx1=x2、y1=y2とおくことにより第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 over both M 1 and M 2, and the other intersection point overlaps (x 3 , y 2 ) over both units M 3 and M 4 . y3 ), ( x4 ,
y 4 ) is also a duplicate case, and x 1 = x 2 , y 1
By setting =y 2 and x 3 =x 4 , 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 units.
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+
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の全体角度DIO=|AG1−AG2|を計算
し、全点数I=PIO/AGPをもとめる。次に針
数カウンタの計数値Jを「1」にセツトし、既
にU(1)=X1、V(1)=Y1とおいているの
でJを「1」だけカウントアツプし、AGXに
AGPを加える。
(ii) Mid swing embroidery "Mid swing embroidery" refers to an embroidery stitch in which the needle swing direction changes radially from a certain center point, and the needle drop point is calculated based on the flow shown in Figure 35. That is, first, regarding the arc unit M 1 outside the block in Fig. 37, its three points P 1
= (X 1 , Y 1 ), P 2 = (X 2 , Y 2 ), P 3 = (X 3 , Y 3 ), the center of the arc (XX 0 YY 0 ) and the arc Calculate the radius R 0 . 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 DIO 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 , 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)から針落ち点までの距離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 hollowing means that the center point (X 0 , Y 0 ) is included in the block, as in the case of 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.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 it 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.
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 and oddness of J and whether it is a multiple of 4, U (J) = XX0 + RR・cosAGX V (J) = YY0 + RR・sinAGX while counting up J by "1" The coordinates of the needle drop 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 , clogging will not occur, and if J is an even number, set RR=R, 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 the arc unit M1 , and when J is an even number, it is on the unit M2 , so that the needle drops in the clockwise direction.

ところがピツチP<0.4mmかつR<R0/3の
ときはJが偶数の場合において、Jが4の倍数
であれば RR=1/3R0 とおきJが4の倍数でなければRR=Rとおく
ので、第38図に示すように、ユニツトM2
にのるべき針落ち点のうち半数がRよりも
(X0、Y0)に対して外側のRR=Ro/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 ), RR = Ro / 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=han-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 ) = han -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・cosAGX V(J+1)=Y1+JO・P・sinAGX とおいて針落ち点(U(J+1)、V(J+
1))を算出し、この算出が終了するとJO及
びJを「1」だけカウントアツプして再び
(U(J+1)、V(J+1))の算出を繰り
返えす。こうしてJOが点数Iよりも大きく
なるとU(J+1)=X2、V(J+1)=Y2
(ユニツトの最終点)とおいてJを「1」だ
けカウントアツプし、次のユニツトの針落ち
点の計算に進む。
Next, reset the count value JO of the individual stitch number counter of the unit to "0" and set the needle drop as U(J+1)=X 1 +JO・P・cosAGX V(J+1)=Y 1 +JO・P・sinAGX 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, reset the count value JO of the individual counter of the unit to "0", and calculate 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))
When this calculation is completed, JO and J
count up by "1" and again (U
(J+1), V(J+1)) is repeated. In this way, when JO becomes larger than the score I, U(J+1)=X 3 and V(J+1)=Y 3 (final point), and J is counted up 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 moving from point P 1 to point P 2 without needle drop, as shown in Fig. 12C, and does not affect the stitch type. 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 for giving a specific hexadecimal command code specifying the swing to the needle drop coordinate data and converting the needle drop coordinate data to 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. 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, 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,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, 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 arithmetic error and is therefore treated as an error. After that, generally the coordinates of the JJ-th needle drop point (U(JJ), V(JJ)) are also U0
= 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
Since all the needle drop point coordinates of the block have been converted to relative coordinates and have been stored in the data disk, 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 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 stitch", point P 1 at the lower left corner of the first block of the alphabet "B" is pressed.
Match the mark 13a of the cursor 12 to the next point P 2
Since the path up 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 P 1 , P 2
Reading ends in the meantime. Furthermore, P 2
By aligning marks 13a with P 3 -P 4 -P 5 -P 6 -P 7 and pressing the key 14b separately, and pressing the key 14n to instruct the end of the block at the final point P 8 of the first block, Finish reading the first block of 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, 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 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のキー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を押
すと、点,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 indicating "end" is pressed at point P10 , which almost coincides with point P1, reading of block B1 whose arc is determined at points 8 , P9 , and P10 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.2
mm」を設定する。データの読み取りの終了後、次
の刺繍パターンのために予め製針落ち点を移動さ
せるベく、B2ブロツクの最終点P3にカーソル1
2の印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, by pressing the key 14h to instruct "medium swing" and then pressing the key 14c, the pitch "P=0.2" is pressed.
mm”. After reading the data, move the cursor 1 to the final point P3 of the B2 block in order to move the needle drop point for the next embroidery pattern.
2, press the key 14m to specify "Jump", then press the key 14n to match the mark 13a to the point Q1 , which is separated from the point P5 , to instruct the end of reading one pattern. When pressed twice, the "jump" from point P 3 to point Q 1 is read, and the reading of one pattern "!" is completed.

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

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

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

また、本実施例においては、データデイスクの
データにより支持枠をX、Y方向へ移動する構成
のものを示したが、サーボモータ、ステツピング
モータ等の制御により針を横方向に揺動する千鳥
縫いミシンを配置し、データデイスクのデータに
より支持枠の移動と同時に針の揺動を制御するよ
うにしてもよい。
In addition, in this embodiment, a structure in which the support frame is moved in the X and Y directions according to the data on the data disk is 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.

以上のようにこの発明よれば、 円孤線または直線とが連結するとき、接続点に
おいて接続する線に対応する第一または第二スイ
ツチの操作によつて連続鎖を設定可能としたこと
により、操作スイツチの操作を簡略化できるの
で、データ入力操作が容易且つ迅速にできるから
作業能率を向上する効果が得られる。
As described above, according to the present invention, when arc lines or straight lines are connected, a continuous chain can be set by operating the first or second switch corresponding to the connecting line at the connection point. Since the operation of the operation switch can be simplified, data input operations can be performed easily and quickly, resulting in the effect of improving work efficiency.

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

第1図は、刺繍ミシン、タブレツト、及び表示
装置の斜視図、第2図はデータ入力のためのカー
ソルの正面図、第3図Aはタブレツトの座標と基
線との関係を示す図、第3図Bはパターンをブロ
ツク分けする図、第4図は本発明の制御手段のデ
ータ処理のゼネラルフローチヤート、第5図はデ
ータの入力及びチエツクのフローチヤート、第6
図はデータの表示フローチヤート、第7図はデー
タから針落ち点を算出しデータデイスクに格納す
るためのフローチヤート、第8,9図はミシンの
制御フローチヤート、第10図は図面拡大率(ス
ケール)の入力及び基線決定のためのフローチヤ
ート、第11図は1ブロツク内のデータ読取フロ
ーチヤート、第12A図は模様縫いの図、第12
B図は刺繍縫いの図、第12C図はジヤンプの
図、第13図は1ブロツク内のデータチエツクフ
ローチヤート、第14〜19図はデータチエツク
置の具体例を示す図、第20図はユニツトに構成
データを付与するフローチヤート、第21,22
図は1パターンの最大座標及び最小座標を演算す
るフローチヤート、第23図はCRTにおける表
示座標を算出するフローチヤート、第24図は各
ブロツク毎に異なるカラー表示コードを与えるフ
ローチヤート、第25図は円または円弧の中心座
標及び半径を算出するフローチヤート、第26図
は振りの種類を指定するフローチヤート、第2
7,28図は振り方向指定における針落ち点を算
出するフローチヤート、第29図はユニツトと直
線Lnとの交点の座標を算出するフローチヤー
ト、第30図は振り方向指定における針落ち点の
指定の説明図、第31A〜31C図は直線Lnと
各ユニツトとの交点が「2」となる場合の位置関
係を示す図、第32図は直線Lnと各ユニツトお
交点が「3」となる場合の説明図、第33図は直
線Lnと各ユニツトとの交点が「4」となる場合
の説明図、第34図は各ユニツトの交点の中から
針落ち座標を選択する状態の説明図、第35,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 data check flowchart in one block, Figures 14 to 19 are diagrams showing specific examples of data check locations, and Figure 20 is a unit. Flowchart for adding configuration data to 21st and 22nd
The figure is a flowchart for calculating the maximum and minimum coordinates of one pattern, Figure 23 is a flowchart for calculating display coordinates on a CRT, Figure 24 is a flowchart for giving a different color display code for each block, and Figure 25 is a flowchart for calculating display coordinates on a CRT. Figure 26 is a flowchart for calculating the center coordinates and radius of a circle or arc, and Figure 26 is a flowchart for specifying the type of swing.
Figures 7 and 28 are flowcharts for calculating the needle drop point when specifying the swing direction, Figure 29 is a flowchart for calculating the coordinates of the intersection of the unit and straight line Ln, and Figure 30 is a flowchart for specifying the needle drop point when specifying the swing direction. 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 when the intersection of the straight line Ln and each unit is "3". FIG. 33 is an explanatory diagram when the intersection point between the straight line Ln and each unit is "4", FIG. 34 is an explanatory diagram when the needle drop coordinate is selected from the intersection points of each unit, and FIG. 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)

【特許請求の範囲】 1 手動操作により第一信号を発生する第一スイ
ツチ14bと、 手動操作により第二信号を発生する第二スイツ
チ14cと、 平坦な上面に予め定められた座標をもつタブレ
ツト11及びタブレツト上面を移動可能としたカ
ーソル12とをもち、第一または第二の信号の発
生時におけるタブレツト上面に対してカーソルの
位置する座標をデータ信号に変換して発生する読
み取り手段と、 連続する二箇の第一信号に基づくデータ信号に
対応する二点の座標間を結ぶ直線を設定し、連続
する三箇の第二信号に基づくデータ信号に対応す
る三点の座標を通る円弧線を設定し、それぞれの
線上に針落ち点を設定する演算手段(PTIN1、
PTOUT)とをして、円弧線または直線とが連続
するときの両線の接続点においては、後続する線
に対応する第一または第二信号に基づくデータ信
号によつて先行する線と後続する線の共通の座標
点とし連続線を設定可能とした刺繍ミシンのデー
タ入力装置。
[Claims] 1. A first switch 14b that generates a first signal by manual operation, a second switch 14c that generates a second signal by manual operation, and a tablet 11 having predetermined coordinates on its flat top surface. and a reading means which has a cursor 12 movable on the top surface of the tablet and generates a data signal by converting the coordinates at which the cursor is positioned with respect to the top surface of the tablet when the first or second signal is generated. Set a straight line connecting the coordinates of two points corresponding to the data signals based on the two first signals, set an arc line passing through the coordinates of the three points corresponding to the data signals based on the three consecutive second signals, Calculation means (PTIN1,
PTOUT), and at the connection point of the two lines when the arc line or straight line is continuous, the preceding line and the following line are connected by a data signal based on the first or second signal corresponding to the succeeding line. A data input device for an embroidery sewing machine that allows continuous lines to be set as common coordinate points for lines.
JP8270482A 1982-05-17 1982-05-17 Data input apparatus of embroidering machine Granted JPS58198374A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8270482A JPS58198374A (en) 1982-05-17 1982-05-17 Data input apparatus of embroidering machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8270482A JPS58198374A (en) 1982-05-17 1982-05-17 Data input apparatus of embroidering machine

Publications (2)

Publication Number Publication Date
JPS58198374A JPS58198374A (en) 1983-11-18
JPS6116188B2 true JPS6116188B2 (en) 1986-04-28

Family

ID=13781782

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPS58198374A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62202889U (en) * 1986-06-16 1987-12-24
JPS6456282U (en) * 1987-10-02 1989-04-07

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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62202889U (en) * 1986-06-16 1987-12-24
JPS6456282U (en) * 1987-10-02 1989-04-07

Also Published As

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

Similar Documents

Publication Publication Date Title
JPS6116185B2 (en)
US4429364A (en) Sewing machine-pattern data processor
AU622598B2 (en) Automatic embroidering machine with pattern input means
US5701830A (en) Embroidery data processing apparatus
JPH01218489A (en) Embroidery data automatic preparing device for computer embroidering machine
JPS622556B2 (en)
US5189623A (en) Embroidery data processing apparatus
JPS63125284A (en) Needle location control method of embroidering machine
JPS6116188B2 (en)
JPS6116189B2 (en)
JPS6142593B2 (en)
JPS6142592B2 (en)
JPS6116186B2 (en)
JPS6116190B2 (en)
JPS6116187B2 (en)
JPH0214077B2 (en)
JPS6116191B2 (en)
JPS63145693A (en) Data input apparatus of embroidering pattern sewing machine
JP2861437B2 (en) Needle entry data creation device for embroidery sewing machine
JPS62253098A (en) Sewing pattern data forming apparatus for sewing machine
JPS63139589A (en) Embroidering pattern forming apparatus
JPH0671504B2 (en) Sewing machine that can sew letters and patterns
JPH0461884A (en) Pattern stitching sewing machine
JPH0377579A (en) Inputting device for sewing pattern data of sewing machine
JPS63139588A (en) Embroidering pattern forming apparatus