JP2015092907A - Sewing machine, method for controlling sewing machine, and program for controlling sewing machine - Google Patents

Sewing machine, method for controlling sewing machine, and program for controlling sewing machine Download PDF

Info

Publication number
JP2015092907A
JP2015092907A JP2013232290A JP2013232290A JP2015092907A JP 2015092907 A JP2015092907 A JP 2015092907A JP 2013232290 A JP2013232290 A JP 2013232290A JP 2013232290 A JP2013232290 A JP 2013232290A JP 2015092907 A JP2015092907 A JP 2015092907A
Authority
JP
Japan
Prior art keywords
sewing machine
time
event
counting
count value
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
JP2013232290A
Other languages
Japanese (ja)
Inventor
杉原 良英
Yoshihide Sugihara
良英 杉原
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2013232290A priority Critical patent/JP2015092907A/en
Publication of JP2015092907A publication Critical patent/JP2015092907A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide a sewing machine which can record the occurrence time of an event, together with the detail of the event, in log information even without a clock function; to provide a method for controlling the sewing machine; and to provide a program for controlling the sewing machine.SOLUTION: A sewing machine includes an interval counter. The interval counter counts one every 0.1 second after a power source is turned on. After the power source is turned on, the sewing machine receives time information from an operation terminal after the opening of communication with the operation terminal. The sewing machine corrects a count value of the interval counter at the time of the reception so that the count value is made to correspond to a time at the time of the reception. Thereafter, every time an event is detected, the sewing machine stores, in a non-volatile memory, log information in which a time indicated by the count value is defined as an occurrence time and is made to correspond to the detail of the event. Even without a clock function, the sewing machine with a function of communication with the outside thereof can create the log information in which an accurate time is made to correspond to the detail of the event.

Description

本発明は、ミシン、ミシンの制御方法、及びミシンの制御プログラムに関する。   The present invention relates to a sewing machine, a sewing machine control method, and a sewing machine control program.

従来、ミシンに発生するイベントを検出し、該検出履歴を記録したログ情報を作成できるミシンがある。ログ情報はミシンの稼働状況を管理する上で重要である。イベントは、例えば、ミシンの電源オン、縫製開始、縫製終了、模様変更、エラー、電源オフ等である。一般的なミシンは時計機能を有さないので、ログ情報にイベント発生時刻を入れることができない。ミシンの稼働状況を正確に管理する為に、時刻情報は必要である。特許文献1に記載の技術は、複数の多頭ミシンをコンピュータに接続し、コンピュータの時計機能を用いて複数の多頭ミシンの夫々に発生するイベントの発生時刻をログ情報に記録する。   Conventionally, there is a sewing machine that can detect an event that occurs in a sewing machine and create log information that records the detection history. Log information is important in managing the operating status of the sewing machine. Events include, for example, power on of the sewing machine, sewing start, sewing end, pattern change, error, power off, and the like. Since a general sewing machine does not have a clock function, an event occurrence time cannot be included in log information. Time information is necessary to accurately manage the operating status of the sewing machine. In the technology described in Patent Document 1, a plurality of multi-head sewing machines are connected to a computer, and the occurrence time of an event occurring in each of the plurality of multi-head sewing machines is recorded in log information using a clock function of the computer.

特開2002−282567号公報JP 2002-282567 A

特許文献1に記載の技術は、時計機能を有するコンピュータが、多頭ミシンに発生したイベントと、その発生時刻をログ情報に記録するので、多頭ミシンにイベントが発生する度にコンピュータと多頭ミシンが通信する必要がある。従って、多頭ミシンの稼働時にはコンピュータと多頭ミシンの通信状態を継続的に保持する必要がある。故に、コンピュータと多頭ミシンの通信が切断した場合はイベント発生時刻をログ情報に記録できない。   The technology described in Patent Document 1 is that a computer having a clock function records an event that occurred in a multi-head sewing machine and its occurrence time in log information, so that the computer and the multi-head sewing machine communicate each time an event occurs in the multi-head sewing machine. There is a need to. Therefore, it is necessary to continuously maintain the communication state between the computer and the multi-head sewing machine when the multi-head sewing machine is in operation. Therefore, when the communication between the computer and the multi-head sewing machine is disconnected, the event occurrence time cannot be recorded in the log information.

本発明の目的は、時計機能を持たなくても、イベント内容と共にイベント発生時刻をログ情報に記録できるミシン、ミシンの制御方法、及びミシンの制御プログラムを提供することにある。   An object of the present invention is to provide a sewing machine, a sewing machine control method, and a sewing machine control program capable of recording event occurrence time together with event contents in log information without having a clock function.

本発明の請求項1に係るミシンは、ミシンに関するイベントの発生を検出可能なミシンにおいて、一定時間毎に計数する計数手段と、前記計数手段の動作を開始させる計数開始手段と、前記ミシンの外部との通信を行う通信手段と、前記計数開始手段による前記計数手段の動作開始時以降に、前記ミシンの外部から前記通信手段を介して時刻情報を取得する取得手段と、前記取得手段が取得した前記時刻情報に基づき、前記計数手段の計数値が時刻を表すように補正する補正手段と、前記イベントの発生を検出したか否か判断する第一判断手段と、前記第一判断手段が前記イベントの発生を検出したと判断した場合、前記補正手段が補正した前記計数値が表す時刻を発生時刻として、前記イベントの内容と対応づけた情報をログ情報としてメモリに記憶する記憶手段と、前記記憶手段が前記メモリに記憶する前記ログ情報を出力する出力手段とを備えたことを特徴とする。ミシンは時刻情報を一回取得するだけで、その後は、補正手段が補正した計数値が表す時刻に基づきログ情報を作成できるので、時計機能を持つ必要がない。故にミシンは外部との通信機能があれば、ミシンに発生したイベントの内容に発生時刻を対応づけたログ情報を作成できる。故に管理者はミシンの生産管理を正確に行うことができる。   A sewing machine according to a first aspect of the present invention is a sewing machine capable of detecting the occurrence of an event related to the sewing machine, a counting means for counting every predetermined time, a counting starting means for starting the operation of the counting means, and an external part of the sewing machine. Communication means for performing communication with, an acquisition means for acquiring time information from the outside of the sewing machine via the communication means after the operation start of the counting means by the counting start means, and the acquisition means Based on the time information, correction means for correcting the count value of the counting means to represent time, first determination means for determining whether or not the occurrence of the event has been detected, and the first determination means include the event If the occurrence of the event is detected, the time represented by the count value corrected by the correction means is used as the occurrence time, and the information associated with the contents of the event is used as the log information. Storage means for storing the re, wherein the storing means and output means for outputting the log information stored in the memory. Since the sewing machine acquires the time information only once and thereafter can create log information based on the time indicated by the count value corrected by the correction means, it does not need to have a clock function. Therefore, if the sewing machine has a communication function with the outside, log information in which the time of occurrence is associated with the content of the event that has occurred in the sewing machine can be created. Therefore, the manager can accurately control the production of the sewing machine.

請求項2に係る発明のミシンは、請求項1に記載の発明の構成に加え、前記第一判断手段が前記イベントの発生を検出したと判断した場合、前記取得手段が前記時刻情報を取得済みか否か判断する第二判断手段と、前記第二判断手段が、前記取得手段が前記時刻情報を取得していないと判断した場合に、前記イベントの発生の検出時における前記計数値を記憶する計数値一時記憶手段と、前記取得手段が前記時刻情報を取得した場合に、前記時刻情報と前記計数値に基づき、前記計数値一時記憶手段が記憶した前記計数値に対応する対応時刻を算出する第二算出手段とを備え、前記記憶手段は、前記第二算出手段が算出した前記対応時刻と、前記イベントの内容とを対応づけた情報を、前記ログ情報として前記メモリに記憶することを特徴とする。ミシンは、時刻情報を取得する前にイベントを検出した場合、イベントの発生の検出時における前記計数値を記憶する。その後、時刻情報を取得した場合に、その時刻情報と記憶した計数値に基づき、計数値一時記憶手段が記憶した計数値に対応する対応時刻を算出し、該対応時刻とイベントの内容を対応づけた情報をログ情報としてメモリに記憶する。故にミシンは時刻情報を取得する前に発生したイベントの発生時刻を遡って算出できる。   The sewing machine according to a second aspect of the present invention is the sewing machine according to the first aspect, in which, in addition to the configuration according to the first aspect, when the first determination means determines that the occurrence of the event is detected, the acquisition means has already acquired the time information A second determination unit that determines whether or not the second determination unit stores the count value when the occurrence of the event is detected when the acquisition unit determines that the time information is not acquired. When the count value temporary storage means and the acquisition means acquire the time information, the corresponding time corresponding to the count value stored in the count value temporary storage means is calculated based on the time information and the count value. Second calculation means, and the storage means stores information associating the corresponding time calculated by the second calculation means with the contents of the event in the memory as the log information. When That. When the sewing machine detects an event before acquiring time information, the sewing machine stores the count value at the time of occurrence detection of the event. Thereafter, when the time information is acquired, the corresponding time corresponding to the count value stored in the temporary count value storage means is calculated based on the time information and the stored count value, and the corresponding time is associated with the contents of the event. The stored information is stored in the memory as log information. Therefore, the sewing machine can retroactively calculate the occurrence time of an event that occurred before acquiring time information.

請求項3に係る発明のミシンは、請求項2に記載の発明の構成に加え、前記イベントは、縫製開始操作を含み、前記縫製開始操作に従い、前記ミシンの縫製動作を制御する制御手段と、前記第二判断手段が、前記取得手段が前記時刻情報を取得していないと判断した場合に、前記取得手段が前記時刻情報を取得するまで、前記制御手段による前記縫製動作の開始を禁止する禁止手段を更に備えることを特徴とする。故にミシンの管理者は、生産管理を行うような状況において、時刻情報なしでミシンが稼働するのを防止できる。   A sewing machine according to a third aspect of the present invention is the sewing machine according to the second aspect, wherein the event includes a sewing start operation, and controls the sewing operation of the sewing machine according to the sewing start operation; Prohibition of prohibiting the start of the sewing operation by the control unit until the acquisition unit acquires the time information when the second determination unit determines that the acquisition unit has not acquired the time information The apparatus further comprises means. Therefore, the manager of the sewing machine can prevent the sewing machine from operating without time information in a situation where production management is performed.

