JPH0340857A - Controlling method of automatic embroidery machine - Google Patents

Controlling method of automatic embroidery machine

Info

Publication number
JPH0340857A
JPH0340857A JP17481289A JP17481289A JPH0340857A JP H0340857 A JPH0340857 A JP H0340857A JP 17481289 A JP17481289 A JP 17481289A JP 17481289 A JP17481289 A JP 17481289A JP H0340857 A JPH0340857 A JP H0340857A
Authority
JP
Japan
Prior art keywords
embroidery
data
command
pattern
code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP17481289A
Other languages
Japanese (ja)
Inventor
Yasushi Okazaki
岡崎 康
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.)
Happy Industrial Corp
Original Assignee
Happy Industrial Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Happy Industrial Corp filed Critical Happy Industrial Corp
Priority to JP17481289A priority Critical patent/JPH0340857A/en
Publication of JPH0340857A publication Critical patent/JPH0340857A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To readily obtain embroidery sewing of novel voluntary design with utilizing embroidery data of plural manufactured designs by performing embroidery with freely adding changes of previously inputted embroidery data and embroidery parameter with specific method. CONSTITUTION:At first, embroidery data performing control of every parts and command code commanding change of embroidery parameter, etc., controlling embroidery sewing action corresponding to said data are stored in each command storing means with each commanding step. Next, in performing embroidery action, command code is read out with each commanding step by command reading out means and pattern selecting data is outputted from outputting means of design selection according to content of the read out command code. Then, stored position of embroidery data and embroidery parameter is calculated by said design selecting data using storing and controlling means of designed data, thus necessary embroidery data and embroidery parameter are read out in turn from the design data storing means. Finally, embroidery sewing action is performed by performing means of embroidery sewing action according to said embroidery data.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、外部からの刺繍データと刺繍パラメータを入
力し、それらの刺繍データと刺繍パラメータにに自由に
変更を加えて刺繍を行う自動刺繍機の制御方式に関する
[Detailed Description of the Invention] [Field of Industrial Application] The present invention is an automatic embroidery method in which embroidery data and embroidery parameters are input from the outside and embroidery is performed by freely changing the embroidery data and embroidery parameters. Regarding the control method of the machine.

[従来技術] 従来、この種の自動刺繍機としては、外部の読み取り装
置から刺繍データを入力し、刺繍機内部に設けた記憶装
置に記憶させ、この刺繍データと刺繍機の刺繍動作を制
御するのに必要な制御パラータを刺繍データの入力後、
操作部より入力設定して刺繍を行っていた。また、自動
刺繍機の記憶装置は複数の刺繍データの記憶容量を持っ
ているため、複数柄データを記憶し、作業者が操作部よ
り複数記憶している柄データの中から希望する柄データ
を読み出して刺繍を行っているが、記憶している柄デー
タはそれぞれ独立したもので、複数柄データの間に関連
性はなく、1つの刺繍図柄に対しては、1つの柄データ
を利用することが基本になっている。このため、複数刺
繍図柄の一部分のみをそれぞれ利用して新しい刺繍図柄
として刺繍する場合は、空送りを機能を使用して希望す
る刺繍位置まで進め、さらに、刺繍枠の位置だしを手動
動作で行い、必要部分は刺繍後に作業者が操作スイッチ
で刺繍動作を停止させるため、作業者は常に刺繍の進行
を監視していなければならなかった。このように非常に
効率が悪い刺繍作業であるため、複数図柄を利用した刺
繍は行われておらず、同じ図柄の組合わせでも希望する
刺繍図柄の場合は、刺繍データを新規に作成し、これを
使用して刺繍を行っていた。
[Prior Art] Conventionally, this type of automatic embroidery machine inputs embroidery data from an external reading device, stores it in a storage device provided inside the embroidery machine, and controls this embroidery data and the embroidery operation of the embroidery machine. After inputting the necessary control parameters and embroidery data,
Embroidery was performed by inputting settings from the operation panel. In addition, since the storage device of an automatic embroidery machine has a storage capacity for multiple embroidery data, multiple pattern data can be stored, and the operator can select the desired pattern data from among the multiple stored pattern data using the operation unit. Although the pattern data is read out and embroidered, each stored pattern data is independent, and there is no relationship between multiple pattern data, so one pattern data can be used for one embroidery pattern. is the basis. Therefore, when embroidering a new embroidery pattern using only a portion of multiple embroidery patterns, use the jump feed function to advance to the desired embroidery position, and then manually position the embroidery frame. The operator had to constantly monitor the progress of the embroidery because the operator had to use an operation switch to stop the embroidery operation after embroidering the necessary part. As this is a very inefficient embroidery process, embroidery using multiple designs is not done.If the desired embroidery design is a combination of the same designs, it is necessary to create new embroidery data and use this. embroidery was done using.

[発明が解決しようとする課題] ところで、この刺繍の基となる刺繍データは、刺繍を行
う業者が専門のデザインメータに依頼して作成してもら
うため、柄のデザインに一部でも変更があると、新しく
刺繍データを作威しなければならないという問題がある
。この刺繍データの作成には1時間的な損失や費用がか
かるため、刺繍の生産性の低下やコストの増大に大きな
影響を与えている。また、刺繍業者は、長年の刺繍生産
で柄データの蓄積が膨大な数になるが、刺繍産業は流行
の変化が激しいため、1度使用した柄データが再使用さ
れる例はまれである。しかし、実際に刺繍される柄には
、そのデザインの一部が極めて品示している刺繍柄も多
見受けられるし、同じデザインに一部分のみを変更また
は追加して刺繍する例も多く、このような例でも前述の
ように従来から使用している刺繍データを利用しようと
すると、非常に作業効率が悪いため、刺繍業者はデザイ
ンメーカーに依頼して刺繍データを新規に作成してもら
れなければはらないのが現状である。
[Problem to be solved by the invention] By the way, the embroidery data that is the basis of this embroidery is created by the embroidery company by requesting a specialized design meter, so even part of the design of the pattern may change. However, there is a problem in that new embroidery data must be created. Creating this embroidery data requires an hour's loss and costs, which has a significant impact on reducing embroidery productivity and increasing costs. Additionally, embroidery companies have accumulated a huge amount of pattern data over many years of embroidery production, but as trends in the embroidery industry change rapidly, it is rare for pattern data that has been used once to be reused. However, in the patterns that are actually embroidered, there are many embroidery patterns in which part of the design is extremely elegant, and there are also many cases where the same design is embroidered with only a part changed or added. For example, as mentioned above, if you try to use the embroidery data that has been used in the past, it will be extremely inefficient, so the embroidery company will have to ask a design maker to create new embroidery data. The current situation is that there is no such thing.

本発明は、蓄積された膨大な刺繍データを利用し、刺繍
業者が操作盤より利用する刺繍データの刺繍順序と、利
用する刺繍データの範囲、位置関係等を設定入力して記
憶手段に記憶させることにより、設定入力に従って利用
する刺繍データと刺繍制御パラメータの選択を順次行い
、必要部分のみを記憶手段から読み出し、利用する柄が
関連模様になるように位置合わせ動作を行い、読み出し
た刺繍データに基づいて刺繍を実行させて希望の刺繍を
完成させ、さらに、これら一連の設定を複数行い、再利
用可能なように記憶手段に記憶するようにした自動刺繍
機の制御方式を提供することを目的とするものである。
The present invention utilizes a huge amount of accumulated embroidery data to set and input the embroidery order of the embroidery data to be used by the embroidery trader, the range of the embroidery data to be used, the positional relationship, etc. from the operation panel, and stores the settings in the storage means. By doing so, the embroidery data and embroidery control parameters to be used are sequentially selected according to the setting input, only the necessary parts are read out from the storage means, positioning operations are performed so that the patterns to be used are related patterns, and the embroidery data that has been read out is An object of the present invention is to provide a control method for an automatic embroidery machine that executes embroidery based on the desired embroidery and completes the desired embroidery, and further performs a plurality of these settings and stores them in a storage means for reuse. That is.

