WO2017130734A1 - ミシン及び縫製データ編集プログラム - Google Patents

ミシン及び縫製データ編集プログラム Download PDF

Info

Publication number
WO2017130734A1
WO2017130734A1 PCT/JP2017/000991 JP2017000991W WO2017130734A1 WO 2017130734 A1 WO2017130734 A1 WO 2017130734A1 JP 2017000991 W JP2017000991 W JP 2017000991W WO 2017130734 A1 WO2017130734 A1 WO 2017130734A1
Authority
WO
WIPO (PCT)
Prior art keywords
pattern
cpu
specified
editing
selected pattern
Prior art date
Application number
PCT/JP2017/000991
Other languages
English (en)
French (fr)
Inventor
杏樹 横山
恒雄 奥山
Original Assignee
ブラザー工業株式会社
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 ブラザー工業株式会社 filed Critical ブラザー工業株式会社
Publication of WO2017130734A1 publication Critical patent/WO2017130734A1/ja
Priority to US16/041,406 priority Critical patent/US10662564B2/en

Links

Images

Classifications

    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B19/00Programme-controlled sewing machines
    • D05B19/02Sewing machines having electronic memory or microprocessor control unit
    • D05B19/04Sewing machines having electronic memory or microprocessor control unit characterised by memory aspects
    • D05B19/10Arrangements for selecting combinations of stitch or pattern data from memory ; Handling data in order to control stitch format, e.g. size, direction, mirror image
    • D05B19/105Physical layout of switches or displays; Switches co-operating with the display
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B19/00Programme-controlled sewing machines
    • D05B19/02Sewing machines having electronic memory or microprocessor control unit
    • D05B19/04Sewing machines having electronic memory or microprocessor control unit characterised by memory aspects
    • D05B19/06Physical exchange of memory
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B19/00Programme-controlled sewing machines
    • D05B19/02Sewing machines having electronic memory or microprocessor control unit
    • D05B19/04Sewing machines having electronic memory or microprocessor control unit characterised by memory aspects
    • D05B19/08Arrangements for inputting stitch or pattern data to memory ; Editing stitch or pattern data
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B19/00Programme-controlled sewing machines
    • D05B19/02Sewing machines having electronic memory or microprocessor control unit
    • D05B19/12Sewing machines having electronic memory or microprocessor control unit characterised by control of operation of machine
    • D05B19/14Control of needle movement, e.g. varying amplitude or period of needle movement
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B69/00Driving-gear; Control devices
    • D05B69/20Control devices responsive to the number of stitches made
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05CEMBROIDERING; TUFTING
    • D05C5/00Embroidering machines with arrangements for automatic control of a series of individual steps
    • D05C5/04Embroidering machines with arrangements for automatic control of a series of individual steps by input of recorded information, e.g. on perforated tape
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/408Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by data handling or data format, e.g. reading, buffering or conversion of data
    • G05B19/4086Coordinate conversions; Other special calculations
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • G05B19/40931Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine concerning programming of geometry
    • G05B19/40935Selection of predetermined shapes and defining the dimensions with parameter input
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05DINDEXING SCHEME ASSOCIATED WITH SUBCLASSES D05B AND D05C, RELATING TO SEWING, EMBROIDERING AND TUFTING
    • D05D2205/00Interface between the operator and the machine
    • D05D2205/02Operator to the machine
    • D05D2205/08Buttons, e.g. for pattern selection; Keyboards
    • D05D2205/085Buttons, e.g. for pattern selection; Keyboards combined with a display arrangement, e.g. touch sensitive control panel
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05DINDEXING SCHEME ASSOCIATED WITH SUBCLASSES D05B AND D05C, RELATING TO SEWING, EMBROIDERING AND TUFTING
    • D05D2205/00Interface between the operator and the machine
    • D05D2205/12Machine to the operator; Alarms
    • D05D2205/16Display arrangements
    • D05D2205/18Screens
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2626Sewing
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/45Nc applications
    • G05B2219/45195Sewing machines