請求項4に係る発明のミシンは、請求項1〜3の何れか一つに記載の発明の構成に加え、前記計数開始手段は、前記ミシンの起動時に、前記計数手段の動作を開始させることを特徴とする。故にミシンは起動時の時刻をログ情報に含めることができる。   A sewing machine according to a fourth aspect of the present invention is the sewing machine according to any one of the first to third aspects, wherein the counting start means starts the operation of the counting means when the sewing machine is activated. It is characterized by. Therefore, the sewing machine can include the start time in the log information.

請求項5に係る発明のミシンは、請求項4に記載の発明の構成に加え、前記通信手段を介した前記ミシンの外部との通信が可能か否か判断する通信判断手段を更に備え、前記取得手段は、前記ミシンの起動後、少なくとも前記通信判断手段が前記ミシンの外部との通信が可能であると判断した時機以降に、前記時刻情報を取得することを特徴とする。ミシンは、通信手段を介した通信が可能となってから時刻情報を受信するので、外部から時刻情報を確実且つ正確に取得できる。   The sewing machine according to a fifth aspect of the invention further includes a communication determination unit that determines whether or not communication with the outside of the sewing machine is possible via the communication unit, in addition to the configuration of the invention according to the fourth aspect. The acquisition means acquires the time information at least after the time when the communication determination means determines that communication with the outside of the sewing machine is possible after the sewing machine is activated. Since the sewing machine receives the time information after communication via the communication means is possible, the time information can be reliably and accurately acquired from the outside.

本発明の請求項6に係るミシンの制御方法は、ミシンに関するイベントの発生を検出可能なミシンの制御方法において、一定時間毎に計数する計数手段の動作を開始させる計数開始工程と、前記計数開始工程にて前記計数手段の前記動作開始時以降に、前記ミシンの外部から通信手段を介して時刻情報を取得する取得工程と、前記取得工程で取得した前記時刻情報に基づき、前記計数手段の計数値が時刻を表すように補正する補正工程と、前記イベントの発生を検出したか否か判断する判断工程と、前記判断工程で前記イベントの発生を検出したと判断した場合、前記補正工程で補正した前記計数値が表す時刻を発生時刻として、前記イベントの内容と対応づけた情報をログ情報としてメモリに記憶する記憶工程と、前記記憶工程で前記メモリに記憶する前記ログ情報を出力する出力工程とを備えたことを特徴とする。ミシンが上記制御方法を行うことで、ミシンは請求項1の効果を得ることができる。   The sewing machine control method according to claim 6 of the present invention is a sewing machine control method capable of detecting the occurrence of an event relating to the sewing machine, wherein the counting start step starts the operation of the counting means for counting every predetermined time, and the counting start After the start of the operation of the counting means in the process, an acquisition step of acquiring time information from outside the sewing machine via a communication means, and a count of the counting means based on the time information acquired in the acquisition step A correction step for correcting the numerical value to represent time, a determination step for determining whether or not the occurrence of the event has been detected, and a correction in the correction step if it is determined that the occurrence of the event has been detected in the determination step And storing the information associated with the contents of the event in the memory as log information, with the time represented by the counted value as the occurrence time, and the memo in the storage step Characterized by comprising an output step of outputting the log information stored in the. When the sewing machine performs the above control method, the sewing machine can obtain the effect of the first aspect.

本発明の請求項7に係るミシンの制御プログラムは、ミシンに関するイベントの発生を検出可能なミシンのコンピュータに実行させるためのミシンの制御プログラムであって、一定時間毎に計数する計数手段の動作を開始させる計数開始ステップと、前記計数開始ステップにて前記計数手段の動作開始時以降に、前記ミシンの外部から通信手段を介して時刻情報を取得する取得ステップと、前記取得ステップで取得した前記時刻情報に基づき、前記計数手段の計数値が時刻を表すように補正する補正ステップと、前記イベントの発生を検出したか否か判断する判断ステップと、前記判断ステップで前記イベントの発生を検出したと判断した場合、前記補正ステップで補正した前記計数値が表す時刻を発生時刻として、前記イベントの内容と対応づけた情報を前記ログ情報としてメモリに記憶する記憶ステップと、前記記憶ステップで前記メモリに記憶する前記ログ情報を出力する出力ステップとを含むことを特徴とする。コンピュータが上記制御プログラムを実行することで、ミシンは請求項1の効果を得ることができる。   A sewing machine control program according to a seventh aspect of the present invention is a sewing machine control program for causing a computer of a sewing machine capable of detecting the occurrence of an event related to the sewing machine to perform an operation of a counting unit that counts every predetermined time. A counting start step to be started, an acquisition step of acquiring time information from outside the sewing machine via a communication unit after the operation start of the counting unit in the counting start step, and the time acquired in the acquisition step Based on the information, the correction step for correcting the count value of the counting means to represent time, the determination step for determining whether or not the occurrence of the event is detected, and the occurrence of the event is detected in the determination step If it is determined, the time represented by the count value corrected in the correction step is set as the occurrence time, and the content of the event is matched. A storing step of storing in a memory the association information as the log information, characterized in that it comprises an output step of outputting the log information stored in the memory in the storing step. When the computer executes the control program, the sewing machine can obtain the effect of the first aspect.

ミシン1の斜視図。The perspective view of the sewing machine 1. FIG. ミシン1の前端部7の右側面図。FIG. 3 is a right side view of the front end portion 7 of the sewing machine 1. ミシン1と操作端末30の電気的構成を示すブロック図。FIG. 3 is a block diagram showing an electrical configuration of the sewing machine 1 and the operation terminal 30. ログ作成制御処理の流れ図。Flow chart of log creation control processing. 図4の続きを示す流れ図。FIG. 5 is a flowchart showing a continuation of FIG. 4. 一時ログ情報処理の流れ図。The flowchart of temporary log information processing. イベント発生と各種情報の変化を時系列で示す図。The figure which shows the event occurrence and the change of various information in time series. 一時ログ情報とログ情報の変化を示す図。The figure which shows the change of temporary log information and log information. ログ作成制御処理(変形例)の一部の流れ図。The flowchart of a part of log creation control process (modification).

以下、図面を参照し、本発明の一実施形態のミシン1を説明する。以下説明では図中に矢印で示す上下、左右、前後を使用する。   Hereinafter, a sewing machine 1 according to an embodiment of the present invention will be described with reference to the drawings. In the following description, the top, bottom, left and right, front and back indicated by arrows in the figure are used.

図1を参照し、ミシン1の全体構造を説明する。ミシン1は、ベッド部2、脚柱部3、アーム部4を備える。ベッド部2はテーブル95に載置する。ベッド部2は前後方向に延び、内部に垂直釜(図示略)等を備える。脚柱部3はベッド部2後側から鉛直上方に延びる。脚柱部3は内部にミシンモータ112(図3参照)等を備える。アーム部4は脚柱部3上端からベッド部2の上面に対向して前方に延び、前端に前端部7を備える。アーム部4は内部に主軸、針棒駆動機構(図示略)等を備える。針棒10は前端部7の下端から下方へ延びる。縫針11は針棒10の下端に着脱可能である。   The overall structure of the sewing machine 1 will be described with reference to FIG. The sewing machine 1 includes a bed portion 2, a pedestal column portion 3, and an arm portion 4. The bed unit 2 is placed on the table 95. The bed portion 2 extends in the front-rear direction and includes a vertical hook (not shown) and the like inside. The pedestal part 3 extends vertically upward from the rear side of the bed part 2. The pedestal 3 includes a sewing machine motor 112 (see FIG. 3) and the like. The arm portion 4 extends forward from the upper end of the pillar portion 3 so as to face the upper surface of the bed portion 2 and includes a front end portion 7 at the front end. The arm unit 4 includes a main shaft, a needle bar drive mechanism (not shown), and the like. The needle bar 10 extends downward from the lower end of the front end portion 7. The sewing needle 11 can be attached to and detached from the lower end of the needle bar 10.

ミシン1はベッド部2上方に作業台5と移送装置6を備える。作業台5は針板501を備える。針板501は、針棒10に装着した縫針11の直下の位置に、縫針11下端が挿通可能な針穴502を有する。移送装置6は、移送板61、昇降部62、押え板63、支持部66、移送板保持部64、X軸移動機構(図示略)、腕部65、Y軸移動機構(図示略)を備える。   The sewing machine 1 includes a work table 5 and a transfer device 6 above the bed 2. The work table 5 includes a needle plate 501. The needle plate 501 has a needle hole 502 through which the lower end of the sewing needle 11 can be inserted at a position immediately below the sewing needle 11 attached to the needle bar 10. The transfer device 6 includes a transfer plate 61, an elevating unit 62, a presser plate 63, a support unit 66, a transfer plate holding unit 64, an X-axis moving mechanism (not shown), an arm unit 65, and a Y-axis moving mechanism (not shown). .

移送板61は水平方向に配置した板部材であり、平面視矩形状の開口を有する。移送板保持部64は左右方向に延び、移送板61と支持部66をX軸方向(左右方向)に移動可能に支持する。X軸移動機構はベッド部2の内部に設ける。X軸移動機構はX軸モータ114(図3参照)を駆動源とし、移送板61と支持部66をX軸方向(左右方向)へ移動する。移送板保持部64に連結する腕部65は、脚柱部3内に設けたY軸移動機構に接続する。Y軸移動機構はY軸モータ116(図3参照)を駆動源とし、腕部65をY軸方向(前後方向)へ移動する。移送板保持部64は腕部65の移動に伴ってY軸方向(前後方向)へ移動する。   The transfer plate 61 is a plate member arranged in the horizontal direction, and has an opening having a rectangular shape in plan view. The transfer plate holding portion 64 extends in the left-right direction, and supports the transfer plate 61 and the support portion 66 so as to be movable in the X-axis direction (left-right direction). The X-axis moving mechanism is provided inside the bed portion 2. The X-axis moving mechanism uses the X-axis motor 114 (see FIG. 3) as a drive source, and moves the transfer plate 61 and the support portion 66 in the X-axis direction (left-right direction). The arm portion 65 connected to the transfer plate holding portion 64 is connected to a Y-axis moving mechanism provided in the pedestal column portion 3. The Y-axis moving mechanism uses the Y-axis motor 116 (see FIG. 3) as a drive source and moves the arm portion 65 in the Y-axis direction (front-rear direction). The transfer plate holding part 64 moves in the Y-axis direction (front-rear direction) as the arm part 65 moves.