[課題を解決しようとする手段] 本発明は、上記目的を達成するために、予め決められた
各部の制御を行う刺繍データと、該刺繍データに対応し
た刺繍縫い動作を制御するための刺繍パラメータとを1
つ以上記憶する柄データ記憶手段と、刺繍動作の進行に
より、前記柄データ記憶手段から前記刺繍データと前記
刺繍パラメータを順次読み出して刺繍を行う刺繍縫い動
作実行手段とを備えた自動刺繍機において、前記柄デー
タ記憶手段から刺繍を実行する前記刺繍データと前記刺
繍パラメータを選択する柄選択データを出力する柄選択
データ出力手段と、該柄選択データ出力手段からの柄選
択データによって前記前記刺繍データと前記刺繍パラメ
ータの記憶位置を割り出す柄データ記憶管理手段と、前
記刺繍データと前記刺繍パラメータの切り換えあるいは
前記刺繍パラメータの設定変更等を指示する指令コード
を入力する設定入力手段と、該設定入力手段により入力
された指令コードを指令ステップ毎に記憶する指令記憶
手段と、該指令記憶手段に記憶された前記指令コードを
指令ステップ毎に記憶手段から読み出す指令読み出し手
段とを備え、指令コードの実行あるいは刺繍の進行によ
り指令ステップを進め、前記指令読み出し手段により読
み出された指令コードの内容により、前記刺繍データと
前記刺繍パラメータまたは設定変更された刺繍パラメー
タを柄データ記憶手段から順次読み出し、刺繍縫い動作
を行うものである。
[Means for Solving the Problems] In order to achieve the above object, the present invention provides embroidery data for controlling predetermined parts, and embroidery parameters for controlling embroidery sewing operations corresponding to the embroidery data. and 1
In an automatic embroidery machine, the automatic embroidery machine includes a pattern data storage means for storing at least one pattern data, and an embroidery stitching operation execution means for sequentially reading out the embroidery data and the embroidery parameters from the pattern data storage means and performing embroidery as the embroidery operation progresses. pattern selection data output means for outputting the embroidery data for executing embroidery and pattern selection data for selecting the embroidery parameters from the pattern data storage means; a pattern data storage management means for determining the storage position of the embroidery parameter; a setting input means for inputting a command code for instructing switching between the embroidery data and the embroidery parameter or changing the setting of the embroidery parameter; The command storage means stores the input command code for each command step, and the command reading means reads out the command code stored in the command storage means from the storage means for each command step. The command step is advanced according to the progress of the command code, and the embroidery data and the embroidery parameters or the embroidery parameters whose settings have been changed are sequentially read out from the pattern data storage means according to the contents of the command code read by the command reading means, and the embroidery sewing operation is performed. It is something to do.

設定入力手段は刺繍する前記刺繍データと前記刺繍パラ
メータの変更、刺繍パラメータの設定変更、刺繍動作の
実行、刺繍するデータの範囲の設定、もしくは指令を制
御する指令の実行ステップの変更、指令の終了を含むよ
うに割り当てられた指令コードを出力するものである。
The setting input means changes the embroidery data to be embroidered and the embroidery parameters, changes the settings of the embroidery parameters, executes the embroidery operation, sets the range of data to be embroidered, changes the execution steps of the command to control the command, and ends the command. It outputs the command code assigned to include.

設定入力手段は複数の操作スイッチとこれを制御する制
御部とを有するものである。
The setting input means includes a plurality of operation switches and a control section that controls the operation switches.

設定入力手段は外部にある記憶装置より指令コードを転
送入力可能ならしめる外部入力制御部を有するものであ
る。
The setting input means has an external input control section that allows command codes to be transferred and input from an external storage device.

指令記憶手段は複数のステップに各々対応する設定を1
つの指令ブロックとして形成し、この指令記憶ブロック
を1つまたは複数有するものである。
The command storage means stores settings corresponding to each of a plurality of steps.
It is formed as one command block and has one or more command storage blocks.

指令ステップ出力手段は前記指令コードと前記指令デー
タにより変更可能なカウンタまたはアドレスカウンタで
ある。
The command step output means is a counter or an address counter that can be changed by the command code and the command data.

指令ステップ出力手段は前記指令ステップが前記指令コ
ードの前記読み出し手段による読み出しに先だって進め
られるか、または前記指令コードに対応した刺繍機能の
実行終了により進められるカウンタまたはアドレスカウ
ンタである。
The command step output means is a counter or an address counter in which the command step is advanced before the command code is read by the reading means, or upon completion of execution of the embroidery function corresponding to the command code.

[作用コ 本発明によれば、実行させる機能に対応した指令コード
を、実行させる指令ステップ順に操作盤から記憶手段に
設定入力し、刺繍動作の実行を行うときに、順次記憶さ
れた記憶手段から指令コードを読み出して、設定された
刺繍機能を実行することにより、新たに複数の柄データ
が選択され、もしくは刺繍パラメータの設定変更が行わ
れ、さらには刺繍する範囲が設定され、それによって刺
繍縫い動作を行うことにより、既製の複数図柄の刺繍デ
ータを利用して新しい刺繍図柄の刺繍縫いを完成するこ
とができる。
[Function] According to the present invention, command codes corresponding to the functions to be executed are set and input into the storage means from the operation panel in the order of the command steps to be performed, and when the embroidery operation is executed, the command codes are input from the storage means stored sequentially. By reading the command code and executing the set embroidery function, multiple new pattern data are selected, embroidery parameter settings are changed, the embroidery area is set, and the embroidery sewing is performed. By performing this operation, it is possible to complete the embroidery stitching of a new embroidery pattern using the embroidery data of a plurality of ready-made patterns.

[実施例] 第1図を参照すると、本発明の1実施例の自動刺繍機の
制御方式のブロック図では、CPUIに自動刺繍機の制
御用プログラムや初期データが記憶されているROM2
.自動刺繍機の運転状態、制御データまたは作業用に使
用する制御用プログラムが読み書きできる第1のRAM
3、及び刺繍データや刺繍パラメータを読み書きできる
第2のRAM4が接続されている。また′%CPUIに
表示制御装置5を介して自動刺繍機の運転情報や設定項
目あるいは設定内容を表示する表示器6が接続されてい
る。さらに、CPIに操作盤制御装置7を介して、自動
刺繍機の運転制御データ、パラメータまたは刺繍データ
の選択を設定入力する設定操作盤8が接続されている。
[Embodiment] Referring to FIG. 1, in a block diagram of a control system for an automatic embroidery machine according to an embodiment of the present invention, a ROM 2 in which a control program and initial data for the automatic embroidery machine are stored in the CPUI.
.. A first RAM that can read and write the operating status of the automatic embroidery machine, control data, or control programs used for work.
3, and a second RAM 4 that can read and write embroidery data and embroidery parameters. Further, a display 6 for displaying operating information, setting items, and setting contents of the automatic embroidery machine is connected to the CPU via a display control device 5. Further, a setting operation panel 8 is connected to the CPI via an operation panel control device 7 for setting and inputting operation control data, parameters, or selection of embroidery data for the automatic embroidery machine.

さらに、CPUIにスイッチ入力装置9を介して自動刺
繍機のスタート、ストップや電源のオフを指示する運転
スイッチ10が接続され、また、刺繍データを外部から
自動刺繍機に入力する読み取り装置12または外部記憶
装置i13が外部入力装置11を介してCPUIに接続
されている。また、CPUIには入出力制御装置14が
接続され、この入出力制御装置114に主軸制御部15
、主軸ドライブユニット16を介して主軸モータ17が
接続され、この上軸モータ17により運転される各作動
部の回転状況を計測するロータリエンコーダ19及び各
作動部とタイミングを取るタイミングセンサ20が動作
タイミング検出部18を介して入出力制御装置14に接
続されている。また、入出力制御装置14に刺繍枠駆動
制御部21が接続され、この刺繍枠駆動制御部21にX
軸パルスモータドライブユニット22を介してX軸パル
スモータ23が、Y軸パルスモータドライブユニット2
4を介してY軸パルスモータ25がそれぞれ接続されて
いる。
Further, an operation switch 10 for instructing the automatic embroidery machine to start, stop, or turn off the power is connected to the CPU via a switch input device 9, and a reading device 12 or an external device for inputting embroidery data to the automatic embroidery machine from the outside A storage device i13 is connected to the CPUI via the external input device 11. Further, an input/output control device 14 is connected to the CPUI, and a spindle control section 15 is connected to this input/output control device 114.
A main shaft motor 17 is connected via the main shaft drive unit 16, and a rotary encoder 19 that measures the rotation status of each operating section driven by this upper shaft motor 17 and a timing sensor 20 that takes timing with each operating section detect the operation timing. It is connected to the input/output control device 14 via the section 18 . Further, an embroidery frame drive control section 21 is connected to the input/output control device 14.
The X-axis pulse motor 23 connects to the Y-axis pulse motor drive unit 2 via the axis pulse motor drive unit 22.
Y-axis pulse motors 25 are respectively connected via 4.

また、入出力制御装置14に色換え制御部26が接続さ
れ、この色換え制御部26にドライブ回路27を介して
刺繍する針棒を変更する色換えモータ28が、またこの
色換えモータ28の動きを監視する位置検出センサ29
が直接接続されている。
Further, a color change control section 26 is connected to the input/output control device 14, and a color change motor 28 for changing the needle bar for embroidery is connected to this color change control section 26 via a drive circuit 27. Position detection sensor 29 for monitoring movement
are directly connected.

さらに、入出力制御装置14に補助ユニット制御部30
が接続され、この補助ユニット制御部30にドライブ回
路31.32を介して、飛び縫い、糸調子または糸切り
装置等の補助ユニット用の動力となる小型モータ33及
びソレノイド34がそれぞれ接続され、これらの補助ユ
ニットの動作位置を確認する位置確認センサ35が補助
ユニット制御部30に接続されている。
Furthermore, the input/output control device 14 includes an auxiliary unit control section 30.
A small motor 33 and a solenoid 34 are connected to this auxiliary unit control section 30 via drive circuits 31 and 32, respectively, which serve as power for auxiliary units such as jump stitching, thread tensioning, and thread trimming devices. A position confirmation sensor 35 for confirming the operating position of the auxiliary unit is connected to the auxiliary unit control section 30.

このように構成された本実施例の制御方式では、まず、
予め複数の刺繍データを外部入力装置11に接続された
データ読み取り装置12から入力し。
In the control system of this embodiment configured in this way, first,
A plurality of embroidery data are input in advance from a data reading device 12 connected to an external input device 11.

柄データ記憶手段である第2のRAM4に記憶させてお
く。この例としては、−第2図(a)に示す刺繍柄Aと
、第2図(b)に示す刺繍柄Bを使用して、第2図(c
)に示した刺繍柄Cの刺繍動作を実行させる場合を説明
する。まず、設定操作盤8にある指令スイッチをオンに
して指令コードあるいは指令データの設定が行われる。
It is stored in the second RAM 4 which is a pattern data storage means. As an example of this, - using embroidery pattern A shown in FIG. 2(a) and embroidery pattern B shown in FIG. 2(b),
) The case of executing the embroidery operation of the embroidery pattern C shown in FIG. First, a command switch on the setting operation panel 8 is turned on to set a command code or command data.