Definitions

  • the present invention relates to a sewing machine and a sewing data editing program.
  • Patent Document 1 An embroidery sewing machine having a display unit and an input unit is known (for example, see Patent Document 1).
  • the sewing machine described in Patent Document 1 displays a pattern to be sewn on the display unit, and can edit the displayed pattern in accordance with an operation of the input unit by the user.
  • An object of the present invention is to provide a sewing machine and a sewing data editing program with improved operability when editing a combination of a plurality of patterns.
  • the sewing machine includes a display unit that displays an image, an input unit that inputs an instruction to select a specific instruction position of the display unit, and a control unit, and the control unit stores A pattern acquisition unit that acquires a selected pattern selected from a plurality of embroidery patterns stored in the unit; a display control unit that displays a pattern image representing the selected pattern on the display unit; and the instruction by the input unit.
  • a plurality of the patterns displayed on the display unit in response to a plurality of executions of a process of acquiring the selected pattern and a process of acquiring the selected pattern when the instruction is input.
  • a determination unit that determines whether any one of the images is displayed at the indicated position specified by the position specifying unit; and a plurality of the selected patterns when it is determined that the image is displayed by the determination unit.
  • a mask region including the selected pattern is set at the designated position. It functions as target specifying means for specifying the selected pattern as the editing target and editing means for editing the editing target specified by the target specifying means.
  • the editing target specifying method is changed according to the determination result of which one of the plurality of selected patterns exists at the designated position.
  • the sewing machine can improve the convenience of the user when specifying an editing target from among a plurality of selection patterns scheduled to be sewn.
  • the sewing data editing program includes a pattern acquisition means for acquiring a selected pattern selected from a plurality of embroidery patterns stored in a storage unit by a computer of a sewing data editing apparatus, and the selected pattern
  • An instruction to select a specific designated position on the display unit is input by the display control means for displaying the pattern image representing the pattern image on the display unit of the sewing data editing device and the input unit of the sewing data editing device.
  • any one of the plurality of pattern images displayed on the display unit in response to the process of acquiring the selected pattern indicated by the instruction and the process of acquiring the selected pattern being performed a plurality of times.
  • the selected pattern in which the pattern image is displayed at the indicated position is specified as an editing target from among the plurality of selected patterns, and the selected position is not selected as being displayed by the determining unit.
  • the sewing data editing apparatus determines whether any one of a plurality of selected patterns exists at the designated position. Depending on the result, the method for specifying the editing target is changed.
  • the sewing data editing apparatus can improve the convenience of the user when specifying an editing target from among a plurality of selection patterns scheduled to be sewn.
  • FIG. 1 is a perspective view of a multi-needle sewing machine 1.
  • FIG. 1 is a block diagram showing an electrical configuration of a multi-needle sewing machine 1.
  • FIG. It is a flowchart of a main process. It is explanatory drawing of the screen 70 displayed on the liquid crystal display. It is explanatory drawing of the process which selects and edits an embroidery pattern. It is a flowchart of the edit object specific process performed by the main process of FIG. It is explanatory drawing of the display order of selection pattern SE1 to SE4. This is a thread color editing process executed in the main process of the second embodiment. It is explanatory drawing of the display order of the screen 90 displayed on the liquid crystal display 7, and selection pattern SE5 and SE6.
  • FIG. 1 A physical configuration of a multi-needle sewing machine (hereinafter simply referred to as a sewing machine) 1 common to the first and second embodiments will be described with reference to FIG.
  • the upper side, the lower side, the left diagonal lower side, the right diagonal upper side, the left diagonal upper side, and the right diagonal lower side of FIG. 1 are respectively the upper side, lower side, front side, rear side, left side, and right side of the sewing machine 1. To do.
  • the sewing machine 1 includes a support portion 2, a pedestal portion 3, and an arm portion 4.
  • the support portion 2 supports the entire sewing machine 1.
  • the pedestal 3 is erected upward from the rear end of the support 2.
  • the arm portion 4 extends forward from the upper end portion of the pedestal column portion 3.
  • a needle bar case 21 is attached to the tip of the arm portion 4 so as to be movable in the left-right direction.
  • ten needle bars 31 (see FIG. 2) extending in the vertical direction are arranged at equal intervals in the horizontal direction. Of the ten needle bars 31, one needle bar (sewing needle bar) at the sewing position is slid in the vertical direction by the needle bar drive mechanism 32 (see FIG. 2).
  • a sewing needle (not shown) can be attached to the lower end of the needle bar 31.
  • the presser foot (not shown) intermittently presses the workpiece C (for example, work cloth) downward in conjunction with the vertical movement of the needle bar 31.
  • the arm unit 4 is provided with an operation unit 6.
  • the operation unit 6 includes a liquid crystal display (LCD) 7, a touch panel 8, a connector 9, a start / stop switch 41, and a threading switch 42.
  • LCD liquid crystal display
  • the touch panel 8 is used for receiving instructions from the user.
  • Various conditions such as a sewing pattern and a sewing condition can be selected or set by the user pressing a position on the touch panel 8 corresponding to the position of the input key or the like displayed on the LCD 7 with a finger or a touch pen.
  • the user's pressing operation with a finger or a stylus pen on the touch panel 8 is hereinafter referred to as “panel operation”.
  • the connector 9 is a USB standard connector and can be connected to the USB device 160 (see FIG. 2).
  • the start / stop switch 41 is used when instructing the start or stop of sewing. When the start / stop switch 41 is pressed while sewing is stopped, sewing is started. When the start / stop switch 41 is pressed during sewing, sewing is stopped.
  • a cylindrical cylinder bed 10 extending forward from the lower end portion of the pedestal column portion 3 is provided below the arm portion 4.
  • a hook (not shown) is provided inside the tip of the cylinder bed 10.
  • the hook stores a bobbin (not shown) around which a lower thread (not shown) is wound.
  • a shuttle driving mechanism (not shown) rotationally drives the shuttle.
  • the needle plate 16 is provided with a needle hole 36 through which a sewing needle (see FIG. 2) is inserted. Of the ten needle bars 31, the needle bar 31 positioned immediately above the needle hole 36 is a sewing needle bar.
  • the embroidery frame moving mechanism 11 supports the embroidery frame 84 in a detachable manner.
  • the embroidery frame 84 holds the sewing product C.
  • the embroidery frame moving mechanism 11 uses an X-axis motor 132 (see FIG. 2) and a Y-axis motor 134 (see FIG. 2) as drive sources, and the embroidery frame 84 mounted on the Y carriage 26 is moved to a unique XY coordinate system (embroidery). It can be moved to the position indicated by the coordinate system.
  • a unique XY coordinate system embroidery
  • the embroidery coordinate system for example, the right side, the left side, the front side, and the rear side of the sewing machine 1 are the X plus direction, the X minus direction, the Y minus direction, and the Y plus direction.
  • a pair of left and right thread spool bases 12 are provided on the back side of the upper surface of the arm portion 4. Each thread spool base 12 is provided with five thread spools 14.
  • the thread stand bar 14 is a bar extending in the vertical direction.
  • the spool pin 14 supports the yarn spool 13.
  • Ten thread spools 13 that are the same as the number of needle bars 31 can be installed on the pair of thread spool bases 12.
  • the upper thread 15 is supplied from a thread spool 13 installed on the thread spool base 12.
  • the upper thread 15 is supplied to the eye holes (not shown) of the respective sewing needles attached to the lower end of the needle bar 31 via the thread path.
  • the yarn path includes a thread guide 17, a thread tensioner 18, and a balance 19.
  • the sewing machine 1 includes a sewing needle drive unit 120, a sewing target drive unit 130, an operation unit 6, and a control unit 60.
  • the sewing needle drive unit 120 includes drive circuits 121, 123, and 125, a spindle motor 122, a needle bar case motor 45, and a threading motor 127.
  • the spindle motor 122 drives the needle bar drive mechanism 32 to reciprocate the sewing needle bar in the vertical direction.
  • the drive circuit 121 drives the spindle motor 122 according to a control signal from the control unit 60.
  • the needle bar case motor 45 moves the needle bar case 21 in the left-right direction.
  • the drive circuit 123 drives the needle bar case motor 45 in accordance with a control signal from the control unit 60.
  • the threading motor 127 is a pulse motor that drives the threading mechanism 126.
  • the drive circuit 125 drives the threading motor 127 according to the control signal from the control unit 60.
  • the sewing target drive unit 130 includes drive circuits 131 and 133, an X-axis motor 132, and a Y-axis motor 134.
  • the X-axis motor 132 drives the embroidery frame moving mechanism 11 to move the embroidery frame 84 attached to the Y carriage 26 in the left-right direction.
  • the drive circuit 131 drives the X-axis motor 132 according to a control signal from the control unit 60.
  • the Y-axis motor 134 drives the embroidery frame moving mechanism 11 to move the embroidery frame 84 in the front-rear direction.
  • the drive circuit 133 drives the Y-axis motor 134 according to a control signal from the control unit 60.
  • the operation unit 6 includes a touch panel 8, a connector 9, a drive circuit 135, an LCD 7, a start / stop switch 41, and a threading switch 42.
  • the drive circuit 135 drives the LCD 7 according to a control signal from the control unit 60.
  • the connector 9 has a function of connecting to the USB device 160. Examples of the USB device 160 include a PC and a USB memory.
  • the control unit 60 includes a CPU 61, a ROM 62, a RAM 63, a flash memory 64, and an input / output interface (I / O) 66, which are connected to each other by a bus 65.
  • the I / O 66 is further connected to a sewing needle drive unit 120, a sewing target drive unit 130, and an operation unit 6.
  • the CPU 61 controls the main control of the sewing machine 1.
  • the CPU 61 executes various calculations and processes related to sewing according to various programs stored in a program storage area (not shown) of the ROM 62.
  • the ROM 62 includes a plurality of storage areas including a program storage area.
  • Various programs for operating the sewing machine 1 including the main program (sewing data editing program) are stored in the program storage area.
  • the main program is a program for executing main processing described later.
  • the RAM 63 is a storage element that can be arbitrarily read and written.
  • the RAM 63 includes a storage area for storing the calculation results and the like calculated by the CPU 61 as necessary.
  • the flash memory 64 is a readable / writable storage element.
  • the flash memory 64 stores various parameters for the sewing machine 1 to execute various processes.
  • the flash memory 64 includes a pattern storage area 67.
  • the pattern storage area 67 stores sewing data for sewing patterns that can be sewn with the sewing machine 1 for each of the plurality of patterns.
  • the sewing data includes stitch data for each thread color data.
  • the thread color data is data indicating the color of the thread forming the stitch.
  • the stitch data is data indicating the stitch formation position (needle drop position) included in the embroidery pattern in coordinates of the embroidery coordinate system. That is, the sewing data includes data indicating the stitch formation position for each stitch color.
  • the embroidery frame 84 holding the sewing product C is supported by the embroidery frame moving mechanism 11.
  • the embroidery frame 84 is moved to a predetermined position by the embroidery frame moving mechanism 11.
  • the main shaft (not shown) is rotationally driven by the main shaft motor 122
  • the needle bar drive mechanism 32 and the balance drive mechanism (not shown) are driven, and the selected needle bar 31 and the corresponding balance 19 are driven up and down.
  • the shuttle drive mechanism is driven by the rotation of the spindle motor 122, and the shuttle is driven to rotate. In this way, the sewing needle, the balance 19 and the shuttle are driven in synchronization with each other, and stitches are formed on the workpiece C.
  • the outline of the main process that can be executed by the sewing machine 1 will be described.
  • the user can appropriately select an embroidery pattern to be sewn from among a plurality of embroidery patterns stored in the pattern storage area 67 of the flash memory 64.
  • the CPU 61 acquires a selected pattern selected from the plurality of embroidery patterns stored in the pattern storage area 67.
  • the CPU 61 displays a pattern image representing the selected pattern on the LCD 7.
  • the pattern image has the same shape as the selected pattern. For example, when the selected pattern is circular, the shape of the pattern image is also circular.
  • the CPU 61 accepts editing of the selected pattern.
  • the sewing machine 1 specifies one of the plurality of selected patterns as an editing target, and determines the specified editing target according to an editing instruction from the user.
  • an editing instruction from the user.
  • the CPU 61 specifies an instruction position indicated by the instruction.
  • the CPU 61 specifies a selection pattern to be edited based on the designated position from among the plurality of selection patterns. Specifically, the CPU 61 determines whether any of the plurality of pattern images displayed on the LCD 7 is displayed at the designated position.
  • the CPU 61 specifies a selected pattern in which a pattern image is displayed at the designated position as an editing target from among a plurality of selected patterns.
  • the CPU 61 identifies the selected pattern in which the mask area is set at the designated position as the editing target.
  • the mask area is an area having a predetermined shape that includes a selected pattern (pattern image).
  • the CPU 61 edits the specified editing target in accordance with the instruction.
  • the main processing of the first embodiment will be described with reference to FIGS.
  • the main processing is started when the user inputs an instruction to start processing for selecting and editing an embroidery pattern to be sewn.
  • the CPU 61 detects the instruction, the CPU 61 reads out to the RAM 63 a main program for executing the main processing stored in the program storage area of the ROM 62.
  • the CPU 61 executes the following steps in accordance with instructions included in the main program read into the RAM 63.
  • Various parameters such as a threshold value necessary for executing the main process are stored in the flash memory 64.
  • Various data obtained in the course of the main process is stored in the RAM 63 as appropriate.
  • the CPU 61 displays the screen 70 of FIG. 4 on the LCD 7 (S1).
  • the screen 70 includes columns 71 to 73.
  • a pattern image representing the selected pattern selected by the user is displayed.
  • the coordinates of the image coordinate system are set.
  • the X-axis direction of the image coordinate system is the left-right direction in FIG.
  • the X-axis direction of the image coordinate system corresponds to the X-axis of the embroidery coordinate system.
  • the Y-axis direction of the image coordinate system is the vertical direction in FIG.
  • the Y-axis direction of the image coordinate system corresponds to the Y-axis of the embroidery coordinate system.
  • the size and arrangement of the pattern image in the column 71 represent the size and arrangement when the selected pattern corresponding to the pattern image is sewn on the sewing product C.
  • a key 81 is displayed below the column 71.
  • the key 81 is a key for inputting an instruction to change the display magnification of the selected pattern displayed in the column 71.
  • a plurality of pattern images representing candidates of embroidery patterns scheduled to be sewn are displayed.
  • the pattern image is an image representing an embroidery pattern stored in the pattern storage area 67 of the flash memory 64, and is displayed based on the sewing data.
  • pattern images of the embroidery patterns E1 to E6 are displayed.
  • the embroidery patterns E1 and E2 are patterns representing the alphabet letter “A” which is sewn with one color thread.
  • a predetermined stitch is formed inside the contour line of the embroidery pattern E1.
  • a predetermined stitch is not formed inside the contour line of the embroidery pattern E2.
  • the embroidery pattern E3 is an oval frame-shaped pattern that is sewn with one color thread.
  • the embroidery pattern E4 is a diamond-shaped frame pattern that is sewn with one color thread.
  • the embroidery pattern E5 is a star-shaped pattern sewn with one color thread.
  • the embroidery pattern E6 is a pattern obtained by combining ten line segment-shaped patterns extending in the vertical direction of FIG.
  • the user can select an embroidery pattern to be sewn with the sewing machine 1 from among the embroidery patterns stored in the pattern storage area 67 as a selected pattern by appropriately selecting the pattern image of the embroidery pattern displayed in the column 72.
  • keys 75 and 76 are displayed in the column 73.
  • the key 75 is a key for inputting an instruction to start processing for editing the selected pattern.
  • the key 76 is a key for inputting an instruction to start sewing.
  • the CPU 61 determines whether an input of an instruction to select an embroidery pattern has been detected (S2).
  • the CPU 61 detects that an instruction to select the embroidery pattern E2 is input (S2: YES).
  • the CPU 61 acquires the embroidery pattern E2 indicated by the detected instruction as the selected pattern SE1, and assigns the display order M on the LCD 7 (S3).
  • the initial value of the display order M is 1.
  • the display order M is set in the selected order. The smaller the display order M, the closer to the back side of the screen 70 is. The larger the display order M, the closer to the front side of the screen 70 is.
  • the CPU 61 generates a pattern image representing the selected pattern SE1 acquired in the process of S3 (S4).
  • the CPU 61 of this example generates a pattern image (pattern image data) in which stitches included in the selected pattern are represented by line segments of a predetermined thickness based on the sewing data of the selected pattern acquired in the process of S3.
  • the CPU 61 determines the color of the line segment representing the stitch based on the thread color data included in the sewing data.
  • the CPU 61 determines the relative positions of the start point and end point of the line segment representing the stitch based on the stitch data included in the sewing data.
  • the pattern image may be an image that can be displayed on the LCD 7.
  • the pattern image is a PNG image composed of a plurality of pixels arranged in a matrix.
  • the pattern image includes a portion representing a stitch included in the selected pattern, and does not include a pixel that does not represent the stitch included in the selected pattern. Pixels that do not represent the stitches of the selected pattern are subjected to transparency processing.
  • the size and shape of the column 71 when the display magnification is 100% represents the size and shape of the sewable area set inside the embroidery frame 84.
  • the sewn area is an area where a seam can be formed.
  • the CPU 61 in this example sets the size of the pattern image according to the size of the column 71, the resolution of the LCD 7, and the size of the selected pattern.
  • the CPU 61 displays the pattern image generated in S4 in the column 71 of the screen 70 displayed on the LCD 7 (S5).
  • the CPU 61 in this example arranges the pattern image F1 in the column 71 (711) of the screen 70 so that the center of the mask area R1 of the pattern image F1 generated in S4 coincides with the center of the column 71.
  • the mask region R1 in this example is a minimum rectangle that includes the selected pattern SE1.
  • the mask area R1 has two sides parallel to the horizontal direction of the LCD 7 corresponding to the X axis of the embroidery coordinate system.
  • the mask region R1 has two sides parallel to the vertical direction of the LCD 7 corresponding to the Y axis of the embroidery coordinate system.
  • the selected pattern SE1 specified as the editing target is displayed in a specific color (for example, red) as the color of the outline of the mask area R1 of the corresponding pattern image F1. That is, the selected pattern specified as the editing target is distinguished from other selected patterns by the display mode of the outline of the mask area.
  • the user can identify which selection pattern the current editing target is based on the display mode of the outline.
  • the user can grasp the size of the selected pattern for the sewable area from the size of the pattern image for the column 71.
  • the CPU 61 determines whether an input of a sewing start instruction has been detected (S13).
  • the instruction to start sewing is input, for example, when the key 76 is selected by panel operation.
  • the CPU 61 returns the process to S2.
  • the CPU 61 displays the selection pattern displayed in the column 71 in the arrangement displayed in the column 71 and the workpiece C held in the embroidery frame 84. (S14).
  • the CPU 61 ends the main process.
  • the CPU 61 determines whether an input of an editing instruction has been detected (S6). When the CPU 61 detects that the key 75 has been selected, it determines that an input of an editing instruction has been detected. When the input of the editing instruction is not detected (S6: NO), the CPU 61 executes the process of S13 described above. When the user selects the key 75 by a panel operation, the CPU 61 detects an input of an editing instruction (S6: YES). In this case, the CPU 61 displays the screen 80 on the LCD 7 (S7).
  • the screen 80 is a screen in which the column 72 is changed to the column 74 and the keys 75 and 76 in the column 73 are changed to keys 78 and 79 in the screen 70.
  • the screen 80 includes the same column 71 as the screen 70.
  • keys K1 to K6 for inputting an instruction to edit the editing target are displayed.
  • the key K1 is a key for inputting an instruction to change the arrangement of editing objects.
  • the key K2 is a key for inputting an instruction to change the size of the editing target.
  • the key K3 is a key for inputting an instruction to rotate the editing target.
  • the key K4 is a key for inputting an instruction to reverse the edit pattern from side to side.
  • the key K5 is a key for inputting an instruction to change the yarn density to be edited.
  • the key K6 is a key for inputting an instruction to change the thread color to be edited.
  • the key 78 is a key for inputting an instruction to delete the editing target.
  • a key 79 is a key for inputting an instruction to end editing.
  • the CPU 61 determines whether an instruction to select a specific display position in the column 71 has been detected (S8).
  • the sewing machine 1 of this example can specify a selection pattern to be edited in accordance with the indicated display position in the column 71.
  • a plurality of pattern images are displayed in the column 71 of the LCD 7.
  • the display position where the pattern image corresponding to the desired selected pattern displayed in the column 71 is displayed. Select by panel operation.
  • the CPU 61 determines whether an input of an editing instruction has been detected (S9).
  • the CPU 61 When the CPU 61 detects that any one of the keys K1 to K6 and the key 78 has been selected, it determines that an editing instruction has been input (S9: YES). For example, when the operation (2) for selecting the key K1 is executed by the user, the CPU 61 detects that an editing instruction has been input (S9: YES). In this case, the CPU 61 executes an editing process corresponding to the instruction input to the editing target (S11). In response to the panel operation of the key K1, the CPU 61 executes a process of changing the arrangement of the editing target in the direction indicated by the instruction by the amount indicated by the instruction. The CPU 61 displays a column 71 (712) in which the arrangement of the pattern image F1 is changed according to the editing content. The CPU 61 corrects the sewing data of the selected pattern according to the edited content of the selected pattern.
  • the CPU 61 displays a screen for designating the size of the editing target, and displays the editing target according to the instruction input on the screen.
  • a process of changing the size is executed (S11).
  • the CPU 61 displays a screen for specifying the rotation direction and rotation angle of the editing target, and changes the angle of the editing target in accordance with the instruction input on the screen. Is executed (S11).
  • the CPU 61 executes a process for horizontally inverting the editing target (S11).
  • the CPU 61 displays a screen for specifying the thread density to be edited, and sets the thread density to be edited to a value indicated by the instruction in accordance with the instruction input on the screen.
  • a change process is executed (S11).
  • the CPU 61 displays a screen for specifying the thread color to be edited, and executes a process for changing the thread color to be edited in accordance with an instruction input on the screen. (S11).
  • the CPU 61 executes a process for deleting the editing target (S11). In S ⁇ b> 11, the CPU 61 executes correction or deletion of the pattern image to be edited according to the editing content, and updates the column 71. The CPU 61 corrects the sewing data to be edited according to the editing content.
  • the CPU 61 executes an edit target specifying process (S10).
  • S10 processing for specifying a selection pattern to be edited is executed based on the position designated by the panel operation. Details of the edit target specifying process will be described later.
  • the CPU 61 determines whether the input of the editing end instruction is detected (S12). When detecting that the key 79 has been selected, the CPU 61 determines that an input of an instruction to end editing has been detected.
  • the CPU 61 detects that an instruction to select the embroidery pattern E1 is input (S2: YES). In this case, the CPU 61 acquires the embroidery pattern E1 indicated by the detected instruction as the selected pattern SE2, and assigns 2 to the display order M on the LCD 7 (S3). The CPU 61 generates a pattern image F2 representing the acquired selected pattern SE2 (S4). The CPU 61 displays the pattern image F2 generated in S4 in the column 71 (713) (S5).
  • the CPU 61 When the user performs an operation (4) for sequentially selecting the key 75, the point P1 (see FIG. 5), the key K1, the point P2 (see FIG. 5), the key K2, and the key K1, the CPU 61 When selection is detected (S6: YES), the screen 80 is displayed on the LCD 7 (S7). When the CPU 61 detects selection of the point P1 in the column 71 (S8: YES), the CPU 61 executes an edit target specifying process (S10). As shown in FIG. 6, in the edit target specifying process, the CPU 61 specifies the indicated position based on the display position of the point P1 in the column 71 selected by the panel operation (S21).
  • the CPU 61 in this example specifies a predetermined range including the display position input on the touch panel 8 as the designated position.
  • the predetermined range in S21 may be set as appropriate, and is one dot on the LCD 7 in this example.
  • the CPU 61 specifies the display position input on the touch panel 8 as it is as the designated position.
  • the CPU 61 in this example specifies the display position of the point P1 using the coordinates of the image coordinate system set in the column 71.
  • the CPU 61 sets 1 to the variable N (S22).
  • the variable N is a variable for acquiring the pattern image of the selected pattern according to a predetermined order (calling order).
  • the CPU 61 of this example preferentially specifies the selected pattern of the pattern image arranged on the forefront side among the plurality of pattern images arranged from the foreground to the foreground on the LCD 7 as an editing target. That is, the CPU 61 acquires pattern images in descending order of the display order M assigned in S3.
  • the CPU 61 acquires a pattern image representing the Nth selected pattern in the calling order, and specifies a mask area of the Nth pattern image (S23).
  • the CPU 61 specifies the range of the mask region R2 of the pattern image F2 whose display order M is 2.
  • the CPU 61 determines whether or not the indicated position acquired in S21 is within the mask area R2 specified in S23 (S24). As shown in FIG. 5, it is determined that the point P1 is not within the mask region R2 (S24: NO), and the CPU 61 determines whether the variable N is the last call order (S26).
  • the CPU 61 ends the editing target specifying process without specifying the editing target based on the position acquired in S21, and the process is the main process of FIG. Return to.
  • the editing target in this case remains the selected pattern specified as the editing target at the time of starting the process of S10.
  • it is determined that 1 is not the last calling order (S26: NO) and the CPU 61 increments the variable N by 1 (S27) and returns the process to S23.
  • the CPU 61 acquires the pattern image F1 of the selected pattern SE1 having the second calling order, and specifies the mask area R1 of the pattern image F1 (S23).
  • the CPU 61 determines that the point P1 is within the mask region R1 (S24: YES), and temporarily specifies the selected pattern SE1 as an editing target (S25).
  • the CPU 61 acquires the size and coordinates of the mask area of the selected pattern whose call order is the Nth (S31).
  • the size of the mask area in this example is represented by the length of the side of the rectangular mask area.
  • the size of the mask region may be an area calculated based on the coordinates of the image coordinate system of the mask region.
  • the coordinates of the mask area are the coordinates of the image coordinate system of the reference point of the mask area.
  • the reference point may be determined in advance, and is, for example, the upper left vertex of the rectangular mask region.
  • the CPU 61 determines whether the size of the mask area R1 acquired in S31 is larger than a threshold value (S32).
  • the threshold value of S32 is determined in advance in consideration of the size of the column 71 for displaying the pattern image, the size of the embroidery frame 84 (sewable area) to be used, the resolution of the LCD 7, and the like.
  • the threshold value in S32 may be at least one of the short side and the long side. In this example, as an example, the threshold value is set to 20 dots for the length of the short side of the mask area on the LCD 7 and stored in the flash memory 64.
  • the CPU 61 executes a process of S36 described later.
  • the CPU 61 determines that the size of the mask area R1 is larger than the threshold (S33). That is, the CPU 61 determines that each of the length in the X-axis direction and the length in the Y-axis direction of the mask region R1 on the LCD 7 is larger than the threshold value of 20 dots.
  • the CPU 61 calculates a value K representing the number of stitches relative to the size of the mask area (S33).
  • the number of stitches is acquired from the sewing data corresponding to the Nth pattern image.
  • the size of the mask area is proportional to the size of the embroidery pattern. Therefore, the value K is proportional to the number of stitches with respect to the size of the embroidery pattern.
  • the value K is larger, the number of needles per unit area in the mask region is larger than when the value K is smaller.
  • the selection patterns SE1 and SE2 in the column 713 have the same mask area size, but the value K is larger in the selection pattern SE2 than in the selection pattern SE1.
  • the CPU 61 determines whether the value K is larger than the threshold value (S34).
  • the threshold value in S34 is determined in advance in consideration of the size of the column 71 for displaying the pattern image, the size of the embroidery frame 84 (sewing possible area) to be used, the resolution of the LCD 7, the length of the stitches, and the like.
  • the threshold value of S34 is 1 in 25 stitches on the LCD 7 and stored in the flash memory 64.
  • the CPU 61 specifies the indicated position with the first range including the position acquired in S21 as a predetermined range (S35).
  • the first range in this example is a 5-dot square range centered on the pixel at the position acquired in S21.
  • a first predetermined amount (2 dots) in each of the upper and lower sides (Y-axis direction of the image coordinate system) and the left and right (X-axis direction of the image coordinate system) in FIG. This is an expanded square area.
  • the CPU 61 specifies the designated position Q1 with the second range wider than the first range as a predetermined range (S36).
  • the second range of this example is an 11-dot square range centered on the pixel at the position acquired in S21. That is, it is a square-shaped range centered on the pixel at the position acquired in S21 and extended in the second predetermined amount (5 dots) larger than the first predetermined amount in each of the top, bottom, left and right in FIG.
  • the CPU 61 displays an image representing the stitches of the selected pattern whose call order is the Nth in the designated position specified in S35 or S36 (specifically, among the pixels constituting the pattern image). It is determined whether there is a pixel representing a stitch) (S37). The CPU 61 determines whether there is an image representing the stitch of the selected pattern in the designated position based on the coordinates of the reference point of the mask area acquired in S31 and the stitch data of the sewing data of the Nth selected pattern. . As shown in FIG. 5, the designated position Q1 includes an image representing a stitch of the selected pattern SE1 (S37: YES). In this case, the CPU 61 specifies the selection pattern having the Nth calling order as an editing target (S38).
  • the CPU 61 selects the editing target specified in S38 (S39).
  • the CPU 61 displays the outline of the mask region R1 of the pattern image F1 in a specific color. If there is no image representing the stitch of the Nth selected pattern in the calling position in the designated position (S37: NO), it is determined whether the variable N is the last calling order (S40). When the variable N is not the last calling order (S40: NO), the CPU 61 increments the variable N by 1 (S42), and then returns the process to S31. When the variable N is the last calling order (S40: YES), the CPU 61 identifies the selection pattern that has been provisionally identified in the process of S25 as an editing target (S43). The CPU 61 selects the editing target specified in S43 (S44). After the process of S39 or S44, the CPU 61 ends the edit target specifying process and returns the process to the main process of FIG.
  • the CPU 61 detects that an editing instruction has been input (S12: NO, S8: NO, S9: YES).
  • the CPU 61 executes a process of changing the arrangement of the selected pattern SE1 to be edited in the direction indicated by the instruction by the amount indicated by the instruction (S11).
  • the CPU 61 detects that a specific position in the column 71 has been input (S12: NO, S8: YES).
  • the CPU 61 specifies the mask region R2 of the pattern image F2 of the selected pattern SE2 having the first calling order (S23).
  • the CPU 61 determines that the point P2 is within the mask region R2 (S24: YES), and temporarily specifies the selected pattern SE2 as an editing target (S25).
  • the CPU 61 acquires the size and coordinates of the mask region R2 (S31). It is determined that the size of the mask region R2 is larger than the threshold (S32: YES), and the CPU 61 calculates a value K (S33). The value K is determined to be larger than the threshold value (S34: YES), and the CPU 61 specifies the designated position Q2 with the first range as a predetermined range (S35).
  • the CPU 61 determines that there is an image representing the stitch of the selected pattern SE2 in the designated position Q2 (S37: YES), specifies the selected pattern SE2 as an editing target (S38), and selects it (S39).
  • the CPU 61 detects that an editing instruction has been input (S12: NO, S8: NO, S9: YES).
  • the CPU 61 executes a process of changing the size of the selected pattern SE2 to be edited to the instructed size (S11).
  • the CPU 61 detects that an editing instruction has been input (S12: NO, S8: NO, S9: YES).
  • the CPU 61 executes a process of changing the arrangement of the selected pattern SE2 to be edited in the direction indicated by the instruction by the amount indicated by the instruction (S11).
  • operation (4) is executed, the selected pattern is edited as shown in the column 71 (714).
  • the CPU 61 detects an instruction to end editing (S12: YES), displays the screen 70 (S1), and displays the embroidery pattern.
  • the selection of E1 is detected (S2: YES).
  • the CPU 61 acquires the embroidery pattern E1 as the selected pattern SE3 and assigns 3 to the display order M of the selected pattern SE3 (S3).
  • the CPU 61 generates a pattern image F3 (S4) and displays it in the column 71 (715) (S5).
  • the CPU 61 detects selection of the embroidery pattern E3 (S13: NO, S2: YES).
  • the CPU 61 acquires the embroidery pattern E3 as the selected pattern SE4 and assigns 4 as the display order M (S3).
  • the CPU 61 generates a pattern image F4 (S4) and displays it in the column 71 (716) (S5).
  • the display order of the four selected patterns is shown in FIG. That is, the display order of the four selected patterns is the selected patterns SE1, SE2, SE3, and SE4 from the back side.
  • the CPU 61 When the user subsequently performs an operation (7) of sequentially selecting the key 75, the point P3, and the key K1, the CPU 61 first displays the screen 80 on the LCD 7 (S7) and detects the position input (S8: YES). ). The CPU 61 specifies the mask area R4 of the pattern image F4 of the selected pattern SE4 having the first calling order (S23). The CPU 61 determines that the point P3 is in the mask area R4 (S24: YES), and acquires the size and coordinates of the mask area R4 (S31). It is determined that the mask area R4 is larger than the threshold (S32: YES), and the CPU 61 calculates a value K (S33).
  • the value K is not determined to be larger than the threshold value (S34: NO), and the CPU 61 specifies the indicated position Q4 with the second range as the predetermined range (S35).
  • the CPU 61 determines that there is no image representing the stitch of the selected pattern SE4 at the designated position Q4 (S37: NO), increments the variable N by 1 (S40: NO, S42), and returns the process to S31.
  • the CPU 61 acquires the size and coordinates of the mask region R3 of the selection pattern SE3 having the second calling order (S31). It is determined that the mask area R3 is larger than the threshold (S32: YES), and the CPU 61 calculates a value K (S33).
  • the CPU 61 specifies the designated position Q3 with the first range as a predetermined range (S35).
  • the CPU 61 determines that there is no image representing the stitch of the selected pattern SE3 at the designated position Q3 (S37: NO), increments N (S40: NO, S42), and returns the process to S31.
  • the CPU 61 obtains the size and coordinates of the mask area R2 of the selection pattern SE2 having the third calling order (S31).
  • the mask area R2 is not determined to be larger than the threshold value (S32: NO), and the CPU 61 specifies the designated position with the second range as the predetermined range (S36).
  • the second range is a range wider than the first range.
  • the CPU 61 determines that there is an image representing the stitch of the selected pattern SE2 at the designated position Q4 (S37: YES), specifies the selected pattern SE2 as an editing target (S38), and selects it (S39).
  • the CPU 61 detects that an editing instruction has been input (S12: NO, S8: NO, S9: YES).
  • the CPU 61 executes a process of changing the arrangement of the selected pattern SE2 to be edited in the direction indicated by the instruction by the amount indicated by the instruction, and reflects the change in the column 71 (717) (S11).
  • the CPU 61 detects an instruction to end editing (S12: YES), and returns the process to S1.
  • the CPU 61 detects a sewing instruction (S13: YES).
  • the CPU 61 sews the selected patterns SE1 to SE4 in order according to the size and arrangement displayed in the column 71 (S14). Specifically, the CPU 61 drives the X-axis motor 132 and the Y-axis motor 134 (see FIG. 2) according to the sewing data to move the embroidery frame 84.
  • the CPU 61 drives the needle bar drive mechanism 32 by the spindle motor 122 in conjunction with the movement of the embroidery frame 84 and moves the needle bar 31 on which the sewing needle is mounted up and down to move the sewing product C held by the embroidery frame 84. Sewing the pattern.
  • the CPU 61 ends the main process as described above.
  • the LCD 7, the touch panel 8, and the control unit 60 are examples of the display unit, the input unit, and the control unit of the present invention, respectively.
  • the CPU 61 that executes the process of S3 is an example of the pattern acquisition unit of the present invention.
  • the CPU 61 that executes the process of S5 is an example of the display control means of the present invention.
  • the CPU 61 that executes the processes of S21, S35, and S36 is an example of the position specifying means of the present invention.
  • the CPU 61 that executes the process of S31 is an example of the size specifying means of the present invention.
  • the CPU 61 that executes the process of S33 is an example of the calculating means of the present invention.
  • the CPU 61 that executes the process of S37 is an example of a determination unit of the present invention.
  • the CPU 61 that executes the processes of S38 and S43 is an example of the target specifying means of the present invention.
  • the CPU 61 that executes the process of S11 is an example of an editing unit of the present invention.
  • the CPU 61 that executes the process of S25 is an example of a temporary specifying unit of the present invention.
  • the editing target specifying method is changed in accordance with the determination result of which one of the plurality of selected patterns exists at the designated position. For example, when the user selects the point P3 in the above operation (7), in the conventional sewing machine, the selected pattern SE4 selected last is specified as an editing target, and the position is within the mask region R4 of the selected pattern SE4. In order to select the selected pattern SE3 arranged at the position to be edited, the one end selected pattern SE4 must be moved to another location. In the sewing machine 1, when the user selects the point P3, the selected pattern SE3 can be specified as an editing target by the sewing machine 1 without moving the selected pattern SE4.
  • the user can cause the sewing machine 1 to specify the selected pattern as an editing target by an intuitive operation compared to the conventional case.
  • the sewing machine 1 can improve the convenience of the user when specifying an editing target from among a plurality of selection patterns scheduled to be sewn.
  • the sewing machine 1 preferentially specifies a selected pattern of the pattern image arranged on the foreground side among the plurality of pattern images arranged from the foreground to the back of the LCD 7 as an editing target. Therefore, according to the sewing machine 1, it is possible to preferentially specify a selection pattern close to the foreground side as an editing target. In the sewing machine 1 of this example, since the selection pattern with the new selection order is arranged on the foreground side, the sewing machine 1 can preferentially specify the selection pattern selected by the user as the object to be edited.
  • the CPU 61 acquires a selected pattern from a plurality of selected patterns according to a predetermined order, determines whether there is an indicated position in the mask area of the acquired selected pattern (S24), and there is an indicated position in the mask area.
  • the selected pattern determined to be temporarily specified as an editing target (S25).
  • the CPU 61 sequentially acquires selected patterns after the temporarily specified selected pattern in the predetermined order, and determines whether the pattern image of the acquired selected pattern is displayed at the designated position. When it is determined that the pattern image is displayed at the designated position for any of the selected patterns after the predetermined order of the selected pattern, the CPU 61 edits the selected pattern with the pattern image displayed at the designated position.
  • the selected pattern temporarily specified as the editing target is specified as the editing target. According to the sewing machine 1, it is possible to efficiently execute a process of changing a method for specifying an editing target in accordance with a determination result as to whether any one of a plurality of selected patterns is present at the designated position.
  • the CPU 61 In response to the acquisition of the selected pattern, the CPU 61 generates a pattern image based on stitch data representing the stitch coordinates of the selected pattern stored in the pattern storage area 67 of the flash memory 64 (S4).
  • the CPU 61 causes the LCD 7 to display the pattern image generated in S4.
  • the CPU 61 identifies a predetermined range including a specific display position designated by the touch panel 8 as the designated position.
  • the region indicated by may be a region where there is no corresponding pattern image between the stitches.
  • the sewing machine 1 Since the CPU 61 of the sewing machine 1 sets the designated position within a predetermined range including the display position designated by the touch panel 8, the sewing machine 1 is, for example, a case where the pattern image of the selected pattern desired to be selected for editing is relatively small. However, the editing target can be appropriately specified.
  • the CPU 61 calculates the number of stitches for the mask area of the selected pattern (S33).
  • the CPU 61 specifies the designated position according to the selected pattern. Specifically, if the calculated value K is larger than the threshold value (first predetermined value), the CPU 61 specifies the designated position corresponding to the selected pattern with the first range as the predetermined range. If the value K is less than or equal to the threshold value, the indicated position is specified with the second range wider than the first range as the predetermined range.
  • the area pointed by the user may be an area where there is no corresponding pattern image between the stitches. Increases nature.
  • the user selects the selection pattern with a relatively small number of stitches with respect to the mask area as an editing target in order to specify the designated position with the second range as the predetermined range. It's easy to do.
  • the CPU 61 specifies the designated position according to the selected pattern. Specifically, the CPU 61 specifies the size of the mask area of the selected pattern (S31). If the size of the specified mask area is larger than the threshold value (second predetermined value), the designated position is specified with the first range (third range) as the predetermined range. When the size of the mask area is equal to or smaller than the threshold value, the designated position is specified with the second range (fourth range) wider than the first range as the predetermined range. When the mask area is relatively small, the possibility that the area designated by the user is an area without a pattern image representing the stitch of the selected pattern is higher than when the mask area is relatively large.
  • the sewing machine 1 sets the predetermined range according to the size of the mask area, the user can easily select a selection pattern having a relatively small size as an editing target.
  • the main process of the second embodiment changes the method for specifying the editing target according to the content of editing. More specifically, in the embroidery pattern sewn with a plurality of color threads, the sewing machine 1 changes the thread color for each partial pattern corresponding to the thread color constituting the embroidery pattern.
  • the main process of the second embodiment differs from the first embodiment in the process in S11 when the key K6 is selected. Description of the same processing as in the first embodiment is omitted.
  • the thread color editing process of FIG. 8 is started. In the thread color editing process of FIG.
  • the same step number is assigned to the same process as the edit target specifying process of FIG. 6.
  • S45 to S49 are executed.
  • the process of S51 is executed instead of the process of S25
  • the processes of S52 and S53 are executed instead of the processes of S33 and S34.
  • the process of S54 and S56 is executed instead of the process of S38 and S39
  • the process of S55 and S57 is executed instead of the process of S43 and S55. Is different.
  • the main process of the second embodiment is executed when the user inputs an instruction to start a process of selecting and editing an embroidery pattern to be sewn as in the main process of the first embodiment.
  • the CPU 61 detects the instruction, the CPU 61 reads out to the RAM 63 a main program for executing the main processing stored in the program storage area of the ROM 62.
  • the CPU 61 executes the following steps in accordance with instructions included in the main program read into the RAM 63.
  • Various parameters such as a threshold value necessary for executing the main process are stored in the flash memory 64.
  • Various data obtained in the course of the main process is stored in the RAM 63 as appropriate.
  • the CPU 61 displays the screen 90 of FIG. 9 on the LCD 7 as shown in FIG. 8 (S45).
  • the screen 90 includes a column 71 and a column 91.
  • the column 71 displays the selected pattern as with the screen 70.
  • selection patterns SE5 and SE6 are displayed in a column 71.
  • the column 91 includes a column 92, a column 93, and a key 94.
  • a column 93 displays a changeable thread color in color.
  • the key 94 is a key for inputting an instruction to end the process of editing the thread color.
  • CPU 61 determines whether an instruction to select a specific position in column 71 has been detected (S46). When it is detected that the user has selected the point P4 in the column 71 (S46: YES), the CPU 61 acquires the position of the point P4 in the column 71 (S21), and sets the variable N to 1 (S22). ). The CPU 61 specifies the mask region R6 of the pattern image F6 of the selected pattern SE6 having the first calling order (S23). The CPU 61 determines that the point P4 is not within the mask region R6 acquired in S23 (S24: NO), and increments the variable N by 1 (S26: NO, S27).
  • the CPU 61 specifies the mask area R5 of the pattern image F5 of the selected pattern SE5 having the second calling order (S23).
  • the CPU 61 determines that the point P4 is within the mask region R5 (S24: YES), and temporarily specifies the partial pattern with the first sewing order as the editing target among the ten partial patterns included in the selected pattern SE5 ( S51).
  • the CPU 61 acquires the size and coordinates of the mask region R5 of the pattern image F5 (S31), and determines that the size of the mask region R5 is larger than the threshold value (S32: YES).
  • the CPU 61 acquires the enlargement ratio H (S52).
  • the enlargement factor H is the display magnification of the pattern image on the LCD 7.
  • the display magnification of the selected pattern displayed in the column 71 is changed by a known process (not shown), and the changed display magnification is stored in the RAM 63.
  • the CPU 61 refers to the RAM 63 and acquires the display magnification.
  • the CPU 61 determines whether or not the enlargement rate H acquired in S52 is greater than a threshold value (S53).
  • the threshold value is determined in advance in consideration of the size of the column 71 for displaying the pattern image, the size of the embroidery frame 84 (sewing available area) to be used, the resolution of the LCD 7, the length of the stitches, and the like.
  • the threshold value is stored in the flash memory 64, for example.
  • the CPU 61 specifies the indicated position with the second range as the predetermined range (S36).
  • the CPU 61 determines that the enlargement ratio H is smaller than the threshold (S53: YES)
  • the CPU 61 specifies the designated position Q5 with the first range as a predetermined range (S35).
  • the CPU 61 determines that there is an image representing the stitch of the third partial pattern in the sewing order at the designated position Q5 specified in S35 (S37: YES).
  • the CPU 61 specifies the third partial pattern having a stitch at the designated position Q5 as an editing target (S54).
  • the CPU 61 selects a thread color corresponding to the editing target specified in S64 (S56). If there is no pattern image at the indicated position (S37: NO), the CPU 61 increments the variable N by 1 (S42) and returns the process to S31 if the variable N is not the last calling order (S40: NO). .
  • the CPU 61 specifies the partial pattern temporarily specified in S51 as an editing target (S55). In the column 71, the CPU 61 selects a thread color corresponding to the editing target specified in S64 (S57). Following the process of S56 or S57, the CPU 61 returns the process to S46.
  • the CPU 61 determines whether any of the changeable thread colors in the column 93 has been selected (S47). When selection of any one of the thread colors displayed in the field 93 is detected (S47: YES), the CPU 61 changes the thread color to be edited to the selected thread color, and based on the changed thread color The color data is changed (S48). The CPU 61 changes the thread color to be edited displayed on the LCD 7 to the changed thread color. The CPU 61 returns the process to S46. When selection of any of the thread colors that can be changed in the field 93 is not detected (S47: NO), the CPU 61 determines whether selection of the key 94 has been detected.
  • the CPU 61 If selection of the key 94 is not detected (S49: NO), the CPU 61 returns the process to S46. When selection of the key 94 is detected (S49: YES), the CPU 61 displays the screen 80 of FIG. 4 on the LCD 7, ends the thread color editing process, and returns the process to the main process of FIG.
  • the CPU 61 that executes the process of S52 is an example of an enlargement factor specifying unit of the present invention.
  • S48 is an example of the editing means of the present invention.
  • the CPU 61 that executes the processes of S54 and S55 is an example of the target specifying means of the present invention.
  • the CPU 61 that executes the process of S51 is an example of a temporary specifying unit of the present invention.
  • the sewing machine 1 includes a specific display position indicated by the touch panel 8 and specifies a predetermined range having a size corresponding to the enlargement ratio of the pattern image with respect to the LCD 7 as the designated position (S53, S35, S36). Therefore, according to the sewing machine 1, since the size of the predetermined range is set according to the enlargement ratio of the pattern image, the user can select a desired pattern as an editing target even when the enlargement ratio of the pattern image changes. It's easy to do.
  • the selected pattern is a pattern that is sewn with a plurality of color threads, and includes a plurality of partial patterns corresponding to each of the plurality of colors.
  • the CPU 61 specifies a partial pattern having a pattern image displayed at the designated position as an editing target from among a plurality of selected patterns.
  • the CPU 61 determines the partial pattern whose sewing order is the first among the selected patterns in which the mask area including the selected pattern is set at the display position. Identified as an edit target.
  • the CPU 61 changes the color of the identified editing target thread.
  • the CPU 61 changes the thread of the partial pattern to be edited. It may be difficult to specify the color.
  • the sewing machine in this case is a partial pattern having a pattern image at the designated position or a selected pattern having a mask area at the designated position even when the pattern image is displayed on the LCD 7 for each of the plurality of selected patterns.
  • the first partial pattern in the sewing order can be specified as an editing target. Therefore, the sewing machine can improve the convenience when changing the color of the thread in the plurality of selected patterns.
  • the sewing machine 1 of this example displays the thread colors of the partial patterns in the column 92 in the sewing order.
  • the user selects the thread color of the partial pattern to be changed, and selects the color after the change.
  • the sewing machine 1 can appropriately select the editing target by selecting the column 71. If the sewing machine 1 determines that it is within the mask area even when there is no stitch image at the designated position, the first partial pattern in the sewing pattern in the selected pattern is specified as the object to be edited. You can specify the pattern you want to change the color of. Since the selected pattern including the partial pattern whose thread color is to be changed is specified from among the plurality of selected patterns, the user can easily specify the partial pattern therefrom.
  • the sewing machine and sewing data editing program of the present invention is not limited to the above-described embodiment, and various modifications may be made without departing from the scope of the present invention. For example, the following modifications (A) to (C) may be added as appropriate.
  • the sewing machine 1 may be a sewing machine having one or more needle bars, and the number and arrangement of needle bars may be changed.
  • the sewing machine 1 may be a sewing machine that does not include the embroidery frame moving mechanism 11 and that can convey the workpiece by the feed dog.
  • the sewing machine 1 may be an industrial sewing machine in addition to a household sewing machine.
  • the sewing data editing program may be installed and operated in a sewing data editing apparatus that does not include a sewing mechanism other than the sewing machine.
  • the sewing data editing device may be a dedicated machine, a personal computer (PC), a tablet PC, a smartphone, or the like.
  • the storage unit only needs to be able to store information, and may be another storage device such as a ROM 62, a flash memory, an HDD, or an SSD, for example.
  • the input unit may be a keyboard, a mouse, a joystick, or the like in addition to the touch panel.
  • the display unit only needs to be able to display an image, and may be, for example, an organic EL display, a plasma display, a plasma tube array display, an electronic paper display using electrophoresis, or the like.
  • the program that executes the main process of FIG. 3 may be stored in the storage device of the sewing machine 1 before the sewing machine 1 executes the program. Therefore, each of the program acquisition method, the acquisition route, and the device storing the program may be changed as appropriate.
  • the program executed by the processor of the sewing machine 1 may be received from another device via a cable or wireless communication and stored in a storage device such as a flash memory.
  • Other devices include, for example, a PC and a server connected via a network.
  • Each step of the main process in FIG. 3 is not limited to the example executed by the CPU 61, and a part or all of the steps may be executed by another electronic device (for example, ASIC).
  • Each step of the above process may be distributedly processed by a plurality of electronic devices (for example, a plurality of CPUs).
  • Each step of the processing of FIG. 3 in the above embodiment can be changed in order, omitted, or added as necessary.
  • an operating system (OS) or the like operating on the sewing machine 1 performs part or all of actual processing based on a command from the CPU 61 of the sewing machine 1, and the functions of the above-described embodiments are realized by the processing.
  • OS operating system
  • the following changes (C-1) to (C-3) may be appropriately added to the main process.
  • a plurality of embroidery patterns may be stored in a storage unit (for example, ROM, HDD, SSD, memory card, and external storage device) other than the flash memory.
  • the process of displaying the pattern image representing the selected pattern in the process of S5 on the LCD 7 may be changed as appropriate.
  • a thumbnail image representing an embroidery pattern may be stored in the pattern storage area 67 of the flash memory 64 in association with the sewing data, and when the selected pattern is acquired, the thumbnail image may be displayed on the display unit. .
  • the process of S4 may be omitted.
  • the sewing machine 1 may be able to select a plurality of embroidery patterns as selection patterns by a single operation.
  • the initial arrangement and size of the selected pattern may be changed as appropriate.
  • the newly selected selection pattern may not be specified as an editing target.
  • the input method of the indicated position may be changed according to the input unit.
  • the position indicated by the pointer when clicked may be set as the specific position.
  • the method for specifying the indicated position may be changed as appropriate.
  • the sewing machine 1 uses the designated position for temporarily specifying the editing target and the designated position for specifying the editing target, but may be the same.
  • the processing of S32 to S36 is performed between the processing of S23 and the processing of S24, and in S24, it is determined whether or not the designated position specified in S35 or S36 is within the mask area specified in S23. May be.
  • the shape and setting method of the mask area may be changed as appropriate.
  • the content and method of editing the editing target may be changed as appropriate.
  • the predetermined order in specifying the editing target may be changed as appropriate.
  • the predetermined order may not be correlated with the display order and the selection order.
  • the sewing machine 1 may not change the range indicated by the indicated position in accordance with the value K. That is, the first range and the second range may be the same.
  • the sewing machine 1 does not have to set the range indicated by the indicated position to a different value depending on the size of the mask area. That is, the third range and the fourth range may be the same value.
  • the sewing machine 1 may not have different values for the range indicated by the indicated position in accordance with the enlargement ratio of the pattern image on the LCD 7.
  • the sewing machine may set the predetermined range determined based on the value K, the predetermined range set based on the size of the mask area, and the predetermined range set according to the enlargement ratio of the pattern image to be the same. However, different values may be set.
  • the size of the predetermined range may be set stepwise according to the display magnification. For example, when the pattern image is displayed on the LCD 7 under a condition that the enlargement ratio is relatively large, a gap is formed between the line segments representing the stitches on the pattern image, and it is difficult for the user to select a point on the stitches of the selected pattern. There is a case. In such a case, for example, when the display magnification is a display magnification representing 0.5 mm in actual size per dot, the predetermined range may be set to 5 dots similar to the first range.
  • the predetermined range may be 9 dots wider than the first range (4 dots expanded vertically and horizontally).
  • the first range, the second range, the third range, the fourth range, the first predetermined value, and the second predetermined value may be changed as appropriate.
  • the process of S32 may be omitted, and the indicated position may be specified based only on the determination result of the process of S34.
  • the processing of S33 and S34 may be omitted, and the indicated position may be specified based only on the determination result of the processing of S32.
  • the indicated position may be specified based on the same process as the process of S52 and S53.
  • the process of S32 may be omitted, and the designated position may be specified based only on the determination result of the process of S53.
  • the processing of S52 and S53 may be omitted, and the indicated position may be specified based only on the determination result of the processing of S32.
  • the designated position may be specified based on the same process as the process of S33 and S34.
  • the designated position may be a range having the same size regardless of the size, enlargement ratio, and value K of the mask area, or the relative position of the predetermined range with respect to the display position, and the size and shape of the predetermined range.
  • the user may be able to set.
  • the sewing machine 1 need not temporarily specify the editing target. In this case, for example, after S22, the sewing machine 1 executes the processing from S31 to S42.
  • the sewing machine 1 executes S22 to S27.
  • the selected pattern may be specified as an editing target.
  • the variable N is the last in S40
  • the variable N is returned to 1, and the processing is executed from S22 to S27. Specific results similar to the form are obtained.
  • the partial pattern arranged on the forefront side may be specified as an editing target with priority, or a plurality of stitches in the designated position may be specified.
  • Each of the partial patterns may be specified as an editing target.