移送板保持部64が支持する移送板61は、支持部66と共に移動する。支持部66は昇降部62を昇降可能に支持する。押え板63は昇降部62下端に連結する矩形枠状の板部材である。押え板63の開口は移送板61の開口と略同一形状である。作業者は縫製対象物(例えば加工布)を移送板61上に載置する。昇降部62が下方に移動すると、押え板63は下降する。押え板63と移送板61は、縫製対象物を上下から挟んで保持する。以下、移送板61と押え板63を総称して保持体60という。   The transfer plate 61 supported by the transfer plate holding part 64 moves together with the support part 66. The support part 66 supports the raising / lowering part 62 so that raising / lowering is possible. The presser plate 63 is a rectangular frame-shaped plate member connected to the lower end of the elevating part 62. The opening of the pressing plate 63 has substantially the same shape as the opening of the transfer plate 61. The operator places a sewing object (for example, a work cloth) on the transfer plate 61. When the elevating part 62 moves downward, the presser plate 63 descends. The presser plate 63 and the transfer plate 61 hold the sewing object from above and below. Hereinafter, the transfer plate 61 and the presser plate 63 are collectively referred to as a holding body 60.

ミシン1はテーブル95上に設けた操作パネル8と、操作パネル8にケーブル9を介して接続した操作端末30を備える。操作パネル8と操作端末30は夫々、各種情報、各種指示を入力する為のキー群と、情報表示用のディスプレイを備える。作業者は情報又は指示を入力する場合、操作パネル8又は操作端末30を使用する。ミシン1はテーブル95下方に制御装置100(図3参照)を格納する制御箱(図示略)を備える。操作パネル8はコード(図示略)を介して制御箱に接続する。操作端末30は外部装置であり、ケーブル9を介して操作パネル8に着脱可能に接続する。操作端末30は単独で持ち運び可能であり、他のミシンに接続することもできる。   The sewing machine 1 includes an operation panel 8 provided on a table 95 and an operation terminal 30 connected to the operation panel 8 via a cable 9. The operation panel 8 and the operation terminal 30 each include a key group for inputting various information and various instructions, and a display for displaying information. The operator uses the operation panel 8 or the operation terminal 30 when inputting information or instructions. The sewing machine 1 includes a control box (not shown) for storing the control device 100 (see FIG. 3) below the table 95. The operation panel 8 is connected to the control box via a cord (not shown). The operation terminal 30 is an external device and is detachably connected to the operation panel 8 via the cable 9. The operation terminal 30 can be carried alone and can be connected to other sewing machines.

図2を参照し、アーム部4の前端部7周辺の構成を説明する。前端部7は、上糸55を案内する為の構成、縫針11を装着した針棒10、押え足13を装着した押え棒12等を備える。上糸55を案内する為の構成は、前端部7の右側面に設けた副糸調子器15、糸調子器16、糸案内17、18、天秤19、糸案内20を含む。上糸55は、テーブル95(図1参照)に設けた糸駒立て(図示略)に載置した糸駒から、副糸調子器15、糸調子器16、糸案内17、糸案内18、天秤19、糸案内20を経由し、縫針11の針孔111に挿通する。前述の通り、針棒10は前端部7下端から下方へ延びる。ミシンモータ112(図3参照)は主軸(図示略)を回転駆動する。針棒駆動機構(図示略)は、主軸の回転駆動に伴って針棒10を上下動する。   With reference to FIG. 2, the structure around the front end 7 of the arm 4 will be described. The front end portion 7 includes a configuration for guiding the upper thread 55, a needle bar 10 to which a sewing needle 11 is attached, a presser bar 12 to which a presser foot 13 is attached, and the like. The configuration for guiding the upper thread 55 includes a secondary thread tensioner 15, a thread tensioner 16, thread guides 17 and 18, a balance 19, and a thread guide 20 provided on the right side surface of the front end portion 7. The upper thread 55 includes a secondary thread tensioner 15, a thread tensioner 16, a thread guide 17, a thread guide 18, and a balance from a thread spool placed on a thread spool stand (not shown) provided on a table 95 (see FIG. 1). 19, through the thread guide 20, is inserted into the needle hole 111 of the sewing needle 11. As described above, the needle bar 10 extends downward from the lower end of the front end portion 7. The sewing machine motor 112 (see FIG. 3) rotates a main shaft (not shown). A needle bar drive mechanism (not shown) moves the needle bar 10 up and down as the main shaft rotates.

押え棒12は針棒10の左方(図2の背面側)で前端部7下端から下方へ延びる。押え足13は押え棒12下端部に装着する。押え足駆動機構(図示略)は主軸の回転駆動に伴う針棒10の上下動に同期して押え棒12を上下動する。押え足13は、縫針11が縫製対象物から抜ける時に上方から縫製対象物を押えることで縫製対象物が上方へ浮き上がるのを防止する。押え足13の先端部は円筒状の筒部131である。縫針11は筒部131の貫通穴を通って縫製対象物に刺さる。縫針11は筒部131下方の針穴502を通って上下動する。   The presser bar 12 extends downward from the lower end of the front end 7 on the left side of the needle bar 10 (on the back side in FIG. 2). The presser foot 13 is attached to the lower end of the presser bar 12. A presser foot drive mechanism (not shown) moves the presser bar 12 up and down in synchronization with the vertical movement of the needle bar 10 accompanying the rotational drive of the main shaft. The presser foot 13 prevents the sewing object from being lifted upward by pressing the sewing object from above when the sewing needle 11 is removed from the sewing object. The distal end portion of the presser foot 13 is a cylindrical tube portion 131. The sewing needle 11 is inserted into the sewing object through the through hole of the cylindrical portion 131. The sewing needle 11 moves up and down through a needle hole 502 below the cylinder portion 131.

図3を参照し、ミシン1の電気的構成について説明する。ミシン1の制御装置100は、CPU101、ROM102、RAM103、不揮発性メモリ104、インターバルカウンタ105、入出力インターフェース(I/F)107、駆動回路113、115、117、通信I/F127を備える。CPU101、ROM102、RAM103、不揮発性メモリ104、インターバルカウンタ105は、バス106を介して入出力I/F107に電気的に接続する。CPU101はミシン1の制御を司り、ROM102が記憶する各種プログラムに従い、縫製に関わる各種演算と処理を実行する。ROM102は、本発明のログ情報作成制御プログラムの他、各種プログラム、各種初期設定パラメータ、複数の模様(縫目線、縫目模様、刺繍模様等)の縫製データ等を記憶する。RAM103は、CPU101の演算結果、ポインタの他、インターバルカウンタ105の計数値、ミシン1の一時ログ情報等を一時的に記憶する。一時ログ情報の詳細は後述する。不揮発性メモリ104は、ミシン1で作成した縫製データ、作業者が入力した各種設定情報の他、ミシン1の動作に関するログ情報等を記憶する。ログ情報の詳細は後述する。インターバルカウンタ105は、電源オン時に零に初期化し、以後一定時間(本実施形態では0.1秒)毎に計数するカウンタである。   The electrical configuration of the sewing machine 1 will be described with reference to FIG. The control device 100 of the sewing machine 1 includes a CPU 101, a ROM 102, a RAM 103, a nonvolatile memory 104, an interval counter 105, an input / output interface (I / F) 107, drive circuits 113, 115, and 117, and a communication I / F 127. The CPU 101, ROM 102, RAM 103, nonvolatile memory 104, and interval counter 105 are electrically connected to the input / output I / F 107 via the bus 106. The CPU 101 controls the sewing machine 1 and executes various calculations and processes related to sewing according to various programs stored in the ROM 102. In addition to the log information creation control program of the present invention, the ROM 102 stores various programs, various initial setting parameters, sewing data of a plurality of patterns (stitch lines, stitch patterns, embroidery patterns, etc.) and the like. The RAM 103 temporarily stores the calculation result of the CPU 101, the pointer, the count value of the interval counter 105, the temporary log information of the sewing machine 1, and the like. Details of the temporary log information will be described later. The nonvolatile memory 104 stores sewing data created by the sewing machine 1 and various setting information input by the operator, as well as log information related to the operation of the sewing machine 1. Details of the log information will be described later. The interval counter 105 is a counter that is initialized to zero when the power is turned on, and thereafter counts every certain time (in this embodiment, 0.1 second).

駆動回路113、115、117は、入出力I/F107に電気的に接続する。駆動回路113はミシンモータ112に電気的に接続する。CPU101は駆動回路113を介してミシンモータ112を制御する。ミシンモータ112は主軸を回転駆動する。駆動回路115はX軸モータ114に電気的に接続する。駆動回路117はY軸モータ116に電気的に接続する。CPU101は駆動回路115、117を介してX軸モータ114、Y軸モータ116を夫々制御する。X軸モータ114、Y軸モータ116は何れもパルスモータである。X軸モータ114、Y軸モータ116は夫々、X軸移動機構、Y軸移動機構を駆動することで、保持体60をX軸方向、Y軸方向に移動する。   The drive circuits 113, 115, and 117 are electrically connected to the input / output I / F 107. The drive circuit 113 is electrically connected to the sewing machine motor 112. The CPU 101 controls the sewing machine motor 112 via the drive circuit 113. The sewing machine motor 112 rotates the main shaft. The drive circuit 115 is electrically connected to the X-axis motor 114. The drive circuit 117 is electrically connected to the Y-axis motor 116. The CPU 101 controls the X-axis motor 114 and the Y-axis motor 116 via the drive circuits 115 and 117, respectively. Both the X-axis motor 114 and the Y-axis motor 116 are pulse motors. The X-axis motor 114 and the Y-axis motor 116 move the holding body 60 in the X-axis direction and the Y-axis direction by driving the X-axis movement mechanism and the Y-axis movement mechanism, respectively.

CPU101は縫製時に、ミシンモータ112を駆動して主軸を回転駆動することで、針棒10、押え棒12の上下動と垂直釜の回転を制御する。CPU101は、ミシンモータ112の駆動と同時に、縫製データに基づきX軸モータ114、Y軸モータ116を駆動し、保持体60の位置を制御する。ミシン1は該動作で縫製対象物上に縫製を行う。   The CPU 101 controls the vertical movement of the needle bar 10 and presser bar 12 and the rotation of the vertical hook by driving the sewing machine motor 112 and rotating the main shaft during sewing. The CPU 101 controls the position of the holding body 60 by driving the X-axis motor 114 and the Y-axis motor 116 based on the sewing data simultaneously with the driving of the sewing machine motor 112. The sewing machine 1 performs sewing on the sewing object by this operation.