ここで、第3図に示すように、第1のRAM3に記憶さ
れた指令記憶部36は第1の指令記憶ブロック361、
第2の指令記憶部36.、・・・第nの指令記憶部36
nからなり、また1つの指令記憶ブロック36には、第
1の指令ステップ371、第2の指令ステップ37□、
・・・、第nの指令ステップ37nが設けられ、さらに
、1つの指令ステップ37に指令コード38と第1の指
令データ39い第2の指令データ39□、・・・第nの
指令データ39nが設けられている。
Here, as shown in FIG. 3, the command storage unit 36 stored in the first RAM 3 includes a first command storage block 361,
Second command storage unit 36. , . . . nth command storage section 36
n, and one command storage block 36 includes a first command step 371, a second command step 37□,
. . . n-th command step 37n is provided, and each command step 37 includes a command code 38, first command data 39, second command data 39□, . . . n-th command data 39n. is provided.

第3図に示すようにデータが記憶された第IのRAM3
に対して、′使用する指令記憶ブロック36を選ぶため
に、同じ操作盤8にある選択スイッチをオンし、さらに
、指令記憶ブロック36の番号が選ばれ、指令ステップ
37が先頭にセットされる。このセットされたデータを
基に記憶させる第1のRAM3のアドレスが算出される
。次に、指令コード38と指令データ39が設定操作盤
8のデータスイッチまたは数値スイッチにより設定入力
される。
I-th RAM 3 in which data is stored as shown in FIG.
In order to select the command storage block 36 to be used, the selection switch on the same operation panel 8 is turned on, the number of the command storage block 36 is selected, and the command step 37 is set at the beginning. Based on this set data, the address of the first RAM 3 to be stored is calculated. Next, the command code 38 and command data 39 are set and input using the data switch or numerical switch on the setting operation panel 8.

次に、具体例を説明する。まず、柄変更の指令コード3
8と刺繍柄Aの選択コードがセットされる。次に、この
刺繍柄の刺繍開始カウンタの設定を指令する指令コード
38と刺繍開始カウント値が設定される。さらに、刺繍
柄の刺繍終了カウンタの設定を指令する指令コード38
と刺繍終了カウント値が設定される。次に、これらの設
定により刺繍動作に入らせる区切りコードをセットする
Next, a specific example will be explained. First, command code 3 for pattern change
8 and the selection code of embroidery pattern A are set. Next, a command code 38 for instructing the setting of an embroidery start counter for this embroidery pattern and an embroidery start count value are set. Furthermore, a command code 38 is issued to instruct the setting of the embroidery completion counter for the embroidery pattern.
and the embroidery end count value is set. Next, a delimiter code for starting the embroidery operation is set using these settings.

次に、刺繍柄Bに切換えるために、柄変更の指令コード
38と柄Bの選択コードが設定される。次に、この柄の
Bの大きさを縮小するためのデータのセットを指示する
指令コード38と縮小率のデータがセットされる。また
、刺繍範囲は刺繍データの総べてを刺繍実行させるので
、開始位置と終了位置は無指定とされる0次に、二つの
刺繍柄を関連づけて所定の位置に刺繍されるように、オ
フセットの設定を指示する指令コード38とオフセット
データXr、Yrがセットされる。最後に、指令運転終
了を指示する終了コードがセットされ、て、刺繍柄Cを
実現するための指令のセットが終了する。そして、実行
スイッチがオンされると、指令を実行させながら運転さ
れるフラグがセットされ、また、指令実行ステップが先
頭にセットされ、運転準備が完了する。
Next, in order to switch to embroidery pattern B, a pattern change command code 38 and a pattern B selection code are set. Next, a command code 38 instructing the setting of data for reducing the size of B of this pattern and reduction rate data are set. In addition, since the embroidery range executes embroidery on all of the embroidery data, the start position and end position are unspecified. A command code 38 and offset data Xr, Yr for instructing the setting of are set. Finally, an end code is set to instruct the end of the command operation, and the setting of commands for realizing the embroidery pattern C is completed. Then, when the execution switch is turned on, a flag is set to run while executing the command, and the command execution step is set to the beginning, completing preparation for operation.

次に、スタートスイッチがオンされて刺繍を実行すると
き、先の指令実行フラグがチエツクされ。
Next, when the start switch is turned on and embroidery is executed, the previous command execution flag is checked.

フラグがセットされていると指令実行が行われる。If the flag is set, the command will be executed.

そして、セットされている指令記憶ブロック36の番号
と指令実行ステップ37から指令の読み出しアドレスが
算出される。このアドレスにある指令コード38と指令
データ39が読み出され、実行される。前述の例によれ
ば、まず、柄変更の指令コード38と刺繍柄Aの選択コ
ードが読み出され、この選択コードにより使用する柄デ
ータの記憶アドレスが求められて、刺繍データの読み出
しアドレスや、制御データが刺繍柄A用に切り換えられ
る。そして、指令の実行ステップが進められ、次の指令
コード38と指令データ39が読み出される6次のステ
ップには、この刺繍柄の刺繍開始カウンタの設定を指令
する指令コード38と刺繍開始カウント値が設定されて
いるので、先の制御データの中の刺繍データの読み出し
カウンタの値がこの刺繍開始カウント値で初期化される
。そして、また、指令の実行ステップが進められ、次の
指令アドレスより指令が読み出される0次に、刺繍終了
のカウンタの設定を指令する指令コード38と刺繍終了
カウント値が設定されているので、制御データの中の刺
繍データを読み出し終了データとして、設定されている
刺繍終了カウント値がセットされる。そして、次に設定
された刺繍動作に入らせる区切りコードにより刺繍デー
タと制御データを読み出しカウンタにより第1のRAM
3から順次読み出し、これらのデータに基づいて作動部
を駆動制御し、刺繍動作を実行する。この時、刺繍縫い
の進行と共に、読み出しカウンタが進められ、前にセッ
トされた読み出し終了カウンタの値と比較され、読み出
し終了カウンタまで刺繍縫いが進行すると、この刺繍柄
の終了と判断し、指令ステップを進め1次の指令を読み
出す。
Then, the read address of the command is calculated from the number of the set command storage block 36 and the command execution step 37. The command code 38 and command data 39 at this address are read out and executed. According to the above example, first, the pattern change command code 38 and the selection code for embroidery pattern A are read out, the storage address of the pattern data to be used is determined based on this selection code, and the readout address of the embroidery data, The control data is switched to embroidery pattern A. Then, the command execution step is advanced, and in the sixth step where the next command code 38 and command data 39 are read, the command code 38 and embroidery start count value that command the setting of the embroidery start counter for this embroidery pattern are read. Since this has been set, the value of the embroidery data read counter in the previous control data is initialized with this embroidery start count value. Then, the command execution step is advanced again, and the command is read from the next command address. Since the command code 38 and the embroidery end count value that instruct the setting of the embroidery end counter are set in the 0th order, the control is executed. The embroidery data in the data is read out and the set embroidery end count value is set as the end data. Next, the embroidery data and control data are read out using the set delimiter code to start the embroidery operation, and are stored in the first RAM by the counter.
Based on these data, the actuating section is driven and controlled to execute the embroidery operation. At this time, as the embroidery stitch progresses, the read counter is incremented and compared with the value of the read end counter set previously. When the embroidery stitch progresses to the read end counter value, it is determined that this embroidery pattern is finished, and the command step Advance and read the first command.