Abstract

複数の模様を組み合わせた模様を編集する場合の操作性を向上したミシン及び縫製データ編集プログラムを提供すること。表示部と、入力部とを備えるミシンの制御部は、記憶部が記憶する複数の刺繍模様の中から選択された選択模様を取得し(S3)。表示部に表示させる(S5)。制御部は、入力部により指示が入力された場合に、指示位置を特定する(S10)。制御部は表示部に表示された、複数の模様画像の何れかが、指示位置に表示されていると判断された場合に、複数の選択模様の中から、指示位置に模様画像が表示された選択模様を編集対象として特定し、表示されていると判断されない場合に、指示位置に選択模様を内包するマスク領域が設定された選択模様を編集対象として特定する(S10)。制御部は、 編集対象を編集する(S11)。

Description

ミシン及び縫製データ編集プログラム
 本発明は、ミシン及び縫製データ編集プログラムに関する。
 表示部及び入力部を備える、刺繍縫製可能なミシンが知られている(例えば、特許文献1参照)。特許文献1に記載のミシンは、縫製予定の模様を表示部に表示し、ユーザによる入力部の操作に応じて、表示された模様を編集可能である。
特開2007-54110号公報
 従来のミシンでは、複数の模様を組み合わせた模様を編集する場合の操作性が十分に検討されていない。
 本発明の目的は、複数の模様を組み合わせた模様を編集する場合の操作性を向上したミシン及び縫製データ編集プログラムを提供することを目的とする。
 本発明の第一態様に係るミシンは、画像を表示する表示部と、前記表示部の特定の指示位置を選択する指示を入力する入力部と、制御部とを備え、前記制御部は、記憶部が記憶する複数の刺繍模様の中から選択された選択模様を取得する模様取得手段と、前記選択模様を表す模様画像を前記表示部に表示させる表示制御手段と、前記入力部により前記指示が入力された場合に、前記指示が示す前記指示位置を特定する位置特定手段と、前記選択模様を取得する処理が複数回実行されることに応じて前記表示部に表示された、複数の前記模様画像の何れかが、前記位置特定手段によって特定された前記指示位置に表示されているかを判断する判断手段と、前記判断手段によって表示されていると判断された場合に、複数の前記選択模様の中から、前記指示位置に前記模様画像が表示された前記選択模様を編集対象として特定し、前記判断手段によって表示されていると判断されない場合に、前記指示位置に前記選択模様を内包するマスク領域が設定された前記選択模様を前記編集対象として特定する対象特定手段と、前記対象特定手段によって特定された前記編集対象を編集する編集手段として機能する。
 本発明の第一態様のミシンによれば、指示位置に複数の選択模様の何れかの模様画像が存在するかの判断結果に応じて、編集対象の特定方法を変える。ミシンは、縫製予定の複数の選択模様の中から編集対象を特定する際のユーザの利便性を向上できる。
 本発明の第二態様に係る縫製データ編集プログラムは、縫製データ編集装置のコンピュータを、記憶部が記憶する複数の刺繍模様の中から選択された選択模様を取得する模様取得手段と、前記選択模様を表す模様画像を、前記縫製データ編集装置が有する表示部に表示させる表示制御手段と、前記縫製データ編集装置が有する入力部により、前記表示部の特定の指示位置を選択する指示が入力された場合に、前記指示が示す前記指示位置を特定する位置特定手段と、前記選択模様を取得する処理が複数回実行されることに応じて前記表示部に表示された、複数の前記模様画像の何れかが、前記位置特定手段によって特定された前記指示位置に表示されているかを判断する判断手段と、前記判断手段によって表示されていると判断された場合に、複数の前記選択模様の中から、前記指示位置に前記模様画像が表示された前記選択模様を編集対象として特定し、前記判断手段によって表示されていると判断されない場合に、前記指示位置に前記選択模様を内包するマスク領域が設定された前記選択模様を前記編集対象として特定する対象特定手段と、前記対象特定手段によって特定された前記編集対象を編集する編集手段