通信I/F127は入出力I/F107に電気的に接続する。通信I/F127は、例えばシリアル通信用のインターフェースである。ミシン1は通信I/F127を介して外部機器に接続可能である。図3に示す如く、操作端末30は、ケーブル9で接続した操作パネル8を介して、通信I/F127に電気的に接続する。   The communication I / F 127 is electrically connected to the input / output I / F 107. The communication I / F 127 is an interface for serial communication, for example. The sewing machine 1 can be connected to an external device via the communication I / F 127. As shown in FIG. 3, the operation terminal 30 is electrically connected to the communication I / F 127 via the operation panel 8 connected by the cable 9.

X方向原点センサ118、Y方向原点センサ119、起動スイッチ121、操作パネル8、カードスロット122は夫々、制御装置100の入出力I/F107に電気的に接続する。X方向原点センサ118は、X軸移動機構(図示略)に設けた保持体60の原点設定用の周知の構成のセンサである。Y方向原点センサ119は、Y軸移動機構(図示略)に設けた保持体60の原点設定用の周知の構成のセンサである。起動スイッチ121は、テーブル95下方に設置し、制御装置100にコードで接続するペダル式のスイッチである。作業者は、ミシン1の各種動作(例えば縫製処理)を開始する時に起動スイッチ121を踏み込む。操作パネル8は前述の通りである。カードスロット122は、メモリカード(図示略)を挿入するための差込み口(図示略)を有し、該差込み口に挿入したメモリカードへの情報の書き込みとメモリカードからの情報の読出し等を行う機器である。メモリカードは例えばCFカード、SDカード等である。   The X-direction origin sensor 118, the Y-direction origin sensor 119, the start switch 121, the operation panel 8, and the card slot 122 are electrically connected to the input / output I / F 107 of the control device 100, respectively. The X-direction origin sensor 118 is a sensor having a known configuration for setting the origin of the holding body 60 provided in the X-axis movement mechanism (not shown). The Y-direction origin sensor 119 is a sensor having a known configuration for setting the origin of the holding body 60 provided in the Y-axis movement mechanism (not shown). The start switch 121 is a pedal-type switch that is installed below the table 95 and connected to the control device 100 with a cord. The operator depresses the activation switch 121 when starting various operations (for example, sewing processing) of the sewing machine 1. The operation panel 8 is as described above. The card slot 122 has an insertion slot (not shown) for inserting a memory card (not shown), and writes information to the memory card inserted into the insertion slot and reads information from the memory card. Equipment. The memory card is, for example, a CF card or an SD card.

図3に示す如く、操作端末30は、制御装置300、液晶ディスプレイ(以下、LCDという)32、キー群33を備える。制御装置300は、CPU301、ROM302、RAM303、時刻情報部304、入出力I/F306、通信I/F307、駆動回路308を備える。CPU301、ROM302、RAM303、時刻情報部304は、バス305を介して入出力I/F306に電気的に接続する。駆動回路308は入出力I/F306に電気的に接続する。駆動回路308はLCD32に電気的に接続する。キー群33は入出力I/F306に電気的に接続する。   As shown in FIG. 3, the operation terminal 30 includes a control device 300, a liquid crystal display (hereinafter referred to as LCD) 32, and a key group 33. The control device 300 includes a CPU 301, ROM 302, RAM 303, time information unit 304, input / output I / F 306, communication I / F 307, and drive circuit 308. The CPU 301, ROM 302, RAM 303, and time information unit 304 are electrically connected to the input / output I / F 306 via the bus 305. The drive circuit 308 is electrically connected to the input / output I / F 306. The drive circuit 308 is electrically connected to the LCD 32. The key group 33 is electrically connected to the input / output I / F 306.

CPU301は、操作端末30の制御を司り、ROM302が記憶する各種プログラムとミシン1が送信したデータに従い、LCD32への画像表示、キー群33からの入力受付等の処理を実行する。RAM303は、CPU301の演算結果、ポインタ、カウンタ等を一時的に記憶する。時刻情報部304は日付、時刻を刻む時計等で構成する。通信I/F307は入出力I/F306に電気的に接続する。通信I/F307は例えばシリアル通信用のインターフェースである。操作端末30は通信I/F307を介してミシン1に接続する。LCD32は各種情報を画像表示する。キー群33は作業者が各種情報と指示を入力する為のものである。キー群33は、四方向矢印キー、数字キー、機能キー等を含む。   The CPU 301 controls the operation terminal 30 and executes processes such as image display on the LCD 32 and input reception from the key group 33 according to various programs stored in the ROM 302 and data transmitted by the sewing machine 1. The RAM 303 temporarily stores calculation results of the CPU 301, pointers, counters, and the like. The time information unit 304 is configured by a clock that records the date and time. The communication I / F 307 is electrically connected to the input / output I / F 306. The communication I / F 307 is an interface for serial communication, for example. The operation terminal 30 is connected to the sewing machine 1 via the communication I / F 307. The LCD 32 displays various information as images. The key group 33 is for the operator to input various information and instructions. The key group 33 includes four-way arrow keys, numeric keys, function keys, and the like.

図4〜図8を参照し、CPU101が実行するログ作成制御処理を説明する。ミシン1の電源がオンすると、CPU101は、ROM102からログ作成制御プログラムを読み込み、本処理を実行する。先ず、CPU101はRAM103に記憶するインターバルカウンタ105の計数値を零に初期化し、0.1秒毎の計数を開始する(S1)。CPU101は電源オンの時刻が分からないので、図8の情報1に示すように、イベント発生時刻を仮に0時00分00秒00とし、イベント内容である「電源オン」と対応づけて、RAM103に一時ログ情報として記憶する(S2)。図7に示す如く、「0時00分00秒00」は、S1で初期化したインターバルカウンタ105の計数値である零に対応する。   A log creation control process executed by the CPU 101 will be described with reference to FIGS. When the power of the sewing machine 1 is turned on, the CPU 101 reads a log creation control program from the ROM 102 and executes this processing. First, the CPU 101 initializes the count value of the interval counter 105 stored in the RAM 103 to zero, and starts counting every 0.1 second (S1). Since the CPU 101 does not know the power-on time, as shown in the information 1 of FIG. 8, the event occurrence time is temporarily set to 0:00:00 and is associated with the event content “power-on” in the RAM 103. Store as temporary log information (S2). As shown in FIG. 7, “00:00:00” corresponds to zero which is the count value of the interval counter 105 initialized in S1.

電源がオンすると、CPU101は、操作端末30との間でケーブル9を介した通信回線を開通させる開通処理を実行する。通信接続の方式は限定しないが、例えばTCP接続による通信の場合、シーケンス番号に基づいた送受信確認が必要である。開通処理はシーケンス番号の初期値を互いに通知し、双方の持つシーケンス番号が正しく相手に伝わったことが確認できて完了する。   When the power is turned on, the CPU 101 executes an opening process for opening a communication line via the cable 9 with the operation terminal 30. The communication connection method is not limited. For example, in the case of communication by TCP connection, transmission / reception confirmation based on the sequence number is required. The opening process is completed when the initial values of the sequence numbers are notified to each other and it is confirmed that the sequence numbers of both parties have been correctly transmitted to the other party.

CPU101は通信回線が開通したか否か判断する(S3)。通信回線が開通するまでは(S3:NO)、CPU101は待機する。通信回線が開通した場合(S3:YES)、CPU101は操作端末30に対し、時刻情報要求信号を送信する(S4)。時刻情報要求信号は操作端末30に対し、時刻情報の出力を要求する信号である。操作端末30のCPU301(図3参照)は時刻情報要求信号を受信すると、時刻情報部304から時刻情報を取得し、応答信号と共にミシン1側に出力する。   The CPU 101 determines whether or not the communication line has been opened (S3). Until the communication line is opened (S3: NO), the CPU 101 stands by. When the communication line is opened (S3: YES), the CPU 101 transmits a time information request signal to the operation terminal 30 (S4). The time information request signal is a signal for requesting the operation terminal 30 to output time information. When receiving the time information request signal, the CPU 301 (see FIG. 3) of the operation terminal 30 acquires the time information from the time information unit 304 and outputs it to the sewing machine 1 side together with the response signal.

CPU101は操作端末30から時刻情報を受信したか否か判断する(S5)。時刻情報を受信した場合(S5:YES)、CPU101は該受信が初回受信か否か判断する(S6)。初回受信か否かの判断は例えばフラグ等で判別できる。該場合、フラグはRAM103に記憶する。例えば電源オン時にフラグを初期化してオフし、初回受信でオンすることで、CPU101はその後の受信が初回でないことを容易に判別できる。   The CPU 101 determines whether time information has been received from the operation terminal 30 (S5). When the time information is received (S5: YES), the CPU 101 determines whether the reception is the first reception (S6). The determination as to whether or not it is the first reception can be made using a flag, for example. In this case, the flag is stored in the RAM 103. For example, the CPU 101 can easily determine that the subsequent reception is not the first time by initializing and turning off the flag when the power is turned on and turning it on at the first reception.

初回受信の場合(S6:YES)、CPU101は受信時のインターバルカウンタ105の計数値(以下、受信時計数値と称す)をRAM103に一旦記憶する(S7)。例えば、図7に示す例では、時刻情報受信時のインターバルカウンタ105の計数値は「15」であるので、CPU101はRAM103に受信時計数値として「15」を一旦記憶する。   In the case of the first reception (S6: YES), the CPU 101 temporarily stores the count value of the interval counter 105 at the time of reception (hereinafter referred to as a received clock value) in the RAM 103 (S7). For example, in the example shown in FIG. 7, the count value of the interval counter 105 at the time of receiving time information is “15”, so the CPU 101 temporarily stores “15” as a received clock value in the RAM 103.