次に、刺繍を刺繍柄Bに切り換えるため、柄変更の指令
コード38と柄Bの選択コードが設定されているので、
前述の刺繍柄Aと同様に、刺繍データの読み出しアドレ
スや、制御データが刺繍柄B用に切り換えられる。そし
て、指令の実行ステップが進められ、次の指令コード3
8と指令データ39が読み出され、次に、この柄Bの大
きさを縮小するデータのセットを指示する指令コード3
8と縮小率のデータがセットされているので、制御デー
タの中の拡大、縮小制御データが設定値にセットされる
。そのて、指令ステップ37を次に進め、次のステップ
として設定され2つの刺繍柄を関連付けて、所定の位置
に刺繍されるようにオフセットの設定を指示する指令コ
ード38とオフセットデータXr、Yrがセットされて
いるので、制御データ中のオフセットデータをXr、Y
rに設定変更する。そして、次の指令ステップ37に進
み、指令運転終了を指示する終了゛コードがセットされ
ているので、指令終了フラグをセットし、刺繍動作を実
行する。この刺繍の実行では、オフセットがセットされ
ているので、刺繍枠をXr、Yrだけ移動させる6次に
刺繍データと制御データを読み出しカウンタで第1のR
AM3から順次読み出すが、この場合、開始カウンタは
設定されていないので、先頭から始められる。これら読
み出しデータに基づいて作動部を駆動し、刺繍実行する
が、この場合、縮小データがセットされているので、読
み出した刺繍データに所定の演算を実行し、この演算結
果に基すいて刺繍枠が制御される。この時、刺!a縫い
の進行と共に、読み出しカウンタが進められるが、終了
カウンタとしてセットされていないので、刺繍データの
終了コードを読み出すまで刺繍縫いが進行し、終了コー
ドの読み出しにより、刺繍柄の刺a!Iいの実行が終了
する。そして、指令終了フラグがセットされているので
、この一連の指令による刺繍動作が終了し。
Next, in order to switch the embroidery to embroidery pattern B, the pattern change command code 38 and pattern B selection code are set, so
As with embroidery pattern A described above, the embroidery data read address and control data are switched to embroidery pattern B. Then, the command execution step is advanced and the next command code 3
8 and command data 39 are read out, and then command code 3 is read out, which instructs to set data to reduce the size of this pattern B.
8 and the reduction ratio data are set, the enlargement and reduction control data in the control data is set to the set value. Then, the command step 37 is advanced to the next step, and the command code 38 and offset data Xr, Yr are set as the next step and instruct to set an offset so that the two embroidery patterns are associated and embroidered at a predetermined position. Since the offset data in the control data is set to Xr, Y
Change the setting to r. Then, the process proceeds to the next command step 37, and since the end code instructing the end of the command operation has been set, the command end flag is set and the embroidery operation is executed. In executing this embroidery, the offset has been set, so the embroidery frame is moved by Xr and Yr.The embroidery data and control data are read out and the first R
The data is read out sequentially from AM3, but in this case, since the start counter is not set, it can be started from the beginning. Based on these read data, the operating section is driven to execute embroidery, but in this case, since reduced data has been set, a predetermined calculation is performed on the read embroidery data, and the embroidery frame is adjusted based on the result of this calculation. is controlled. At this time, it stings! As the a stitch progresses, the read counter is advanced, but since it is not set as the end counter, the embroidery stitch progresses until the end code of the embroidery data is read out, and when the end code is read out, the embroidery pattern a! Execution of I is finished. Since the command end flag is set, the embroidery operation according to this series of commands is completed.

第2図(c)に示した刺繍柄Cが完成する。The embroidery pattern C shown in FIG. 2(c) is completed.

このように、本発明では、従来から使用している刺繍デ
ータを利用し、希望する新しい図柄の刺繍を自動刺繍機
の設定操作盤8から設定入力することにより、刺繍デー
タを新規に作成することなく、簡単に行うことができる
As described above, in the present invention, new embroidery data can be created by using previously used embroidery data and inputting settings for embroidering a desired new design from the setting operation panel 8 of the automatic embroidery machine. It can be done easily without.

なお、上記の説明では、簡単な例により説明したが、利
用する刺繍データは2つとは限らず、さらに多くの刺繍
データを使用してもよいし、また。
Note that although the above description has been made using a simple example, the number of embroidery data to be used is not limited to two, and more embroidery data may be used.

複数の異なる一連の指令コード38と指令データ39を
記憶ブロック36毎に記憶させ、完成させる刺繍により
使い分けることができる。また、刺繍データを新規に作
成するときには、手元にない刺繍図柄部分のみを作成す
ることで可能となり、刺繍コストの低減と刺繍データ作
成の期間を短縮することができる。
A plurality of different series of command codes 38 and command data 39 are stored in each memory block 36, and can be used depending on the completed embroidery. Furthermore, when creating new embroidery data, it is possible to create only the embroidery pattern portions that are not available at hand, thereby reducing embroidery costs and shortening the period for creating embroidery data.

次に、第1図の制御装置の動作を第4図のフローチャー
トにより説明する。刺繍機がスタートして、電源がオン
にされると(ステップ1)、CPU1はまず回路が正常
動作するかチエツクを行い、次に、各作動部に取り付け
られた位置検出、確認センサ28.34から信号を入力
し、作動部が定位置にあるかどうかをチエツクする。次
に、CPU1はワークメモリ用の第1のRAM3に制御
用データの初期値をROM2から転送し、刺繍機の初期
化を完成する(ステップ2)。次に、CPU1は第1の
RAM3に記憶されている現在使用している柄の記憶ア
ドレス及び制御データを読み出しくステップ3)、これ
らのデータを基に運転状況や現在使用中の柄情報を表示
器6に表示する(ステップ4)。これら一連の処理が終
了すると、CPUIは設定操作盤8の設定スイッチまた
は運転スイッチ10を入力しくステップ5)、これらの
スイッチの操作があれば、操作されたスイッチに対応し
た処理を実行する。例えば、モードスイッチがオンされ
ているならば(ステップ6)、CPUIは針棒選択デー
タ、刺繍枠のオフセットデータ、刺繍データの拡大縮小
率等を指示するデータ等の設定を行うスイッチの入力と
、入力されたデータを項目毎に所定の位置へ記憶する処
理を実行する(ステップ7)。また1手動操作スイッチ
がオンされていれば(ステップ8)1手動操作スイッチ
に対応した動作処理を行い、また刺繍枠の移動であれば
、X、Yパルスモータ22.24の駆動を行い、あるい
は色換えであれば1色換えモータ28の駆動を実行する
(ステップ9)。さらに、入力スイッチがオンであるな
らば(ステップ10)、柄データの未記憶アドレスと未
使用選択コードを探してセットし、外部入力装置11で
読み取り装置12を駆動制御し、刺繍データの入力を行
い、柄データを記憶する第2のRAM4に順次書き込む
(ステップ11)。また、このとき、刺繍データ数、パ
ラメータデータ数をカウントし、これらのデータや、こ
の刺繍データの記憶アドレスを選択するのに用いる選択
コード及びパラメータも同時に書き込まれる。これを繰
り返すことにより、複数の柄データを第2のRAM4に
記憶させることができる。また、運転スイッチがオンで
あれば(ステップ12)、刺繍動作を実行する運転制御
処理を実行する(ステップ13)。また、指令スイッチ
がオンであれば(ステップ14)、指令コードまたは指
令データの設定入力を行う指令設定処理を実行する(ス
テップ15)。
Next, the operation of the control device shown in FIG. 1 will be explained with reference to the flowchart shown in FIG. When the embroidery machine starts and the power is turned on (step 1), the CPU 1 first checks whether the circuit is operating normally, and then checks the position detection and confirmation sensors 28 and 34 attached to each operating section. Input a signal from and check whether the actuating part is in the normal position. Next, the CPU 1 transfers the initial value of the control data from the ROM 2 to the first RAM 3 for work memory, and completes the initialization of the embroidery machine (step 2). Next, the CPU 1 reads out the memory address and control data of the currently used pattern stored in the first RAM 3 (step 3), and displays the operating status and information on the currently used pattern based on these data. display on the device 6 (step 4). When these series of processes are completed, the CPU inputs the setting switch or operation switch 10 of the setting operation panel 8 (step 5), and if any of these switches is operated, the process corresponding to the operated switch is executed. For example, if the mode switch is turned on (step 6), the CPU inputs switches for setting needle bar selection data, embroidery frame offset data, data instructing embroidery data enlargement/reduction ratio, etc. A process of storing the input data in a predetermined position for each item is executed (step 7). If the 1 manual operation switch is turned on (step 8), the operation process corresponding to the 1 manual operation switch is performed, and if the embroidery frame is moved, the X and Y pulse motors 22 and 24 are driven, or If it is a color change, one color change motor 28 is driven (step 9). Furthermore, if the input switch is on (step 10), an unmemorized address of the pattern data and an unused selection code are searched for and set, and the external input device 11 drives and controls the reading device 12 to input the embroidery data. The pattern data is sequentially written into the second RAM 4 (step 11). Further, at this time, the number of embroidery data and the number of parameter data are counted, and these data, as well as the selection code and parameters used to select the storage address of this embroidery data, are also written at the same time. By repeating this, a plurality of pattern data can be stored in the second RAM 4. Further, if the operation switch is on (step 12), an operation control process for executing an embroidery operation is executed (step 13). Further, if the command switch is on (step 14), a command setting process for inputting a command code or command data is executed (step 15).