として機能させる指示を含む。
 本発明の第二態様の縫製データ編集プログラムが、縫製データ編集装置のコンピュータによって実行された場合、縫製データ編集装置は、指示位置に複数の選択模様の何れかの模様画像が存在するかの判断結果に応じて、編集対象の特定方法を変える。縫製データ編集装置は、縫製予定の複数の選択模様の中から編集対象を特定する際のユーザの利便性を向上できる。
多針ミシン1の斜視図である。 多針ミシン1の電気的構成を示すブロック図である。 メイン処理のフローチャートである。 液晶ディスプレイ7に表示される画面70の説明図である。 刺繍模様を選択及び編集する過程の説明図である。 図3のメイン処理で実行される編集対象特定処理のフローチャートである。 選択模様SE1からSE4の表示順序の説明図である。 第二実施形態のメイン処理で実行される糸色編集処理である。 液晶ディスプレイ7に表示される画面90と、選択模様SE5及びSE6の表示順序の説明図である。
 以下、図面を参照して、本発明の第一及び第二実施形態について順に説明する。図1を参照して、第一及び第二実施形態に共通の多針ミシン(以下、単にミシンという)1の物理的構成について説明する。以下の説明では、図1の上側、下側、左斜め下側、右斜め上側、左斜め上側、右斜め下側を各々、ミシン1の上側、下側、前側、後ろ側、左側、右側とする。
 図1に示すように、ミシン1は、支持部2と、脚柱部3と、アーム部4とを備える。支持部2は、ミシン1全体を支持する。脚柱部3は、支持部2の後端部から上方へ立設されている。アーム部4は、脚柱部3の上端部から前方に延びる。アーム部4の先端には、針棒ケース21が左右方向に移動可能に装着されている。針棒ケース21の内部には、上下方向に伸びる10本の針棒31(図2参照)が左右方向に等間隔で配置されている。10本の針棒31のうち、縫製位置にある1本の針棒(縫製針棒)が、針棒駆動機構32(図2参照)によって上下方向に摺動される。針棒31の下端には、縫針(図示略)が装着可能である。押え足(図示略)は、針棒31の上下動と連動して、間欠的に被縫製物C(例えば、加工布)を下方へ押圧する。
 アーム部4には、操作部6が設けられている。操作部6は、液晶ディスプレイ(LCD)7と、タッチパネル8と、コネクタ9と、スタート/ストップスイッチ41と、糸通しスイッチ42とを備える。LCD7には、例えば、ユーザが指示を入力する際に用いられる操作画像といった各種情報が表示される。タッチパネル8は、ユーザからの指示を受け付けるために用いられる。LCD7に表示された入力キー等の位置に対応したタッチパネル8の箇所を、ユーザが、指又はタッチペンを用いて押圧操作することによって、縫製模様及び縫製条件といった各種条件を選択又は設定できる。ユーザが、タッチパネル8のある箇所を指又はスタイラスペンを用いて押圧操作することを、以下、「パネル操作」と言う。コネクタ9は、USB規格のコネクタであり、USBデバイス160(図2参照)と接続可能である。スタート/ストップスイッチ41は、縫製の開始又は停止を指示する際に使用される。縫製停止中にスタート/ストップスイッチ41が押されると、縫製が開始される。縫製中にスタート/ストップスイッチ41が押されると、縫製が停止される。
 アーム部4の下方には、脚柱部3の下端部から前方へ延びる筒状のシリンダベッド10が設けられている。シリンダベッド10の先端部の内部には、釜(図示略)が設けられている。釜は、下糸(図示略)が巻回されたボビン(図示略)を収納する。シリンダベッド10の内部には、釜駆動機構(図示略)がある。釜駆動機構(図示略)は、釜を回転駆動する。シリンダベッド10の上面には、平面視矩形の針板16がある。針板16には、縫針(図2参照)が挿通する針穴36が設けられている。10本の針棒31のうち、針穴36の直上に位置している針棒31が縫製針棒である。
 アーム部4の下方には、刺繍枠移動機構11(図2参照)のYキャリッジ26が設けられている。刺繍枠移動機構11は、刺繍枠84を着脱可能に支持する。刺繍枠84は、被縫製物Cを保持する。刺繍枠移動機構11は、X軸モータ132(図2参照)及びY軸モータ134(図2参照)を駆動源として、Yキャリッジ26に装着された刺繍枠84を、固有のXY座標系(刺繍座標系)で示される位置に移動可能である。刺繍座標系では、例えば、ミシン1の右方、左方、前方、及び後方が、Xプラス方向、Xマイナス方向、Yマイナス方向、及びYプラス方向である。
 アーム部4の上面の背面側には、左右一対の糸駒台12が設けられている。各糸駒台12には、糸立棒14が5つ設けられている。糸立棒14は、上下方向に伸びる棒である。糸立棒14は、糸駒13を支持する。一対の糸駒台12には、針棒31の数と同じ10個の糸駒13を設置可能である。上糸15は、糸駒台12に設置された糸駒13から供給される。上糸15は、糸道経路を経由して、針棒31の下端に装着された各縫針の目孔(図示略)に供給される。糸道経路は、糸案内17と、糸調子器18と、天秤19とを含む。
 図2を参照して、第一及び第二実施形態に共通のミシン1の制御全般を司る電気的構成について説明する。図2に示すように、ミシン1は、縫針駆動部120と、縫製対象駆動部130と、操作部6と、制御部60とを備える。
 縫針駆動部120は、駆動回路121、123、125と、主軸モータ122と、針棒ケース用モータ45と、糸通しモータ127とを備える。主軸モータ122は、針棒駆動機構32を駆動し、縫製針棒を上下方向に往復移動させる。駆動回路121は、制御部60からの制御信号に従って主軸モータ122を駆動する。針棒ケース用モータ45は、針棒ケース21を左右方向に移動させる。駆動回路123は、制御部60からの制御信号に従って針棒ケース用モータ45を駆動する。糸通しモータ127は、糸通し機構126を駆動させる、パルスモータである。駆動回路125は、制御部60からの制御信号に従って、糸通しモータ127を駆動する。
 縫製対象駆動部130は、駆動回路131、133と、X軸モータ132と、Y軸モータ134とを備える。X軸モータ132は、刺繍枠移動機構11を駆動させてYキャリッジ26に装着された刺繍枠84を左右方向に移動させる。駆動回路131は、制御部60からの制御信号に従ってX軸モータ132を駆動する。Y軸モータ134は、刺繍枠移動機構11を駆動させて刺繍枠84を前後方向に移動させる。駆動回路133は、制御部60からの制御信号に従ってY軸モータ134を駆動する。
 操作部6は、タッチパネル8と、コネクタ9と、駆動回路135と、LCD7と、スタート/ストップスイッチ41と、糸通しスイッチ42とを備える。駆動回路135は、制御部60からの制御信号に従ってLCD7を駆動する。コネクタ9は、USBデバイス160と接続する機能を備える。USBデバイス160としては、例えば、PCと、USBメモリとである。
 制御部60は、CPU61と、ROM62と、RAM63と、フラッシュメモリ64と、入出力インターフェイス(I/O)66とを備え、これらはバス65によって相互に接続されている。I/O66には更に、縫針駆動部120と、縫製対象駆動部130と、操作部6とが接続されている。
 CPU61は、ミシン1の主制御を司る。CPU61は、ROM62のプログラム記憶エリア(図示略)に記憶された各種プログラムに従って、縫製に関わる各種演算及び処理を実行する。ROM62は、図示しないが、プログラム記憶エリアを含む複数の記憶エリアを備える。プログラム記憶エリアには、メインプログラム(縫製データ編集プログラム)を含む、ミシン1を動作させるための各種プログラムが記憶されている。メインプログラムは、後述するメイン処理を実行するためのプログラムである。RAM63は、任意に読み書き可能な記憶素子である。RAM63は、CPU61が演算処理した演算結果等を収容する記憶エリアを必要に応じて備える。フラッシュメモリ64は、読み書き可能な記憶素子である。フラッシュメモリ64には、ミシン1が各種処理を実行するための各種パラメータが記憶されている。フラッシュメモリ64は、模様記憶エリア67を含む。模様記憶エリア67は、ミシン1で縫製可能な模様を縫製するための縫製データを、複数の模様の各々について記憶する。縫製データは、糸色データ毎に、ステッチデータを含む。糸色データは、縫目を形成する糸の色を示すデータである。ステッチデータは、刺繍模様に含まれる縫目の形成位置(針落ち位置)を刺繍座標系の座標で示すデータである。つまり、縫製データは、縫目の色毎に縫目の形成位置を示すデータを含む。
 図1及び図2を参照して、刺繍枠84に保持された被縫製物Cに縫目を形成する動作について説明する。被縫製物Cを保持した刺繍枠84は、刺繍枠移動機構11に支持される。針棒ケース21が左右に移動することで、10本の針棒31のうち1本が縫製針棒として選択される。刺繍枠移動機構11によって、刺繍枠84が所定の位置に移動される。主軸モータ122によって主軸(図示略)が回転駆動されると、針棒駆動機構32及び天秤駆動機構(図示略)が駆動され、選択された針棒31及びそれに対応する天秤19が上下駆動される。また、主軸モータ122の回転によって釜駆動機構が駆動され、釜が回転駆動される。このように、縫針と天秤19と釜とが同期して駆動され、被縫製物Cに縫目が形成される。
 ミシン1で実行可能なメイン処理の概要について説明する。ユーザは、フラッシュメモリ64の模様記憶エリア67に記憶された複数の刺繍模様の中から、縫製予定の刺繍模様を適宜選択できる。ユーザがタッチパネル8を操作して、複数の刺繍模様の中から特定の刺繍模様を選択すると、CPU61は、模様記憶エリア67が記憶する複数の刺繍模様の中から選択された選択模様を取得する。CPU61は、選択模様を表す模様画像をLCD7に表示させる。模様画像は、選択模様と同様の形状を有する。例えば、選択模様が円状である場合、模様画像の形状も円状である。CPU61は、選択模様の編集を受け付ける。ミシン1は、ユーザが、複数の刺繍模様を選択模様として選択した場合、複数の選択模様の中の1つを編集対象として特定し、特定された編集対象を、ユーザからの編集指示に応じて編集する。ユーザによりタッチパネル8が操作され、特定の位置を示す指示が入力された場合に、CPU61は、指示によって示される指示位置を特定する。CPU61は、複数の選択模様の中から指示位置に基づき編集対象となる選択模様を特定する。具体的には、CPU61は、LCD7に表示された、複数の模様画像の何れかが、指示位置に表示されているかを判断する。CPU61は、表示されていると判断された場合に、複数の選択模様の中から、指示位置に模様画像が表示された選択模様を編集対象として特定する。CPU61は、表示されていると判断されない場合に、指示位置にマスク領域が設定された選択模様を編集対象として特定する。マスク領域は、選択模様(模様画像)を内包する、所定形状の領域である。CPU61は、特定された編集対象を、指示に応じて編集する。
 図3から図7を参照して、第一実施形態のメイン処理について説明する。メイン処理は、ユーザが、縫製予定の刺繍模様を選択及び編集する処理を開始させる指示を入力した場合に起動される。CPU61は指示を検知すると、ROM62のプログラム記憶エリアに記憶されたメイン処理を実行するためのメインプログラムを、RAM63に読み出す。CPU61は、RAM63に読み出したメインプログラムに含まれる指示に従って、以下のステップを実行する。メイン処理を実行するのに必要な閾値等の各種パラメータは、フラッシュメモリ64に記憶されている。メイン処理の過程で得られた各種データは、適宜RAM63に記憶される。
 図3に示すように、CPU61は、図4の画面70をLCD7に表示させる(S1)。図4に示すように、画面70は、欄71から73を含む。欄71には、ユーザによって選択された選択模様を表す模様画像が表示される。図4における欄71には、画像座標系の座標が設定される。画像座標系のX軸方向は、図4の左右方向である。画像座標系のX軸方向は、刺繍座標系のX軸に対応する。画像座標系のY軸方向は、図4の上下方向である。画像座標系のY軸方向は、刺繍座標系のY軸に対応する。欄71における模様画像の大きさ及び配置は、模様画像に対応する選択模様が被縫製物Cに縫製される場合の大きさ及び配置を表す。欄71の下方には、キー81が表示される。キー81は、欄71に表示されている選択模様の表示倍率を変更する指示を入力するためのキーである。欄72には、縫製予定の刺繍模様の候補を表す複数の模様画像が表示される。模様画像は、フラッシュメモリ64の模様記憶エリア67に記憶された刺繍模様を表す画像であり、縫製データに基づき表示される。本例の欄72には、刺繍模様E1からE6の模様画像が各々表示されている。刺繍模様E1及びE2は、1色の糸で縫製される、アルファベット文字の「A」を表す模様である。刺繍模様E1の輪郭線の内部には、所定の縫目が形成される。刺繍模様E2の輪郭線の内部には、所定の縫目が形成されない。刺繍模様E3は、1色の糸で縫製される、楕円状の枠状の模様である。刺繍模様E4は、1色の糸で縫製される、菱形状の枠状の模様である。刺繍模様E5は、1色の糸で縫製される星状の模様である。刺繍模様E6は、10色の糸で縫製される、図4の上下方向に延びる10個の線分状の部分模様を組み合わせた模様である。ユーザは、欄72に表示された刺繍模様の模様画像を適宜選択することにより、模様記憶エリア67に記憶された刺繍模様の中から、ミシン1で縫製する刺繍模様を選択模様として選択できる。欄73には、キー75、76が表示される。キー75は、選択模様を編集する処理を開始する指示を入力するためのキーである。キー76は、縫製開始の指示を入力するためのキーである。欄73に表示されるキーは、他の欄に表示される内容に応じて切り替えられる。
 CPU61は、刺繍模様を選択する指示の入力を検知したかを判断する(S2)。ユーザが、刺繍模様E2が表示されている箇所を選択する操作(1)を行った場合、CPU61は、刺繍模様E2を選択する指示が入力されたことを検知する(S2:YES)。この場合、CPU61は、検知された指示で示される刺繍模様E2を選択模様SE1として取得し、LCD7における表示順序Mを付与する(S3)。表示順序Mの初期値は1である。本例では、選択された順に表示順序Mを設定する。表示順序Mが小さいほど、画面70の背面側に配置される。表示順序Mが大きいほど、画面70の前面側に配置される。
 CPU61は、S3の処理で取得された選択模様SE1を表す模様画像を生成する(S4)。本例のCPU61は、S3の処理で取得された選択模様の縫製データに基づき、選択模様に含まれる縫目を所定の太さの線分で表した模様画像(模様画像データ)を生成する。具体的には、CPU61は、縫製データに含まれる糸色データに基づき、縫目を表す線分の色を決定する。CPU61は、縫製データに含まれるステッチデータに基づき、縫目を表す線分の始点及び終点の相対位置を決定する。模様画像は、LCD7に表示可能な画像であればよく、例えば、マトリックス状に配置された複数の画素からなるPNG形式の画像である。模様画像は、選択模様が有する縫目を表す部分を含み、選択模様が有する縫目を表さない画素は含まない。選択模様が有する縫目を表さない画素は、透過処理される。本例では、表示倍率が100%である場合の欄71の大きさ及び形状は、刺繍枠84の内側に設定される縫製可能領域の大きさ及び形状を表す。縫製可能領域は、縫目を形成可能な領域である。本例のCPU61は、欄71の大きさ、LCD7の解像度、及び選択模様の大きさに応じて、模様画像のサイズを設定する。CPU61は、S4で生成された模様画像を、LCD7で表示されている画面70の欄71に表示させる(S5)。本例のCPU61は、S4で生成された模様画像F1のマスク領域R1の中心を、欄71の中心と一致するように、模様画像F1を画面70の欄71(711)に配置する。本例のマスク領域R1は、選択模様SE1を内包する最小の矩形である。マスク領域R1は、刺繍座標系のX軸に対応するLCD7の左右方向と平行な二辺を有する。マスク領域R1は、刺繍座標系のY軸に対応するLCD7の上下方向と平行な二辺を有する。本例のCPU61は、新たに欄71に選択模様を配置する場合、新たに配置された選択模様を編集対象として特定する。編集対象として特定された選択模様SE1は、対応する模様画像F1のマスク領域R1の輪郭線の色が特定の色(例えば、赤色)で表示される。つまり、編集対象として特定された選択模様は、マスク領域の輪郭線の表示態様によって、他の選択模様と区別される。ユーザは、輪郭線の表示態様によって、現在の編集対象がどの選択模様であるかを識別できる。ユーザは、欄71に対する模様画像の大きさから、縫製可能領域に対する選択模様の大きさを把握できる。
 CPU61は、縫製開始の指示の入力を検知したかを判断する(S13)。縫製開始の指示は、例えば、パネル操作によりキー76が選択された場合に入力される。縫製開始の指示の入力が検知されていない場合(S13:NO)、CPU61は、処理をS2に戻す。縫製開始の指示の入力が検知された場合(S13:YES)、CPU61は、欄71に表示された選択模様を、欄71に表示された配置で、刺繍枠84に保持された被縫製物Cに縫製する(S14)。選択模様の縫製が終了すると、CPU61は、以上でメイン処理を終了する。
 S2の処理において、刺繍模様を選択する指示が検知されない場合(S2:NO)、CPU61は、編集の指示の入力を検知したかを判断する(S6)。CPU61は、キー75が選択されたことを検知した場合に、編集の指示の入力を検知したと判断する。編集の指示の入力が検知されていない場合(S6:NO)、CPU61は、前述のS13の処理を実行する。ユーザがパネル操作によりキー75を選択すると、CPU61は、編集の指示の入力を検知する(S6:YES)。この場合、CPU61は、画面80をLCD7に表示させる(S7)。画面80は、画面70のうち、欄72を欄74に変更し、欄73のキー75、76を、キー78、79に変更した画面である。図4では図示しないが、画面80は、画面70と同様の欄71を含む。欄74には、編集対象を編集する指示を入力するためのキーK1からK6が表示される。キーK1は、編集対象の配置を変更する指示を入力するためのキーである。キーK2は、編集対象の大きさを変更する指示を入力するためのキーである。キーK3は、編集対象を回転させる指示を入力するためのキーである。キーK4は、編集模様を左右反転させる指示を入力するためのキーである。キーK5は、編集対象の糸密度を変更する指示を入力するためのキーである。キーK6は、編集対象の糸色を変更する指示を入力するためのキーである。キー78は、編集対象を削除する指示を入力するためのキーである。キー79は、編集終了の指示を入力するためのキーである。
 CPU61は、欄71内の特定の表示位置を選択する指示を検知したかを判断する(S8)。本例のミシン1は、欄71内における指示される表示位置に応じて、編集対象となる選択模様を特定可能である。選択模様を取得するS3の処理が複数回実行された場合には、LCD7の欄71には複数の模様画像が表示されている。ユーザは、編集対象となる選択模様を、現在の編集対象から、別の選択模様に変更したい場合に、欄71に表示された、所望の選択模様に対応する模様画像が表示された表示位置をパネル操作により選択する。欄71内の何れかの表示位置を選択する指示が検知されていない場合(S8:NO)、CPU61は、編集の指示の入力を検知したかを判断する(S9)。CPU61は、キーK1からK6、及びキー78の何れかが選択されたことを検知した場合に編集の指示が入力されたと判断する(S9:YES)。例えば、ユーザにより、キーK1を選択する操作(2)が実行された場合、CPU61は、編集指示が入力されたこと検知する(S9:YES)。この場合、CPU61は、編集対象に対して入力された指示に応じた編集処理を実行する(S11)。CPU61は、キーK1がパネル操作されたことに応じて、編集対象の配置を、指示が示す方向に、指示が示す量だけ変更する処理を実行する。CPU61は、編集内容に応じて模様画像F1の配置を変更した欄71(712)を表示させる。CPU61は、選択模様の編集内容に応じて、選択模様の縫製データを修正する。
 S9において、キーK2がパネル操作されたことが検知された場合(S9:YES)、CPU61は、編集対象の大きさを指定する画面を表示させ、画面に入力された指示に応じて編集対象の大きさを変更する処理を実行する(S11)。CPU61は、キーK3がパネル操作された場合(S9:YES)、編集対象の回転方向と回転角度を指定する画面を表示させ、画面に入力された指示に応じて編集対象の角度を変更する処理を実行する(S11)。CPU61は、キーK4がパネル操作された場合(S9:YES)、編集対象を左右反転する処理を実行する(S11)。CPU61は、キーK5がパネル操作された場合(S9:YES)、編集対象の糸密度を指定する画面を表示させ、画面に入力された指示に応じて編集対象の糸密度を指示が示す値に変更する処理を実行する(S11)。CPU61は、キーK6がパネル操作された場合(S9:YES)、編集対象の糸色を指定する画面を表示させ、画面に入力された指示に応じて編集対象の糸色を変更する処理を実行する(S11)。CPU61は、キー78がパネル操作された場合(S9:YES)、編集対象を削除する処理を実行する(S11)。S11ではCPU61は、編集内容に応じて編集対象の模様画像の修正又は削除を実行し、欄71を更新させる。CPU61は、編集内容に応じて編集対象の縫製データを修正する。
 欄71の特定の位置がパネル操作により選択されたことが検知された場合(S8:YES)、CPU61は、編集対象特定処理を実行する(S10)。S10では、パネル操作で指示される位置に基づき、編集対象となる選択模様を特定する処理が実行される。編集対象特定処理の詳細は後述する。指示の入力が検知されない場合(S8:NO、S9:NO)、又は、S10又はS11の次に、CPU61は、編集終了の指示の入力を検知したかを判断する(S12)。CPU61は、キー79が選択されたことを検知した場合に、編集終了の指示の入力を検知したと判断する。編集終了の指示の入力が検知されていない場合(S12:NO)、CPU61は、処理をS8に戻す。編集終了の指示が検知された場合(S12:YES)、CPU61は、処理をS1に戻す。S1において、CPU61は、画面70をLCD7に表示させる。
 ユーザが、欄72の刺繍模様E1を選択する操作(3)を行った場合、CPU61は、刺繍模様E1を選択する指示が入力されたことを検知する(S2:YES)。この場合、CPU61は、検知された指示で示される刺繍模様E1を選択模様SE2として取得し、LCD7への表示順序Mに2を付与する(S3)。CPU61は、取得された選択模様SE2を表す模様画像F2を生成する(S4)。CPU61は、S4で生成された模様画像F2を、欄71(713)に表示させる(S5)。
 ユーザが、キー75、点P1(図5参照)、キーK1、点P2(図5参照)、キーK2、及びキーK1を順に選択する操作(4)を行った場合、CPU61は、キー75の選択を検知すると(S6:YES)、画面80をLCD7に表示する(S7)。CPU61は、欄71内の点P1の選択を検知すると(S8:YES)、編集対象特定処理を実行する(S10)。図6に示すように、編集対象特定処理では、CPU61は、パネル操作により選択された欄71内の点P1の表示位置に基づき指示位置を特定する(S21)。本例のCPU61は、タッチパネル8で入力された表示位置を含む所定範囲を指示位置として特定する。S21における所定範囲は適宜設定されればよく、本例ではLCD7の1ドットである。CPU61は、S21では、タッチパネル8で入力された表示位置をそのまま指示位置として特定する。本例のCPU61は、欄71に設定された画像座標系の座標で、点P1の表示位置を特定する。CPU61は、変数Nに1を設定する(S22)。変数Nは、選択模様の模様画像を所定順序(呼び出し順序)に従って取得するための変数である。本例のCPU61は、LCD7における最前面から最背面へ配置される複数の模様画像の内、最前面側に配置された模様画像の選択模様を優先的に編集対象として特定する。つまり、CPU61は、S3で付与された表示順序Mが大きい順に、模様画像を取得する。
 CPU61は、呼び出し順序がN番目の選択模様を表す模様画像を取得し、N番目の模様画像のマスク領域を特定する(S23)。変数Nが1である場合、CPU61は、表示順序Mが2の模様画像F2のマスク領域R2の範囲を特定する。CPU61は、S21で取得された指示位置が、S23で特定されたマスク領域R2内であるかを判断する(S24)。図5に示すように点P1は、マスク領域R2内ではないと判断され(S24:NO)、CPU61は、変数Nが最後の呼び出し順序かを判断する(S26)。変数Nが最後の呼び出し順序である場合(S26:YES)、CPU61は、S21で取得された位置に基づき編集対象を特定せずに、編集対象特定処理を終了し、処理を図3のメイン処理に戻す。この場合の編集対象は、S10の処理を開始する時点で編集対象として特定されていた選択模様のままである。具体例では、1は最後の呼び出し順序ではないと判断され(S26:NO)、CPU61は、変数Nを1だけインクリメントして(S27)、処理をS23に戻す。
 CPU61は、呼び出し順序が2番目の選択模様SE1の模様画像F1を取得し、模様画像F1のマスク領域R1を特定する(S23)。CPU61は、点P1がマスク領域R1内にあると判断し(S24:YES)、選択模様SE1を編集対象に仮特定する(S25)。CPU61は、呼び出し順序がN番目の選択模様のマスク領域の大きさ及び座標を取得する(S31)。本例のマスク領域の大きさは、矩形状のマスク領域の辺の長さで表される。マスク領域の大きさは、マスク領域の画像座標系の座標に基づき計算された面積でもよい。マスク領域の座標は、マスク領域の基準点の画像座標系の座標である。基準点は、予め定められればよく、例えば、矩形状のマスク領域の左上側の頂点である。CPU61は、S31で取得されたマスク領域R1の大きさが閾値よりも大きいかを判断する(S32)。S32の閾値は、模様画像を表示する欄71の大きさ、使用予定の刺繍枠84(縫製可能領域)の大きさ、LCD7の解像度等を考慮して予め定められる。マスク領域の大きさがマスク領域の辺の長さで示される場合、S32における閾値は、短辺及び長辺の少なくとも何れかの長さであってもよい。本例では、一例として、LCD7上のマスク領域の短辺の長さについて閾値が20ドットと設定され、フラッシュメモリ64に記憶されている。マスク領域R1の大きさが閾値以下である場合(S32:NO)、CPU61は後述のS36の処理を実行する。具体例では、CPU61は、マスク領域R1の大きさは閾値よりも大きいと判断する(S33)。つまり、CPU61は、LCD7上のマスク領域R1のX軸方向の長さと、Y軸方向の長さとの各々が、閾値である20ドットよりも大きいと判断する。
 CPU61は、マスク領域の大きさに対する針数を表す値Kを計算する(S33)。針数は、N番目の模様画像に対応する縫製データから取得される。マスク領域の大きさは、刺繍模様の大きさに比例する。したがって値Kは、刺繍模様の大きさに対する針数に比例する。値Kが大きいほど、値Kが小さい場合に比べ、マスク領域内の単位面積当たりの針数が多い。例えば、欄713における選択模様SE1とSE2とはマスク領域の大きさは同じであるが、値Kは、選択模様SE1よりも選択模様SE2の方が大きい。CPU61は、値Kが閾値よりも大きいかを判断する(S34)。S34の閾値は、模様画像を表示する欄71の大きさ、使用予定の刺繍枠84(縫製可能領域)の大きさ、LCD7の解像度、縫目の長さ等を考慮して予め定められる。S34の閾値は、一例として、LCD7上の25ドット当たりの針数が1とされ、フラッシュメモリ64に記憶されている。値Kが閾値よりも大きいと判断される場合(S34:YES)、CPU61は、S21で取得された位置を含む第一範囲を所定範囲とする指示位置を特定する(S35)。本例の第一範囲は、S21で取得された位置の画素を中心とする5ドットの正方形状の範囲である。つまり、S21で取得された位置の画素を中心とし、図5の上下(画像座標系のY軸方向)、左右(画像座標系のX軸方向)の各々に第一所定量(2ドット)ずつ拡張させた正方形状の範囲である。
 模様画像F1では、値Kが閾値よりも小さいと判断され(S34:NO)、CPU61は、第一範囲よりも広い第二範囲を所定範囲として、指示位置Q1を特定する(S36)。本例の第二範囲は、S21で取得された位置の画素を中心とする11ドットの正方形状の範囲である。つまり、S21で取得された位置の画素を中心とし、図5の上下、左右の各々に、第一所定量よりも大きい第二所定量(5ドット)ずつ拡張させた正方形状の範囲である。
 CPU61は、S35又はS36の次に、S35又はS36で特定された指示位置内に、呼び出し順序がN番目の選択模様の縫目を表す画像(詳細には、模様画像を構成する画素のうちの、縫目を表す画素)があるかを判断する(S37)。CPU61は、S31で取得されたマスク領域の基準点の座標と、N番目の選択模様の縫製データのステッチデータとに基づき、指示位置内に選択模様の縫目を表す画像があるかを判断する。図5に示すように指示位置Q1の中には、選択模様SE1の縫目を表す画像が含まれる(S37:YES)。この場合CPU61は、呼び出し順序がN番目の選択模様を編集対象として特定する(S38)。CPU61は、S38で特定された編集対象を選択する(S39)。CPU61は、欄71において模様画像F1のマスク領域R1の輪郭線を特定の色で表示させる。指示位置内に、呼び出し順序がN番目の選択模様の縫目を表す画像がない場合(S37:NO)、変数Nが最後の呼び出し順序かを判断する(S40)。変数Nが、最後の呼び出し順序ではない場合(S40:NO)、CPU61は、変数Nを1だけインクリメントした後(S42)、処理をS31に戻す。変数Nが、最後の呼び出し順序である場合(S40:YES)、CPU61は、S25の処理で仮特定済みの選択模様を、編集対象として特定する(S43)。CPU61は、S43で特定された編集対象を選択する(S44)。S39又はS44の処理の次に、CPU61は、編集対象特定処理を終了し、処理を図3のメイン処理に戻す。
 ユーザがキーK1を選択した場合、CPU61は、編集指示が入力されたこと検知する(S12:NO、S8:NO、S9:YES)。CPU61は、編集対象である選択模様SE1の配置を、指示が示す方向に、指示が示す量だけ変更する処理を実行する(S11)。その後、ユーザが点P2を選択したのに応じて、CPU61は、欄71の特定の位置が入力されたことを検知する(S12:NO、S8:YES)。CPU61は、編集対象特定処理において(S10)、呼び出し順序が1番目の選択模様SE2の模様画像F2のマスク領域R2を特定する(S23)。CPU61は、点P2がマスク領域R2内にあると判断し(S24:YES)、選択模様SE2を編集対象に仮特定する(S25)。CPU61は、マスク領域R2の大きさ及び座標を取得する(S31)。マスク領域R2の大きさは閾値よりも大きいと判断され(S32:YES)、CPU61は値Kを算出する(S33)。値Kは、閾値よりも大きいと判断され(S34:YES)、CPU61は、第一範囲を所定範囲として指示位置Q2を特定する(S35)。CPU61は、指示位置Q2内に選択模様SE2の縫目を表す画像があると判断し(S37:YES)、選択模様SE2を編集対象として特定し(S38)、選択する(S39)。ユーザがキーK2を選択したのに応じて、CPU61は、編集指示が入力されたこと検知する(S12:NO、S8:NO、S9:YES)。CPU61は、編集対象である選択模様SE2の大きさを、指示された大きさに変更する処理を実行する(S11)。その後、ユーザがキーK1を選択した場合、CPU61は、編集指示が入力されたこと検知する(S12:NO、S8:NO、S9:YES)。CPU61は、編集対象である選択模様SE2の配置を、指示が示す方向に、指示が示す量だけ変更する処理を実行する(S11)。操作(4)が実行された場合、選択模様は、欄71(714)に示されるように編集される。
 さらに、ユーザがキー79、刺繍模様E1を順に選択する操作(5)を行った場合、CPU61は、編集終了の指示を検知し(S12:YES)、画面70を表示し(S1)、刺繍模様E1の選択を検知する(S2:YES)。CPU61は、刺繍模様E1を選択模様SE3として取得し、選択模様SE3の表示順序Mに3を付与する(S3)。CPU61は、模様画像F3を生成し(S4)、欄71(715)に表示させる(S5)。さらにユーザが刺繍模様E3を選択する操作(6)を行った場合、CPU61は、刺繍模様E3の選択を検知する(S13:NO、S2:YES)。CPU61は、刺繍模様E3を選択模様SE4として取得し、表示順序Mとして4を付与する(S3)。CPU61は、模様画像F4を生成し(S4)、欄71(716)に表示させる(S5)。4つの選択模様の表示順序は、図7に示される。つまり、4つの選択模様の表示順序は、背面側から、選択模様SE1、SE2、SE3、及びSE4である。
 続けてユーザがキー75、点P3、キーK1を順に選択する操作(7)を行った場合、CPU61は、まず、画面80をLCD7に表示し(S7)、位置入力を検知する(S8:YES)。CPU61は、呼び出し順序が1番目の選択模様SE4の模様画像F4のマスク領域R4を特定する(S23)。CPU61は、点P3がマスク領域R4内にあると判断し(S24:YES)、マスク領域R4の大きさ及び座標を取得する(S31)。マスク領域R4は閾値よりも大きいと判断され(S32:YES)、CPU61は値Kを算出する(S33)。値Kは閾値よりも大きいと判断されず(S34:NO)、CPU61は、第二範囲を所定範囲として指示位置Q4を特定する(S35)。CPU61は、指示位置Q4に選択模様SE4の縫目を表す画像がないと判断し(S37:NO)、変数Nを1だけインクリメントして(S40:NO、S42)、処理をS31に戻す。CPU61は、呼び出し順序が2番目の選択模様SE3のマスク領域R3の大きさ及び座標を取得する(S31)。マスク領域R3は閾値よりも大きいと判断され(S32:YES)、CPU61は値Kを算出する(S33)。値Kは閾値よりも大きいと判断され(S34:YES)、CPU61は、第一範囲を所定範囲として指示位置Q3を特定する(S35)。CPU61は、指示位置Q3に選択模様SE3の縫目を表す画像がないと判断し(S37:NO)、Nをインクリメントして(S40:NO、S42)、処理をS31に戻す。
 CPU61は、呼び出し順序が3番目の選択模様SE2のマスク領域R2の大きさ及び座標を取得する(S31)。マスク領域R2は閾値より大きいと判断されず(S32:NO)、CPU61は第二範囲を所定範囲として指示位置を特定する(S36)。第二範囲は第一範囲よりも広い範囲である。CPU61は、指示位置Q4に、選択模様SE2の縫目を表す画像があると判断し(S37:YES)、選択模様SE2を編集対象として特定し(S38)、選択する(S39)。ユーザがキーK1を選択したのに応じて、CPU61は、編集指示が入力されたこと検知する(S12:NO、S8:NO、S9:YES)。CPU61は、編集対象である選択模様SE2の配置を、指示が示す方向に、指示が示す量だけ変更する処理を実行し、変更を欄71(717)に反映させる(S11)。
 ユーザがキー79を選択した場合、CPU61は、編集終了の指示を検知し(S12:YES)、処理をS1に戻す。ユーザがキー76を選択した場合、CPU61は、縫製の指示を検知する(S13:YES)。CPU61は、選択模様SE1からSE4を、欄71に表示されている大きさ及び配置に従って順に縫製する(S14)。詳細には、CPU61は、縫製データに従ってX軸モータ132及びY軸モータ134(図2参照)を駆動し、刺繍枠84を移動する。CPU61は、刺繍枠84の移動と併せて主軸モータ122によって針棒駆動機構32を駆動し、縫針が装着された針棒31を上下動させることで、刺繍枠84に保持された被縫製物Cに模様を縫製する。CPU61は、以上でメイン処理を終了する。
 上記ミシン1において、LCD7、タッチパネル8、及び制御部60は各々、本発明の表示部、入力部、及び制御部の一例である。S3の処理を実行するCPU61は、本発明の模様取得手段の一例である。S5の処理を実行するCPU61は、本発明の表示制御手段の一例である。S21、S35、S36の処理を実行するCPU61は、本発明の位置特定手段の一例である。S31の処理を実行するCPU61は、本発明のサイズ特定手段の一例である。S33の処理を実行するCPU61は、本発明の算出手段の一例である。S37の処理を実行するCPU61は、本発明の判断手段の一例である。S38、S43の処理を実行するCPU61は、本発明の対象特定手段の一例である。S11の処理を実行するCPU61は、本発明の編集手段の一例である。S25の処理を実行するCPU61は、本発明の仮特定手段の一例である。
 ミシン1によれば、指示位置に複数の選択模様の何れかの模様画像が存在するかの判断結果に応じて、編集対象の特定方法を変える。例えば、上記の操作(7)で、ユーザが点P3を選択した場合、従来のミシンでは、最後に選択された選択模様SE4が編集対象として特定され、選択模様SE4のマスク領域R4内となる位置に配置された選択模様SE3を編集対象として選択するには、一端選択模様SE4を別の場所に移動させなければない。ミシン1では、ユーザが点P3を選択することによって、選択模様SE4を移動させることなく、選択模様SE3を編集対象としてミシン1に特定させることができる。つまり、ユーザは、従来に比べ、直感的な操作によりミシン1に選択模様を編集対象として特定させることができる。ミシン1は、縫製予定の複数の選択模様の中から編集対象を特定する際のユーザの利便性を向上させることができる。
 詳細には、ミシン1は、LCD7における最前面から最背面へ配置される複数の模様画像の内、最前面側に配置された模様画像の選択模様を優先的に編集対象として特定する。したがって、ミシン1によれば、最前面側に近い選択模様を優先的に編集対象として特定できる。本例のミシン1は、選択順序が新しい選択模様を最前面側に配置するので、ミシン1は、ユーザが直近に選択した選択模様を優先的に編集対象として特定できる。
 CPU61は、複数の選択模様の中から、所定順序に従って選択模様を取得し、取得された選択模様のマスク領域内に指示位置があるかを判断し(S24)、マスク領域内に指示位置があると判断された選択模様を編集対象として仮特定する(S25)。CPU61は、所定順序が、仮特定された選択模様の順序以降の選択模様を順に取得し、取得された選択模様の模様画像が、指示位置に表示されているかを判断する。CPU61は、選択模様の所定順序以降の選択模様の内の何れかについて、指示位置に模様画像が表示されていると判断された場合に、指示位置に模様画像が表示された選択模様を編集対象として特定し、選択模様の順序以降の選択模様の内の何れも、指示位置に模様画像が表示されていると判断されない場合に、編集対象として仮特定された選択模様を編集対象として特定する。ミシン1によれば、指示位置に複数の選択模様の何れかの模様画像が存在するかの判断結果に応じて、編集対象の特定方法を変える処理を効率的に実行できる。
 CPU61は選択模様が取得されるのに応じて、フラッシュメモリ64の模様記憶エリア67に記憶された選択模様の縫目の座標を表すステッチデータに基づき模様画像を生成する(S4)。CPU61は、S4で生成された模様画像をLCD7に表示させる。CPU61は、タッチパネル8によって指示された特定の表示位置を含む所定範囲内を指示位置として特定する。本例のように、ステッチデータに基づき模様画像が生成される場合、選択模様の刺繍仕上がりを把握しやすい一方で、模様画像は縫目を表す比較的細い線分で選択模様を表すため、ユーザが指し示した領域が、縫目と縫目との間に相当する模様画像がない領域となることがある。ミシン1のCPU61は、指示位置を、タッチパネル8によって指示された表示位置を含む所定範囲内とするので、ミシン1は、例えば、編集対象として選びたい選択模様の模様画像が比較的小さい場合であっても、適切に編集対象を特定できる。
 CPU61は、選択模様のマスク領域に対する針数を算出する(S33)。CPU61は、選択模様に応じて指示位置を特定する。具体的には、CPU61は、算出された値Kが閾値(第一所定値)よりも大きければ、第一範囲を所定範囲として、選択模様に対応する指示位置を特定する。値Kが閾値以下であれば、第一範囲よりも広い第二範囲を所定範囲として指示位置を特定する。マスク領域に対する針数が比較的小さい場合、マスク領域に対する針数が比較的大きい場合に比べ、ユーザが指し示した領域が、縫目と縫目との間に相当する模様画像がない領域となる可能性が高まる。ミシン1は、マスク領域に対する針数が比較的小さい場合には、第二範囲を所定範囲として指示位置を特定するため、ユーザは、マスク領域に対する針数が比較的小さい選択模様を編集対象として選択しやすい。
 CPU61は、選択模様に応じて指示位置を特定する。具体的には、CPU61は、選択模様のマスク領域の大きさを特定する(S31)。特定されたマスク領域の大きさが、閾値(第二所定値)より大きければ、第一範囲(第三範囲)を所定範囲として指示位置を特定する。マスク領域の大きさが閾値以下である場合には、第一範囲よりも広い第二範囲(第四範囲)を所定範囲として指示位置を特定する。マスク領域が比較的小さい場合、マスク領域が比較的大きい場合に比べ、ユーザが指示した領域が、選択模様の縫目を表す模様画像がない領域となる可能性が高まる。つまり、模様画像が比較的小さい場合、模様画像が比較的大きい場合に比べ、ユーザは選択模様の縫目を表す模様画像のある領域を指示しにくくなる。ミシン1は、所定範囲を、マスク領域の大きさに応じて設定するため、ユーザは、比較的大きさが小さい選択模様を編集対象として選択しやすい。
 第二実施形態のメイン処理について説明する。第二実施形態のメイン処理は、編集の内容に応じて、編集対象の特定方法を変更する。より具体的にはミシン1は、複数の色の糸で縫製される刺繍模様において、糸色の変更を、刺繍模様を構成する、糸色に応じた部分模様毎に実行する。第二実施形態のメイン処理は、キーK6が選択された場合のS11における処理が、第一実施形態と異なる。第一実施形態と同様の処理については説明を省略する。第二実施形態のメイン処理において、キーK6が選択された場合のS11で欄71の特定の位置が指定された場合には、図8の糸色編集処理が起動される。図8の糸色編集処理において、図6の編集対象特定処理と同様の処理には、同じステップ番号を付与している、図6の処理と、図8の処理とでは、S45からS49が実行される点、S25の処理に替えて、S51の処理が実行される点、S33、S34の処理に替えて、S52、S53の処理が実施される点が異なる。図6の処理と、図8の処理とでは、S38、S39の処理に替えて、S54、S56の処理が実行される点、及びS43、S55の処理に替えて、S55、S57の処理が実行される点が異なる。
 一例として、10色の糸で縫製される刺繍模様E6が選択模様として2度選択された後、キーK6と点P4が選択された場合について説明する。第二実施形態のメイン処理は、第一実施形態のメイン処理と同様にユーザが縫製予定の刺繍模様を選択及び編集する処理を開始させる指示を入力した場合に実行される。CPU61は指示を検知すると、ROM62のプログラム記憶エリアに記憶されたメイン処理を実行するためのメインプログラムを、RAM63に読み出す。CPU61は、RAM63に読み出したメインプログラムに含まれる指示に従って、以下のステップを実行する。メイン処理を実行するのに必要な閾値等の各種パラメータは、フラッシュメモリ64に記憶されている。メイン処理の過程で得られた各種データは、適宜RAM63に記憶される。
 メイン処理のS9においてユーザによりキーK6が選択されたことが検知された場合(S9:YES)、図8に示すように、CPU61はLCD7に図9の画面90を表示する(S45)。図9に示すように、画面90は、欄71、及び欄91を含む。欄71は、画面70と同様、選択模様を表示する。図9では、欄71に選択模様SE5及びSE6が表示されている。欄91は、欄92、欄93及びキー94を含む。欄92は、欄71に表示中の選択模様を縫製するのに使用される糸の色が、縫製順に示される。欄93は、変更可能な糸色をカラー表示する。キー94は、糸色を編集する処理を終了する指示を入力するためのキーである。
 CPU61は、欄71内の特定の位置を選択する指示を検知したかを判断する(S46)。ユーザにより欄71内の点P4が選択されたことを検知した場合(S46:YES)、CPU61は、欄71内における点P4の位置を取得し(S21)、変数Nを1に設定する(S22)。CPU61は、呼び出し順序が1番目の選択模様SE6の模様画像F6のマスク領域R6を特定する(S23)。CPU61は、点P4が、S23で取得されたマスク領域R6内にないと判断し(S24:NO)、変数Nを1だけインクリメントする(S26:NO、S27)。CPU61は、呼び出し順序が2番目の選択模様SE5の模様画像F5のマスク領域R5を特定する(S23)。CPU61は、点P4がマスク領域R5内であると判断し(S24:YES)、選択模様SE5が有する10個の部分模様の内、縫製順序が1番目の部分模様を編集対象に仮特定する(S51)。CPU61は、模様画像F5のマスク領域R5の大きさ、座標を取得し(S31)、マスク領域R5の大きさが閾値よりも大きいと判断する(S32:YES)。CPU61は、拡大率Hを取得する(S52)。拡大率Hは、LCD7における模様画像の表示倍率である。図4に示すキー81で入力される指示に応じて、図示しない公知の処理によって、欄71に表示される選択模様の表示倍率が変更され、変更後の表示倍率はRAM63に記憶される。CPU61は、RAM63を参照し、表示倍率を取得する。CPU61は、S52で取得された拡大率Hが閾値よりも大きいかを判断する(S53)。閾値は、模様画像を表示する欄71の大きさ、使用予定の刺繍枠84(縫製可能領域)の大きさ、LCD7の解像度、縫目の長さ等を考慮して予め定められる。閾値は、例えば、フラッシュメモリ64に記憶される。CPU61は、拡大率Hが閾値以上である場合(S53:NO)、第二範囲を所定範囲として指示位置を特定する(S36)。CPU61は、拡大率Hが閾値よりも小さいと判断した場合(S53:YES)、第一範囲を所定範囲として指示位置Q5を特定する(S35)。
 CPU61は、S35で特定された指示位置Q5に、縫製順序が3番目の部分模様の縫目を表す画像があると判断する(S37:YES)。CPU61は、指示位置Q5に縫目がある3番目の部分模様を編集対象として特定する(S54)。CPU61は、欄92において、S64で特定された編集対象に対応する糸色を選択する(S56)。指示位置に模様画像がない場合(S37:NO)、CPU61は、変数Nが最後の呼び出し順序でなければ(S40:NO)、変数Nを1だけインクリメントした後(S42)、処理をS31に戻す。CPU61は、変数Nが最後の呼び出し順序であれば(S40:YES)、S51で仮特定した部分模様を編集対象として特定する(S55)。CPU61は、欄71において、S64で特定された編集対象に対応する糸色を選択する(S57)。S56又はS57の処理の次に、CPU61は処理をS46に戻す。
 欄71内の位置が選択されたことが検知されない場合(S46:NO)、CPU61は、欄93の変更可能な糸色の何れかが選択されたことを検知したかを判断する(S47)。欄93に表示された何れかの糸色の選択が検知された場合(S47:YES)、CPU61は、編集対象の糸色を選択された糸色に変更し、変更後の糸色に基づき糸色データを変更する(S48)。CPU61は、LCD7に表示された編集対象の糸色を、変更後の糸色に変更する。CPU61は、処理をS46に戻す。欄93の変更可能な糸色の何れかの選択が検知されない場合(S47:NO)、CPU61は、キー94の選択を検知したかを判断する。キー94の選択が検知されない場合(S49:NO)、CPU61は、処理をS46に戻す。キー94の選択が検知された場合(S49:YES)、CPU61は、図4の画面80をLCD7に表示させ、糸色編集処理を終了し、処理を図3のメイン処理に戻す。
 第二実施形態のミシン1において、S52の処理を実行するCPU61は、本発明の拡大率特定手段の一例である。S48は、本発明の編集手段の一例である。S54、S55の処理を実行するCPU61は、本発明の対象特定手段の一例である。S51の処理を実行するCPU61は、本発明の仮特定手段の一例である。
 ミシン1は、タッチパネル8が示す特定の表示位置を含み、LCD7に対する模様画像の拡大率に応じた大きさの所定範囲を指示位置として特定する(S53、S35、S36)。したがって、ミシン1によれば、模様画像の拡大率に応じて、所定範囲の大きさが設定されるので、ユーザは、模様画像の拡大率が変わった場合にも所望の模様を編集対象として選択しやすい。
 選択模様は、複数の色の糸で縫製される模様であり、複数の色の各々に対応する複数の部分模様を含む。CPU61は、指示位置に縫目を表す画像が表示されていると判断された場合に、複数の選択模様の中から、指示位置に模様画像が表示された部分模様を編集対象として特定する。CPU61は、指示位置に縫目を表す画像が表示されていると判断されない場合に、表示位置に、選択模様を内包するマスク領域が設定された選択模様の内の縫製順序が最初の部分模様を編集対象として特定する。CPU61は、特定された編集対象の糸の色を変更する。CPU61は、複数の選択模様の各々について模様画像が表示部に表示されている状態で、ユーザが特定の選択模様に含まれる部分模様の糸色を変更する場合、編集対象となる部分模様の糸色を特定しにくい場合がある。この場合のミシンは、複数の選択模様の各々について模様画像がLCD7に表示されている状態であっても、指示位置に模様画像がある部分模様、又は指示位置にマスク領域がある選択模様の内の縫製順序が最初の部分模様を編集対象として特定できる。したがって、ミシンは、複数の選択模様において糸の色を変更する場合の利便性を向上することができる。
 本例のミシン1は、欄92に、縫製順に部分模様の糸色を表示する。糸色を変更する場合、ユーザは変更対象の部分模様の糸色を選択して、変更後の色を選択する。選択模様が複数ある場合、糸色を見ても、どの選択模様の部分模様に対応する糸色かを特定しにくい。ミシン1は、欄92から部分模様が特定できない場合でも、欄71を選択することで、編集対象を適切に選択できる。ミシン1は、指示位置に縫目の画像がない場合にも、マスク領域内と判断されれば、選択模様の内の縫製順序が最初の部分模様が編集対象として特定されるので、ユーザは糸色を変更したい選択模様を特定できる。複数の選択模様の内、糸色を変更する部分模様を含む選択模様が特定されるので、ユーザはそこから、部分模様を特定しやすい。
 本発明のミシン及び縫製データ編集プログラムは、上記した実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更が加えられてもよい。例えば、以下の(A)から(C)までの変形が適宜加えられてもよい。
 (A)ミシン1は、1以上の針棒を備えるミシンであればよく、針棒の本数及び配置は変更されてよい。ミシン1は、刺繍枠移動機構11を備えず、送り歯により被縫製物を搬送可能なミシンであってもよい。ミシン1は、家庭用ミシンの他、工業用ミシンでもよい。縫製データ編集プログラムは、ミシン以外の縫製機構を備えない縫製データ編集装置にインストールされて動作されてもよい。例えば、縫製データ編集装置は、専用機、パーソナルコンピュータ(PC)、タブレットPC、及びスマートフォン等でもよい。記憶部は、情報を記憶可能であればよく、例えば、ROM62、フラッシュメモリ、HDD、SSD等の他の記憶装置でもよい。入力部は、タッチパネルの他、キーボード、マウス、及びジョイスティック等でもよい。表示部は、画像を表示可能であればよく、例えば、有機ELディスプレイ、プラズマディスプレイ、プラズマチューブアレイディスプレイ、電気泳動等を利用した電子ペーパーディスプレイ等でもよい。
 (B)図3のメイン処理を実行するプログラムは、ミシン1がプログラムを実行するまでに、ミシン1の記憶装置に記憶されればよい。したがって、プログラムの取得方法、取得経路及びプログラムを記憶する機器の各々は適宜変更されてよい。ミシン1のプロセッサが実行するプログラムは、ケーブル又は無線通信を介して、他の装置から受信し、フラッシュメモリ等の記憶装置に記憶されてもよい。他の装置は、例えば、PC、及びネットワーク網を介して接続されるサーバを含む。
 (C)図3のメイン処理の各ステップは、CPU61によって実行される例に限定されず、一部又は全部が他の電子機器(例えば、ASIC)によって実行されてもよい。上記処理の各ステップは、複数の電子機器(例えば、複数のCPU)によって分散処理されてもよい。上記実施形態の図3の処理の各ステップは、必要に応じて順序の変更、ステップの省略、及び追加が可能である。ミシン1のCPU61からの指令に基づき、ミシン1上で稼動しているオペレーティングシステム(OS)等が実際の処理の一部又は全部を行い、その処理によって上記実施形態の機能が実現される場合も本開示の範囲に含まれる。例えば、メイン処理に以下の(C-1)から(C-3)の変更が適宜加えられてもよい。
 (C-1)複数の刺繍模様は、フラッシュメモリ以外の記憶部(例えば、ROM、HDD、SSD、メモリカード及び外部記憶機器)に記憶されていてもよい。S5の処理における選択模様を表す模様画像をLCD7に表示させる処理は適宜変更されてよい。例えば、フラッシュメモリ64の模様記憶エリア67に縫製データと対応付けて、刺繍模様を表すサムネイル画像を記憶しておき、選択模様が取得された場合に、サムネイル画像を表示部に表示してもよい。この場合、S4の処理は省略されてよい。ミシン1は、1度の操作で複数の刺繍模様を選択模様として選択可能であってもよい。選択模様の初期の配置及び大きさは、適宜変更されてよい。新たに選択された選択模様は、編集対象として特定されなくてもよい。
 (C-2)指示位置の入力方法は、入力部に応じて変更されてよい。例えば、入力部がマウスである場合、クリックされた時のポインタが指し示す位置を特定の位置とされてもよい。指示位置の特定方法は適宜変更されてよい。ミシン1は、編集対象を仮特定する場合の指示位置と、編集対象を特定する場合の指示位置とを使い分けていたが、同じであってもよい。例えば、S23の処理と、S24の処理との間に、S32からS36の処理を行い、S24では、S23で特定されたマスク領域内に、S35又はS36で特定された指示位置があるかを判断してもよい。マスク領域の形状及び設定方法は適宜変更されてよい。編集対象を編集する内容及び方法は、適宜変更されてよい。編集対象を特定する場合の所定順序は適宜変更されてよい。所定順序は、表示順序と、選択順序と相関がなくてもよい。ミシン1は、値Kに応じて指示位置が示す範囲を異なる範囲にしなくてもよい。つまり、第一範囲と第二範囲とは同じであってもよい。ミシン1は、マスク領域の大きさに応じて、指示位置が示す範囲を異なる値にしなくてもよい。つまり、第三範囲と、第四範囲とは同じ値であってもよい。ミシン1は、LCD7における模様画像の拡大率に応じて指示位置が示す範囲を異なる値にしなくてもよい。ミシンは、値Kに基づいて決定する所定範囲と、マスク領域の大きさに基づいて設定する所定範囲と、模様画像の拡大率に応じて設定する所定範囲とを、同じに設定してもよいし、互いに異なる値に設定してもよい。
 模様画像の拡大率に応じて指示位置が示す範囲を変える場合、表示倍率に応じて、段階的に所定範囲の大きさを設定してもよい。例えば、模様画像が拡大率が比較的大きい条件でLCD7に表示されている場合、模様画像上の縫目を表す線分間に隙間ができ、ユーザが選択模様の縫目上の点を選択しにくい場合がある。このような場合には、例えば、表示倍率が1ドット当たり実寸で0.5mmを表す表示倍率である場合、所定範囲を第一範囲と同様の5ドットとしてもよい。表示倍率が1ドット当たり実寸で0.25mmを表す表示倍率である場合、所定範囲を第一範囲よりも広い9ドット(上下、左右に4ドットずつ広げる)としてもよい。第一範囲、第二範囲、第三範囲、第四範囲、第一所定値及び第二所定値は各々、適宜変更されてよい。図6に示す、第一実施形態の編集対象特定処理において、S32の処理が省略され、S34の処理の判断結果のみに基づき指示位置が特定されてもよい。S33及びS34の処理が省略され、S32の処理の判断結果のみに基づき指示位置が特定されてもよい。第一実施形態の編集対象特定処理において、S52及びS53の処理と同様の処理に基づき指示位置が特定されてもよい。同様に、図8に示す、第二実施形態の糸色編集処理において、S32の処理が省略され、S53の処理の判断結果のみに基づき指示位置が特定されてもよい。S52及びS53の処理が省略され、S32の処理の判断結果のみに基づき指示位置が特定されてもよい。第二実施形態の糸色編集処理において、S33及びS34の処理と同様の処理に基づき指示位置が特定されてもよい。指示位置は、マスク領域の大きさ、拡大率、及び値Kによらず、同じ大きさの範囲であってもよいし、表示位置に対する所定範囲の相対位置、並びに所定範囲の大きさ及び形状をユーザが設定可能であってもよい。
 (C-3)ミシン1は、編集対象を仮特定しなくてもよい。この場合ミシン1は、例えば、S22の後、S31からS42の処理を実行し、S40において、変数Nが最後である場合に(S40:YES)、S22からS27を行い、S25では、N番目の選択模様を編集対象として特定すればよい。このように処理した場合、S40において、変数Nが最後である場合に、変数Nを1に戻して処理をS22からS27の処理を実行するため、上記実施形態に比べ時間はかかるが、上記実施形態と同様の特定結果が得られる。第二実施形態において、指示位置内に複数の部分模様がある場合、最前面側に配置される部分模様を優先して編集対象と特定してもよいし、指示位置内に縫目がある複数の部分模様の各々を編集対象と特定してもよい。