CPU101はインターバルカウンタ105の計数値を、受信した時刻を示す計数値に補正する(S8)。上記の通り、インターバルカウンタ105は0.1秒毎に1計数するカウンタであるので、1秒は10(計数値)に相当し、1分は600(計数値)に相当する。受信した時刻情報が「8時30分25秒」の場合、インターバルカウンタ105の計数値は以下のように換算できる。
「8時」=8×60(分)×600=288000・・・(1)
「30分」=30(分)×600=18000・・・(2)
「25秒」=25(秒)×10=250・・・(3)
時刻「8時30分25秒」に対応するインターバルカウンタ105の計数値は、上記(1)と(2)と(3)の総和である「306250」となる。故にCPU101はインターバルカウンタ105の計数値「15」を「306250」に補正し(図7参照)、RAM103に記憶する。以後、CPU101はインターバルカウンタ105を用いて「306250」から0.1秒毎に1計数する。故にインターバルカウンタ105は0.1秒毎に正確な時刻を計測できる。次いでCPU101は一時ログ情報処理を実行する(S9)。
The CPU 101 corrects the count value of the interval counter 105 to a count value indicating the received time (S8). As described above, since the interval counter 105 is a counter that counts 1 every 0.1 second, 1 second corresponds to 10 (count value), and 1 minute corresponds to 600 (count value). When the received time information is “8:30:25”, the count value of the interval counter 105 can be converted as follows.
“8 o'clock” = 8 × 60 (minutes) × 600 = 288000 (1)
“30 minutes” = 30 (minutes) × 600 = 18000 (2)
“25 seconds” = 25 (seconds) × 10 = 250 (3)
The count value of the interval counter 105 corresponding to the time “8:30:25” is “306250” which is the sum of the above (1), (2), and (3). Therefore, the CPU 101 corrects the count value “15” of the interval counter 105 to “306250” (see FIG. 7) and stores it in the RAM 103. Thereafter, the CPU 101 uses the interval counter 105 to count 1 from “306250” every 0.1 second. Therefore, the interval counter 105 can measure an accurate time every 0.1 second. Next, the CPU 101 executes temporary log information processing (S9).

図6を参照し、一時ログ情報処理を説明する。先ず、CPU101はRAM103に記憶する一時ログ情報の先頭行を読み込む(S21)。図8に示す情報1では、一時ログ情報の先頭行は「0時00分00秒00」である。CPU101は、RAM103に一旦記憶した受信時計数値と、一時ログ情報の時刻情報を計数値に換算した値との差分を求め、それを時刻情報受信時のインターバルカウンタ105の計数値から減算する(S22)。RAM103に記憶した受信時計数値は15である。一時ログ情報の時刻情報を計数値で表した値は0である。差分は15−0=15である。時刻情報受信時のインターバルカウンタ105の計数値である「306250」から差分である「15」を減算した計数値は「306235」となる。   The temporary log information processing will be described with reference to FIG. First, the CPU 101 reads the first line of temporary log information stored in the RAM 103 (S21). In the information 1 shown in FIG. 8, the first line of the temporary log information is “00:00:00”. The CPU 101 obtains a difference between the received clock value temporarily stored in the RAM 103 and a value obtained by converting the time information of the temporary log information into a count value, and subtracts it from the count value of the interval counter 105 when the time information is received (S22). ). The received clock value stored in the RAM 103 is 15. The value representing the time information of the temporary log information as a count value is zero. The difference is 15-0 = 15. The count value obtained by subtracting the difference “15” from the count value “306250” of the interval counter 105 when receiving the time information is “306235”.

CPU101は減算して求めた「306235」を時刻に換算する。インターバルカウンタ105は0.1秒毎に1計数するので、「8時30分23秒50」となる。故にCPU101は「8時30分23秒50」を電源オンの時刻とし、イベント内容である「電源オン」と共に、図8の情報2に示すように、不揮発性メモリ104にログ情報として書き込む(S23)。ログ情報は不揮発性メモリ104に記憶するので、ミシン1の電源をオフしても消失しない。   The CPU 101 converts “306235” obtained by subtraction into time. Since the interval counter 105 counts once every 0.1 second, it becomes “8: 30: 23.50”. Therefore, the CPU 101 sets “8: 30: 23: 50” as the power-on time, and writes it as log information in the nonvolatile memory 104 as shown in the information 2 of FIG. 8 together with the event “power-on” (S23). ). Since the log information is stored in the nonvolatile memory 104, the log information is not lost even when the sewing machine 1 is turned off.

CPU101は一時ログ情報について全ての行を処理したか否か判断する(S24)。2行目以降がある場合(S24:NO)、CPU101は一時ログ情報の次の行を読み込み(S25)、S22に戻り、処理を繰り返す。全ての行を処理した場合(S24:YES)、CPU101は一時ログ情報処理を終了し、図5のS12に処理を進める。   The CPU 101 determines whether or not all lines have been processed for temporary log information (S24). If there is a second or subsequent line (S24: NO), the CPU 101 reads the next line of the temporary log information (S25), returns to S22, and repeats the process. When all the rows have been processed (S24: YES), the CPU 101 ends the temporary log information processing, and advances the processing to S12 in FIG.

図5に示す如く、CPU101はミシン1にイベントが発生したか否か判断する(S12)。イベントは、例えば、「縫製開始」「縫製終了」「模様変更」「エラー」「模様作成開始」「模様作成終了」「電源オフ」等である。「縫製開始」のイベント発生は、作業者が起動スイッチ121を踏み込んだ時に発生する。「縫製終了」のイベント発生は、縫製データに基づく縫製処理が終了した時に発生する。「模様変更」「模様作成開始」「模様作成終了」の各イベント発生は、作業者が操作パネル8を操作し、各指示を入力した時に発生する。「エラー」のイベント発生は、ROM102が記憶する各種プログラムに基づく処理中にミシン1にエラーが起こった時に発生する。「電源オフ」のイベント発生は、作業者が電源オフを指示した時に発生する。例えば、ミシン1に縫製開始のイベントが発生した場合(S12:YES)、操作端末30から時刻情報を既に受信済みか否か判断する(S13)。該判断は、例えばRAM103に受信時計数値が記憶してあるか否かにより判断すればよい。時刻情報をまだ受信していない場合、又は時刻情報を正確に受信できなかった場合(S13:NO)、CPU101は現在の時刻がわからないので、イベント内容をイベント発生時のインターバルカウンタ105の計数値と共に、RAM103に一時ログ情報として一旦書き込む(S16)。一時ログ情報の計数値は、後にCPU101が時刻情報を受信して、上記の一時ログ情報処理を実行することで、時刻に換算してログ情報として不揮発性メモリ104に書き込まれる。   As shown in FIG. 5, the CPU 101 determines whether an event has occurred in the sewing machine 1 (S12). Events include, for example, “sewing start”, “sewing end”, “pattern change”, “error”, “pattern creation start”, “pattern creation end”, “power off”, and the like. The occurrence of the “sewing start” event occurs when the operator depresses the start switch 121. The “sewing end” event occurs when the sewing process based on the sewing data is completed. The occurrence of each event of “pattern change”, “pattern creation start”, and “pattern creation end” occurs when the operator operates the operation panel 8 and inputs each instruction. The occurrence of an “error” event occurs when an error occurs in the sewing machine 1 during processing based on various programs stored in the ROM 102. The occurrence of a “power off” event occurs when the operator instructs the power off. For example, when a sewing start event occurs in the sewing machine 1 (S12: YES), it is determined whether time information has already been received from the operation terminal 30 (S13). This determination may be made based on whether or not the received clock value is stored in the RAM 103, for example. If the time information has not been received yet, or if the time information has not been received correctly (S13: NO), the CPU 101 does not know the current time, so the event content is displayed together with the count value of the interval counter 105 when the event occurs. The temporary log information is temporarily written in the RAM 103 (S16). The count value of the temporary log information is written into the nonvolatile memory 104 as log information in terms of time by the CPU 101 receiving time information later and executing the temporary log information processing described above.

一方、時刻情報を既に受信している場合(S13:YES)、CPU101は、イベント発生時のインターバルカウンタ105の計数値から時刻を計算する(S14)。時刻情報を既に受信している場合、計数値は時刻に対応した計数値に既に補正した状態である。例えば、縫製開始のイベント発生時のインターバルカウンタ105の計数値が「307435」であった場合、インターバルカウンタ105は0.1秒毎に1計数するので、時刻は「8時32分23秒50」となる。CPU101はイベント内容である「縫製開始」と、計算して求めた時刻である「8時32分23秒50」を対応づけて、図8に示す情報3のように、不揮発性メモリ104のログ情報に書き込む(S15)。   On the other hand, when the time information has already been received (S13: YES), the CPU 101 calculates the time from the count value of the interval counter 105 at the time of event occurrence (S14). When the time information has already been received, the count value is already corrected to the count value corresponding to the time. For example, if the count value of the interval counter 105 at the occurrence of the sewing start event is “307435”, the interval counter 105 counts once every 0.1 second, so the time is “8:32:23” 50. It becomes. The CPU 101 associates the event contents “sewing start” with the calculated time “8: 32: 23: 50”, and stores the log in the nonvolatile memory 104 as shown in information 3 in FIG. The information is written (S15).

CPU101は、メモリカードへの出力要求があるか否か判断する(S17)。ミシン1の管理者は、操作パネル8を操作することで、不揮発性メモリ104に記憶するログ情報のメモリカードへの出力要求ができる。メモリカードへの出力要求が無かった場合(S17:NO)、CPU101は処理を後述するS19に進める。メモリカードへの出力要求があった場合(S17:YES)、CPU101は不揮発性メモリ104のログ情報をカードスロット122に差し込んだメモリカードへの書き込みを実行する(S18)。管理者は例えばPCを用いてメモリカードに書き込んだログ情報を読み込むことにより、ミシン1に発生した各種イベントを時系列で認識でき、ミシン1の稼働量、縫製作業量等を正確に分析できる。   The CPU 101 determines whether there is an output request to the memory card (S17). The administrator of the sewing machine 1 can request output of log information stored in the nonvolatile memory 104 to the memory card by operating the operation panel 8. When there is no output request to the memory card (S17: NO), the CPU 101 advances the process to S19 described later. When there is an output request to the memory card (S17: YES), the CPU 101 executes writing to the memory card in which the log information of the nonvolatile memory 104 is inserted into the card slot 122 (S18). By reading log information written in a memory card using a PC, for example, the administrator can recognize various events occurring in the sewing machine 1 in time series, and can accurately analyze the operating amount of the sewing machine 1, the sewing work amount, and the like.