次に、第5図により、指令設定処理について説明する。Next, the command setting process will be explained with reference to FIG.

CPUIがこの処理に入ると、この処理内で使用される
ワークデータ類、指令ブロック36の番号、指令ステッ
プ37の初期化及び初期表示を実行する(ステップ16
)。次に、CPU1は初期化または操作入力によりセッ
トされていた指令記憶ブロック36の番号と指令設定ス
テップ37より指令データ39の記憶アドレスを算出し
て(ステップ17)、第1のRAM3にセットし、求め
られた記憶アドレスより指令コード38、指令データ3
9を読み出して(ステップ18)。
When the CPUI enters this process, it initializes and initializes the work data used in this process, the number of the command block 36, and the command step 37 (step 16).
). Next, the CPU 1 calculates the storage address of the command data 39 from the number of the command storage block 36 set by initialization or operation input and the command setting step 37 (step 17), and sets it in the first RAM 3, Command code 38, command data 3 from the obtained memory address
9 is read out (step 18).

設定内容を表示する(ステップ19)。次に、CPUI
は設定スイッチを入力しくステップ20)。
The settings are displayed (step 19). Next, the CPUI
Step 20).

押されたスイッチを判断する。例えば、設定スイッチが
オンであれば(ステップ21)、データスイッチ、数値
スイッチを入力し、押されたスイッチに対応するデータ
を、現在セットされている記憶アドレスで指定された記
憶位置に書き込む(ステップ22)。また、ステップス
イッチがオンであれば(ステップ23)、数値スイッチ
を入力し、指令設定ステップが押されたスイッチに対応
したデータに書き換える(ステップ24)。また、選択
スイッチがオンであれば(ステップ25)、数値スイッ
チを入力し、記憶させる指令ブロック番号が押されたス
イッチに対応したデータに置き換える(ステップ26)
、また、実行スイッチがオンであれば(ステップ27)
、指令運転実行フラグをワークエリアにセットしくステ
ップ28)。
Determine which switch was pressed. For example, if the setting switch is on (step 21), input the data switch and numeric switch, and write the data corresponding to the pressed switch to the memory location specified by the currently set memory address (step 22). Further, if the step switch is on (step 23), a numerical value switch is input, and the command setting step is rewritten to data corresponding to the pressed switch (step 24). If the selection switch is on (step 25), input the numerical value switch and replace the command block number to be memorized with the data corresponding to the pressed switch (step 26).
, and if the execution switch is on (step 27)
, set the command operation execution flag in the work area (step 28).

同じワークエリアにある指令実行ステップを意味するカ
ウントデータを初期化する。また、入力スイッチがオン
であれば(ステップ29)、指令入力処理を実行する(
ステップ30)。このように、設定操作盤8から前述の
ような操作指示が繰り返されると、CPUIが操作指示
スイッチに対応した処理をそれぞれ実行することにより
、指令ブロックの中に指令ステップ1から順に指令コー
ド38と指令データ39が書き込まれ、さらに、指令運
転実行フラグと実行カウントデータが先頭位置にセット
され、終了スイッチがオンになると(ステップ31)、
指令コードと指令データによる自動運転の準備が完了す
る。
Initializes count data that means command execution steps in the same work area. Furthermore, if the input switch is on (step 29), command input processing is executed (
Step 30). In this way, when the above-mentioned operation instructions are repeated from the setting operation panel 8, the CPU executes the process corresponding to each operation instruction switch, so that the command codes 38 and 38 are written in the command block in order from command step 1. When the command data 39 is written, the command operation execution flag and execution count data are set to the top position, and the end switch is turned on (step 31),
Preparations for automatic operation using the command code and command data are completed.

次に、第6図により指令データ入力処理について説明す
る。これは、指令データを設定操作盤8からではなく、
外部入力装置11から設定入力する場合で、前述のよう
に、指令設定処理において入力スイッチがオンされると
、CPUIは指令データ入力処理を実行するようになる
。まず、CPU1は指令設定ステップを先頭に初期化す
る(ステップ32)0次に、CPUIは指令設定処理で
指定された指令ブロック36の番号と先に初期化された
か、あるいはデータ入力により進められた指令設定ステ
ップにより、指令コード38または指令データ39を記
憶するテ与レスを算出しくステップ33)、第1のRA
M3にセットする。次に、CPUIは外部入力装置11
に接続されている外部記憶装置13に対して転送を指示
する信号を出力し、送られたデータを入力する(ステッ
プ34)。このようにして入力された指示コード及び指
令データを算出した第1のRAM3の記憶アドレスの位
置に書き込み(ステップ35)、指令設定ステップを次
に進める(ステップ36)。そして、CPUIは入力さ
れたデータが終了コードであるかどうかを調べ(ステッ
プ37)、終了コードでなければ、終了データが入力さ
れるまで一連の処理が繰り返され、終了データが入力さ
れると、リターンする。
Next, the command data input process will be explained with reference to FIG. This means that the command data is not set from the operation panel 8.
In the case of inputting settings from the external input device 11, as described above, when the input switch is turned on in the command setting process, the CPUI starts executing the command data input process. First, the CPU 1 is initialized starting with the command setting step (step 32).Next, the CPU 1 is initialized with the number of the command block 36 specified in the command setting process, or is advanced by data input. In the command setting step, the command code 38 or the command data 39 is to be stored in step 33), and the first RA
Set it to M3. Next, the CPUI uses the external input device 11
A signal instructing transfer is output to the external storage device 13 connected to the external storage device 13, and the sent data is input (step 34). The instruction code and instruction data thus input are written to the calculated storage address position of the first RAM 3 (step 35), and the instruction setting step is advanced to the next step (step 36). Then, the CPUI checks whether the input data is an end code (step 37), and if it is not an end code, the series of processes is repeated until the end data is input, and when the end data is input, Return.

このようにして外部記憶装置13に記憶された指令コー
ドと指令データを外部入力装置11を使用して、設定操
作盤8からの設定と同様な指令コードと指令データとし
て、指令記憶部である第1のRAM3の所定の位置に記
憶させることができる。
Using the external input device 11, the command code and command data stored in the external storage device 13 in this way are input to the command code and command data similar to the settings from the setting operation panel 8. The data can be stored at a predetermined location in RAM 3 of 1.

次に、第7図により、前述した指令アドレスの算出処理
について説明する。まず、CPUIは、セットされてい
るブロック番号とブロックサイズを乗算し、使用する記
憶ブロックの先頭アドレスによる指令記憶部である第1
のRAM3の先頭からオフセットデータを算出する(ス
テップ38)。
Next, the above-mentioned instruction address calculation process will be explained with reference to FIG. First, the CPUI multiplies the set block number and block size, and selects the first command storage section based on the start address of the storage block to be used.
Offset data is calculated from the beginning of the RAM 3 (step 38).