1:ミシン、7:LCD、8:タッチパネル、60:制御部、61:ミシン、62:ROM、63:RAM、64:フラッシュメモリ、67:模様記憶エリア

Claims (9)

  1.  画像を表示する表示部と、
     前記表示部の特定の指示位置を選択する指示を入力する入力部と、
     制御部とを備え、
     前記制御部は、
      記憶部が記憶する複数の刺繍模様の中から選択された選択模様を取得する模様取得手段と、
      前記選択模様を表す模様画像を前記表示部に表示させる表示制御手段と、
      前記入力部により前記指示が入力された場合に、前記指示が示す前記指示位置を特定する位置特定手段と、
      前記選択模様を取得する処理が複数回実行されることに応じて前記表示部に表示された、複数の前記模様画像の何れかが、前記位置特定手段によって特定された前記指示位置に表示されているかを判断する判断手段と、
      前記判断手段によって表示されていると判断された場合に、複数の前記選択模様の中から、前記指示位置に前記模様画像が表示された前記選択模様を編集対象として特定し、前記判断手段によって表示されていると判断されない場合に、前記指示位置に前記選択模様を内包するマスク領域が設定された前記選択模様を前記編集対象として特定する対象特定手段と、
      前記対象特定手段によって特定された前記編集対象を編集する編集手段
    として機能することを特徴とするミシン。
  2.  前記対象特定手段は、前記表示部における最前面から最背面へ配置される前記複数の模様画像の内、前記最前面側に配置された前記模様画像の前記選択模様を優先的に前記編集対象として特定することを特徴とする請求項1に記載のミシン。
  3.  前記制御部は更に、
      前記複数の選択模様の中から、所定順序に従って選択模様を取得し、取得された前記選択模様の前記マスク領域内に前記指示位置があるかを判断し、前記マスク領域内に前記指示位置があると判断された前記選択模様を前記編集対象として仮特定する仮特定手段として機能し、
      前記判断手段は、前記所定順序が、仮特定された前記選択模様の順序以降の選択模様を順に取得し、取得された前記選択模様の前記模様画像が、前記指示位置に表示されているかを判断し、
      前記対象特定手段は、前記選択模様の順序以降の前記選択模様の内の何れかについて、前記判断手段によって表示されていると判断された場合に、前記指示位置に前記模様画像が表示された前記選択模様を前記編集対象として特定し、前記選択模様の順序以降の前記選択模様の内の何れも、前記判断手段によって表示されていると判断されない場合に、前記編集対象として仮特定された前記選択模様を前記編集対象として特定することを特徴とする請求項1又は2に記載のミシン。
  4.  前記位置特定手段は、前記入力部によって指示された特定の表示位置を含む所定範囲内を前記指示位置として特定することを特徴とする請求項1から3の何れかに記載のミシン。
  5.  前記制御部は更に、前記選択模様の前記マスク領域に対する針数を算出する算出手段として機能し、
     前記位置特定手段は、前記算出手段によって算出された値が第一所定値よりも大きければ、第一範囲を前記所定範囲として前記指示位置を特定し、前記値が前記第一所定値以下であれば、前記第一範囲よりも広い第二範囲を前記所定範囲として前記指示位置を特定することを特徴とする請求項4に記載のミシン。
  6.  前記制御部は更に、前記選択模様の前記マスク領域の大きさを特定するサイズ特定手段として機能し、
     前記位置特定手段は、特定された前記マスク領域の大きさが、第二所定値より大きければ、第三範囲を前記所定範囲として前記指示位置を特定し、前記マスク領域の大きさが前記第二所定値以下である場合には、前記第三範囲よりも広い第四範囲を前記所定範囲として前記指示位置を特定することを特徴とする請求項4又は5に記載のミシン。
  7.  前記制御部は更に、前記選択模様の前記模様画像の前記表示部における拡大率を特定する拡大率特定手段として機能し、
     前記位置特定手段は、前記入力部によって指示された特定の前記表示位置を含み、前記表示部に対する前記模様画像の拡大率に応じた大きさの前記所定範囲を前記指示位置として特定することを特徴とする請求項5又は6の何れかのミシン。
  8.  前記選択模様は、複数の色の糸で縫製される模様であり、前記複数の色の各々に対応する複数の部分模様を含み、
     前記対象特定手段は、前記判断手段によって表示されていると判断された場合に、複数の前記選択模様の中の特定の選択模様に含まれる、前記指示位置に前記模様画像が表示された部分模様を前記編集対象として特定し、前記判断手段によって表示されていると判断されない場合に、前記指示位置に、前記選択模様を内包するマスク領域が設定された前記選択模様の内の縫製順序が最初の部分模様を前記編集対象として特定し、
     前記編集手段は、前記対象特定手段によって特定された前記編集対象の糸の色を変更することを特徴とする請求項1から7の何れかに記載のミシン。
  9.  縫製データ編集装置のコンピュータを、
      記憶部が記憶する複数の刺繍模様の中から選択された選択模様を取得する模様取得手段と、
      前記選択模様を表す模様画像を、前記縫製データ編集装置が有する表示部に表示させる表示制御手段と、
      前記縫製データ編集装置が有する入力部により、前記表示部の特定の指示位置を選択する指示が入力された場合に、前記指示が示す前記指示位置を特定する位置特定手段と、
      前記選択模様を取得する処理が複数回実行されることに応じて前記表示部に表示された、複数の前記模様画像の何れかが、前記位置特定手段によって特定された前記指示位置に表示されているかを判断する判断手段と、
      前記判断手段によって表示されていると判断された場合に、複数の前記選択模様の中から、前記指示位置に前記模様画像が表示された前記選択模様を編集対象として特定し、前記判断手段によって表示されていると判断されない場合に、前記指示位置に前記選択模様を内包するマスク領域が設定された前記選択模様を前記編集対象として特定する対象特定手段と、
      前記対象特定手段によって特定された前記編集対象を編集する編集手段
    として機能させる指示を含むことを特徴とする縫製データ編集プログラム。
     