CPU101は時刻再確認の時機か否か判断する(S19)。時刻再確認の時機は、前回の時刻情報の取得時から例えば1時間又は2時間等の適当な間隔を設定すればよい。時刻再確認の時機でなければ(S19:NO)、CPU101はS12に戻り、ミシン1に発生するイベントを引き続き監視する。ミシン1は、電源をオンしてから縫製開始後、例えば、縫製終了、2回目の縫製開始、縫製終了、模様変更・・・のイベントを順次行う。各種イベントが発生する毎に、CPU101は各種イベント発生時のインターバルカウンタ105の計数値に基づき、時刻を計算する(S14)。計算方法は時刻情報を既に受信していれば(S13:YES)、S14の処理と同じである。   The CPU 101 determines whether it is time to reconfirm the time (S19). The time for reconfirming the time may be set at an appropriate interval such as 1 hour or 2 hours from the previous time information acquisition time. If it is not time to reconfirm the time (S19: NO), the CPU 101 returns to S12 and continues to monitor events occurring in the sewing machine 1. The sewing machine 1 sequentially performs events such as sewing end, second sewing start, sewing end, pattern change,... Each time various events occur, the CPU 101 calculates the time based on the count value of the interval counter 105 when the various events occur (S14). If the time information has already been received (S13: YES), the calculation method is the same as the process of S14.

例えば、図7に示す如く、縫製終了時の計数値が「307758」であれば、時刻は「8時32分55秒80」となる。2回目の縫製開始時の計数値が「308103」であれば、時刻は「8時33分30秒30」となる。縫製終了時の計数値が「308426」であれば、時刻は「8時34分02秒60」となる。模様変更時の計数値が「309090」であれば、時刻は「8時35分09秒00」となる。   For example, as shown in FIG. 7, if the count value at the end of sewing is “307758”, the time is “8:32:55” 80. If the count value at the start of the second sewing is “308103”, the time is “8:33:30”. If the count value at the end of sewing is “308426”, the time is “8:34:02 60”. If the count value at the time of pattern change is “309090”, the time is “8:35:09 seconds 00”.

CPU101はイベント内容と、計算して求めた時刻とを対応づけて、不揮発性メモリ104のログ情報に随時書き込む(S15)。図8に示す如く、ログ情報は、縫製終了時では情報4、2回目の縫製開始時では情報5、縫製終了時では情報6、模様変更時では情報7となる。   The CPU 101 associates the event content with the calculated time, and writes it to the log information in the nonvolatile memory 104 as needed (S15). As shown in FIG. 8, the log information is information 4 at the end of sewing, information 5 at the start of the second sewing, information 6 at the end of sewing, and information 7 at the time of pattern change.

一方、時刻再確認の時機の場合(S19:YES)、CPU101は処理を図4に示すS3に戻し、通信回線が開通した状態であれば(S3:YES)、操作端末30に時刻情報を要求して再取得する(S4,S5)。時刻情報の受信は初回受信ではないので(S6:NO)、CPU101は、インターバルカウンタ105の計数値を、再取得した時刻を示す計数値となるように補正し(S10)、RAM103に記憶する。以後、CPU101はインターバルカウンタ105を用いてRAM103に新たに記憶した計数値から0.1秒毎に1計数する。以上のように、CPU101は時刻を表す計数値を定期的に補正できるので、正確な時刻でログ情報を作成できる。以後、CPU101はミシン1の電源がオフするまでログ作成制御処理を継続し、ログ情報を作成し不揮発性メモリ104に記憶できる。   On the other hand, if it is time to reconfirm the time (S19: YES), the CPU 101 returns the process to S3 shown in FIG. 4 and if the communication line is open (S3: YES), requests time information from the operation terminal 30. And re-acquiring (S4, S5). Since the time information is not received for the first time (S6: NO), the CPU 101 corrects the count value of the interval counter 105 so as to be a count value indicating the reacquired time (S10), and stores it in the RAM 103. Thereafter, the CPU 101 counts 1 every 0.1 second from the count value newly stored in the RAM 103 using the interval counter 105. As described above, since the CPU 101 can periodically correct the count value representing the time, the log information can be created at an accurate time. Thereafter, the CPU 101 can continue the log creation control process until the power of the sewing machine 1 is turned off to create log information and store it in the nonvolatile memory 104.

以上説明にて、インターバルカウンタ105が本発明の計数手段に相当し、S1の処理を実行するCPU101が本発明の計数開始手段に相当し、ケーブル9が本発明の通信手段に相当し、S4、S5の処理を実行するCPU101が本発明の取得手段に相当し、S8の処理を実行するCPU101が本発明の補正手段に相当し、S12の処理を実行するCPU101が本発明の第一判断手段に相当し、S14,S15の処理を実行するCPU101が本発明の記憶手段に相当し、S18の処理を実行するCPU101が本発明の出力手段に相当し、S13の処理を実行するCPU101が本発明の第二判断手段に相当し、S16の処理を実行するCPU101が本発明の計数値一時記憶手段に相当し、S21〜S22の処理を実行するCPU101が本発明の第二算出手段に相当し、S3の処理を実行するCPU101が本発明の通信判断手段に相当する。   In the above description, the interval counter 105 corresponds to the counting means of the present invention, the CPU 101 that executes the processing of S1 corresponds to the counting start means of the present invention, the cable 9 corresponds to the communication means of the present invention, S4, The CPU 101 that executes the process of S5 corresponds to the acquisition unit of the present invention, the CPU 101 that executes the process of S8 corresponds to the correction unit of the present invention, and the CPU 101 that executes the process of S12 serves as the first determination unit of the present invention. The CPU 101 that executes the processes of S14 and S15 corresponds to the storage means of the present invention, the CPU 101 that executes the process of S18 corresponds to the output means of the present invention, and the CPU 101 that executes the process of S13 corresponds to the present invention. A CPU 101 that corresponds to the second determination means and that executes the processing of S16 corresponds to the count value temporary storage means of the present invention and that executes the processing of S21 to S22. 101 corresponds to the second calculating means of the present invention, CPU 101 executing the processing in S3 is equivalent to the communication determination means of the present invention.

S1の処理が本発明の計数開始工程と計数開始ステップに相当し、S4、S5の処理が本発明の取得工程と取得ステップに相当し、S8の処理が本発明の補正工程と補正ステップに相当し、S12の処理が本発明の判断工程と判断ステップに相当し、S14,S15の処理が本発明の記憶工程と記憶ステップに相当し、S18の処理が本発明の出力工程と出力ステップに相当する。   The process of S1 corresponds to the counting start process and the counting start step of the present invention, the processes of S4 and S5 correspond to the acquiring process and the acquiring step of the present invention, and the process of S8 corresponds to the correcting process and the correcting step of the present invention. The process of S12 corresponds to the determination process and the determination step of the present invention, the processes of S14 and S15 correspond to the storage process and the storage step of the present invention, and the process of S18 corresponds to the output process and the output step of the present invention. To do.

以上説明したように、本実施形態のミシン1は、ミシン1に発生するイベントを検出し、該イベントの内容と共に発生時刻を記録したログ情報を作成できる。イベントは、例えば、縫製開始、縫製終了等である。ミシン1はインターバルカウンタ105を備える。インターバルカウンタ105は電源オンしてから0.1秒毎に1計数するカウンタである。ミシン1は電源オンし且つ操作端末30との通信開通後、操作端末30から時刻情報を受信する。ミシン1は、該受信時のインターバルカウンタ105の計数値を受信時の時刻に対応させるように補正する。以後、ミシン1はイベントを検出する毎に、インターバルカウンタ105の計数値が表す時刻を発生時刻とし、イベント内容と対応づけたログ情報を不揮発性メモリ104に随時記憶する。ミシン1は時刻情報を一回取得するだけで、その後は、補正した計数値が表す時刻に基づきログ情報を作成できるので、時計機能を持つ必要がない。故にミシン1は外部との通信機能があれば、ミシン1に発生したイベントの内容に時刻を対応づけたログ情報を作成できる。故に管理者はミシン1の生産管理を正確に行うことができる。   As described above, the sewing machine 1 of the present embodiment can detect an event that occurs in the sewing machine 1 and create log information that records the time of occurrence together with the content of the event. The event is, for example, sewing start, sewing end, or the like. The sewing machine 1 includes an interval counter 105. The interval counter 105 is a counter that counts 1 every 0.1 second after the power is turned on. The sewing machine 1 is turned on and receives time information from the operation terminal 30 after communication with the operation terminal 30 is established. The sewing machine 1 corrects the count value of the interval counter 105 at the time of reception so as to correspond to the time at the time of reception. Thereafter, whenever the sewing machine 1 detects an event, the time indicated by the count value of the interval counter 105 is set as the occurrence time, and log information associated with the event content is stored in the nonvolatile memory 104 as needed. The sewing machine 1 only needs to acquire time information once, and thereafter, log information can be created based on the time represented by the corrected count value, so that it is not necessary to have a clock function. Therefore, if the sewing machine 1 has a communication function with the outside, log information in which the time is associated with the content of the event that has occurred in the sewing machine 1 can be created. Therefore, the manager can perform production management of the sewing machine 1 accurately.

また、上記実施形態は更に、イベント検出時に時刻情報をまだ取得していない場合、イベントの発生時におけるインターバルカウンタ105の計数値を一時ログ情報として、RAM103に一時的に記憶する。ミシン1はその後、時刻情報を取得した場合に、取得した時刻情報と一時ログ情報の計数値に基づき、一時ログ情報の計数値に対応する対応時刻を算出し、不揮発性メモリ104にログ情報として記憶する。故にミシン1は時刻情報を受信する前に発生したイベントの発生時刻を遡って求めることができる。   Further, in the above-described embodiment, when the time information is not yet acquired at the time of event detection, the count value of the interval counter 105 at the time of occurrence of the event is temporarily stored in the RAM 103 as temporary log information. Thereafter, when the time information is acquired, the sewing machine 1 calculates a corresponding time corresponding to the count value of the temporary log information based on the acquired time information and the count value of the temporary log information, and stores it in the nonvolatile memory 104 as log information. Remember. Therefore, the sewing machine 1 can obtain the occurrence time of the event that occurred before receiving the time information retrospectively.