次に、CPU1は指令ステップデータに■指令で使用す
るデータサイズを乗算し、ブロック内のオフセットデー
タを算出する(ステップ39)。これによって求められ
たオフセットデータに、指令記憶部の先頭アドレスを加
算しくステップ40)、現在セットされているブロック
番号と、指令ステップに対応した記憶アドレスが求めら
れる。なお、このとき使用される指令ステップは、設定
処理では、指令設定ステップデータが使用され、運転処
理では指令ステップデータが使用される。また、これら
指令ステップデータはCPUIの処理が容易な様にカウ
ントデータとして使用し、間接的にアドレスを算出して
いるが、ステップデータをアドレスデータとして直接使
用することも可能であり、この時は進められるステップ
数は指令データサイズとなり、初期値は使用する記憶ブ
ロックの先頭アドレスとなる。
Next, the CPU 1 multiplies the command step data by the data size used in the (2) command to calculate offset data within the block (step 39). The start address of the command storage unit is added to the offset data thus obtained (step 40), and the currently set block number and the storage address corresponding to the command step are determined. As for the command step used at this time, command setting step data is used in the setting process, and command step data is used in the driving process. In addition, these command step data are used as count data to facilitate CPU processing and calculate the address indirectly, but it is also possible to directly use the step data as address data. The number of steps to be advanced is the command data size, and the initial value is the start address of the memory block to be used.

次に、第8図より運転制御処理について説明する。まず
、CPUIは指令運転実行フラグがセットされているか
どうかをチエツクするが、この時、指令運転実行フラグ
がセットされていなければ、1柄データの刺繍を完成さ
せて終了する刺繍動作を実行する一連の処理がなされる
。また、実行フラグがセットされていれば、指令コード
と指令データにより複数柄データの必要部分を連続的に
刺繍する一連の処理が行われるが、実行フラグがセット
されている場合の一連の処理を説明する。まず、CPU
Iは刺繍が実行される柄を選択換えするときに、刺繍を
実行する柄データを第2のRAM4から選択読み出し可
能にさせるアドレスデータの管理を行う柄登録エリアの
作成処理を実行する(ステップ41)。
Next, the operation control process will be explained with reference to FIG. First, the CPU checks whether the commanded operation execution flag is set, but if the commanded operation execution flag is not set at this time, it executes a series of embroidery operations that complete the embroidery of one pattern data and end. processing is performed. Additionally, if the execution flag is set, a series of processes for continuously embroidering the necessary parts of multiple pattern data are performed using the command code and command data, but the series of processes when the execution flag is set is explain. First, the CPU
When selecting a pattern to be embroidered, I executes a pattern registration area creation process for managing address data that allows the pattern data to be embroidered to be selectively read out from the second RAM 4 (step 41). ).

この登録エリア作成処理に入ると、第9図に示すように
、CPUIは柄記憶アドレスを柄記憶部の先頭アドレス
に初期化し、登録アドレスを柄登録エリアの先頭アドレ
スに初期化する(ステップ42)0次に、CPUIは柄
記憶アドレスをもとに所定のオフセットアドレスを加算
し、この求められたアドレス位置に記憶された柄データ
の有効フラグを読み出しくステップ43)、管理データ
が有効かどうかて調べる(ステップ44)、有効フラグ
がセットされている場合は、同様に柄記憶アドレスに所
定のオフセットを加算し、柄選択コードを読み出す(ス
テップ45)。次に、柄登録アドレスの位置柄登録エリ
アに所定の順序で選択コードと柄アドレスを書き込む(
ステップ46)。
When entering this registration area creation process, as shown in FIG. 9, the CPUI initializes the pattern storage address to the top address of the pattern storage section, and initializes the registration address to the top address of the pattern registration area (step 42). Next, the CPU adds a predetermined offset address based on the pattern memory address and reads out the validity flag of the pattern data stored at the obtained address position (Step 43), and checks whether the management data is valid. If the valid flag is set, a predetermined offset is similarly added to the pattern memory address, and the pattern selection code is read (step 45). Next, write the selection code and pattern address in the specified order in the position pattern registration area of the pattern registration address (
Step 46).

次に、CPUIは記憶柄アドレスに所定のオフセットを
加算し、このアドレスにセットされた柄データの総デー
タ数を読み出しくステップ47)、この総データ数と数
位アドレスを加算することにより(ステップ48)1次
に記憶されている柄の先頭アドレスを算出する。そして
、登録アドレスを所定数進めて(ステップ49)、次の
柄データの登録位置にセットされる。次に、CPUIは
新たに算出された次の柄の先頭アドレスを柄記憶アドレ
スとしてセットする。そして、CPUIはステップ43
のように、柄の有効フラグを読み出し、ステップ44の
ように有効フラグを調べる。これらの処理を有効フラグ
がなくなるまで繰り返すことにより記憶されている総べ
ての柄データが登録される。さらに、未記憶部分に到達
すると、柄データの右記フラグがないアドレスが未記憶
アドレスとして、その時の登録アドレス位置に無効コー
ドと一諸に書き込まれ、柄登録エリアの作成を完了する
(ステップ50)。また、この未記憶アドレスはデータ
入力時に使用するため、ワークエリア内にも保存して基
の処理へとリターンする。
Next, the CPU adds a predetermined offset to the memory pattern address and reads out the total number of pattern data set at this address (step 47), and adds this total data number to the number address (step 48). ) Calculate the first address of the pattern stored in the primary memory. Then, the registered address is advanced by a predetermined number (step 49) and set to the registered position of the next pattern data. Next, the CPUI sets the newly calculated starting address of the next pattern as the pattern storage address. Then, the CPUI steps 43
The valid flag of the pattern is read out as in step 44, and the valid flag is checked as in step 44. By repeating these processes until there are no more valid flags, all of the stored pattern data is registered. Furthermore, when an unmemorized portion is reached, the address without the flag shown on the right in the pattern data is written as an unmemorized address at the registered address position at that time, along with an invalid code, completing the creation of the pattern registration area (step 50). . Since this unmemorized address is used when inputting data, it is also saved in the work area and the process returns to the original process.

次に、CPUIは、第8図に戻って、指令運転かどうか
がチエツクされ(ステップ51)、指令運転であれば、
指令設定処理によって設定されたブロック番号と初期化
された実行ステップカウンタまたは指令の実行により進
められた実行ステップカウンタから指令の読み出しアド
レスの算出を行い(ステップ52〉、この算出したアド
レス位置にある指令コードと指令データを読み出す(ス
テップ53)、そして、指令コードの内容がチエツクさ
れ、指令コードに対応して予め決められた処理を実行す
る。ここで、ステップ変更の指令コードであれば(ステ
ップ54)、CPUIは現在の指令実行テスップカウン
タの内容を読み出した指令コードにより指定されるカウ
ンタデータに置き換える(ステップ55)。また、ステ
ップ変更でなく、柄変更の指令コードであれば(ステッ
プ56)、指令データとして指示された柄選択コードを
基に柄データの選択処理を実行する(ステップ57)。
Next, the CPU returns to FIG. 8 and checks whether it is a commanded operation (step 51), and if it is a commanded operation,
The command read address is calculated from the block number set by the command setting process and the initialized execution step counter or the execution step counter advanced by the execution of the command (step 52), and the command at the calculated address position is calculated. The code and command data are read (step 53), and the contents of the command code are checked, and a predetermined process is executed corresponding to the command code.If the command code is for a step change (step 54) ), the CPU replaces the contents of the current command execution test counter with the counter data specified by the read command code (step 55).Furthermore, if the command code is not a step change but a pattern change (step 56) , the pattern data selection process is executed based on the pattern selection code instructed as the command data (step 57).

第10図に示すように、柄選択処理では、CPU1は登
録アドレスを柄登録エリアの先頭アドレスに初期化する
(ステップ58)。次に、CPU1はこの登録アドレス
位置に書き込まれている選択コードと記憶アドレスを読
み出しくステップ59)、読み出した選択コードと、指
令データとして指定された柄選択コードが同じか−どう
か調べる(ステップ60)。異なる場合は、登録アドレ
スを所定数進め(ステップ61)、ステップ59に戻っ
て、そのアドレス位置にある選選択コードを調べ、同じ
選択コードが見つかるまで同様の処理を繰り返す、そし
て、同じ選択コードが見つかれば、−諸に読み出した記
憶アドレスをワークエリアに選択コードと共に保存する
(ステップ62)、さらに、CPUIはこの記憶アドレ
スを基に刺繍データと共に記憶された刺繍制御用のパラ
メータ及び制御データを読み出し、このパラメータ毎に
ワークエリアの所定位置に運転制御用データに変換して
記憶する(ステップ63)。これらの処理を終了すると
、CPUIは基の処理に復帰して指令実行ステップカウ
ンタを次に進める。
As shown in FIG. 10, in the pattern selection process, the CPU 1 initializes the registration address to the top address of the pattern registration area (step 58). Next, the CPU 1 reads out the selection code written in this registered address position and the storage address (step 59), and checks whether the read selection code and the pattern selection code designated as the command data are the same (step 60). ). If they are different, advance the registered address by a predetermined number (step 61), return to step 59, check the selection selection code at that address position, and repeat the same process until the same selection code is found. If found, the CPUI stores the memory address read out in the work area together with the selection code (step 62).Furthermore, based on this memory address, the CPU reads out the embroidery control parameters and control data stored together with the embroidery data. , each parameter is converted into operation control data and stored at a predetermined position in the work area (step 63). When these processes are completed, the CPUI returns to the original process and advances the command execution step counter to the next step.