PCT/JP2017/000991 2016-01-29 2017-01-13 ミシン及び縫製データ編集プログラム WO2017130734A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/041,406 US10662564B2 (en) 2016-01-29 2018-07-20 Sewing machine and non-transitory computer-readable medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016015361A JP2017131493A (ja) 2016-01-29 2016-01-29 ミシン及び縫製データ編集プログラム
JP2016-015361 2016-01-29

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/041,406 Continuation US10662564B2 (en) 2016-01-29 2018-07-20 Sewing machine and non-transitory computer-readable medium

Publications (1)

Publication Number Publication Date
WO2017130734A1 true WO2017130734A1 (ja) 2017-08-03

Family

ID=59398314

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2017/000991 WO2017130734A1 (ja) 2016-01-29 2017-01-13 ミシン及び縫製データ編集プログラム

Country Status (3)

Country Link
US (1) US10662564B2 (ja)
JP (1) JP2017131493A (ja)
WO (1) WO2017130734A1 (ja)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USD944298S1 (en) * 2019-09-17 2022-02-22 Zhejiang Hehe Electric Machinery Co., Ltd Embroidery machine
USD953383S1 (en) * 2020-11-20 2022-05-31 Zhejiang Hehe Electric Machinery Co., Ltd. Embroidery machine

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09132860A (ja) * 1995-11-06 1997-05-20 Brother Ind Ltd 刺繍模様表示可能な縫製データ処理装置
JP2003079978A (ja) * 2001-09-14 2003-03-18 Juki Corp 刺繍ミシン
JP2007279831A (ja) * 2006-04-03 2007-10-25 Canon Inc 情報処理装置および情報処理方法および情報処理プログラム

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5782189A (en) * 1996-02-23 1998-07-21 Brother Kogyo Kabushiki Kaisha Sewing machine with display for selecting sewing patterns
JPH10113483A (ja) * 1996-10-14 1998-05-06 Brother Ind Ltd 刺繍データ編集方法並びに刺繍データ編集装置
US5855176A (en) * 1997-05-07 1999-01-05 Janome Sewing Machine Co., Ltd. Embroidery stitch data producing device and sewing machine
JPH1157261A (ja) * 1997-08-21 1999-03-02 Brother Ind Ltd 縫い目様式設定方法及びその装置並びに記憶媒体
JP3959791B2 (ja) * 1997-08-27 2007-08-15 ブラザー工業株式会社 刺繍データ処理装置及び記憶媒体
JPH1176656A (ja) * 1997-09-11 1999-03-23 Brother Ind Ltd 刺繍縫製可能なミシン及び模様関連データ記録媒体
JP4123576B2 (ja) * 1998-07-10 2008-07-23 ブラザー工業株式会社 刺繍データ処理装置及び刺繍データ処理プログラムを記憶したコンピュータ読取り可能な記憶媒体
JP4239319B2 (ja) * 1999-09-30 2009-03-18 ブラザー工業株式会社 ミシン
JP2007054110A (ja) 2005-08-22 2007-03-08 Juki Corp 刺繍ミシン
SE531543C2 (sv) * 2007-08-21 2009-05-12 Vsm Group Ab Sömnadsordning för grundelement vid brodering
US8606390B2 (en) * 2007-12-27 2013-12-10 Vsm Group Ab Sewing machine having a camera for forming images of a sewing area

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09132860A (ja) * 1995-11-06 1997-05-20 Brother Ind Ltd 刺繍模様表示可能な縫製データ処理装置
JP2003079978A (ja) * 2001-09-14 2003-03-18 Juki Corp 刺繍ミシン
JP2007279831A (ja) * 2006-04-03 2007-10-25 Canon Inc 情報処理装置および情報処理方法および情報処理プログラム