また、上記実施形態は更に、ミシン1の電源がオンする起動時に、インターバルカウンタ105の動作を開始させる。故にミシン1は、ミシン1の起動時から時刻情報と対になったログ情報を作成できる。   Further, in the above embodiment, the operation of the interval counter 105 is started at the start-up when the sewing machine 1 is turned on. Therefore, the sewing machine 1 can create log information paired with time information from the time of starting the sewing machine 1.

また、上記実施形態は更に、外部装置である操作端末30との通信が開通した後に、操作端末30から時刻情報を受信するので、時刻情報を確実且つ正確に取得できる。   Moreover, since the time information is received from the operation terminal 30 after communication with the operation terminal 30 which is an external device is opened in the above embodiment, the time information can be acquired reliably and accurately.

尚、本発明は、上記実施形態の他に種々の変更が可能である。上記実施形態のログ作成制御処理(図4,図5参照)では、イベント発生時に時刻情報をまだ受信していなければ、計数値を一時ログ情報として一時的に記憶するが、例えばミシン1の縫製開始のイベント発生時に、時刻情報をまだ受信していない場合は、エラー報知をして縫製動作を開始させないで待機させてもよい。該変形例を次に説明する。   The present invention can be variously modified in addition to the above-described embodiment. In the log creation control process (see FIGS. 4 and 5) of the above embodiment, the count value is temporarily stored as temporary log information if the time information has not yet been received when the event occurs. For example, the sewing machine 1 is sewn. If the time information has not been received when the start event occurs, an error notification may be issued and the sewing operation may be started without starting. The modification will be described next.

図9を参照し、CPU101が実行するログ作成制御処理の変形例を説明する。変形例は、上記実施形態の図4,図5に示す各処理と一部が異なるのみで、その他は共通するので、異なる部分を中心に説明する。   A modification of the log creation control process executed by the CPU 101 will be described with reference to FIG. The modified example is different from each of the processes shown in FIGS. 4 and 5 of the above embodiment only in part, and the other parts are common, so that different parts will be mainly described.

ミシン1の電源がオンした後、CPU101は図4のS1〜S10と同一の処理を行った後、ミシン1にイベントが発生したか否か判断する(S12)。図9に示す如く、ミシン1のイベント発生を検出した場合(S12:YES)、CPU101はイベントの内容は縫製開始か否か判断する(S31)。縫製開始以外のイベントである場合(S31:NO)、上記実施形態と同様に、CPU101は、イベント発生時のインターバルカウンタ105の計数値から発生時刻を計算し、ログ情報として不揮発性メモリ104に記憶する(S13〜S15)。   After the power of the sewing machine 1 is turned on, the CPU 101 performs the same processing as S1 to S10 in FIG. 4, and then determines whether an event has occurred in the sewing machine 1 (S12). As shown in FIG. 9, when the event occurrence of the sewing machine 1 is detected (S12: YES), the CPU 101 determines whether or not the content of the event is the start of sewing (S31). When the event is other than the sewing start (S31: NO), the CPU 101 calculates the occurrence time from the count value of the interval counter 105 at the time of event occurrence and stores it in the nonvolatile memory 104 as log information, as in the above embodiment. (S13 to S15).

これに対し、イベントの内容が縫製開始であった場合(S31:YES)、CPU101は時刻情報を受信済みか否か判断する(S32)。該判断は、上記S13と同様に、例えばRAM103に受信時計数値が記憶してあるか否かにより判断すればよい。時刻情報を既に受信している場合(S32:YES)、CPU101は縫製開始のイベント発生時のインターバルカウンタ105の計数値から時刻を計算し(S33)、イベントの内容を時刻と共にログ情報として不揮発性メモリ104に書き込み(S34)、縫製開始し縫製処理を実行する(S35)。   On the other hand, when the content of the event is the start of sewing (S31: YES), the CPU 101 determines whether or not the time information has been received (S32). This determination may be made based on whether or not the received clock value is stored in the RAM 103, for example, as in S13. If the time information has already been received (S32: YES), the CPU 101 calculates the time from the count value of the interval counter 105 at the time of the sewing start event (S33), and the event content is non-volatile as log information along with the time. Writing to the memory 104 (S34), sewing is started and sewing processing is executed (S35).

一方、時刻情報をまだ受信していない場合(S32:NO)、CPU101は、縫製開始を禁止させると共に、音声、表示又は発光手段等を用いたエラー報知を行い(S36)、管理者に対処を促す。CPU101は処理をS32に戻し、処理を繰り返す。故にミシン1は生産管理を行うような状況において、時刻情報なしでミシン1が稼働するのを防止できる。管理者はミシン1の電源をオフしてエラー対処を行うことができる。   On the other hand, when the time information has not been received yet (S32: NO), the CPU 101 prohibits the start of sewing and performs error notification using voice, display, light emitting means, or the like (S36) to deal with the administrator. Prompt. The CPU 101 returns the process to S32 and repeats the process. Therefore, the sewing machine 1 can be prevented from operating without time information in a situation where production management is performed. The administrator can handle the error by turning off the power of the sewing machine 1.

尚、上記変形例でS35の処理を実行するCPU101が本発明の制御手段に相当し、S32:NO,S36の処理を繰り返すCPU101が本発明の禁止手段に相当する。   In the above modification, the CPU 101 that executes the process of S35 corresponds to the control means of the present invention, and the CPU 101 that repeats the processes of S32: NO, S36 corresponds to the prohibition means of the present invention.

尚、本発明は上記変形例の他にも、種々の変更が可能である。上記実施形態では、時刻情報をミシン1に向けて出力する外部装置として、携帯可能な操作端末30を一例として説明したが、据置型PC、ノート型PC、タブレット、スマートフォン等でもよく、時刻情報を出力できる機器であれば何でもよい。また、通信手段はケーブル9のみならず、インターネット回線、RAN回線等、あらゆる通信手段を用いることができる。   The present invention can be variously modified in addition to the above-described modified examples. In the above embodiment, the portable operation terminal 30 has been described as an example of the external device that outputs the time information to the sewing machine 1. However, a stationary PC, a notebook PC, a tablet, a smartphone, or the like may be used. Any device that can output can be used. Further, not only the cable 9 but also any communication means such as an internet line and a RAN line can be used as the communication means.

また、上記実施形態では、図4,図5に示す処理において、時刻再確認の時機が来た場合に(S19:YES)、時刻情報を再取得して(S4,S5)、ミシン1内部の計数値を補正したが(S10)、S19の時刻再確認時機の処理は省略してもよい。   In the above embodiment, in the processing shown in FIGS. 4 and 5, when the time for reconfirming the time comes (S19: YES), the time information is reacquired (S4, S5), and the inside of the sewing machine 1 is acquired. Although the count value is corrected (S10), the process of the time reconfirmation time in S19 may be omitted.

また、上記実施形態では、一時ログ情報をRAM103に記憶しているが、不揮発性メモリ104に記憶してもよい。但し、その場合、不揮発性メモリ104に記憶する一時ログ情報を削除する処理が必要である。   In the above embodiment, the temporary log information is stored in the RAM 103, but may be stored in the nonvolatile memory 104. However, in that case, it is necessary to delete the temporary log information stored in the nonvolatile memory 104.

また、上記実施形態のログ情報作成制御処理(図4,図5)では、ログ情報をカードに書き込む処理を有する為に、S17,S18の処理を実行するが、これらの処理は省略してもよい。また、ログ情報作成制御処理には、不揮発性メモリ104に記憶したログ情報を、操作パネル8又は操作端末30の操作に応じて、操作パネル8のディスプレイ、LCD32等の各種ディスプレイに表示させる処理を追加してもよい。更に、現在の時刻を、操作パネル8又は操作端末30の操作に応じて、操作パネル8のディスプレイ、LCD32等の各種ディスプレイに表示させる処理を追加してもよい。   In the log information creation control process (FIGS. 4 and 5) of the above embodiment, the processes of S17 and S18 are executed because the log information is written to the card. However, these processes may be omitted. Good. The log information creation control process includes a process for displaying the log information stored in the nonvolatile memory 104 on various displays such as the display of the operation panel 8 and the LCD 32 according to the operation of the operation panel 8 or the operation terminal 30. May be added. Furthermore, processing for displaying the current time on various displays such as the display of the operation panel 8 and the LCD 32 according to the operation of the operation panel 8 or the operation terminal 30 may be added.

また、上記実施形態におけるミシン1に発生するイベントの一例として、例えば、縫製データの作成を追加してもよく、縫製データの作成時刻と共にログ情報として不揮発性メモリ104に記憶してもよい。   In addition, as an example of an event that occurs in the sewing machine 1 in the above-described embodiment, for example, creation of sewing data may be added, and may be stored in the nonvolatile memory 104 as log information together with the creation time of the sewing data.

1 ミシン
8 操作パネル
9 ケーブル
30 操作端末
101 CPU
103 RAM
104 不揮発性メモリ
105 インターバルカウンタ
1 sewing machine 8 operation panel 9 cable 30 operation terminal 101 CPU
103 RAM
104 Non-volatile memory 105 Interval counter

Claims (7)