また、第8図のステップ56に戻って、柄変更でなく、
指令コードがパラメータの指定コードであれば(ステッ
プ64)、指令データとして読み出したパラメータ番号
より指定されたパラメータに対応する制御データを、パ
ラメータデータにより作成する(ステップ65)、そし
て、指令ステップカウンタを次に進める(ステップ66
)。
Also, return to step 56 in FIG. 8, and instead of changing the pattern,
If the command code is a parameter specification code (step 64), control data corresponding to the parameter specified by the parameter number read as command data is created using the parameter data (step 65), and the command step counter is set. Proceed to the next step (step 66)
).

以上の処理は、刺繍動作の実行を指示する区切りコード
(ステップ67)、あるいは終了コード(ステップ68
〉が読み出されるまで繰り返し処理される。そして、区
切りコードであれば、刺繍、制御データを読み出しくス
テップ69)、刺繍機の作動部を駆動しくステップ70
)、読み出しカウンタを次に進め(ステップ71)、現
在の柄刺繍が終了か調べ(ステップ72)、柄刺繍が終
了しなければ、終了まで繰り返す、そして、終了すれば
、指令運転かどうかを調査しくステップ73)、指令運
転でなければ基に戻り、また、指令運転であれば、終了
フラグかあるかどうかを調べ(ステップ74)、終了フ
ラグがなければ、ステップ66に戻って指令実行ステッ
プを次に進め、終了フラグがあれば、リターンする。
The above process is performed using the delimiter code (step 67) that instructs the execution of the embroidery operation or the end code (step 68).
The process is repeated until > is read out. If it is a delimiter code, read out the embroidery and control data (Step 69), and drive the operating section of the embroidery machine (Step 70).
), advance the read counter (step 71), check whether the current pattern embroidery is finished (step 72), and if the pattern embroidery is not finished, repeat until it is finished, and if it is finished, check whether it is command operation or not. If it is not a command operation, the process returns to the previous step, and if it is a command operation, it is checked whether there is an end flag (step 74), and if there is no end flag, it returns to step 66 and executes the command execution step. Proceed to the next step, and if there is an end flag, return.

本発明の実施例では、指令コードと指令データにより、
刺繍を実行する刺繍データが選択され。
In the embodiment of the present invention, the command code and command data:
The embroidery data to be embroidered is selected.

また刺繍するデータの範囲、制御データ、パラメータ等
が新たに設定され、これらのデータに基づいてCPUI
は刺繍動作を実行するため、制御データの読み出しカウ
ンタを基に刺繍データの記憶アドレスを算出し、刺繍デ
ータとワークエリアの作成された制御データを読み出し
、制御データに従って主軸モータ17を駆動回転または
停止し、さらに1色換えモータ28の駆動、タイミング
センサ20、ロータリエンコーダ19の入力により主軸
1構部とのタイミングをとりながら刺繍データによりX
、Yパルスモータ23.25の駆動制御を行うなどの刺
繍動作を実行することができる。
In addition, the range of data to be embroidered, control data, parameters, etc. are newly set, and based on these data, the CPU
To execute the embroidery operation, calculates the storage address of the embroidery data based on the control data read counter, reads the embroidery data and the created control data of the work area, and drives the spindle motor 17 to rotate or stop it according to the control data. Then, one color change motor 28 is driven, the timing sensor 20, and the rotary encoder 19 input to control the timing with the main shaft 1 structure, and the embroidery data
, Y pulse motors 23, 25, and other embroidery operations.

また、CPUIは刺繍データ及び制御データを読み出す
ための読み出しカウンタを次に進め、さらに、刺繍デー
タあるいは各カウンタ等のカウント数のチエツクを行い
1選択された刺繍柄での刺繍終了を判定するまで刺繍動
作を実行する。また、現在選択されている刺繍データで
の刺繍実行終了を判断すると、CPUIは指令運転かど
うかを調べ、指令運転ならば、さらに終了フラグをチエ
ツクする。終了フラグがなければ、指令実行ステップカ
ウンタを進めて指令記憶アドレスから新たな指令コード
と指令データを読み出して実行する。
In addition, the CPU advances the read counter for reading the embroidery data and control data to the next step, and then checks the embroidery data or the count of each counter, etc., and continues embroidery until it determines that the embroidery with the selected embroidery pattern is complete. perform an action. Further, when it is determined that the embroidery execution with the currently selected embroidery data has been completed, the CPU checks whether or not it is a commanded operation, and if it is a commanded operation, it further checks the end flag. If there is no end flag, the command execution step counter is advanced and a new command code and command data are read from the command storage address and executed.

これ一連の処理を終了フラグがセットされた状態になる
まで繰り返し実行処理する。そして、終了フラグにより
運転が終了すると、主処理ヘリターンし、新たな操作が
あるまで、スイッチの入力を行う。
This series of processing is repeatedly executed until the end flag is set. When the operation is completed by the end flag, the process returns to the main process and inputs are made to the switches until a new operation is performed.

[発明の効果] 本発明は、以上のように構成されているので、複数の既
製の図柄の刺繍データを利用して新しい刺繍図柄を刺繍
縫いを完成することができるので、従来例のように新し
い図柄を作るごとに、図柄を作る業者に依頼する必要が
なく、既製の図柄から任意の新しい図柄を簡単に、早く
作ることができ、非常に処理であるという利点がある。
[Effects of the Invention] Since the present invention is configured as described above, it is possible to complete the embroidery stitching of a new embroidery pattern by using the embroidery data of a plurality of ready-made patterns, so that it is possible to complete the embroidery stitching of a new embroidery pattern using the embroidery data of a plurality of ready-made patterns. There is no need to request a design manufacturer every time a new design is created, and any new design can be easily and quickly created from ready-made designs, and there is an advantage that the process is very simple.

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

第1図は本発明の1実施例の自動刺繍機の制御方式のブ
ロック図、第2図は本発明の方式で刺繍を行うための説
明をする簡単な刺繍柄を示した図、第3図は第1図の第
1のRAMの記憶状態を図示した図、第4図〜第10図
は第1図の制御方式の動作を説明するためのフローチャ
ートである。 1・・・CPU、2・・・ROM、3・・・第1のRA
M、4・・・第2のRAM、5・・・表示制御装置、6
・・・表示器、7・・・操作盤制御装置、8・・・設定
操作盤。 9・・・スイッチ入力袋ff1.10・・・運転スイッ
チ、11・・・外部入力装置、12・・・読み取り装置
、13・・・外部記憶装置、14・・・入出力制御装置
、15・・・主軸制御部、16・・・主軸ドライブユニ
ット。 17・・・主軸モータ、18・・・動作タイミング検出
部、19・・・ロータリエンコーダ、20・・・タイミ
ングセンサ、21・・・刺繍枠駆動制御部、22・・・
X軸パルスモータドライブユニット、23・・・X軸パ
ルスモータ、24・・・Y軸パルスモータドライブユニ
ット、25・・・Y軸パルスモータ、26・・・色換え
制御部、27・・・ドライブ回路、28・・・色換えモ
ータ、29・・・位置検出センサ、30・・・補助ユニ
ット制御部、31.32・・・ドライブ回路、33・・
・小型モータ、34・・・ソレノイド、35・・・位置
確認センサ。
Fig. 1 is a block diagram of a control system for an automatic embroidery machine according to an embodiment of the present invention, Fig. 2 is a diagram showing a simple embroidery pattern to explain how to embroider using the method of the present invention, and Fig. 3 1 is a diagram illustrating the storage state of the first RAM in FIG. 1, and FIGS. 4 to 10 are flowcharts for explaining the operation of the control system in FIG. 1. 1...CPU, 2...ROM, 3...1st RA
M, 4... Second RAM, 5... Display control device, 6
. . . Display device, 7 . . . Operation panel control device, 8 . . . Setting operation panel. 9... Switch input bag ff1.10... Operation switch, 11... External input device, 12... Reading device, 13... External storage device, 14... Input/output control device, 15. ...Spindle control unit, 16...Spindle drive unit. 17... Main shaft motor, 18... Operation timing detection section, 19... Rotary encoder, 20... Timing sensor, 21... Embroidery frame drive control section, 22...
X-axis pulse motor drive unit, 23...X-axis pulse motor, 24...Y-axis pulse motor drive unit, 25...Y-axis pulse motor, 26...color change control unit, 27...drive circuit, 28... Color change motor, 29... Position detection sensor, 30... Auxiliary unit control section, 31. 32... Drive circuit, 33...
- Small motor, 34... Solenoid, 35... Position confirmation sensor.