Also Published As

Publication number Publication date
US10662564B2 (en) 2020-05-26
JP2017131493A (ja) 2017-08-03
US20180327951A1 (en) 2018-11-15

Similar Documents

Publication Publication Date Title
US9976239B2 (en) Embroidery sewing machine
US9885131B2 (en) Sewing machine
US20230203730A1 (en) Sewing machine
JP2020005694A (ja) ミシン
US9228279B2 (en) Sewing machine
WO2017130734A1 (ja) ミシン及び縫製データ編集プログラム
WO2017056605A1 (ja) ミシン及びミシンプログラム
JP2013169319A (ja) 縫製データ作成装置、および縫製データ作成プログラム
WO2017056676A1 (ja) ミシン及びミシンプログラム
US10344411B2 (en) Sewing machine and non-transitory computer-readable medium
US9008818B2 (en) Embroidery data generating device and non-transitory computer-readable medium
US9290873B2 (en) Sewing machine, information processing apparatus, and non-transitory computer-readable medium
JP2003326011A (ja) ミシン
JP2017176463A (ja) 縫製データ生成プログラム及び縫製データ生成装置
JP2015093126A (ja) ミシン
US11473228B2 (en) Non-transitory computer-readable medium and embroidery data generation method
US11028512B2 (en) Sewing machine and non-transitory computer-readable medium
US20230029765A1 (en) Processing data generation device, embroidery sewing machine, and non-transitory computer-readable storage medium
US11661692B2 (en) Sewing machine
JP2022131433A (ja) 縫製データ編集装置、縫製データ編集プログラム、及びミシン
JPH0747068B2 (ja) 自動ミシンのための縫製デ−タ作成装置
JP2011177313A (ja) 刺繍データ生成装置及び刺繍縫い可能なミシン

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17743965

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17743965

Country of ref document: EP

Kind code of ref document: A1