ミシンに関するイベントの発生を検出可能なミシンにおいて、
一定時間毎に計数する計数手段と、
前記計数手段の動作を開始させる計数開始手段と、
前記ミシンの外部との通信を行う通信手段と、
前記計数開始手段による前記計数手段の動作開始時以降に、前記ミシンの外部から前記通信手段を介して時刻情報を取得する取得手段と、
前記取得手段が取得した前記時刻情報に基づき、前記計数手段の計数値が時刻を表すように補正する補正手段と、
前記イベントの発生を検出したか否か判断する第一判断手段と、
前記第一判断手段が前記イベントの発生を検出したと判断した場合、前記補正手段が補正した前記計数値が表す時刻を発生時刻として、前記イベントの内容と対応づけた情報をログ情報としてメモリに記憶する記憶手段と、
前記記憶手段が前記メモリに記憶する前記ログ情報を出力する出力手段と
を備えたことを特徴とするミシン。
In sewing machines that can detect the occurrence of events related to the sewing machine,
Counting means for counting at regular intervals;
Counting start means for starting the operation of the counting means;
Communication means for communicating with the outside of the sewing machine;
An acquisition means for acquiring time information from outside the sewing machine via the communication means after the operation start of the counting means by the counting start means;
Correction means for correcting the count value of the counting means to represent time based on the time information acquired by the acquiring means;
First determination means for determining whether or not the occurrence of the event is detected;
When the first determination unit determines that the occurrence of the event has been detected, the time represented by the count value corrected by the correction unit is set as the generation time, and the information associated with the content of the event is stored in the memory as log information. Storage means for storing;
A sewing machine comprising: the storage means; and output means for outputting the log information stored in the memory.
前記第一判断手段が前記イベントの発生を検出したと判断した場合、前記取得手段が前記時刻情報を取得済みか否か判断する第二判断手段と、
前記第二判断手段が、前記取得手段が前記時刻情報を取得していないと判断した場合に、前記イベントの発生の検出時における前記計数値を記憶する計数値一時記憶手段と、
前記取得手段が前記時刻情報を取得した場合に、前記時刻情報と前記計数値に基づき、前記計数値一時記憶手段が記憶した前記計数値に対応する対応時刻を算出する第二算出手段と、
を備え、
前記記憶手段は、
前記第二算出手段が算出した前記対応時刻と、前記イベントの内容とを対応づけた情報を、前記ログ情報として前記メモリに記憶することを特徴とする請求項1に記載のミシン。
When the first determination means determines that the occurrence of the event has been detected, the second determination means determines whether the acquisition means has already acquired the time information;
Count value temporary storage means for storing the count value at the time of detection of the occurrence of the event when the second determination means determines that the acquisition means has not acquired the time information;
A second calculating unit that calculates a corresponding time corresponding to the count value stored in the count value temporary storage unit based on the time information and the count value when the acquiring unit acquires the time information;
With
The storage means
2. The sewing machine according to claim 1, wherein information associating the corresponding time calculated by the second calculating means with the contents of the event is stored in the memory as the log information.
前記イベントは、縫製開始操作を含み、
前記縫製開始操作に従い、前記ミシンの縫製動作を制御する制御手段と、
前記第二判断手段が、前記取得手段が前記時刻情報を取得していないと判断した場合に、前記取得手段が前記時刻情報を取得するまで、前記制御手段による前記縫製動作の開始を禁止する禁止手段を更に備えることを特徴とする請求項2に記載のミシン。
The event includes a sewing start operation,
Control means for controlling the sewing operation of the sewing machine in accordance with the sewing start operation;
Prohibition of prohibiting the start of the sewing operation by the control unit until the acquisition unit acquires the time information when the second determination unit determines that the acquisition unit has not acquired the time information The sewing machine according to claim 2, further comprising means.
前記計数開始手段は、前記ミシンの起動時に、前記計数手段の動作を開始させることを特徴とする請求項1〜3の何れか一つに記載のミシン。   The sewing machine according to any one of claims 1 to 3, wherein the counting start means starts the operation of the counting means when the sewing machine is activated. 前記通信手段を介した前記ミシンの外部との通信が可能か否か判断する通信判断手段を更に備え、
前記取得手段は、
前記ミシンの起動後、少なくとも前記通信判断手段が前記ミシンの外部との通信が可能であると判断した時機以降に、前記時刻情報を取得することを特徴とする請求項4に記載のミシン。
A communication determining means for determining whether or not communication with the outside of the sewing machine via the communication means is possible;
The acquisition means includes
5. The sewing machine according to claim 4, wherein after the sewing machine is started, the time information is acquired at least after the time when the communication determining unit determines that communication with the outside of the sewing machine is possible.
ミシンに関するイベントの発生を検出可能なミシンの制御方法において、
一定時間毎に計数する計数手段の動作を開始させる計数開始工程と、
前記計数開始工程にて前記計数手段の前記動作開始時以降に、前記ミシンの外部から通信手段を介して時刻情報を取得する取得工程と、
前記取得工程で取得した前記時刻情報に基づき、前記計数手段の計数値が時刻を表すように補正する補正工程と、
前記イベントの発生を検出したか否か判断する判断工程と、
前記判断工程で前記イベントの発生を検出したと判断した場合、前記補正工程で補正した前記計数値が表す時刻を発生時刻として、前記イベントの内容と対応づけた情報をログ情報としてメモリに記憶する記憶工程と、
前記記憶工程で前記メモリに記憶する前記ログ情報を出力する出力工程と
を備えたことを特徴とするミシンの制御方法。
In a sewing machine control method capable of detecting the occurrence of an event related to the sewing machine,
A counting start step for starting the operation of the counting means for counting every certain time;
An acquisition step of acquiring time information from outside the sewing machine via a communication unit after the operation start of the counting unit in the counting start step;
Based on the time information acquired in the acquisition step, a correction step for correcting the count value of the counting means to represent time,
A determination step of determining whether or not the occurrence of the event is detected;
When it is determined that the occurrence of the event is detected in the determination step, the time represented by the count value corrected in the correction step is used as the generation time, and information associated with the content of the event is stored in the memory as log information. Memory process;
An output method for outputting the log information stored in the memory in the storage step.
ミシンに関するイベントの発生を検出可能なミシンのコンピュータに実行させるためのミシンの制御プログラムであって、
一定時間毎に計数する計数手段の動作を開始させる計数開始ステップと、
前記計数開始ステップにて前記計数手段の動作開始時以降に、前記ミシンの外部から通信手段を介して時刻情報を取得する取得ステップと、
前記取得ステップで取得した前記時刻情報に基づき、前記計数手段の計数値が時刻を表すように補正する補正ステップと、
前記イベントの発生を検出したか否か判断する判断ステップと、
前記判断ステップで前記イベントの発生を検出したと判断した場合、前記補正ステップで補正した前記計数値が表す時刻を発生時刻として、前記イベントの内容と対応づけた情報を前記ログ情報としてメモリに記憶する記憶ステップと、
前記記憶ステップで前記メモリに記憶する前記ログ情報を出力する出力ステップと
を含むことを特徴とする前記ミシンのコンピュータに実行させるためのミシンの制御プログラム。
A sewing machine control program for causing a computer of a sewing machine capable of detecting the occurrence of an event relating to the sewing machine to execute the machine,
A counting start step for starting the operation of the counting means for counting at regular intervals;
An acquisition step of acquiring time information from outside the sewing machine via a communication unit after the operation start of the counting unit in the counting start step;
Based on the time information acquired in the acquisition step, a correction step for correcting the count value of the counting means to represent time,
A determination step of determining whether or not the occurrence of the event is detected;
If it is determined that the occurrence of the event is detected in the determination step, the time represented by the count value corrected in the correction step is used as the generation time, and information associated with the content of the event is stored in the memory as the log information. A memory step to
An output step of outputting the log information stored in the memory in the storage step. A sewing machine control program for causing a computer of the sewing machine to execute the program.
JP2013232290A 2013-11-08 2013-11-08 Sewing machine, method for controlling sewing machine, and program for controlling sewing machine Pending JP2015092907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013232290A JP2015092907A (en) 2013-11-08 2013-11-08 Sewing machine, method for controlling sewing machine, and program for controlling sewing machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013232290A JP2015092907A (en) 2013-11-08 2013-11-08 Sewing machine, method for controlling sewing machine, and program for controlling sewing machine

Publications (1)

Publication Number Publication Date
JP2015092907A true JP2015092907A (en) 2015-05-18

Family

ID=53195751

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013232290A Pending JP2015092907A (en) 2013-11-08 2013-11-08 Sewing machine, method for controlling sewing machine, and program for controlling sewing machine

Country Status (1)

Country Link
JP (1) JP2015092907A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935465A (en) * 2015-06-17 2015-09-23 北京京东尚科信息技术有限公司 Log generating method and log generating device of client application program, and server
CN109208186A (en) * 2017-06-30 2019-01-15 Juki株式会社 Production management system, sewing machine and production management device
CN110699863A (en) * 2019-09-24 2020-01-17 杰克缝纫机股份有限公司 Timing method, system, computer readable storage medium and server
CN112095233A (en) * 2019-06-17 2020-12-18 杰克缝纫机股份有限公司 Time information providing system, method, medium, terminal, and sewing device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935465A (en) * 2015-06-17 2015-09-23 北京京东尚科信息技术有限公司 Log generating method and log generating device of client application program, and server
CN109208186A (en) * 2017-06-30 2019-01-15 Juki株式会社 Production management system, sewing machine and production management device
JP2019010339A (en) * 2017-06-30 2019-01-24 Juki株式会社 Production management system, sewing machine and production management device
JP7060926B2 (en) 2017-06-30 2022-04-27 Juki株式会社 Production control system and production control equipment
CN112095233A (en) * 2019-06-17 2020-12-18 杰克缝纫机股份有限公司 Time information providing system, method, medium, terminal, and sewing device
CN110699863A (en) * 2019-09-24 2020-01-17 杰克缝纫机股份有限公司 Timing method, system, computer readable storage medium and server

Similar Documents

Publication Publication Date Title
JP5328255B2 (en) Waveform observation apparatus and waveform observation system
JP2015092907A (en) Sewing machine, method for controlling sewing machine, and program for controlling sewing machine
US9805484B2 (en) Graph display control device, electronic device, graph display method and storage medium recording graph display control processing program
US9957651B2 (en) Sewing data generating apparatus, sewing data generating method, recording medium for storing program, and sewing system
US8594829B2 (en) Sewing machine and computer program product stored on non-transitory computer-readable medium
US8594830B2 (en) Computer controlled embroidery sewing machine with image capturing
JP2011234959A (en) Sewing machine
US20120109357A1 (en) Sewing machine and computer program product
US10626534B2 (en) Sewing machine and non-transitory computer-readable medium
JP6604171B2 (en) Embroidery pattern editing program and embroidery pattern editing apparatus
US9399831B2 (en) Sewing machine and non-transitory computer- readable medium storing sewing machine control program
JP2014023798A (en) Sewing machine
WO2017056676A1 (en) Sewing machine and sewing machine program
JP2009297190A (en) Sewing machine
KR101257750B1 (en) Embroidering machine and Calibration method thereof
JP5319201B2 (en) Waveform observation device
JP2013074970A (en) Sewing machine
JP2012192156A (en) Sewing machine
JP2012135541A (en) Sewing machine system, sewing machine, and storage device
JP7294184B2 (en) multi-needle sewing machine
JP2014167194A (en) Sewing machine, sewing data preparation device and sewing time presentation method
JP5415642B2 (en) Waveform observation device
JP2020156831A (en) Sewing data processing device and sewing machine
JP2011055945A (en) Embroidery frame and sewing machine
JP2006198395A (en) Production controller for sewing machine