Claims (1)

【特許請求の範囲】 1 予め決められた各部の制御を行う刺繍データと、該
刺繍データに対応した刺繍縫い動作を制御するための刺
繍パラメータとを1つ以上記憶する柄データ記憶手段と
、刺繍動作の進行により、前記柄データ記憶手段から前
記刺繍データと前記刺繍パラメータを順次読み出して刺
繍を行う刺繍縫い動作実行手段とを備えた自動刺繍機に
おいて、前記柄データ記憶手段から刺繍を実行する前記
刺繍データと前記刺繍パラメータを選択する柄選択デー
タを出力する柄選択データ出力手段と、該柄選択データ
出力手段からの柄選択データによって前記刺繍データと
前記刺繍パラメータの記憶位置を割り出す柄データ記憶
管理手段と、前記刺繍データと前記刺繍パラメータの切
り換えあるいは前記刺繍パラメータの設定変更等を指示
する指令コードを入力する設定入力手段と、該設定入力
手段により入力された指令コードを指令ステップ毎に記
憶する指令記憶手段と、該指令記憶手段に記憶された前
記指令コードを指令ステップ毎に記憶手段から読み出す
指令読み出し手段とを備え、指令コードの実行あるいは
刺繍の進行により指令ステップを進め、前記指令読み出
し手段により読み出された指令コードの内容により、前
記刺繍データと前記刺繍パラメータまたは設定変更され
た刺繍パラメータを柄データ記憶手段から順次読み出し
、刺繍縫い動作を行うことを特徴とする自動刺繍機の制
御方式。 2 前記設定入力手段は刺繍する前記刺繍データと前記
刺繍パラメータの変更、刺繍パラメータの設定変更、刺
繍動作の実行、刺繍するデータの範囲の設定、もしくは
指令を制御する指令の実行ステップの変更、指令の終了
を含むように割り当てられた指令コードを出力すること
を特徴とする請求項1記載の自動刺繍機の制御方式。 3 前記設定入力手段は複数の操作スイッチとこれを制
御する制御部とを有することを特徴とする請求項1また
は2のいずれか1項記載の自動刺繍機の制御方式。 4 前記設定入力手段は外部にある記憶装置より指令コ
ードを転送入力可能ならしめる外部入力制御部を有する
ことを特徴とする請求項1、2または3項のいずれか1
項記載の自動刺繍機の制御方式。 5 前記指令記憶手段は複数のステップに各々対応する
設定を1つの指令ブロックとして形成し、この指令記憶
ブロックを1つまたは複数有することを特徴とする請求
項1記載の自動刺繍機の制御方式。 6 前記指令ステップ出力手段は前記指令コードと前記
指令データにより変更可能なカウンタまたはアドレスカ
ウンタであることを特徴とする請求項1記載の自動刺繍
機の制御方式。 7 前記指令ステップ出力手段は前記指令ステップが前
記指令コードの前記読み出し手段による読み出しに先だ
って進められるか、または前記指令コードに対応した刺
繍機能の実行終了により進められるカウンタまたはアド
レスカウンタであることを特徴とする請求項1または6
のいずれか1項記載の自動刺繍機の制御方式。
[Scope of Claims] 1. A pattern data storage means for storing embroidery data for controlling predetermined parts and one or more embroidery parameters for controlling embroidery sewing operations corresponding to the embroidery data; In an automatic embroidery machine, the automatic embroidery machine is equipped with an embroidery sewing operation execution means that sequentially reads out the embroidery data and the embroidery parameters from the pattern data storage means and performs embroidery as the operation progresses. pattern selection data output means for outputting pattern selection data for selecting embroidery data and the embroidery parameters; and pattern data storage management for determining storage locations of the embroidery data and the embroidery parameters based on the pattern selection data from the pattern selection data output means. means, a setting input means for inputting a command code for instructing switching between the embroidery data and the embroidery parameters or changing the settings of the embroidery parameters, and storing the command code input by the setting input means for each command step. The command reading means includes a command storage means and a command reading means for reading out the command code stored in the command storage means from the storage means for each command step. A control method for an automatic embroidery machine, characterized in that the embroidery data and the embroidery parameters or the embroidery parameters whose settings have been changed are sequentially read out from the pattern data storage means according to the contents of the command code read out by the embroidery machine, and the embroidery sewing operation is performed. . 2. The setting input means changes the embroidery data to be embroidered and the embroidery parameters, changes the settings of embroidery parameters, executes an embroidery operation, sets the range of data to be embroidered, or changes the execution step of a command to control a command, and commands. 2. A control method for an automatic embroidery machine according to claim 1, wherein a command code assigned to include the end of the embroidery machine is output. 3. The automatic embroidery machine control system according to claim 1, wherein the setting input means includes a plurality of operation switches and a control section for controlling the operation switches. 4. Any one of claims 1, 2, and 3, wherein the setting input means has an external input control section that allows command codes to be transferred and input from an external storage device.
Control method of automatic embroidery machine described in section. 5. A control system for an automatic embroidery machine according to claim 1, wherein the command storage means forms settings corresponding to a plurality of steps as one command block, and has one or more command storage blocks. 6. The automatic embroidery machine control system according to claim 1, wherein the command step output means is a counter or an address counter that can be changed by the command code and the command data. 7. The command step output means is a counter or an address counter in which the command step is advanced prior to reading of the command code by the reading means or upon completion of execution of an embroidery function corresponding to the command code. Claim 1 or 6
A control method for an automatic embroidery machine according to any one of the following.
JP17481289A 1989-07-06 1989-07-06 Controlling method of automatic embroidery machine Pending JPH0340857A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17481289A JPH0340857A (en) 1989-07-06 1989-07-06 Controlling method of automatic embroidery machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17481289A JPH0340857A (en) 1989-07-06 1989-07-06 Controlling method of automatic embroidery machine

Publications (1)

Publication Number Publication Date
JPH0340857A true JPH0340857A (en) 1991-02-21

Family

ID=15985100

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17481289A Pending JPH0340857A (en) 1989-07-06 1989-07-06 Controlling method of automatic embroidery machine

Country Status (1)

Country Link
JP (1) JPH0340857A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07189432A (en) * 1993-12-27 1995-07-28 Gantan Beauty Kogyo Kk Vertically covered roof construction

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07189432A (en) * 1993-12-27 1995-07-28 Gantan Beauty Kogyo Kk Vertically covered roof construction

Similar Documents

Publication Publication Date Title
KR940010388B1 (en) Embroidering machine
JP3146459B2 (en) Electronically controlled embroidery sewing machine
JPH11123293A (en) Control device of sewing machine
JPS6057358B2 (en) Sewing machine automatic programming device
KR101171394B1 (en) A sewing machine
KR920003667B1 (en) Sewing data forming method and device for sewing machine
JPH0340857A (en) Controlling method of automatic embroidery machine
JPH05137864A (en) Electronically controlled type embroidery sewing machine
JP2544154B2 (en) Automatic embroidery machine
JP3874214B2 (en) Display control device for embroidery machine
JPH0430892A (en) Changeover system of embroidery pattern data in sewing machine
JP2003071167A (en) Sewing machine
JP2597506B2 (en) Automatic embroidery machine
JPH0335955B2 (en)
JP2764631B2 (en) Stop sewing controller of sewing machine
JPH06264355A (en) Device for changing specification of color in pattern data
JPH0368393A (en) Control for automatic embroidering machine
JP2003053074A (en) Device for preparing program for sewing machine
JPH024400A (en) Automatic embroidery sewing machine
JPS5925905Y2 (en) automatic embroidery machine
JPH06170072A (en) Electronic sewing machine controller
JPH0679635B2 (en) Data setting device for automatic embroidery machine
JPH072199B2 (en) Setting operation device of automatic embroidery machine
JP2921199B2 (en) Sewing data processing device
JPH0724161A (en) Thread color display device of multineedle embroidery sewing machine