WO2019176639A1 - 非一時的コンピュータ可読媒体及び刺繍データ生成方法 - Google Patents

非一時的コンピュータ可読媒体及び刺繍データ生成方法 Download PDF

Info

Publication number
WO2019176639A1
WO2019176639A1 PCT/JP2019/008558 JP2019008558W WO2019176639A1 WO 2019176639 A1 WO2019176639 A1 WO 2019176639A1 JP 2019008558 W JP2019008558 W JP 2019008558W WO 2019176639 A1 WO2019176639 A1 WO 2019176639A1
Authority
WO
WIPO (PCT)
Prior art keywords
sewing
area
pattern
areas
region
Prior art date
Application number
PCT/JP2019/008558
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 WO2019176639A1 publication Critical patent/WO2019176639A1/ja
Priority to US17/021,270 priority Critical patent/US11473228B2/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/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
    • 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
    • D05C5/06Embroidering machines with arrangements for automatic control of a series of individual steps by input of recorded information, e.g. on perforated tape with means for recording the information
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05DINDEXING SCHEME ASSOCIATED WITH SUBCLASSES D05B AND D05C, RELATING TO SEWING, EMBROIDERING AND TUFTING
    • D05D2305/00Operations on the work before or after sewing
    • D05D2305/32Measuring
    • D05D2305/36Quality control

Definitions

  • the present invention relates to a non-transitory computer-readable medium and an embroidery data generation method.
  • Patent Document 1 discloses a sewing machine that divides an embroidery pattern larger than a sewing area into a plurality of partial patterns smaller than the sewing area and stores embroidery data corresponding to the plurality of partial patterns.
  • the sewing machine sews a pattern larger than the sewing area by sequentially sewing a plurality of partial patterns according to the embroidery data.
  • the user changes the holding position of the sewing object with respect to the embroidery frame every time one of the plurality of partial patterns is sewn.
  • the sewing machine includes a photographing unit, and photographs a mark placed on the surface of the sewing object before and after the change of the holding position of the sewing object by the embroidery frame.
  • the sewing machine extracts a plurality of feature points from the images of these signs, and performs alignment between the plurality of partial patterns based on each of the extracted feature points.
  • the embroidery data used to sew a pattern larger than the sewing area by changing the holding position of the sewing object to the embroidery frame is generated, it is possible to freely set the pattern arrangement with respect to the sewing area.
  • the degree is relatively low.
  • the present invention relates to a non-transitory computer-readable medium having an improved degree of freedom in setting the arrangement of a plurality of partial patterns with respect to a sewing area when an embroidery pattern larger than the sewing area is divided into a plurality of partial patterns smaller than the sewing area. And an embroidery data generation method.
  • the non-transitory computer-readable medium is a non-transitory computer-readable medium that stores computer-readable instructions, and the instructions include a pattern acquisition step for acquiring a pattern, and an embroidery frame.
  • An area acquisition step for acquiring the size of the sewing area set inside the area, an area setting step for setting a virtual arrangement of the plurality of sewing areas with respect to the sewing object, and a virtual of the pattern with respect to the sewing object
  • a pattern setting step for setting a general arrangement, a changing step for changing the relative positions of the set sewing areas, and a plurality of the sewing areas whose relative positions have been changed, within the sewing area.
  • a plurality of stitches representing the pattern of the portion to be positioned, and embroidery data including needle drop data representing the positions of the plurality of stitches with respect to the sewing area is generated. To executing the embroidery data generating step to the computer.
  • the computer When the computer executes a computer-readable instruction stored in the non-transitory computer-readable medium according to the first aspect, the computer divides an embroidery pattern larger than the sewing area into a plurality of partial patterns smaller than the sewing area.
  • the relative positions of the plurality of sewing areas can be changed.
  • the computer can improve the degree of freedom in setting the arrangement of the pattern with respect to the sewing area, as compared with a conventional apparatus that cannot change the relative positions of the plurality of sewing areas.
  • the embroidery data generation method includes a pattern acquisition step of acquiring a pattern, an area acquisition step of acquiring the size of a sewing area set inside the embroidery frame, and a plurality of sewing objects
  • An area setting step for setting a virtual arrangement of the sewing area, a pattern setting step for setting a virtual arrangement of the pattern with respect to the workpiece, and a relative position of the set sewing areas is changed.
  • a plurality of stitches representing the pattern of a portion located in the sewing region for each of the plurality of sewing regions whose relative positions have been changed, and the plurality of stitches for the sewing region An embroidery data generation step for generating embroidery data including needle drop data representing the position of the embroidery.
  • the embroidery data generation method of the second aspect has the same effect as the non-transitory computer-readable medium of the first aspect.
  • FIG. 1 is a schematic diagram of a sewing system 30 including a sewing machine 10, a printing device 17, and an embroidery data generation device 20.
  • FIG. It is a flowchart of a main process. It is description of the process which produces
  • FIG. It is description of the process which produces
  • FIG. 12 is a process of generating embroidery data for sewing a stitch representing a pattern G of Example 3. It is a flowchart of the optimization process performed by the main process of FIG. It is a flowchart of the division
  • the sewing system 30 includes a sewing machine 10, a printing device 17, and an embroidery data generation device 20 (hereinafter referred to as “device 20”).
  • the sewing machine 10 is a sewing machine capable of embroidery sewing.
  • the printing device 17 executes print processing according to print data received via the network 16.
  • the device 20 is a known personal computer (PC) including a display unit 9, a mouse 21, and a keyboard 22.
  • the sewing machine 10 includes a bed portion 11, a pedestal portion 12, an arm portion 13, a head portion 14, a moving mechanism 40, and an image sensor 35.
  • the bed portion 11 is a base portion of the sewing machine 10 that extends in the left-right direction.
  • the pedestal 12 is erected upward from the right end of the bed 11.
  • An LCD 15 and a touch panel 26 are provided on the front surface of the pedestal 12.
  • the arm portion 13 faces the bed portion 11 and extends leftward from the upper end of the pedestal column portion 12.
  • the head 14 is a part that is connected to the left tip of the arm 13.
  • the head 14 is provided with a needle bar, a presser bar, a needle bar vertical movement mechanism, and the like.
  • a sewing needle is detachably attached to the lower end of the needle bar.
  • the image sensor 35 can photograph the lower part of the needle bar.
  • the moving mechanism 40 is configured to be able to move the workpiece C held in the embroidery frame 45 relative to the needle bar.
  • the moving mechanism 40 includes a main body case 41 and a carriage 42. At the time of embroidery sewing, the user attaches the embroidery frame 45 to the carriage 42.
  • the embroidery frame 45 is supported by an XY coordinate system (embroidery coordinate system) unique to the sewing machine 10 by a Y-direction moving mechanism (not shown) housed in the carriage 42 and an X-direction moving mechanism (not shown) housed in the main body case 41. ) Is moved to the needle entry point indicated by.
  • XY coordinate system embroidery coordinate system
  • One embroidery frame 45 selected from a plurality of types of embroidery frames 45 having different sizes can be attached to the moving mechanism 40.
  • the sewing machine 10 includes a CPU 61, a ROM 62, a RAM 63, a flash memory 64, an input / output interface (I / O) 66, and a communication I / F 67.
  • the CPU 61 is connected to a ROM 62, a RAM 63, a flash memory 64, an input / output I / O 66, and a communication I / F 67 via a bus 65.
  • the flash memory 64 stores various setting values.
  • the flash memory 64 stores embroidery data corresponding to each of a plurality of patterns that are candidates for patterns to be sewn on the sewing machine 10.
  • the embroidery data includes needle drop data indicating the coordinates of the needle drop points for forming the stitches constituting the pattern, sewing order, and color data indicating the color of the thread used.
  • a sewing machine motor 81 is connected to the drive circuit 71.
  • the drive circuit 71 drives the sewing machine motor 81 in accordance with a control signal from the CPU 61.
  • a needle bar vertical movement mechanism (not shown) is driven via the main shaft (not shown) of the sewing machine 10, and the needle bar moves up and down.
  • An X-axis motor 83 is connected to the drive circuit 72.
  • a Y-axis motor 84 is connected to the drive circuit 73.
  • the drive circuits 72 and 73 drive the X-axis motor 83 and the Y-axis motor 84, respectively, according to control signals from the CPU 61.
  • the drive circuit 74 displays an image on the LCD 15 according to a control signal from the CPU 61.
  • the communication I / F 67 connects the sewing machine 10 to the network 16.
  • the CPU 61 can perform data transmission / reception with another device (for example, the device 20) connected to the network 16 via the communication I / F 67.
  • the embroidery frame 45 is moved in the X direction and the Y direction by the moving mechanism 40, and the needle bar vertical movement mechanism and the shuttle mechanism are driven. As a result, the embroidery pattern is sewn on the workpiece C held by the embroidery frame 45 by the sewing needle mounted on the needle bar.
  • the device 20 includes a CPU 1, a ROM 2, a RAM 3, a flash memory 4, a communication I / F 5, and an input / output interface 8.
  • the CPU 1 controls the device 20.
  • the CPU 1 is electrically connected to the ROM 2, RAM 3, flash memory 4, communication I / F 5, and input / output interface 8 via the bus 7.
  • the ROM 2 stores a boot program, BIOS, and the like.
  • the RAM 3 stores temporary data.
  • Various setting values are stored in the flash memory 4.
  • the flash memory 4 may store embroidery data in the same manner as the flash memory 64.
  • the communication I / F 5 is an interface for connecting the device 20 to the network 16.
  • the CPU 1 can execute data transmission / reception with other devices (for example, the sewing machine 10 and the printing device 17) connected to the network 16 via the communication I / F 5, the display unit 9, the mouse 21, and A keyboard 22 is connected.
  • the display unit 9 is a liquid crystal display.
  • the mouse 21 and the keyboard 22 are used when inputting various instructions.
  • a main process of the sewing machine 10 will be described with reference to FIGS.
  • a process of generating embroidery data for sewing a pattern selected by the user and print data for printing a processed pattern (print pattern) is executed.
  • the user operates the sewing machine 10 after inputting an instruction for designating the type of embroidery frame to be used, the overlapping condition described later, the presence or absence of optimization processing described later, and the type of printing medium to be printed. This is executed when an instruction to start an application for executing the main process is input.
  • the type of embroidery frame is selected from among a plurality of embroidery frames stored in the flash memory 64, for example.
  • the CPU 61 of the sewing machine 10 detects the instruction, it reads out to the RAM 63 an embroidery data generation program for executing 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 embroidery data generation program read into the RAM 63.
  • Various parameters 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.
  • processes other than the sewing process in S21 may be executed by the apparatus 20, and the sewing process may be executed in the sewing machine 10 based on the embroidery data generated by the apparatus 20.
  • the pattern E in FIG. 3 is virtually arranged with respect to the sewing object C (reference surface, editing area) as a pattern to be sewn will be referred to as a specific example 1.
  • the pattern E includes patterns E1 and E2.
  • the pattern E1 is a round pattern that is sewn by tatami stitching using one color thread.
  • the pattern E2 is a rectangular pattern that is sewn by tatami stitching using a thread having the same color as the pattern E1.
  • a case where the pattern F in FIG. 4 is virtually arranged with respect to the sewing object C as a pattern to be sewn will be described as a specific example 2.
  • the pattern F is a pattern sewn with six-colored threads.
  • the pattern F is a pattern in which an alphabet letter A and a plant that decorates the alphabet letter are surrounded by a square frame pattern.
  • a specific example 3 is a case where the pattern G in FIG.
  • the pattern G is an embroidery pattern generated based on a photograph of a girl who swims. 3 to 5, the horizontal direction and the vertical direction in the drawings correspond to the X direction and the Y direction of the moving mechanism 40 of the sewing machine 10, respectively.
  • the main processes related to the specific examples 1 to 3 are executed at different timings. However, in order to simplify the description, the main processes related to the specific examples 1 to 3 will be described in parallel.
  • the CPU 61 performs embroidery based on the correspondence between the type of the embroidery frame 45 included in the instruction and the type of the embroidery frame 45 stored in the flash memory 64 and the size of the sewing area.
  • the size of the sewing area set inside the frame 45 is acquired (S1).
  • CPU61 may acquire the magnitude
  • the CPU 61 may acquire the size of the sewing area based on the output value of the detector 36 and the correspondence relationship. For example, the CPU 61 acquires the size of the sewing area 46 shown in FIG.
  • the sewing area 46 is a rectangular area. The four sides of the sewing area 46 extend in the X and Y directions of the moving mechanism 40 when the embroidery frame 45 is attached to the sewing machine 10.
  • the CPU 61 sets an overlap condition based on an instruction at the start of the main process (S2).
  • the overlap condition includes the length (width) of the overlap region in the adjacent direction, the position of the overlap range with respect to the overlap region, and the overlap amount.
  • the CPU 61 of this example for each of the plurality of sewing regions, at least one adjacent to the target sewing region and the target sewing region.
  • a continuous region that is continuous as a whole of a plurality of sewing regions is virtually set by overlapping and arranging a part of the adjacent region that is the sewing region.
  • the overlapping region is a region where a sewing region and an adjacent region overlap when a plurality of sewing regions are virtually arranged with respect to the workpiece C.
  • the adjacent direction is a direction connecting the center of the sewing area of interest and the center of the adjacent area.
  • the adjacent directions in this example are directions in which the sides of the plurality of sewing regions extend, that is, the X direction and the Y direction.
  • the overlapping range is a range where the stitches overlap when one divided partial pattern and the other divided partial pattern are connected by blurring.
  • the overlap amount is the length in the adjacent direction in the range where the stitches of one partial pattern and the part of the other partial pattern overlap in the case of blur connection.
  • the overlapping amount may be set to the same value according to the moving direction, may be set to a different value, or may be set to an initial value.
  • the CPU 61 sets a virtual arrangement of a plurality of sewing areas with respect to the workpiece C (S3).
  • the CPU 1 in this example sets a continuous area based on the overlap condition set in S2.
  • a continuous area R1 composed of a total of four sewing areas R11 to R14 in which two sewing areas are arranged in each of the X direction and the Y direction is virtually set. Is done.
  • a continuous region R2 including a total of nine sewing regions R21 to R29 in which three sewing regions are arranged in each of the X direction and the Y direction is virtually set.
  • the width LX of the overlapping region in the X direction is equal to the width LY of the overlapping region in the Y direction.
  • the width of the overlapping region in this example is the length of the overlapping region in the short direction.
  • the width LX of the overlapping region in the X direction may be different from the width LY of the overlapping region in the Y direction.
  • the widths of the overlapping regions in the same direction may be the same or different from each other. Good.
  • the CPU 61 of this example sets a virtual arrangement of the continuous area with respect to the sewing product C so that the width of the overlapping area becomes the minimum value of the allowable range of the overlapping area.
  • the allowable range and initial value of the width of the overlapping area may be set in advance or may be set by the user according to the size of the sewing area, the type of pattern, and the like.
  • the CPU 61 fixes the position of the reference area, which is the reference sewing area among the plurality of sewing areas, and displays the relative position of the plurality of sewing areas on the LCD 15 (S4).
  • the reference area may be one or more sewing areas among the plurality of sewing areas.
  • the CPU 61 of this example uses, as a reference area, a sewing area arranged at the upper left, which is an end in the X direction and the Y direction, among a plurality of sewing areas constituting the continuous area.
  • the CPU 61 displays the screen 50 of FIG.
  • the screen 50 includes buttons 51 and 52 and a display area 53.
  • the button 51 is selected when an instruction to virtually arrange a pattern on the sewing product C is input.
  • the button 52 is selected when generating an embroidery data and print data based on a plurality of sewing areas arranged on the sewing product C and a pattern, and inputting an instruction to start sewing after output. .
  • the display area 53 displays the continuous area R1 and the first figures X1 and Y1.
  • the first figures X1 and Y1 are figures showing relative positions for each of the plurality of sewing areas.
  • the first graphic X1 in this example is a rectangular graphic indicating the position of the left end of the sewing regions R12, R14 with respect to the reference region R11.
  • the first graphic X1 is an extension line of an imaginary line indicating the left end of the sewing areas R12, R14, and is arranged above the sewing area R12.
  • the first figure Y1 in this example is a rectangular figure indicating the position of the upper end of the sewing areas R13 and R14 with respect to the reference area R11.
  • the first figure Y1 is located on the left side of the sewing region R12 on the imaginary line indicating the upper ends of the sewing regions R13 and R14. As shown in FIG. 5A, in the specific example 3, similarly, the continuous region R2 and the first graphics X1, X2, Y1, and Y2 are displayed in the display region 53.
  • the first figures X1 and X2 are each selected when the relative positions in the X direction of the plurality of sewing areas are changed.
  • the first figures Y1 and Y2 are each selected when the relative positions in the Y direction of the plurality of sewing areas are changed.
  • the CPU 61 determines whether the button 51 is selected and an instruction to set a virtual layout of the pattern on the sewing product C is acquired (S5).
  • the user draws a figure to be sewn with a predetermined stitch (for example, tatami stitching) on the sewing product C, thereby sewing the drawn pattern.
  • An instruction to set a virtual arrangement for the object C is input.
  • the user reads the pattern stored in the flash memory 64, and inputs an instruction to set a virtual arrangement of the read pattern on the sewing product C.
  • the user reads out the photograph stored in the flash memory 64 and converts it into embroidery data, and then virtually arranges the pattern on the sewing product C based on the converted embroidery data. Enter the instructions to set.
  • the CPU 61 acquires a pattern to be placed (S6).
  • the CPU 61 acquires the pattern E.
  • the CPU 61 acquires the pattern F.
  • a pattern G is acquired.
  • CPU61 sets the virtual arrangement
  • CPU61 of this example sets the virtual arrangement
  • the CPU 61 may automatically set a virtual arrangement of the pattern with respect to the sewing product C. As shown in FIG.
  • the CPU 61 sets a virtual arrangement of the pattern E with respect to the sewing product C in the first specific example. As shown in FIG. 4A, the CPU 61 sets a virtual arrangement of the pattern F with respect to the sewing product C in the second specific example. As shown in FIG. 5B, the CPU 61 sets a virtual arrangement of the pattern G with respect to the sewing product C in the specific example 3.
  • the CPU 61 determines whether an instruction to execute the optimization process has been acquired at the start of the main process (S8).
  • the optimization process is a process of setting a virtual arrangement of a plurality of sewing areas with respect to the sewing product C in consideration of the arrangement of the pattern with respect to the sewing product C and optimization conditions.
  • the optimization conditions of this example are selected from a first condition that minimizes the number of divisions of the partial pattern included in the pattern and a second condition that minimizes the number of thread changes.
  • the partial pattern is a pattern that is separated by thread cutting when the pattern is sewn.
  • the instruction to execute the optimization process is not acquired (S8: NO), and the CPU 61 executes the processes of S16 and S17 to be described later to perform relative processing of the plurality of sewing areas and the plurality of sewing areas.
  • the layout of the pattern is displayed on the LCD 15.
  • the CPU 61 executes the optimization process (S9).
  • S9 the optimization process
  • the CPU 61 acquires optimization conditions (S31).
  • the CPU 61 acquires the first condition for the specific example 1.
  • the CPU 61 acquires the second condition for the specific example 2.
  • the CPU 61 further acquires the current optimization condition number.
  • the CPU 1 of this example associates a partial pattern with one sewing area without being divided in the overlapping area even if the partial pattern is arranged in the overlapping area.
  • the optimization condition number is the division number.
  • the pattern E1 does not fit in one sewing area and is arranged in the sewing areas R11 and R12.
  • the pattern E2 does not fit in one sewing area and is disposed in the sewing areas R13 and R14.
  • the CPU 1 acquires 2 as the division number in the first specific example.
  • the optimization condition number is the number of thread changes.
  • the CPU 1 acquires 20 as the number of times of thread change.
  • the CPU61 determines the order combination (S32).
  • the order combination is a combination of orders in which the first graphic set in the continuous area is moved. In specific examples 1 and 2, as shown in a list 49, two combinations are determined.
  • the variable N is 1, the CPU 61 moves the first graphic Y1 in the X direction and then moves the first graphic Y1 in the Y direction.
  • the CPU 61 moves the first graphic Y1 in the Y direction and then moves the first graphic X1 in the X direction.
  • the CPU 61 sets 1 for each of the variables N and M (S33).
  • a variable N is a variable for sequentially reading the combinations determined in S32.
  • the variable M is a variable for reading the first graphic in the movement order in the Nth combination.
  • the CPU 61 acquires the Nth combination among the combinations determined in S32 (S34).
  • the CPU 61 acquires a target region corresponding to the first figure whose movement order is the Mth in the combination acquired in S34 (S35).
  • the CPU 61 acquires the sewing areas R12 and R14 corresponding to the first graphic X1 whose movement order of the first combination is 1 as the target area.
  • the sewing area corresponding to the first graphic X1 may be one sewing area or a plurality of sewing areas.
  • the CPU 61 moves the target area acquired in S35 by a predetermined amount (S36).
  • the predetermined amount may be set as appropriate.
  • the predetermined amount is, for example, an amount smaller than the initial value of the width of the overlapping area.
  • the CPU 61 moves the sewing area corresponding to the first graphic among the plurality of sewing areas with respect to the reference area, and changes the virtual relative position of the plurality of sewing areas with respect to the sewing object C. In specific examples 1 and 2, the CPU 61 moves the sewing regions R12 and R14 acquired in S35 to the left. At this time, the CPU 61 does not change the virtual arrangement of the pattern and the sewing region R11 that is the reference region with respect to the sewing product C.
  • the CPU 61 does not change the virtual arrangement of the sewing region R13 that is not the target region with respect to the sewing product C.
  • the CPU 61 determines whether or not the optimization number when the target area is moved in S36 is smaller than the minimum value of the optimization number (S37).
  • the variable N is 1, the initial value of the minimum number of optimization is the value calculated in S31.
  • the CPU 61 stores the optimized number after reduction and the movement amount of the first graphic X1 (S38).
  • the CPU 61 determines whether or not the Mth first figure can be further moved in the movement direction ( S39). As described above, an allowable range is set in the overlapping range of this example, and the CPU 1 accepts the movement of the first graphic within the range where the overlapping range is the allowable range. For example, the CPU 61 determines that the first figure X1 can be moved when the first figure X1 is further moved to the left by a predetermined amount and the first figure X1 is to the right of the left end of the sewing region R11 (S39: YES). The process returns to S36.
  • the CPU 61 determines the target area acquired in S35.
  • the arrangement is set to an arrangement that minimizes the number of optimizations (S40).
  • the CPU 61 determines whether the variable M is the last number (S41). When the variable M is not the last number (S41: YES), the CPU 61 increments the process by 1 (S42), and returns the process to S35. When the variable M is the last (S41: NO), the CPU 61 acquires the minimum value of the optimization number of the Nth combination (S43).
  • the number of divisions becomes the minimum value in the arrangement shown in FIG. In this case, since the pattern E1 fits in the sewing region R11, the number of divisions is 1.
  • the number of thread changes is the minimum value in the arrangement shown in FIG. In this case, in the sewing region R11, the pattern is sewn with two color threads, and in the sewing regions R12 to R14, the pattern is sewn with six color threads, so 16 is acquired as the minimum value of the number of thread changes. .
  • the CPU 61 determines whether the optimization number acquired in S43 is the minimum value (S44). When the optimization number acquired in S43 is the minimum value (S44: YES), the CPU 61 stores the optimization number of the Nth combination and the relative positions of the plurality of sewing areas with respect to the sewing product C ( S45). When the optimization number acquired in S43 is not the minimum value (S44: NO), or after the process of S45, the CPU 61 determines whether there is a next combination (S46). If there is the next combination (S46: YES), the CPU 61 increments the variable N by 1 (S47), and returns the process to S34.
  • the CPU 61 When there is no next combination (S46: NO), the CPU 61 is set to the combination arrangement that minimizes the number of optimizations in S45 (S48). For each of the plurality of sewing areas, the CPU 61 virtually sets the relative positions of the plurality of sewing areas in the adjacent direction according to the number of partial patterns that fall within the sewing area. In specific example 1, the arrangement of FIG. 3C is set. For each of the plurality of sewing areas, the CPU 61 virtually sets the relative positions of the plurality of sewing areas in the adjacent direction according to the number of thread changes when the thread change is performed according to the color data of the embroidery data. In specific example 2, the arrangement of FIG. 4B is set. The CPU 61 ends the optimization process as described above, and returns the process to the main process in FIG.
  • the user selects the first figure Y1 by operating the touch panel 26 while referring to the LCD 15 so that the overlapping area is not set on the face part of the girl of the pattern G, and the first figure Y1 is selected according to the drag amount being selected.
  • a movement instruction specifying the movement amount of the first figure Y1 in the Y direction is input.
  • the CPU 61 specifies a sewing area to be moved among a plurality of sewing areas as a target area (S11).
  • a target area S11
  • the CPU 61 of this example sews the sewing area corresponding to the first graphic and the sewing corresponding to the first graphic in the movement direction.
  • At least one sewing area on the opposite side to the reference area with respect to the area is specified as a target area.
  • the sewing area which is a reference area with respect to the sewing areas R24 to R26 corresponding to the first figure Y1 and the sewing areas R24 to R26 corresponding to the first figure Y1.
  • Sewing areas R27 to R29 on the side opposite to the area R21 are specified as target areas.
  • the CPU 61 has no sewing area on the side opposite to the sewing area R21 with respect to the sewing areas R27 to R29 corresponding to the first figure Y2.
  • Sewing areas R27 to R29 corresponding to one figure Y2 are specified as the target area.
  • the CPU 61 moves the target area in the movement direction while maintaining the interval in the movement direction of the target area specified in S11, and changes the relative positions of the plurality of sewing areas (S12).
  • FIG. 5C when the first figure Y1 is moved upward in the figure, the sewing area is maintained in the state where the Y-direction interval between the sewing areas R24 to R26 and the sewing areas R27 to R29 is maintained. R24 to R29 are moved in the Y direction.
  • the sewing area R27 to R29 are moved in the Y direction.
  • the width U5 of the overlapping area of the sewing areas R21 and R24 in the Y direction is different from the width U7 of the overlapping area of the sewing areas R24 and R27 in the Y direction.
  • the CPU 61 moves the target area displayed on the LCD 15 by the instructed movement amount, so that the relative positions of the plurality of sewing areas displayed on the LCD 15
  • the display of the pattern arrangement for the plurality of sewing areas is updated (S17).
  • the CPU 61 determines whether a movement instruction for moving the first graphic X1 or X2 is acquired (S13). When the movement instruction to move the first graphic X1 or X2 has not been acquired (S13: NO), the CPU 61 executes a process of S18 described later. When a movement instruction for moving the first graphic X1 or X2 is acquired (S13: YES), the CPU 61 specifies a target area to be moved (S14), similarly to S11 and S12, and the designated movement. The amount and the target area are moved (S15).
  • the CPU 61 performs a division process after the processes of S9, S12, and S15 (S16).
  • a process of associating each of the plurality of stitches representing the pattern with one of the plurality of sewing regions that accommodate the stitches is executed.
  • the dividing process will be described using a specific example 1.
  • the CPU 61 sets 1 to the variable N (S51).
  • the variable N is a variable for acquiring the first graphic in order.
  • the CPU 61 acquires, for example, the first graphic X1 (S52).
  • the CPU 61 sets the position of the overlapping range for the overlapping area defined by the first graphic X1 acquired in S52 (S53).
  • the first graphic X1 defines the left end of the sewing regions R12, R14.
  • the first graphic X1 defines an overlapping region of the sewing regions R11 and R12 and an overlapping region of the sewing regions R13 and R14, which are indicated by the width U1 in the X direction in FIG.
  • the CPU 61 sets the position of the overlapping range with respect to the overlapping region defined by the Nth first graphic based on the instruction about the position of the overlapping range with respect to the overlapping region at the start of the main processing.
  • the position of the overlapping range with respect to the overlapping region is designated by, for example, the positional relationship between the representative point of the overlapping region and the representative point of the overlapping range in the movement direction. For example, the CPU 61 sets a position where the left end of the overlapping area matches the left end of the overlapping range.
  • the CPU 61 sets the overlap amount for the overlap area defined by the first graphic X1 acquired in S52 (S54).
  • the CPU 61 sets the overlap amount for the overlap region defined by the Nth first graphic based on the instruction about the overlap amount for the overlap region at the start of the main process.
  • the CPU 61 sets the overlapping range in the range indicated by the width U2 in the X direction in FIG. 3C for the overlapping region defined by the first graphic X1.
  • the width U2 corresponds to the amount of overlap.
  • the CPU 61 determines whether the variable N is smaller than the first figure number (S55).
  • the CPU 61 increments the variable N by 1 (S56), and returns the process to S52.
  • the CPU 61 sets 1 to each of the variables M and P (S57).
  • the variable M is a variable for acquiring partial patterns in order.
  • the variable P is a variable for acquiring the sewing area in order.
  • CPU61 acquires the Mth partial pattern (S58). For example, the CPU 61 acquires the pattern E1 of the first specific example.
  • the CPU 61 acquires the Pth sewing area (S59). For example, the CPU 61 acquires the sewing region R11.
  • CPU61 judges whether the partial pattern acquired by S58 is arrange
  • the CPU 61 determines whether or not the partial pattern acquired in S58 falls within the sewing area acquired in S59 (S61). For example, the CPU 61 determines that the pattern E1 does not fit within the sewing region R11 based on the virtual arrangement of the pattern E1 with respect to the sewing product C and the virtual arrangement of the sewing region R11 with respect to the sewing product C ( S61: NO). In this case, the CPU 61 determines whether there is a next sewing area (S63).
  • the CPU 61 increments the variable P by 1 (S64), and returns the process to S59.
  • the CPU 61 determines that the pattern E1 is arranged in the sewing area R12 (S60: YES) and the pattern E1 is within the sewing area R12 (S61: YES). In this case, the CPU 61 associates the plurality of stitches representing the pattern E1 with the sewing region R12 so that all the plurality of stitches representing the pattern E1 are sewn within the sewing region R12 (S62).
  • the pattern E1 is arranged in the sewing area R11 by the process of S62, but none of the plurality of stitches representing the pattern E1 is associated with the sewing area R11.
  • the CPU 61 determines whether there is a next partial pattern (S65). When there is the next pattern (S65: YES), the CPU 61 increments the variable M by 1 and sets 1 to the variable P (S66). The CPU 61 returns the process to S58.
  • the pattern E2 is acquired (S58), it is determined that the pattern E2 is not in each of the sewing regions R11 and R12 (S60: NO) and is in the sewing regions R13 and R14 in the repeatedly executed processing. Therefore, it is determined that it does not fit in each of the sewing regions R13 and R14 (S60: YES, S61: NO). In this case, the plurality of stitches representing the pattern E2 are not associated with any of the sewing regions R11 to R14 in S62.
  • the CPU 61 determines that there is no next partial pattern (S65: NO), and determines the partial pattern that is not associated with any of the sewing areas in the process of S62 in the overlapping direction in the division direction orthogonal to the adjacent direction.
  • the pattern is divided (S67).
  • the CPU 61 divides the pattern E2 in the Y direction orthogonal to the X direction in the overlapping range indicated by the width U2 set in the sewing regions R13 and R14 in which the pattern E2 is arranged.
  • the pattern E2 is divided into patterns E3 and E4.
  • the stitches representing the pattern E3 and the stitches representing the pattern E4 are associated with the sewing regions R13 and R14, respectively.
  • the CPU 61 sets an alignment stitch (S68).
  • the alignment stitch is a stitch for confirming whether the relative positions of the actual plurality of sewing areas with respect to the sewing product C coincide with the virtual arrangement of the plurality of sewing areas with respect to the sewing product C. .
  • the alignment stitch is arranged at the same position in the overlap area for each of the sewing area and the adjacent area.
  • the CPU 61 sets the alignment stitches D1 and D2 that are arranged at the same position in the overlapping region for each of the sewing region R12 and the adjacent region R14.
  • the setting of the alignment stitch may be omitted as necessary.
  • the CPU 61 ends the dividing process as described above, and returns the process to the main process in FIG.
  • the width U4 of the overlapping region of the sewing regions R11, R12 is set as the overlap amount, and the width U3 of the overlapping region of the sewing regions R11, R13 is overlapped.
  • the pattern F is divided into the partial patterns F1 to F4 under the condition set to the amount.
  • the partial patterns F1 to F4 are respectively associated with the sewing areas R11 to R14.
  • the partial pattern F1 is a pattern that is sewn with two color threads
  • the partial patterns F2 to F4 are patterns that are sewn with six color threads.
  • the pattern is divided in the overlapping range shown in black in the sewing region R25, and the face of the girl is changed. The pattern is not divided in the portion to be represented.
  • the CPU 61 updates the display on LCD 15 (S17).
  • the CPU 61 reflects the change result of either the change in the relative position of the target area with respect to the workpiece C according to the movement of the first graphic and the correspondence between the sewing area and the plurality of stitches set in S16. Let The CPU 61 determines whether an instruction to start sewing has been acquired (S18). When the button 52 is selected, the CPU 61 determines that an instruction to start sewing has been acquired. When the instruction to start sewing has not been acquired (S18: NO), the CPU 61 returns the process to S5.
  • the CPU 61 sets the positions of the plurality of stitches with respect to the sewing area based on the correspondence between the sewing area set in S16 and the plurality of stitches representing the pattern.
  • Embroidery data including the needle entry data to be represented is generated (S19).
  • the embroidery data is generated for each sewing area and includes needle drop point data, sewing order, and color data.
  • the embroidery data corresponding to the sewing area of interest includes needle drop data representing a plurality of stitches representing the pattern of the portion located in the sewing area of interest, but sews the stitches that are outside the sewing area of interest. Needle entry data is not included.
  • the CPU 61 embroiders the partial pattern E1 that fits in the sewing area R12 based on the correspondence between the sewing area set in S16 and the plurality of stitches representing the pattern in the sewing area R12. Data is generated, and embroidery data for sewing the partial pattern E1 is not generated in the adjacent region R11 of the sewing region R12.
  • the partial pattern E2 is arranged in the sewing area R13, but it is determined that it does not fit in the sewing area R13 and does not fit in the adjacent area R14 of the sewing area R13.
  • the partial pattern E2 is divided in the Y direction within the overlapping region with the adjacent region R14.
  • the CPU 61 generates embroidery data to be sewn in the sewing region R13, which represents the stitches representing the partial pattern E3 that fits in the sewing region R13.
  • the CPU 61 generates embroidery data to be sewn in the adjacent region R14 for the stitch representing the partial pattern E4 that does not fit in the sewing region R13.
  • the CPU 61 generates embroidery data so that a part of the partial pattern E3 and the partial pattern E4 are overlapped in the X direction so as to be blurred.
  • a conventional method may be appropriately employed. For example, a method described in Japanese Patent Laid-Open No. 2000-024350 is used.
  • the CPU 61 sets the overlapping amount of the partial pattern E3 and the partial pattern E4 in the adjacent direction to be smaller than the length of the overlapping area in the adjacent direction, and generates embroidery data.
  • the CPU 61 divides the partial pattern set in the process of S16 into the partial pattern E3 and the partial pattern E4 by the position and amount of the overlapping range, and embroidery data is divided. Generate.
  • the sewing order of the embroidery data corresponding to each sewing area may be set as appropriate.
  • the CPU 61 generates embroidery data for sewing patterns in the order of patterns E1, E4, and E3.
  • the CPU 61 generates embroidery data including needle entry data for sewing the alignment stitch.
  • the embroidery data for the sewing region R12 may include needle drop data for sewing the alignment stitch D1.
  • the embroidery data for the sewing region R14 may include needle entry data for sewing the alignment stitches D2 and D3.
  • the embroidery data for the sewing region R13 may include needle entry data for sewing the alignment stitch D4.
  • the CPU 61 generates embroidery data for sewing the stitches representing the pattern F in the order of the patterns F1 to F4.
  • the CPU 61 also generates embroidery data corresponding to each sewing area in the third specific example.
  • CPU 61 executes print data generation processing (S20).
  • print data generation processing print data for printing the second graphic indicating the relative positions of the plurality of sewing areas is generated.
  • the CPU 61 acquires the size of the printing region PR (S71).
  • the CPU 61 may acquire the print region PR based on a value instructed by the user, or acquire the size of the paper (for example, JIS standard A4 size) mounted on the printing device 17 from the printing device 17. May be set.
  • CPU61 acquires arrangement of a plurality of sewing fields (S72). For example, the CPU 61 acquires the arrangement of the continuous region R1 illustrated in FIG.
  • the CPU 61 specifies the centers C1 to C4 of each of the sewing areas R11 to R14.
  • the CPU 61 generates print data for printing the second graphic indicating the relative positions of the plurality of sewing areas (S73).
  • the 2nd figure should just show the relative position of a plurality of sewing fields.
  • the second graphic in this example is a double arrow extending in the X direction indicating the center of the sewing area.
  • the CPU 61 connects the centers C1 to C4 of the sewing regions R11 to R14 specified in the process of S72 with the second graphics Z1 and Z2 extending in the X direction and the second graphics Z3 and Z4 extending in the Y direction.
  • the CPU 61 associates the lengths of the second figures Z1 and Z2 in the X direction with the lengths of the line segments connecting the centers C1 and C2.
  • the length in the Y direction of the second figures Z3 and Z4 is made to correspond to the length of the line segment connecting the centers C1 and C3.
  • the second graphics Z1, Z2 and the second graphics Z3, Z4 may be distinguishable by line type, thickness, color, and the like.
  • the CPU 61 outputs the print data generated in S73 as information indicating the relative positions of the plurality of sewing areas (S74). For example, the CPU 61 transmits the generated print data to the printing apparatus 17 via the network 16.
  • the printing device 17 that has received the print data prints the second graphics Z1 to Z4 on a sheet-like print medium (for example, paper) according to the print data.
  • the CPU 61 ends the print data generation process as described above, and returns the process to the main process of FIG.
  • the user gives a mark to the sewing product C when setting a plurality of sewing areas in order for the sewing product C using the printed print medium. For example, the user punches holes at the tips of the printed second graphics Z1 to Z4.
  • the user arranges the print medium with respect to the sewing object C in accordance with the virtual arrangement of the plurality of sewing areas with respect to the sewing object C, and marks the position of the hole with a chaco pen or the like.
  • the embroidery on the sewing product C is performed such that the extending direction of the line connecting the centers C1 and C2 is the X direction and the center C2 is the center of the sewing region.
  • the arrangement of the frame 45 is set.
  • the CPU 61 executes a sewing process (S21).
  • a sewing process a process of sewing the stitches representing the pattern onto the sewing product C is executed according to the embroidery data generated in S19.
  • the CPU 61 sets 1 for each of the variables M and Q (S81), and acquires the Mth embroidery data (S82).
  • the CPU 61 acquires the pattern data of the Qth partial pattern from the Mth embroidery data (S83).
  • the pattern data is embroidery data for each partial pattern.
  • the CPU 61 determines that the thread change is necessary based on the Qth pattern data acquired in S83 (S84: YES)
  • the CPU 61 causes the LCD 15 to display a message indicating that the thread change is necessary. (S85).
  • the CPU 61 increments the variable Q by 1 (S89), and returns the process to S83. If there is no unsewn partial pattern (S88: NO), the CPU 61 increments the variable M by 1 and sets the variable Q to 1 if there is embroidery data corresponding to the next sewing area in the sewing order (S91: YES). Is set (S92). When the CPU 61 does not sew the alignment stitch (S93: NO), the CPU 61 returns the process to S82.
  • the CPU 61 may display a message prompting the user to change the arrangement of the embroidery frame 45 with respect to the sewing product C in accordance with the virtual arrangement with respect to the sewing product C in the sewing area in the next sewing order.
  • the CPU 61 sews the alignment stitch according to the embroidery data (S94).
  • the CPU 61 displays a message for urging to change the arrangement of the embroidery frame 45 with respect to the sewing product C in accordance with the virtual arrangement with respect to the sewing product C in the sewing area of the next sewing order (S95).
  • the user changes the arrangement of the embroidery frame 45 with respect to the sewing product C according to the virtual arrangement with respect to the sewing product C in the sewing area in the sewing order, and then presses the start / stop switch 29 to align the stitches. Enter the instructions for sewing.
  • the CPU 61 waits until an instruction to sew the alignment stitch is acquired (S96: NO).
  • the CPU 61 obtains an instruction to sew the alignment stitch (S96: YES)
  • the CPU 61 sews the alignment stitch (S97).
  • the user confirms whether the alignment stitch sewn in S94 and the alignment stitch sewn in S97 are sewn at the same position.
  • CPU61 determines that the alignment seam sewn in S94 and the alignment seam sewn in S97 are shifted beyond the allowable range, for example, the user operates the touch panel 26 to perform the alignment. Input an instruction to redo the stitches.
  • CPU61 returns a process to S95, when the instruction
  • an instruction to execute the alignment stitch is input again.
  • CPU61 returns a process to S82, when the instruction
  • the CPU 61 ends the sewing process as described above, and returns the process to the main process of FIG.
  • the CPU 61 ends the main process after the process of S21.
  • the alignment stitches D ⁇ b> 1 to D ⁇ b> 4 are sewn by the sewing process, so that the user can arrange the embroidery frame 45 with respect to the sewing product C so that It can be confirmed before the start of the sewing of the pattern relating to the next sewing area whether it matches the virtual arrangement of the plurality of sewing areas.
  • the process of S6 is an example of the pattern acquisition step of the present invention.
  • the process of S1 is an example of the region acquisition step of the present invention.
  • the processing of S3 and S48 is an example of the region setting step of the present invention.
  • the process of S7 is an example of the pattern setting step of the present invention.
  • the processing of S12 and S15 is an example of a change step of the present invention.
  • the process of S19 is an example of an embroidery data generation step.
  • the process of S2 is an example of the overlap setting step of the present invention.
  • the process of S17 after S7 is an example of the display step of the present invention.
  • the process of S17 after S12 or S15 is an example of the display update step of the present invention.
  • the processing of S10 and S13 is an example of an instruction acquisition step.
  • the process of S74 is an example of an output step of the present invention.
  • the process of S73 is an example of a print data generation step of the present invention.
  • the sewing machine 10 can change the relative positions of a plurality of sewing areas when an embroidery pattern larger than the sewing area is divided into a plurality of partial patterns smaller than the sewing area.
  • the sewing machine 10 can improve the degree of freedom in setting the arrangement of the pattern with respect to the sewing area, as compared with the conventional apparatus that cannot change the relative positions of the plurality of sewing areas.
  • the sewing machine 10 can be sewn immediately based on the generated embroidery data.
  • the sewing machine 10 virtually sets a continuous region as a whole of the plurality of sewing regions by arranging the sewing region and a part of the adjacent region so as to overlap each of the plurality of sewing regions (S3). .
  • the sewing machine 10 changes the relative position of each of the plurality of sewing regions in the adjacent direction connecting the center of the sewing region and the center of the adjacent region (S12, S15).
  • the sewing machine 10 divides an embroidery pattern larger than the sewing area into a plurality of partial patterns smaller than the sewing area, the sewing machine 10 can change the relative position in the adjacent direction for each of the plurality of sewing areas.
  • the sewing machine 10 When the sewing machine 10 includes a plurality of partial patterns that are separated by thread cutting when the pattern is sewn, the partial pattern that fits within the sewing area is within the plurality of partial patterns for each of the plurality of sewing areas.
  • the embroidery data for sewing the partial pattern in the sewing area is generated, and the embroidery data for sewing the partial pattern is not generated in the area adjacent to the sewing area (S19).
  • the sewing machine 10 is arranged in the sewing area among the plurality of partial patterns for each of the plurality of sewing areas. However, the partial pattern that does not fit in the sewing area and does not fit in the adjacent area of the sewing area And an overlapping region that overlaps the adjacent region is divided in a dividing direction orthogonal to the adjacent direction.
  • the sewing machine 10 generates embroidery data for sewing in the sewing area a partial pattern that fits in the sewing area among the divided partial patterns, and generates embroidery data for sewing a partial pattern that does not fit in the sewing area in the area adjacent to the sewing area. (S19).
  • the sewing machine 10 can suppress the generation of embroidery data that divides and sews a partial pattern that fits within one sewing area among a plurality of sewing areas that form a continuous area.
  • the embroidery pattern sewn in accordance with the generated embroidery data has a beautiful embroidery finish as compared to an embroidery pattern sewn by dividing the partial pattern even when the partial pattern fits within one sewing area.
  • the sewing machine 10 When the sewing machine 10 divides the partial pattern in the overlapping area, the sewing machine 10 generates the embroidery data by performing blur connection by overlapping a part of the two divided partial patterns in the adjacent direction (S19). The sewing machine 10 can generate embroidery data in which the division position is less noticeable when the partial pattern is divided and sewn.
  • the sewing machine 10 sets the overlapping amount in the adjacent direction of a part of the two divided partial patterns to be smaller than the length of the overlapping region in the adjacent direction, and generates embroidery data (S19).
  • the sewing machine 10 can generate embroidery data in which the division position is not noticeable even when the overlap area is relatively large when the partial pattern is divided and sewn.
  • the sewing machine 10 sets the position of the overlap range and the overlap amount with respect to the overlap region (S2).
  • the sewing machine 10 divides the partial pattern into two partial patterns based on the position of the overlapping range set in S2 and the overlapping amount to generate embroidery data (S16, S19).
  • the sewing machine 10 can generate embroidery data in which two divided partial patterns are overlapped by a set amount at a set position in the divided area.
  • the sewing machine 10 can improve the degree of freedom in setting the pattern arrangement with respect to the sewing area, as compared with the conventional apparatus in which the overlapping range and the overlapping amount cannot be set.
  • Specific Example 3 as shown in FIG.
  • the width U5 of the overlapping range of the sewing regions R21 and R24 in the Y direction is different from the width U7 of the overlapping range of the sewing regions R24 and R27 in the Y direction. .
  • the sewing machine 10 can set the overlapping amount in the Y direction to the same value U2 in the overlapping range of the sewing regions R21 and R24 and the overlapping range of the sewing regions R24 and R27. By doing so, the sewing machine 10 can suppress the possibility that the embroidery finish is impaired due to the difference in the overlap amount in the embroidery pattern.
  • the sewing machine 10 has a plurality of sewing patterns in the adjacent direction according to the number of partial patterns that fall within the sewing area among the plurality of partial patterns that are divided by thread cutting when sewing a pattern for each of the plurality of sewing areas.
  • the relative position of the sewing area is virtually set (S48).
  • the sewing machine 10 can automatically set the relative positions of a plurality of sewing areas from the viewpoint of sewing without dividing the partial pattern as much as possible. Since the sewing machine 10 sews the partial pattern as much as possible, the user can save time and effort for setting the relative positions of the plurality of sewing regions by trial and error.
  • the sewing machine 10 virtually sets the relative positions of the plurality of sewing areas in the adjacent direction according to the number of thread changes when the thread change is performed according to the color data of the embroidery data for each of the plurality of sewing areas ( S48).
  • the sewing machine 10 can automatically set the relative positions of a plurality of sewing areas from the viewpoint of the number of thread changes when sewing according to embroidery data.
  • the sewing machine 10 saves time and effort for setting the relative positions of the plurality of sewing regions by trial and error in order to consider the number of thread changes when the user performs sewing according to the embroidery data.
  • the sewing machine 10 can reduce the sewing time by generating the embroidery data under the condition that takes into account the number of thread changes.
  • the sewing machine 10 fixes the position of the reference area, which is a reference sewing area among the plurality of sewing areas, on the LCD 15 and displays the relative positions of the plurality of sewing areas and the arrangement of the patterns with respect to the plurality of sewing areas ( S17 after S7).
  • the sewing machine 10 moves the target area of the plurality of sewing areas relative to the reference area, so that the plurality of sewing areas displayed on the LCD 15 And the arrangement of the patterns with respect to the plurality of sewing areas are updated (S17 after S12 or S15).
  • the sewing machine 10 can display the relative positions of the plurality of sewing areas and the arrangement of the patterns with respect to the plurality of sewing areas. The user can check the change result of the relative positions of the plurality of sewing areas with reference to the LCD 15.
  • the sewing machine 10 displays on the LCD 15 a first graphic indicating a relative position for each of the plurality of sewing regions (S4, S17).
  • the sewing machine 10 acquires a movement instruction to move the first graphic corresponding to any of the plurality of sewing areas (S10, S13).
  • the sewing machine 10 moves the sewing area corresponding to the first graphic among the plurality of sewing areas with respect to the reference area, and changes the relative positions of the plurality of sewing areas ( S12, S15).
  • the sewing machine 10 can change the relative positions of the plurality of sewing areas in accordance with an instruction to move the first graphic corresponding to any of the plurality of sewing areas in the adjacent direction.
  • the user can move a desired sewing area by a desired amount by inputting an instruction to move the first graphic corresponding to the sewing area to be moved.
  • the sewing machine 10 moves the target area in the movement direction while maintaining the interval in the movement direction of the target area.
  • the relative position of the sewing area is changed (S12, S15).
  • the CPU 61 specifies a sewing area corresponding to the first graphic and at least one sewing area on the opposite side of the reference area with respect to the sewing area corresponding to the first graphic as target areas.
  • the sewing machine 10 can move the target area while maintaining the interval in the adjacent direction of the target area.
  • the sewing machine 10 can save the user from having to move other sewing areas in accordance with the movement of one sewing area.
  • the sewing machine 10 outputs information indicating the relative positions of the plurality of sewing areas. Specifically, the sewing machine 10 generates print data for printing the second graphic indicating the relative positions of the plurality of sewing areas (S73), and outputs the generated print data (S74). The sewing machine 10 can generate and output print data for printing the second graphic.
  • the printing device 17 prints the second graphic in accordance with the print data
  • the user aligns the printed second graphic with the relative positions of the plurality of sewing areas and holds the sewing product C on the embroidery frame 45. It can be used as a guide. That is, the sewing machine 10 can improve the convenience when the user sets the position of the embroidery frame 45 with respect to the sewing object C according to the relative positions of the plurality of sewing areas.
  • the non-transitory computer-readable medium and the embroidery data generation method of the present invention are not limited to the above-described embodiments, and various changes 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 non-transitory computer-readable medium may be any readable / writable removable medium such as a magnetic disk, a magneto-optical disk, an optical disk, or a semiconductor memory.
  • the non-transitory computer readable medium may be a non-portable storage unit such as a built-in hard disk drive or an SSD (Solid State Drive) fixedly attached to a computer that executes processing.
  • the configuration of the apparatus that executes the instructions stored in the non-transitory computer-readable medium may be changed as appropriate.
  • the sewing machine 10 may be any sewing machine capable of embroidery sewing, and may be an industrial sewing machine or a multi-needle sewing machine. Part or all of the processing other than the sewing processing of the main processing may be executed by the device 20.
  • the configuration of the device 20 may be changed as appropriate.
  • the device 20 may be a dedicated device or a portable terminal device such as a smartphone or a tablet PC.
  • a pattern may be sewn by the sewing machine 10 based on the embroidery data generated by the apparatus 20.
  • the sewing machine 10 may not include the image sensor 35 and the detector 36.
  • the program including a command for executing the main process (see FIG. 2) executed by the sewing machine 10 may be stored in the storage device of the sewing machine 10 until the CPU 61 executes the program. Accordingly, 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 CPU 61 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 (see FIG. 2) executed by the sewing machine 10 is not limited to the example executed by the CPU 61, and part or all of the steps are executed by another electronic device (for example, ASIC). Also good.
  • Each step of the main process may be distributed by a plurality of electronic devices (for example, a plurality of CPUs).
  • Each step of the main process can be changed in order, omitted, or added as necessary.
  • a mode in which an operating system (OS) or the like running on the sewing machine 10 performs part or all of the main processing based on a command from the CPU 61 is also included in the scope of the present disclosure. For example, the following changes (C-1) to (C-5) may be appropriately added to the main process.
  • the size and shape of the plurality of sewing areas may be the same or different from each other.
  • the virtual arrangement of the plurality of sewing areas with respect to the workpiece C may be any arrangement as shown in FIG. 10 (A), for example.
  • sewing areas R31 to R34 are set corresponding to the partial patterns H1 to H4 for the pattern H representing the tulips including the partial patterns H1 to H4.
  • the sewing regions R31 to R34 have the same size, but the longitudinal directions of the sewing regions R31 to R34 are different from each other.
  • the sewing areas R31 to R34 form a continuous area R3.
  • Such an arrangement can be realized, for example, by allowing the CPU 61 to individually move and rotate a plurality of sewing areas in the above embodiment.
  • the virtual arrangement of the plurality of sewing areas with respect to the workpiece C is, for example, as shown in FIG. 10B, in which the plurality of sewing areas R4 and R5 are separated from each other and do not constitute a continuous area. Also good.
  • the CPU 61 as information indicating the relative positions of the plurality of sewing areas, for example, information indicating the extending direction of the sewing areas, the distance between the centers of the sewing areas, the amount of deviation in the X direction and Y direction of the center of the sewing areas. May be output by display, printing, voice output, or the like.
  • the user may set the arrangement of the embroidery frame 45 with respect to the sewing object C in accordance with the virtual arrangement of the sewing areas R4 and R5 based on the output information.
  • the CPU 61 performs the optimization process in the optimization process when the plurality of sewing areas are separated from each other and does not constitute a continuous area, as shown in FIG. 10 (C).
  • a continuous region R6 including the sewing regions R61 to R64 may be set.
  • the CPU 61 may set the alignment stitches D5 to D7 in S68. By doing so, at least one of the stitches representing the pattern and the alignment stitches can be sewn in each of the plurality of sewing regions R61 to R64.
  • the process of outputting information indicating the relative positions of the plurality of sewing areas may be omitted as appropriate.
  • a plurality of sewing regions R61 to R64 may be aligned by a known method using the image sensor 35.
  • the pattern may be sewn with a single color thread, and the embroidery data may not include thread data.
  • the embroidery data may be data for sewing a cross stitch pattern, for example.
  • the method of dividing the partial pattern in the overlapping area may be changed as appropriate.
  • the stitches representing the patterns divided in the overlapping region are not blurred and may not partially overlap.
  • a specified value may be set for the position of the overlapping range with respect to the overlapping region and / or the amount of overlapping, or may be set by the user, or may not be changed. Even a partial pattern that fits in any sewing area may be divided within the overlapping area.
  • the reference area may also be movable. The shape and arrangement of the alignment stitches may be changed as appropriate.
  • the overlapping range and the overlapping amount may be changed according to the stitches in the direction orthogonal to the moving direction connected by the blur connection. More specifically, the overlapping range and the overlapping amount may be set so that the amount of the pattern connected by the blur connection is minimized. At least one of the overlapping range and the overlapping amount may be individually set in a plurality of overlapping regions.
  • the shape, size, color, arrangement, etc. of the first graphic and the second graphic may be appropriately changed.
  • the virtual arrangement of a plurality of sewing areas with respect to the sewing object C may be set.
  • the CPU 61 automatically sets a plurality of sewing areas for the sewing product C in consideration of optimization conditions by executing an optimization process after setting a virtual layout of the pattern on the sewing product C.
  • the virtual relative position may be set.
  • the optimization condition may be either the first condition or the second condition, or may be another condition.
  • Other conditions include, for example, a condition in which the number of the plurality of sewing areas is the minimum, and the size of the overlapping range in the designated area (for example, the face portion of the girl in Example 3 shown in FIG. 5) is the minimum. Or a condition that the continuous sewing time is maximized.
  • the movement instruction input method may be changed as appropriate.
  • the selection of the target region and the movement amount may be specified by the drag amount in a state where the sewing region to be moved is selected.
  • the width of the overlapping area may be designated by numerical input.
  • the CPU 61 may accept movement only in specific directions such as the X direction and the Y direction. If the pattern is outside the plurality of sewing areas when the target area is moved in accordance with the movement instruction, the CPU 61 may display an error message, or the pattern may be within the plurality of sewing areas. A new sewing area may be added according to a predetermined condition. Even if the amount of overlap of the attention sewing area is the minimum value or more and the attention sewing area does not overlap with the adjacent area in the specific direction of the adjacent area in the specific direction with respect to the attention sewing area. Good.
  • the division process of S16 may be executed when embroidery data is generated. After the division processing (S16) and the embroidery data generation are executed (S19), the display may be updated (S17).
  • the processes of S20 and S21 may be omitted as appropriate. For example, when the main process is executed in the sewing machine 10, the sewing machine 10 may store the embroidery data in the flash memory 64 or the like without generating the embroidery data based on the embroidery data.

Landscapes

  • Engineering & Computer Science (AREA)
  • Textile Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Sewing Machines And Sewing (AREA)

Abstract

縫製領域よりも大きな刺繍模様を縫製領域よりも小さい複数の部分模様に分割する場合の、縫製領域に対する複数の部分模様の配置の設定の自由度を向上した非一時的コンピュータ可読媒体及び刺繍データ生成方法を提供すること。 刺繍データ生成方法では、刺繍枠の内側に設定される縫製領域の大きさが取得され、被縫製物に対する複数の縫製領域の仮想的な配置が設定される(S1、S3)。 模様が取得され、被縫製物に対する模様の仮想的な配置が設定される(S6、S7)。設定された複数の縫製領域の相対位置が変更される(S12、S15)。相対位置が変更された複数の縫製領域の各々について、縫製領域内に位置する部分の模様を表す複数の縫目であって、当該縫製領域に対する複数の縫目の位置を表す針落ちデータを含む刺繍データが生成される(S19)。

Description

非一時的コンピュータ可読媒体及び刺繍データ生成方法
 本発明は、非一時的コンピュータ可読媒体及び刺繍データ生成方法に関する。
 刺繍縫製が可能なミシンは、通常、被縫製物を保持する刺繍枠を用い、刺繍枠の種類に応じて刺繍枠の内側に設定される縫製領域内で刺繍縫製を行う。特許文献1には、縫製領域よりも大きな刺繍模様を縫製領域よりも小さい複数の部分模様に分割し、複数の部分模様に対応する刺繍データを記憶したミシンが開示されている。このミシンは、刺繍データに従って、複数の部分模様を順次縫製することで、縫製領域よりも大きな模様を縫製する。ユーザは、複数の部分模様のうち一つが縫製される度に、被縫製物の刺繍枠に対する保持位置を変更する。上記ミシンは撮影部を備え、刺繍枠による被縫製物の保持位置の変更前と後とに、被縫製物の表面に配置された標識を撮影する。ミシンは、これらの標識の画像から複数の特徴点を抽出し、抽出された複数の特徴点の各々に基づいて、複数の部分模様間の位置合わせを行う。
特開2000-24350号公報
 従来の装置では、縫製領域よりも大きな模様を、被縫製物の刺繍枠に対する保持位置を変更して縫製する場合に用いられる刺繍データを生成する場合の、縫製領域に対する模様の配置の設定の自由度が比較的低い。
 本発明は、縫製領域よりも大きな刺繍模様を縫製領域よりも小さい複数の部分模様に分割する場合の、縫製領域に対する複数の部分模様の配置の設定の自由度を向上した非一時的コンピュータ可読媒体及び刺繍データ生成方法を提供することを目的とする。
 本発明の第一態様に係る非一時的コンピュータ可読媒体は、コンピュータ読み取り可能な指示を記憶する、非一時的コンピュータ可読媒体であって、前記指示は、模様を取得する模様取得ステップと、刺繍枠の内側に設定される縫製領域の大きさを取得する領域取得ステップと、被縫製物に対する複数の前記縫製領域の仮想的な配置を設定する領域設定ステップと、前記被縫製物に対する前記模様の仮想的な配置を設定する模様設定ステップと、設定された前記複数の縫製領域の相対位置を変更する変更ステップと、前記相対位置が変更された前記複数の縫製領域の各々について、前記縫製領域内に位置する部分の前記模様を表す複数の縫目であって、当該縫製領域に対する前記複数の縫目の位置を表す針落ちデータを含む刺繍データを生成する刺繍データ生成ステップとをコンピュータに実行させる。
 第一態様の非一時的コンピュータ可読媒体が記憶するコンピュータ読み取り可能な指示をコンピュータが実行した時、コンピュータは、縫製領域よりも大きな刺繍模様を縫製領域よりも小さい複数の部分模様に分割する場合の、複数の縫製領域の相対位置を変更できる。コンピュータは、複数の縫製領域の相対位置を変更できない従来の装置に比べ、縫製領域に対する模様の配置の設定の自由度を向上できる。
 本発明の第二態様に係る刺繍データ生成方法は、模様を取得する模様取得ステップと、刺繍枠の内側に設定される縫製領域の大きさを取得する領域取得ステップと、被縫製物に対する複数の前記縫製領域の仮想的な配置を設定する領域設定ステップと、前記被縫製物に対する前記模様の仮想的な配置を設定する模様設定ステップと、設定された前記複数の縫製領域の相対位置を変更する変更ステップと、前記相対位置が変更された前記複数の縫製領域の各々について、前記縫製領域内に位置する部分の前記模様を表す複数の縫目であって、当該縫製領域に対する前記複数の縫目の位置を表す針落ちデータを含む刺繍データを生成する刺繍データ生成ステップとを備える。第二態様の刺繍データ生成方法は、第一態様の非一時的コンピュータ可読媒体と同様の効果を奏する。
ミシン10、印刷装置17、及び刺繍データ生成装置20を備える縫製システム30の概要図である。 メイン処理のフローチャートである。 具体例1の模様Eを表す縫目を縫製するための刺繍データを生成する過程の説明である。 具体例2の模様Fを表す縫目を縫製するための刺繍データを生成する過程の説明である。 具体例3の模様Gを表す縫目を縫製するための刺繍データを生成する過程の説明である。 図2のメイン処理で実行される最適化処理のフローチャートである。 図2のメイン処理で実行される分割処理のフローチャートである。 図2のメイン処理で実行される印刷データ生成処理のフローチャートである。 図2のメイン処理で実行される縫製処理のフローチャートである。 (A)は変形例における被縫製物に対する模様Hと連続領域R3との仮想的な配置の説明図であり、(B)は変形例における被縫製物に対する模様Hと縫製領域R4、R5との仮想的な配置の説明図であり、(C)は変形例における被縫製物に対する模様Hと連続領域R6との仮想的な配置の説明図である。
 本開示の実施形態を、図面を参照して説明する。本明細書では、コンピュータの処理の対象となる、画像データを単に「画像」とも呼ぶ。図1に示すように、縫製システム30は、ミシン10、印刷装置17及び刺繍データ生成装置20(以下、「装置20」という。)を備える。ミシン10は、刺繍縫製が可能なミシンである。印刷装置17は、ネットワーク16を介して受信される印刷データに従って、印刷処理を実行する。装置20は、表示部9、マウス21及びキーボード22を備える、周知のパーソナルコンピュータ(PC)である。
〈1.ミシン10と刺繍枠45の物理的構成〉
 図1に示すように、ミシン10は、ベッド部11、脚柱部12、アーム部13、頭部14、移動機構40及びイメージセンサ35を備える。ベッド部11は、左右方向に延びるミシン10の土台部である。脚柱部12は、ベッド部11の右端部から上方へ立設される。脚柱部12の前面には、LCD15及びタッチパネル26が設けられる。アーム部13は、ベッド部11に対向して脚柱部12の上端から左方へ延びる。頭部14は、アーム部13の左先端部に連結する部位である。頭部14には、図示しないが、針棒、押え棒、及び針棒上下動機構等が設けられる。針棒の下端には、縫針が着脱可能に装着される。イメージセンサ35は針棒の下方を撮影できる。
 移動機構40は、針棒に対して刺繍枠45に保持された被縫製物Cを相対的に移動可能に構成される。移動機構40は、本体ケース41と、キャリッジ42を備える。刺繍縫製時には、ユーザは、キャリッジ42に、刺繍枠45を装着する。刺繍枠45は、キャリッジ42に収容されたY方向移動機構(図示略)及び本体ケース41内に収容されたX方向移動機構(図示略)によって、ミシン10に固有のXY座標系(刺繍座標系)で示される針落ち点に移動される。刺繍枠45が移動されるのと合わせて、縫針が装着された針棒及び釜機構(図示略)が駆動されることにより、被縫製物C上に刺繍模様が形成される。移動機構40には、大きさの異なる複数種類の刺繍枠45から選択された1つの刺繍枠45を装着できる。
〈2.ミシン10の電気的構成〉
 図1を参照して、縫製システム30のミシン10及び装置20の電気的構成を順に説明する。図1に示すように、ミシン10は、CPU61、ROM62、RAM63、フラッシュメモリ64、入出力インターフェイス(I/O)66、及び通信I/F67を備えている。CPU61はバス65を介して、ROM62、RAM63、フラッシュメモリ64、入出力I/O66、及び通信I/F67と接続されている。入出力I/O66には、駆動回路71から74、タッチパネル26、スタート/ストップスイッチ29、イメージセンサ35、及び検出器36が接続されている。検出器36は、刺繍枠45が移動機構40に装着されたことを検出し、刺繍枠45の種類に応じた検出結果を出力するよう構成される。フラッシュメモリ64は、各種設定値を記憶する。フラッシュメモリ64は、ミシン10で縫製予定の模様の候補となる複数の模様の各々に対応する刺繍データを記憶する。刺繍データは、模様を構成する縫目を形成するための針落ち点の座標を示す針落ちデータ、縫い順、及び使用される糸の色を示す色データを含む。
 駆動回路71には、ミシンモータ81が接続される。駆動回路71は、CPU61からの制御信号に従って、ミシンモータ81を駆動する。ミシンモータ81の駆動に伴い、ミシン10の主軸(図示略)を介して針棒上下動機構(図示略)が駆動され、針棒が上下動する。駆動回路72には、X軸モータ83が接続される。駆動回路73には、Y軸モータ84が接続される。駆動回路72及び73は、各々、CPU61からの制御信号に従って、X軸モータ83及びY軸モータ84を駆動する。X軸モータ83及びY軸モータ84の駆動に伴い、制御信号に応じた移動量だけ、移動機構40に装着された刺繍枠45が左右方向(X方向)及び前後方向(Y方向)に移動する。駆動回路74は、CPU61からの制御信号に従って、LCD15に画像を表示する。通信I/F67は、ミシン10をネットワーク16に接続する。CPU61は、通信I/F67を介して、ネットワーク16に接続する他の機器(例えば、装置20)とデータの送受信を実行できる。
 ミシン10の動作を簡単に説明する。刺繍枠45を用いた刺繍縫製時には、刺繍枠45が移動機構40によってX方向及びY方向に移動されるのと併せて、針棒上下動機構及び釜機構が駆動される。これにより、針棒に装着された縫針によって、刺繍枠45に保持された被縫製物Cに対して刺繍模様が縫製される。
〈3.装置20の電気的構成〉
 図1に示すように、装置20は、CPU1、ROM2、RAM3、フラッシュメモリ4、通信I/F5、及び入出力インターフェイス8を備える。CPU1は、装置20の制御を司る。CPU1は、バス7を介して、ROM2、RAM3、フラッシュメモリ4、通信I/F5、及び入出力インターフェイス8と電気的に接続する。ROM2には、ブートプログラム及びBIOS等が記憶される。RAM3には、一時的なデータが記憶される。フラッシュメモリ4には、各種設定値が記憶される。フラッシュメモリ4は、フラッシュメモリ64と同様に、刺繍データを記憶してもよい。通信I/F5は、装置20をネットワーク16に接続するためのインターフェイスである。CPU1は、通信I/F5を介して、ネットワーク16に接続する他の機器(例えば、ミシン10及び印刷装置17)とデータの送受信を実行できる入出力インターフェイス8は、表示部9、マウス21、及びキーボード22と接続されている。表示部9は、液晶ディスプレイである。マウス21、及びキーボード22は、各種指示を入力する場合に用いられる。
〈4.ミシン10で実行される処理〉
 図2から図8を参照して、ミシン10のメイン処理を説明する。ミシン10のメイン処理では、ユーザが選択した模様を縫製するための刺繍データと、加工模様(印刷模様)を印刷するための印刷データとを生成する処理が実行される。メイン処理は、ユーザが、使用予定の刺繍枠の種類、後述の重なり条件、後述の最適化処理の有無、及び印刷予定の印刷媒体の種類を指定する指示を入力後、ミシン10を操作して、メイン処理を実行するためのアプリケーションを起動する指示を入力した場合に実行される。刺繍枠の種類は、例えば、フラッシュメモリ64に記憶された複数の刺繍枠の中から選択される。ミシン10のCPU61は指示を検知すると、ROM62のプログラム記憶エリアに記憶されたメイン処理を実行するための刺繍データ生成プログラムを、RAM63に読み出す。CPU61は、RAM63に読み出した刺繍データ生成プログラムに含まれる指示に従って、以下のステップを実行する。メイン処理を実行するのに必要な各種パラメータは、フラッシュメモリ64に記憶されている。メイン処理の過程で得られた各種データは、適宜RAM63に記憶される。以下のメイン処理は、S21の縫製処理以外の処理は、装置20によって実行され、装置20によって生成された刺繍データに基づきミシン10において縫製処理が実行されてもよい。
 以下では、図3の模様Eが縫製予定の模様として被縫製物C(基準面、編集領域)に対して仮想的に配置される場合を具体例1とする。模様Eは、模様E1、E2を含む。模様E1は、一色の糸を用いてタタミ縫いで縫製される丸状の模様である。模様E2は、模様E1と同じ色の糸を用いてタタミ縫いで縫製される矩形状の模様である。図4の模様Fが縫製予定の模様として被縫製物Cに対して仮想的に配置される場合を具体例2とする。模様Fは、六色の糸で縫製される模様である。模様Fは、アルファベット文字のAと、アルファベット文字を装飾する植物とが正方形状の枠状の模様で囲まれた模様である。図5の模様Gが縫製予定の模様として被縫製物Cに対して仮想的に配置される場合を具体例3とする。模様Gは、泳ぐ少女の写真に基づき生成された刺繍模様である。図3から5では、図の左右方向及び上下方向が各々、ミシン10の移動機構40のX方向及びY方向に対応する。具体例1から3に関するメイン処理は各々、互いに異なるタイミングで実行されるが、説明を簡単にするために、具体例1から3に関するメイン処理を並列に説明する。
 図2に示すように、メイン処理では、CPU61は、指示に含まれる刺繍枠45の種類と、フラッシュメモリ64に記憶された刺繍枠45の種類と縫製領域の大きさとの対応関係に基づき、刺繍枠45の内側に設定される縫製領域の大きさを取得する(S1)。CPU61は、ユーザが入力する大きさを縫製領域の大きさとして取得してもよい。CPU61は、検出器36の出力値と、上記対応関係とに基づき、縫製領域の大きさを取得してもよい。CPU61は、例えば、図2に示す縫製領域46の大きさを取得する。縫製領域46は、矩形状の領域である。縫製領域46の四辺は、刺繍枠45をミシン10に装着した場合に移動機構40のX方向及びY方向に延びる。
 CPU61は、メイン処理開始時の指示に基づき重なり条件を設定する(S2)。重なり条件は、重複領域の隣接方向の長さ(幅)、重複領域に対する重なり範囲の位置、及び重なり量を含む。本例のCPU61は、被縫製物Cの内の縫製領域よりも大きな領域に模様を配置する場合に、複数の縫製領域の各々について、注目する縫製領域と、注目する縫製領域と隣合う少なくとも1の縫製領域である隣接領域の一部とを重ね合わせて配置することで、複数の縫製領域全体として連続する連続領域を仮想的に設定する。重複領域は、被縫製物Cに対して、複数の縫製領域を仮想的に配置する際の、縫製領域と、隣接領域とが重複する領域である。隣接方向(移動方向)は、注目する縫製領域の中心と、隣接領域の中心とを結ぶ方向である。本例の隣接方向は、複数の縫製領域の辺が延びる方向、つまり、X方向及びY方向である。重なり範囲は、一方の分割された部分模様と、他方の分割された部分模様とをぼかし接続する場合の縫目が重なる範囲である。重なり量は、ぼかし接続する場合の一方の部分模様の縫目と、他方の部分模様の部目とが重なる範囲の隣接方向の長さである。重なり量は、移動方向に応じて互いに同じ値が設定されてもよいし、互いに異なる値が設定されてもよいし、初期値が設定されてもよい。
 CPU61は、被縫製物Cに対する複数の縫製領域の仮想的な配置を設定する(S3)。本例のCPU1はS2で設定された重なり条件に基づき、連続領域を設定する。図2に示すように、具体例1及び2では、X方向及びY方向の各々に、2つの縫製領域が配列された、合計4つの縫製領域R11からR14からなる連続領域R1が仮想的に設定される。具体例3では、X方向及びY方向の各々に、3つの縫製領域が配列された、合計9つの縫製領域R21からR29からなる連続領域R2が仮想的に設定される。具体例1から3では、X方向の重複領域の幅LXは、Y方向の重複領域の幅LYと等しい。本例の重複領域の幅は、重複領域の短手方向の長さである。X方向の重複領域の幅LXと、Y方向の重複領域の幅LYとは互いに異なっていてもよい。具体例3のように、X方向又はY方向に連続して配列される縫製領域が3以上ある場合、同一方向の重複領域の幅は、互いに同じであってもよいし、互いに異なっていてもよい。本例のCPU61は、S3において、重複領域の幅を、重複領域の幅の許容範囲の最小値となるように、被縫製物Cに対する連続領域の仮想的な配置を設定する。重複領域の幅の許容範囲及び初期値は、縫製領域の大きさ、模様の種類等応じて、予め設定されていてもよいし、ユーザによって設定されてもよい。
 CPU61は、複数の縫製領域の内の基準となる縫製領域である基準領域の位置を固定して、複数の縫製領域の相対位置をLCD15に表示する(S4)。基準領域は複数の縫製領域の内の1以上の縫製領域であればよい。本例のCPU61は、連続領域を構成する複数の縫製領域の内の、X方向及びY方向の端部である左上に配置された縫製領域を基準領域とする。具体例1及び2では、CPU61は、図3(A)の画面50をLCD15に表示させる。画面50は、ボタン51、52、表示領域53を含む。ボタン51は、被縫製物Cに模様を仮想的に配置する指示を入力する場合に選択される。ボタン52は、被縫製物Cに対して配置された複数の縫製領域と、模様とに基づき、刺繍データ及び印刷データを生成し、出力後、縫製を開始する指示を入力する場合に選択される。
 表示領域53は、連続領域R1と、第一図形X1、Y1とを表示する。第一図形X1、Y1は、複数の縫製領域の各々について相対位置を示す図形である。本例の第一図形X1は、基準領域R11に対する縫製領域R12、R14の左端の位置を示す矩形状の図形である。第一図形X1は、縫製領域R12、R14の左端を示す仮想線の延長線上であって、縫製領域R12よりも上側に配置される。本例の第一図形Y1は、基準領域R11に対する縫製領域R13、R14の上端の位置を示す矩形状の図形である。第一図形Y1は、縫製領域R13、R14の上端を示す仮想線の延長線上であって、縫製領域R12よりも左側に配置される。図5(A)に示すように、具体例3では、同様に、表示領域53に連続領域R2、第一図形X1、X2、Y1、Y2が表示される。第一図形X1、X2は各々、複数の縫製領域のX方向の相対位置を変更する場合に選択される。第一図形Y1、Y2は各々、複数の縫製領域のY方向の相対位置を変更する場合に選択される。
 CPU61は、ボタン51が選択され、被縫製物Cに対する模様の仮想的な配置を設定する指示を取得したかを判断する(S5)。ユーザは、具体例1において、ボタン51を選択後、被縫製物Cに対して、所定の縫目(例えば、タタミ縫い)で縫製される図形を描画することで、描画された模様の被縫製物Cに対する仮想的な配置を設定する指示を入力する。ユーザは、具体例2において、ボタン51を選択後、フラッシュメモリ64に記憶された模様を読み出して、読み出された模様の被縫製物Cに対する仮想的な配置を設定する指示を入力する。ユーザは、具体例3において、ボタン51を選択後、フラッシュメモリ64に記憶された写真を読み出して刺繍データに変換後、変換された刺繍データに基づく模様の被縫製物Cに対する仮想的な配置を設定する指示を入力する。
 被縫製物Cに対する模様の仮想的な配置を設定する指示が取得された場合(S5:YES)、CPU61は、配置の対象となる模様を取得する(S6)。CPU61は、具体例1において、模様Eを取得する。CPU61は、具体例2において、模様Fを取得する。具体例3において、模様Gを取得する。CPU61は、被縫製物Cに対する模様の仮想的な配置を設定する(S7)。本例のCPU61は、ユーザからの指示に従い、被縫製物Cに対する模様の仮想的な配置を設定する。CPU61は、自動的に被縫製物Cに対する模様の仮想的な配置を設定してもよい。図3(B)示すように、CPU61は、具体例1において、被縫製物Cに対する模様Eの仮想的な配置を設定する。図4(A)に示すように、CPU61は、具体例2において、被縫製物Cに対する模様Fの仮想的な配置を設定する。図5(B)に示すように、CPU61は、具体例3において、被縫製物Cに対する模様Gの仮想的な配置を設定する。
 CPU61は、メイン処理開始時に、最適化処理を実行する指示を取得したかを判断する(S8)。最適化処理は、被縫製物Cに対する模様の配置と、最適化条件とを考慮し、被縫製物Cに対する複数の縫製領域の仮想的な配置を設定する処理である。本例の最適化条件は、模様に含まれる部分模様の分割数が最小になる第一条件と、糸替え回数が最小になる第二条件とから選択される。部分模様は、模様を縫製する場合に糸の切断により区切られる模様である。具体例3では、最適化処理を実行する指示が取得されず(S8:NO)、CPU61は、後述のS16、S17の処理を実行して複数の縫製領域の相対位置と、複数の縫製領域に対する模様の配置をLCD15に表示する。最適化処理を実行する指示が取得された場合(S8:YES)、CPU61は最適化処理を実行する(S9)。具体例1について、最適化条件を第一条件として、最適化処理を実行する指示が入力された場合と、具体例2について、最適化条件を第二条件として、最適化処理を実行する指示が入力された場合とを説明する。
 図6に示すように、最適化処理では、CPU61は最適化条件を取得する(S31)。CPU61は、具体例1について、第一条件を取得する。CPU61は、具体例2について、第二条件を取得する。CPU61は、更に、現在の最適化条件数を取得する。本例のCPU1は、詳細は後述するが、部分模様が重複領域に配置されていても、1つの縫製領域に収まる場合には、重複領域において分割せず、1つの縫製領域に対応付ける。図3(B)に示すように、最適化条件が第一条件である時、最適化条件数は分割数である。具体例1では、模様E1は、1つの縫製領域には収まらず、縫製領域R11、R12に配置されている。模様E2は、1つの縫製領域には収まらず、縫製領域R13、R14に配置されている。故にCPU1は、具体例1の分割数として2を取得する。最適化条件が第二条件である時、最適化条件数は糸替え回数である。図4(A)に示すように、具体例2では、縫製領域R11からR14の各々で、6色の模様が縫製されるため、CPU1は、糸替え回数として20を取得する。
 CPU61は、順序組合せを決定する(S32)。順序組合せは、連続領域に設定された第一図形を移動させる順序の組合せである。具体例1及び2では、リスト49に示すように、2つの組合せが決定される。変数Nが1の組合せでは、CPU61は、第一図形X1をX方向に移動後、第一図形Y1をY方向に移動する。変数Nが2の組合せでは、CPU61は、第一図形Y1をY方向に移動後、第一図形X1をX方向に移動する。
 CPU61は、変数N、Mに各々1を設定する(S33)。変数NはS32で決定された組合せを順に読み出すための変数である。変数Mは、N番目の組合せの内の、第一図形を移動順に読み出すための変数である。CPU61は、S32で決定された組合せの内の、N番目の組合せを取得する(S34)。CPU61は、S34で取得された組合せの内の移動順序がM番目の第一図形に対応する対象領域を取得する(S35)。CPU61は、一番目の組合せの移動順序が1である第一図形X1に対応する縫製領域R12、R14を対象領域として取得する。第一図形X1に対応する縫製領域は、1つの縫製領域であってもよいし、複数の縫製領域であってもよい。CPU61は、S35で取得された対象領域を所定量移動させる(S36)。所定量は適宜設定されればよい。所定量は、例えば、重複領域の幅の初期値よりも小さい量である。CPU61は、複数の縫製領域の内の、第一図形に対応する縫製領域を基準領域に対して移動して、被縫製物Cに対する複数の縫製領域の仮想的な相対位置を変更する。具体例1及び2では、CPU61は、S35で取得された縫製領域R12、R14を左方へ移動させる。このとき、CPU61は、模様と、基準領域である縫製領域R11との被縫製物Cに対する仮想的な配置は変更しない。CPU61は、対象領域ではない縫製領域R13の被縫製物Cに対する仮想的な配置も変更しない。
 CPU61は、S36で対象領域を移動した場合の最適化数が最適化数の最小値に比べ、小さいかを判断する(S37)。変数Nが1である時、最適化数の最小値の初期値は、S31で算出した値である。具体例1において、図3(C)に示す位置に第一図形X1が移動された場合、模様E1は、縫製領域R12に収まるため、分割数は2から1に減少する(S37:YES)。この場合CPU61は、減少後の最適化数と、第一図形X1の移動量を記憶する(S38)。移動後の最適化数が、最小値に比べ小さくない場合(S37:NO)、又はS38の処理の次に、CPU61は、M番目の第一図形を更に移動方向に移動可能かを判断する(S39)。前述のように、本例の重複範囲には許容範囲が設定されており、CPU1は、重複範囲が許容範囲となる範囲で第一図形の移動を受け付ける。例えばCPU61は、第一図形X1を更に左方向に所定量移動した場合に、第一図形X1が縫製領域R11の左端よりも右方となる場合に、移動可能と判断し(S39:YES)、処理をS36に戻す。
 第一図形X1を更に移動方向に所定量移動した場合に、第一図形X1が縫製領域R11の左端よりも右方とならない場合(S39:NO)、CPU61は、S35で取得された対象領域の配置を、最適化数が最小値となる配置に設定する(S40)。CPU61は、変数Mが最後の数であるかを判断する(S41)。変数Mが最後の数ではない場合(S41:YES)、CPU61は、処理を1だけインクリメントし(S42)、処理をS35に戻す。変数Mが最後である場合(S41:NO)、CPU61は、N番目の組合せの最適化数の最小値を取得する(S43)。具体例1の一番目の組合せでは、図3(C)に示す配置において分割数が最小値となる。この場合、模様E1は縫製領域R11に収まるので、分割数は1である。具体例2の一番目の組合せでは、図4(B)に示す配置において糸替え数が最小値である。この場合、縫製領域R11では、2色の糸で模様が縫製され、縫製領域R12からR14では各々、6色の糸で模様が縫製されるので、糸替え数の最小値として16が取得される。
 CPU61は、S43で取得された最適化数が最小値であるかを判断する(S44)。S43で取得された最適化数が最小値である場合(S44:YES)、CPU61は、N番目の組合せの最適化数と、被縫製物Cに対する複数の縫製領域の相対位置とを記憶する(S45)。S43で取得された最適化数が最小値ではない場合(S44:NO)、又はS45の処理の次に、CPU61は、次の組合せがあるかを判断する(S46)。次の組合せがある場合(S46:YES)、CPU61は変数Nを1だけインクリメントし(S47)、処理をS34に戻す。次の組合せがない場合(S46:NO)、CPU61は、S45で最適化数が最小となる組合せの配置に設定される(S48)。CPU61は、複数の縫製領域の各々について、複数の部分模様の内、縫製領域内に収まる部分模様の数に応じて、隣接方向について複数の縫製領域の相対位置を仮想的に設定する。具体例1では、図3(C)の配置が設定される。CPU61は、複数の縫製領域の各々について、刺繍データの色データに従って糸替えが行われる場合の糸替えの数に応じて、隣接方向について複数の縫製領域の相対位置を仮想的に設定する。具体例2では図4(B)の配置が設定される。CPU61は以上で最適化処理を終了し、処理を図2のメイン処理に戻す。
 図2のメイン処理において、被縫製物Cに対する模様の仮想的な配置を設定する指示が取得されない場合(S5:NO)、CPU61は、第一図形Y1又はY2を移動する移動指示を取得したかを判断する(S10)。ユーザは複数の縫製領域の内の何れかに対応する第一図形を移動する移動指示によって、被縫製物Cに対する複数の縫製領域の仮想的な相対位置を変更させることができる。例えば、具体例3では、後述のS17により、表示された図5(B)に示す表示領域53がLCD15に表示される。ユーザは、模様Gの少女の顔部分に重複領域が設定されないように、LCD15を参照しながらタッチパネル26を操作して第一図形Y1を選択し、第一図形Y1を選択中のドラッグ量によって、第一図形Y1のY方向の移動量を指定した移動指示を入力する。
 第一図形Y1を移動する移動指示が取得された場合(S10:YES)、CPU61は、複数の縫製領域の内の、移動対象となる縫製領域を対象領域として特定する(S11)。本例のCPU61は、第一図形に対応する縫製領域の移動方向に複数の縫製領域を配置されている場合、第一図形に対応する縫製領域と、移動方向において、第一図形に対応する縫製領域に対して基準領域とは反対側にある少なくとも1の縫製領域とを対象領域として特定する。第一図形Y1を移動する移動指示が取得された場合、第一図形Y1に対応する縫製領域R24からR26と、第一図形Y1に対応する縫製領域R24からR26に対して、基準領域である縫製領域R21とは反対側の縫製領域R27からR29とを対象領域として特定する。第一図形Y2を移動する移動指示が取得された場合、CPU61は、第一図形Y2に対応する縫製領域R27からR29に対して、縫製領域R21とは反対側には縫製領域がないので、第一図形Y2に対応する縫製領域R27からR29を対象領域として特定する。
 CPU61は、移動指示に応じて、S11で特定した対象領域の移動方向における間隔を維持したまま、対象領域を移動方向に移動して、複数の縫製領域の相対位置を変更する(S12)。図5(C)に示すように、第一図形Y1が図の上方に移動された場合、縫製領域R24からR26と、縫製領域R27からR29とのY方向の間隔を維持した状態で、縫製領域R24からR29がY方向に移動される。図5(C)に示すように、第一図形Y1が図の上方に移動された後、図5(D)に示すように、第一図形Y2が図の上方に移動された場合、縫製領域R27からR29がY方向に移動される。この場合、Y方向における縫製領域R21、R24の重複領域の幅U5は、Y方向における縫製領域R24、R27の重複領域の幅U7と異なる値になる。CPU61は、複数の縫製領域の相対位置が変更された場合に、LCD15に表示された対象領域を指示された移動量だけ移動することで、LCD15に表示された複数の縫製領域の相対位置と、複数の縫製領域に対する模様の配置の表示を更新する(S17)。
 第一図形Y1又はY2を移動する移動指示が取得されていない場合(S10:NO)、CPU61は、第一図形X1又はX2を移動する移動指示が取得されているかを判断する(S13)。第一図形X1又はX2を移動する移動指示が取得されていない場合(S13:NO)、CPU61は後述のS18の処理を実行する。第一図形X1又はX2を移動する移動指示が取得された場合(S13:YES)、S11及びS12と同様に、CPU61は、移動の対象となる対象領域を特定し(S14)、指定された移動量、対象領域を移動させる(S15)。
 CPU61は、S9、S12、S15の処理の次に、分割処理を行う(S16)。分割処理では、模様を表す複数の縫目の各々を、縫目を収容する複数の縫製領域の何れかに対応付ける処理が実行される。分割処理について、具体例1を用いて説明する。図7に示すように、分割処理では、CPU61は変数Nに1を設定する(S51)。変数Nは、第一図形を順に取得するための変数である。図3に示す具体例1において、変数Nが1である場合、CPU61は、例えば第一図形X1を取得する(S52)。CPU61は、S52で取得された第一図形X1によって規定される重複領域に対して、重なり範囲の位置を設定する(S53)。第一図形X1は、縫製領域R12、R14の左端を規定する。第一図形X1により、図3(C)において、X方向の幅U1で示される、縫製領域R11、R12の重複領域と、縫製領域R13、R14の重複領域とが規定される。CPU61は、メイン処理の開始時の、重複領域に対する重なり範囲の位置についての指示に基づき、N番目の第一図形によって規定される重複領域に対する重なり範囲の位置を設定する。重複領域に対する重なり範囲の位置は、例えば、移動方向における重複領域の代表点と重なり範囲の代表点との位置関係で指定される。CPU61は、例えば、重複領域の左端と、重なり範囲の左端とが一致する位置を設定する。
 CPU61は、S52で取得された第一図形X1によって規定される重複領域に対して、重なり量を設定する(S54)。CPU61は、メイン処理の開始時の、重複領域に対する重なり量についての指示に基づき、N番目の第一図形によって規定される重複領域に対する重なり量を設定する。S53、S54の処理により、CPU61は、第一図形X1によって規定される重複領域について、図3(C)において、X方向の幅U2で示される範囲に重なり範囲を設定する。幅U2は重なり量に対応する。CPU61は、変数Nが第一図形数よりも小さいかを判断する(S55)。変数Nが第一図形数よりも小さい場合(S55:YES)、CPU61は、変数Nを1だけインクリメントして(S56)、処理をS52に戻す。変数Nが第一図形数よりも小さくはない場合(S55:NO)、CPU61は、変数M、Pの各々に1を設定する(S57)。変数Mは、部分模様を順に取得するための変数である。変数Pは、縫製領域を順に取得するための変数である。
 CPU61は、M番目の部分模様を取得する(S58)。CPU61は、例えば、具体例1の模様E1を取得する。CPU61は、P番目の縫製領域を取得する(S59)。CPU61は、例えば、縫製領域R11を取得する。CPU61は、S58で取得された部分模様がS59で取得された縫製領域内に配置されているかを判断する(S60)。S58で取得された部分模様がS59で取得された縫製領域内に配置されていない場合(S60:NO)、CPU61は、後述のS63の処理を実行する。CPU61は、例えば、被縫製物Cに対する模様E1の仮想的な配置と、被縫製物Cに対する縫製領域R11の仮想的な配置とに基づき、模様E1が縫製領域R11内に配置されていると判断する(S60:YES)。この場合CPU61は、S58で取得された部分模様がS59で取得された縫製領域内に収まるかを判断する(S61)。CPU61は、例えば、被縫製物Cに対する模様E1の仮想的な配置と、被縫製物Cに対する縫製領域R11の仮想的な配置とに基づき、模様E1は縫製領域R11内に収まらないと判断する(S61:NO)。この場合CPU61は、次の縫製領域があるかを判断する(S63)。
 次の縫製領域がある場合(S63:YES)、CPU61は変数Pを1だけインクリメントし(S64)、処理をS59に戻す。縫製領域R12が取得された場合(S59)、CPU61は、模様E1が縫製領域R12内に配置され(S60:YES)、模様E1が縫製領域R12内に収まると判断する(S61:YES)。この場合CPU61は、模様E1を表す複数の縫目は全て、縫製領域R12内で縫製されるよう、模様E1を表す複数の縫目と、縫製領域R12とを対応付ける(S62)。S62の処理により、模様E1は、縫製領域R11内に配置されているが、縫製領域R11には、模様E1を表す複数の縫目は何れも対応付けられない。CPU61は、次の部分模様があるかを判断する(S65)。次の模様がある場合(S65:YES)、CPU61は変数Mを1だけインクリメントし、変数Pに1を設定する(S66)。CPU61は、処理をS58に戻す。
 模様E2が取得された場合(S58)、繰り返し実行される処理において、模様E2は、縫製領域R11、R12の各々内にはないと判断され(S60:NO)、縫製領域R13、R14内あるが、縫製領域R13、R14の各々には収まらないと判断される(S60:YES、S61:NO)。この場合、模様E2を表す複数の縫目は、S62では、縫製領域R11からR14の何れにも対応付けられない。CPU61は、次の部分模様はないと判断し(S65:NO)、S62の処理で縫製領域の何れにも対応付けられていない部分模様を、重複領域で隣接方向と直交する分割方向に当該部分模様を分割する(S67)。CPU61は、例えば、模様E2を、模様E2が配置された縫製領域R13、R14に設定された幅U2で示される重なり範囲で、X方向に直交するY方向に分割する。模様E2は、模様E3、E4に分けられる。模様E3を表す縫目、模様E4を表す縫目は各々縫製領域R13、R14と対応付けられる。CPU61は、位置合わせ縫目を設定する(S68)。位置合わせ縫目は、被縫製物Cに対する実際の複数の縫製領域の相対位置が、被縫製物Cに対する複数の縫製領域の仮想的な配置と一致しているかを確認するための縫目である。位置合わせ縫目は、縫製領域と、隣接領域との各々について、重複領域内の同一の位置に配置される。例えば、CPU61は、縫製領域R12と、隣接領域R14との各々について、重複領域内の同一の位置に配置される位置合わせ縫目D1、D2を各々設定する。位置合わせ縫目の設定は、必要に応じて省略されて良い。CPU61は、以上で分割処理を終了し、処理を図2のメイン処理に戻す。具体例2では、例えば、図4(B)に示す配置において、縫製領域R11、R12の重複領域の幅U4が重なり量に設定され、且つ、縫製領域R11、R13の重複領域の幅U3を重なり量に設定された条件で模様Fが部分模様F1からF4に分割される。部分模様F1からF4は各々縫製領域R11からR14に対応付けられる。部分模様F1は2色の糸で縫製される模様であり、部分模様F2からF4は各々6色の糸で縫製される模様である。具体例3において、第一図形Y1とY2とが個別に移動されることで、図5(E)に示すように、縫製領域R25では黒色で示す重なり範囲において模様が分割され、少女の顔を表す部分において、模様が分割されない。
 CPU61は、LCD15の表示を更新する(S17)。CPU61は、第一図形の移動に応じた被縫製物Cに対する対象領域の相対位置の変更、及びS16で設定された縫製領域と模様を表す複数の縫目の対応の何れかの変更結果を反映させる。CPU61は、縫製開始の指示が取得されたかを判断する(S18)。CPU61は、ボタン52が選択された場合に、縫製開始の指示を取得したと判断する。縫製開始の指示が取得されていない場合(S18:NO)、CPU61は、処理をS5に戻す。縫製開始の指示が入力された場合(S18:YES)、CPU61は、S16で設定された縫製領域と、模様を表す複数の縫目との対応に基づき、縫製領域に対する複数の縫目の位置を表す針落ちデータを含む刺繍データを生成する(S19)。刺繍データは、縫製領域毎に生成され、針落ち点データと、縫い順と、色データとを含む。注目する縫製領域に対応する刺繍データは、注目する縫製領域内に位置する部分の模様を表す複数の縫目を表す針落ちデータを含むが、注目する縫製領域の外側となる縫目を縫製するための針落ちデータは含まない。CPU61は、例えば、具体例1について、S16で設定された縫製領域と、模様を表す複数の縫目との対応に基づき、縫製領域R12内に収まる部分模様E1について、縫製領域R12において縫製する刺繍データを生成し、当該縫製領域R12の隣接領域R11においては部分模様E1を縫製する刺繍データを生成しない。
 S16の分割処理において、部分模様E2は、縫製領域R13内に配置されているが、当該縫製領域R13に収まらず、当該縫製領域R13の隣接領域R14にも収まらないと判断され、縫製領域R13と、隣接領域R14との重複領域内でY方向に部分模様E2を分割されている。CPU61は、当該縫製領域R13に収まる部分模様E3を表す縫目を縫製領域R13において縫製する刺繍データを生成する。CPU61は、縫製領域R13に収まらない部分模様E4を表す縫目を隣接領域R14において縫製する刺繍データを生成する。CPU61は、部分模様E3と、部分模様E4との一部をX方向において重ねてぼかし接続されるように、刺繍データを生成する。重なり部分において、縫目がぼかし接続される刺繍データの生成方法は、従来の方法が適宜採用されればよく、例えば、特開2000-024350号公報に記載された方法が用いられる。CPU61は、部分模様E3と、部分模様E4との一部の隣接方向における重なり量を、重複領域の隣接方向の長さよりも小さく設定して、刺繍データを生成する。CPU61は、重複領域で部分模様を分割する場合に、S16の処理で設定された部分模様を重なり範囲の位置と、重なり量で、部分模様E3と、部分模様E4とに分割して刺繍データを生成する。
 各縫製領域に対応する刺繍データの縫製順序は、適宜設定されればよい。CPU61は、例えば、具体例1について、図3(D)に示すように、模様E1、E4、E3の順に模様を縫製する刺繍データを生成する。S68で位置合わせ縫目が設定されている場合、CPU61は、位置合わせ縫目を縫製するための針落ちデータも含む刺繍データを生成する。具体的には、縫製領域R12についての刺繍データは、位置合わせ縫目D1を縫製するための針落ちデータを含んでもよい。縫製領域R14についての刺繍データは、位置合わせ縫目D2、D3を縫製するための針落ちデータを含んでもよい。縫製領域R13についての刺繍データは、位置合わせ縫目D4を縫製するための針落ちデータを含んでもよい。CPU61は、例えば、具体例2について、図4(C)に示すように、模様F1からF4の順に模様Fを表す縫目を縫製する刺繍データを生成する。図示しないが、CPU61は、具体例3についても、各縫製領域に対応する刺繍データを生成する。
 CPU61は、印刷データ生成処理を実行する(S20)。印刷データ生成処理では、複数の縫製領域の相対位置を示す第二図形を印刷するための印刷データが生成される。図8に示すように、印刷処理ではCPU61は、印刷領域PRの大きさを取得する(S71)。CPU61は、ユーザから指示された値に基づき、印刷領域PRを取得してもよいし、印刷装置17に搭載された用紙のサイズ(例えば、JIS規格のA4サイズ)を、印刷装置17から取得して設定してもよい。CPU61は、複数の縫製領域の配置を取得する(S72)。CPU61は、例えば、具体例1について、図8に示す連続領域R1の配置を取得する。CPU61は、縫製領域R11からR14の各々の、中心C1からC4を特定する。
 CPU61は、複数の縫製領域の相対位置を示す第二図形を印刷するための印刷データを生成する(S73)。第二図形は、複数の縫製領域の相対位置を示すものであればよい。本例の第二図形は、縫製領域の中心を指し示すX方向に延びる両矢印である。CPU61は、S72の処理で特定した縫製領域R11からR14の中心C1からC4を、X方向に延びる第二図形Z1、Z2、Y方向に延びる第二図形Z3、Z4で結ぶ。CPU61は、第二図形Z1、Z2のX方向の長さを、中心C1、C2を結ぶ線分の長さに対応させる。第二図形Z3、Z4のY方向の長さを、中心C1、C3結ぶ線分の長さに対応させる。第二図形Z1、Z2と、第二図形Z3、Z4とは、線種、太さ、色等により区別可能であってもよい。CPU61は、複数の縫製領域の相対位置を示す情報として、S73で生成された印刷データを出力する(S74)。CPU61は、例えば、生成された印刷データを印刷装置17にネットワーク16を介して送信する。印刷データを受信した印刷装置17は、印刷データに従って、シート状の印刷媒体(例えば、紙)に第二図形Z1からZ4を印刷する。CPU61は以上で印刷データ生成処理を終了し、処理を図2のメイン処理に戻す。
 ユーザは、印刷された印刷媒体を利用して、被縫製物Cに対して複数の縫製領域を順に設定する際の目印を被縫製物Cに付与する。例えば、ユーザは、印刷された第二図形Z1からZ4の両矢印の先端に孔あける。ユーザは、被縫製物Cに対する複数の縫製領域の仮想的な配置に合わせて、被縫製物Cに対して印刷媒体を配置し、チャコペン等で、孔の位置に印をつける。ユーザは、縫製領域R12についての縫製を行う際には、中心C1、C2を結ぶ線分の延設方向がX方向となり、中心C2が縫製領域の中心になるように、被縫製物Cに対する刺繍枠45の配置を設定する。
 CPU61は、縫製処理を実行する(S21)。縫製処理では、S19で生成された刺繍データに従って、模様を表す縫目を被縫製物Cに縫製する処理が実行される。図9に示すように、CPU61は、変数M、Qに各々1を設定し(S81)、M番目の刺繍データを取得する(S82)。CPU61は、M番目の刺繍データの内から、Q番目の部分模様の模様データを取得する(S83)。模様データは、部分模様毎の刺繍データである。CPU61は、S83で取得されたQ番目の模様データに基づき、CPU61は、糸替えが必要であると判断した場合(S84:YES)、糸替えが必要であることを示すメッセージをLCD15に表示させる(S85)。糸替えが必要ではない場合(S84:NO)、又はS85の次に、CPU61は縫製開始の指示を取得するまで待機する(S86:NO)。CPU61は、ユーザがスタート/ストップスイッチ29を押下したことを検知した場合(S86:YES)、S83で取得された模様データに従って、Q番目の模様を縫製する(S87)。
 CPU61は、S82で取得された刺繍データに含まれる未縫製の部分模様がある場合(S88:YES)、変数Qを1だけインクリメントし(S89)、処理をS83に戻す。未縫製の部分模様がない場合(S88:NO)、CPU61は、縫製順序が次の縫製領域に対応する刺繍データがあれば(S91:YES)、変数Mを1だけインクリメントし、変数Qに1を設定する(S92)。CPU61は、位置合わせ縫目を縫製しない場合(S93:NO)、処理をS82に戻す。CPU61は、ユーザに、被縫製物Cに対する刺繍枠45の配置を、次の縫製順序の縫製領域の被縫製物Cに対する仮想的な配置に合わせて変更することを促すメッセージを表示してもよい。位置合わせ縫目を縫製する場合(S93:YES)、CPU61は、刺繍データに従って、位置合わせ縫目を縫製する(S94)。CPU61は、被縫製物Cに対する刺繍枠45の配置を、次の縫製順序の縫製領域の被縫製物Cに対する仮想的な配置に合わせて変更することを促すメッセージを表示する(S95)。
 ユーザは、被縫製物Cに対する刺繍枠45の配置を、縫製順序の縫製領域の被縫製物Cに対する仮想的な配置に合わせて変更後、スタート/ストップスイッチ29を押下して、位置合わせ縫目を縫製するための指示を入力する。CPU61は位置合わせ縫目を縫製する指示を取得するまで待機する(S96:NO)。CPU61は、位置合わせ縫目を縫製する指示を取得した場合(S96:YES)、位置合わせ縫目を縫製する(S97)。ユーザは、S94で縫製された位置合わせ縫目と、S97で縫製された位置合わせ縫目とが、同じ位置に縫製されているかを確認する。ユーザは、S94で縫製された位置合わせ縫目と、S97で縫製された位置合わせ縫目とが、許容範囲を超えてズレていると判断した場合、例えば、タッチパネル26を操作して、位置合わせ縫目の縫製をやり直す指示を入力する。CPU61は、やり直しの指示を所定時間内に取得した場合(S98:YES)、処理をS95に戻す。被縫製物Cに対する刺繍枠45の配置を、縫製順序の縫製領域の被縫製物Cに対する仮想的な配置に合わせる作業をやり直した後、再度位置合わせ縫目を実行する指示を入力する。CPU61は、やり直しの指示を所定時間(例えば、5分)内に取得しなかった場合に(S98:NO)、処理をS82に戻す。次の刺繍データがない場合(S91:NO)、CPU61は、以上で縫製処理を終了し、処理を図2のメイン処理に戻す。CPU61はS21の処理の後、メイン処理を終了する。図3(C)に示す具体例1では、縫製処理によって、位置合わせ縫目D1からD4が縫製されることで、ユーザは、被縫製物Cに対する刺繍枠45の配置が、被縫製物Cに対する複数の縫製領域の仮想的な配置と一致しているかを、次の縫製領域に関する模様の縫製開始前に確認できる。
 上記実施形態において、S6の処理は、本発明の模様取得ステップの一例である。S1の処理は、本発明の領域取得ステップの一例である。S3、S48の処理は、本発明の領域設定ステップの一例である。S7の処理は、本発明の模様設定ステップの一例である。S12、S15の処理は、本発明の変更ステップの一例である。S19の処理は、刺繍データ生成ステップの一例である。S2の処理は、本発明の重なり設定ステップの一例である。S7の後のS17の処理は、本発明の表示ステップの一例である。S12又はS15の後のS17の処理は、本発明の表示更新ステップの一例である。S10、S13の処理は、指示取得ステップの一例である。S74の処理は、本発明の出力ステップの一例である。S73の処理は、本発明の印刷データ生成ステップの一例である。
 上記実施形態の刺繍データ生成方法によれば、ミシン10は、縫製領域よりも大きな刺繍模様を縫製領域よりも小さい複数の部分模様に分割する場合の、複数の縫製領域の相対位置を変更できる。ミシン10は、複数の縫製領域の相対位置を変更できない従来の装置に比べ、縫製領域に対する模様の配置の設定の自由度を向上できる。ミシン10は、生成された刺繍データに基づき、すぐに縫製できる。
 ミシン10は、複数の縫製領域の各々について、縫製領域と、隣接領域の一部とを重ね合わせて配置することで、複数の縫製領域全体として連続する連続領域を仮想的に設定する(S3)。ミシン10は、複数の縫製領域の各々について、縫製領域の中心と、隣接領域の中心とを結ぶ隣接方向について相対位置を変更する(S12、S15)。ミシン10は、縫製領域よりも大きな刺繍模様を縫製領域よりも小さい複数の部分模様に分割する場合、複数の縫製領域の各々について隣接方向の相対位置を変更できる。
 ミシン10は、模様を縫製する場合に糸の切断により区切られる複数の部分模様が模様に含まれる場合、複数の縫製領域の各々について、複数の部分模様の内、縫製領域内に収まる部分模様は、部分模様を縫製領域において縫製する刺繍データを生成し、縫製領域の隣接領域においては部分模様を縫製する刺繍データを生成しない(S19)。ミシン10は、複数の縫製領域の各々について、複数の部分模様の内、縫製領域内に配置されているが、縫製領域に収まらず、縫製領域の隣接領域にも収まらない部分模様は、縫製領域と、隣接領域とが重複する重複領域で隣接方向と直交する分割方向に分割する。ミシン10は、分割された部分模様の内、縫製領域に収まる部分模様を縫製領域において縫製する刺繍データを生成し、縫製領域に収まらない部分模様を縫製領域の隣接領域において縫製する刺繍データを生成する(S19)。ミシン10は、連続領域を形成する複数の縫製領域の内の1つの縫製領域内に収まる部分模様を分割して縫製する刺繍データが生成されることを抑制できる。生成された刺繍データに従って縫製された刺繍模様は、部分模様が1つの縫製領域内に収まる場合にも部分模様が分割して縫製された刺繍模様に比べ、刺繍仕上がりが美しい。
 ミシン10は、重複領域で部分模様を分割する場合に、分割された2つの部分模様の一部を隣接方向において重ねたぼかし接続して、刺繍データを生成する(S19)。ミシン10は、部分模様を分割して縫製する場合に、分割位置が目立ちにくい刺繍データを生成できる。
 ミシン10は、分割された2つの部分模様の一部の隣接方向における重なり量を、重複領域の隣接方向の長さよりも小さく設定して、刺繍データを生成する(S19)。ミシン10は、部分模様を分割して縫製する場合に、重複領域が比較的大きい場合であっても、分割位置が目立ちにくい刺繍データを生成できる。
 ミシン10は、重複領域に対する重なり範囲の位置と、重なり量を設定する(S2)。ミシン10は、重複領域で部分模様を分割する場合に、S2で設定された重なり範囲の位置と、重なり量とで、部分模様を2つの部分模様に分割して刺繍データを生成する(S16、S19)。ミシン10は、部分模様を分割して縫製する刺繍データを生成する場合に、分割領域内の設定された位置で、分割された2つの部分模様が設定された量だけ重なる刺繍データを生成できる。ミシン10は、重なり範囲と重なり量が設定できない従来の装置に比べ、縫製領域に対する模様の配置の設定の自由度を向上できる。具体例3では、図5(D)に示すように、Y方向における縫製領域R21、R24の重複範囲の幅U5は、Y方向における縫製領域R24、R27の重複範囲の幅U7と異なる値になる。このような場合でも、ミシン10は、縫製領域R21、R24の重複範囲と、縫製領域R24、R27の重複範囲とで、Y方向の重なり量を同じ値U2に設定できる。このようにすることでミシン10は、刺繍模様内で重なり量が異なることに起因して刺繍仕上がりが損なわれる可能性を抑制できる。
 ミシン10は、複数の縫製領域の各々についての、模様を縫製する場合に糸の切断により区切られる複数の部分模様の内、縫製領域内に収まる部分模様の数に応じて、隣接方向について複数の縫製領域の相対位置を仮想的に設定する(S48)。ミシン10は、部分模様をなるべく分割せずに縫製するという観点から、複数の縫製領域の相対位置を自動で設定できる。ミシン10は、ユーザが部分模様をなるべく分割せずに縫製するために、試行錯誤して複数の縫製領域の相対位置を設定する手間を省ける。
 ミシン10は、複数の縫製領域の各々について、刺繍データの色データに従って糸替えが行われる場合の糸替えの数に応じて、隣接方向について複数の縫製領域の相対位置を仮想的に設定する(S48)。ミシン10は、刺繍データに従って縫製する場合の糸替えの数という観点から、複数の縫製領域の相対位置を自動で設定できる。ミシン10は、ユーザが刺繍データに従って縫製する場合の糸替えの数を考慮するために、試行錯誤して複数の縫製領域の相対位置を設定する手間を省ける。ミシン10は、糸替え数を考慮した条件で刺繍データを生成することで、縫製時間を短縮できる。
 ミシン10は、LCD15に複数の縫製領域の内の基準となる縫製領域である基準領域の位置を固定して、複数の縫製領域の相対位置と、複数の縫製領域に対する模様の配置を表示する(S7の後のS17)。ミシン10は、複数の縫製領域の相対位置が変更された場合に、複数の縫製領域の内の対象領域を基準領域に対して相対的に移動することで、LCD15に表示された複数の縫製領域の相対位置と、複数の縫製領域に対する模様の配置を更新する(S12又はS15の後のS17)。ミシン10は、複数の縫製領域の相対位置と、複数の縫製領域に対する模様の配置を表示できる。ユーザは、複数の縫製領域の相対位置の変更結果をLCD15を参照して確認できる。
 ミシン10は、複数の縫製領域の各々について相対位置を示す第一図形をLCD15に表示する(S4、S17)。ミシン10は、複数の縫製領域の内の何れかに対応する第一図形を移動する移動指示を取得する(S10、S13)。ミシン10は、取得された移動指示に応じて、複数の縫製領域の内の、第一図形に対応する縫製領域を基準領域に対して移動して、複数の縫製領域の相対位置を変更する(S12、S15)。ミシン10は、複数の縫製領域の内の何れかに対応する第一図形を隣接方向に移動する指示に従って、複数の縫製領域の相対位置を変更できる。ユーザは、移動したい縫製領域に対応する第一図形を移動する指示を入力することで、所望の縫製領域を所望の量移動させることができる。
 ミシン10は、第一図形に対応する縫製領域の移動方向に複数の縫製領域を配置されている場合、対象領域の移動方向における間隔を維持したまま、対象領域を移動方向に移動して、複数の縫製領域の相対位置を変更する(S12、S15)。CPU61は、移動方向において、第一図形に対応する縫製領域と、第一図形に対応する縫製領域に対して基準領域とは反対側にある少なくとも1の縫製領域とを対象領域として特定する。ミシン10は、対象領域の隣接方向における間隔を維持したまま、対象領域を移動できる。ミシン10は、ユーザが1つの縫製領域の移動に合わせて、他の縫製領域を移動させる手間を省くことができる。
 ミシン10は、複数の縫製領域の相対位置を示す情報を出力する。具体的には、ミシン10は、複数の縫製領域の相対位置を示す第二図形を印刷するための印刷データを生成し(S73)、生成された印刷データを出力する(S74)。ミシン10は、第二図形を印刷するための印刷データを生成し、出力できる。印刷装置17が印刷データに従って、第二図形を印刷した場合、ユーザは、印刷された第二図形を複数の縫製領域の相対位置に合わせて、被縫製物Cを刺繍枠45に保持させる際の目安とすることができる。つまりミシン10は、複数の縫製領域の相対位置に応じた、ユーザが被縫製物Cに対する刺繍枠45の位置を設定する際の利便性を高めることができる。
 本発明の非一時的コンピュータ可読媒体及び刺繍データ生成方法は、上記した実施形態に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更が加えられてもよい。例えば、以下の(A)から(C)までの変形が適宜加えられてもよい。
 (A)非一時的コンピュータ可読媒体は、例えば、磁気ディスク、光磁気ディスク、光ディスク、又は半導体メモリ等の、読み書き可能な任意のリムーバブルメディアであってよい。非一時的コンピュータ可読媒体は、処理を実行するコンピュータに固定的に装着された内蔵型ハードディスクドライブ又はSSD(Solid State Drive)等の非可搬性の記憶部であってもよい。非一時的コンピュータ可読媒体が記憶する指示を実行する装置の構成は適宜変更されてもよい。ミシン10は、刺繍縫製が可能なミシンであればよく、工業用ミシン及び多針ミシンであってもよい。メイン処理の縫製処理以外の処理の一部又は全部は、装置20で実行されてもよい。装置20の構成は適宜変更してよい。装置20は、専用の装置であってもよいし、スマートフォン及びタブレット型のPC等の携帯可能な端末装置であってもよい。装置20で生成された刺繍データに基づき、ミシン10で模様が縫製されてもよい。ミシン10はイメージセンサ35、検出器36を備えなくてもよい。
 (B)ミシン10で実行されるメイン処理(図2参照)を実行させるための指令を含むプログラムは、CPU61がプログラムを実行するまでに、ミシン10の記憶機器に記憶されればよい。従って、プログラムの取得方法、取得経路及びプログラムを記憶する機器の各々は、適宜変更してもよい。CPU61が実行するプログラムは、ケーブル又は無線通信を介して、他の装置から受信し、フラッシュメモリ等の記憶装置に記憶されてもよい。他の装置は、例えば、PC、及びネットワーク網を介して接続されるサーバを含む。
 (C)ミシン10で実行されるメイン処理(図2参照)の各ステップは、CPU61によって実行される例に限定されず、一部又は全部が他の電子機器(例えば、ASIC)によって実行されてもよい。メイン処理の各ステップは、複数の電子機器(例えば、複数のCPU)によって分散処理されてもよい。メイン処理の各ステップは、必要に応じて順序の変更、ステップの省略、及び追加が可能である。ミシン10上で稼動しているオペレーティングシステム(OS)等が、CPU61からの指令に基づきメイン処理の一部又は全部を行う態様も、本開示の範囲に含まれる。例えば、メイン処理に以下の(C-1)から(C-5)の変更が適宜加えられてもよい。
 (C-1)複数の縫製領域の大きさ、形状は、互いに同じであってもよいし、互いに異なっていてもよい。被縫製物Cに対する複数の縫製領域の仮想的な配置は、例えば、図10(A)に示すように任意の配置であってもよい。図10(A)に示す例では、部分模様H1からH4を含む、チューリップを表す模様Hについて、部分模様H1からH4に対応して、縫製領域R31からR34が設定されている。縫製領域R31からR34は、同一の大きさを有するが、縫製領域R31からR34の長手方向は互いに異なる。縫製領域R31からR34は連続領域R3をなす。このような配置は、例えば、CPU61は、上記実施形態において、複数の縫製領域を個々に移動及び回転可能とすることで実現できる。
 被縫製物Cに対する複数の縫製領域の仮想的な配置は、例えば、図10(B)に示すように、複数の縫製領域R4、R5が互いに離間しており、連続領域を構成していなくてもよい。この場合CPU61は、複数の縫製領域の相対位置を表す情報として、例えば、縫製領域の延設方向、縫製領域の中心間の距離、縫製領域の中心のX方向、Y方向のズレ量を示す情報を表示、印刷、音声出力等により出力してもよい。ユーザは、出力された情報に基づき、縫製領域R4、R5の仮想的な配置に合わせて、被縫製物Cに対する刺繍枠45の配置を設定すればよい。更に、CPU61は、図10(B)に示すように、複数の縫製領域が互いに離間しており、連続領域を構成しない場合に、最適化処理において、図10(C)に示すように、複数の縫製領域R61からR64を含む連続領域R6を設定してもよい。この場合、CPU61は、S68において、位置合わせ縫目D5からD7を設定してもよい。このようにすることで、複数の縫製領域R61からR64の各々で、模様を表す縫目及び位置合わせ縫目の少なくとも一方を縫製できる。複数の縫製領域の相対位置を表す情報を出力する処理は、適宜省略されてもよい。イメージセンサ35を利用した公知の方法により複数の縫製領域R61からR64の位置合わせが実行されてもよい。
 (C-2)模様は単色の糸で縫製されてもよく、刺繍データは、糸データを含まなくてもよい。刺繍データは、例えばクロスステッチ模様を縫製するためのデータであってもよい。重複領域内における部分模様の分割方法は適宜変更されてよい。重複領域において分割された模様を表す縫目は、ぼかし接続されず、一部が重ならなくてもよい。重複領域に対する重なり範囲の位置、及び重なり量の少なくとも何れかは、規定値が設定されてもよいし、ユーザによって設定されてもよいし、変更不能とされてもよい。何れかの縫製領域に収まる部分模様であっても、重複領域内において、分割されてもよい。基準領域も移動可能であってもよい。位置合わせ縫目の形状、配置等は適宜変更されてよい。重なり範囲及び重なり量は、ぼかし接続で接続される、移動方向と直交する方向の縫目に応じて変更されてもよい。より詳細には、重なり範囲及び重なり量は、ぼかし接続で接続される、模様の量が最小になるように設定されてもよい。重なり範囲及び重なり量の少なくとも何れかは、複数の重複領域において個別に設定されてもよい。
 (C-3)第一図形、第二図形の形状、大きさ、色、配置等は各々適宜変更されてよい。被縫製物Cに対する模様の仮想的な配置が設定された後に、被縫製物Cに対する複数の縫製領域の仮想的な配置が設定されてもよい。この場合CPU61は、被縫製物Cに対する模様の仮想的な配置を設定した後に、最適化処理を実行することで、最適化条件を考慮して、自動的に被縫製物Cに対する複数の縫製領域の仮想的な相対位置を設定してもよい。最適化条件は、第一条件及び第二条件の何れかであってもよいし、他の条件であってもよい。他の条件は、例えば、複数の縫製領域の数が最小となる条件、指定された領域(例えば、図5に示す具体例3の少女の顔の部分)内の重なり範囲の大きさが最小となる条件、連続縫製時間が最大になる条件から選択されてもよい。
 (C-4)移動指示の入力方法は適宜変更されてよい。例えば、移動対象となる縫製領域を選択した状態でのドラッグ量によって、対象領域の選択と、移動量とが指定されてもよい。他の例では、重複領域の幅を数値入力することで指定されてもよい。CPU61は、X方向、Y方向等の特定方向のみの移動を受け付けてもよい。移動指示に従って、対象領域を移動させた場合に、模様が複数の縫製領域外となる場合には、CPU61は、エラーメッセージを表示してもよいし、模様が複数の縫製領域内となるように、所定の条件に従って、新たな縫製領域を追加してもよい。注目縫製領域の移動可能範囲は、重なり量が最小値以上であり、且つ、注目縫製領域が、注目縫製領域に対して特定方向の隣接領域の特定方向の隣接領域と重ならない範囲であってもよい。
 (C-5)S17では、S16の処理での設定結果を表示されなくてもよい。S16の分割処理は刺繍データ生成時に実行されてもよい。分割処理(S16)と刺繍データ生成とが実行された後に(S19)、表示更新がされてもよい(S17)。S20、S21の処理は適宜省略されてよい。例えば、ミシン10において、メイン処理が実行される場合に、ミシン10は、刺繍データ生成後、刺繍データに基づき縫製せずに、フラッシュメモリ64等に記憶してもよい。
1:CPU、2:ROM、3:RAM、4:フラッシメモリ、21、マウス、22:キーボード、10:ミシン、20:刺繍データ生成装置

Claims (14)

  1.  コンピュータ読み取り可能な指示を記憶する、非一時的コンピュータ可読媒体であって、
     前記指示は、
      模様を取得する模様取得ステップと、
      刺繍枠の内側に設定される縫製領域の大きさを取得する領域取得ステップと、
      被縫製物に対する複数の前記縫製領域の仮想的な配置を設定する領域設定ステップと、
      前記被縫製物に対する前記模様の仮想的な配置を設定する模様設定ステップと、
      設定された前記複数の縫製領域の相対位置を変更する変更ステップと、
      前記相対位置が変更された前記複数の縫製領域の各々について、前記縫製領域内に位置する部分の前記模様を表す複数の縫目であって、当該縫製領域に対する前記複数の縫目の位置を表す針落ちデータを含む刺繍データを生成する刺繍データ生成ステップと
    をコンピュータに実行させることを特徴とする非一時的コンピュータ可読媒体。
  2.  前記領域設定ステップは、前記複数の縫製領域の各々について、前記縫製領域と、当該縫製領域と隣合う少なくとも1の前記縫製領域である隣接領域の一部とを重ね合わせて配置することで、前記複数の縫製領域全体として連続する連続領域を仮想的に設定し、
     前記変更ステップは、前記複数の縫製領域の各々について、前記縫製領域の中心と、前記隣接領域の中心とを結ぶ隣接方向について前記相対位置を変更することを特徴とする請求項1に記載の非一時的コンピュータ可読媒体。
  3.  前記刺繍データ生成ステップは、前記模様を縫製する場合に糸の切断により区切られる複数の部分模様が前記模様に含まれる場合、
      前記複数の縫製領域の各々について、前記複数の部分模様の内、前記縫製領域内に収まる部分模様は、当該部分模様を当該縫製領域において縫製する刺繍データを生成し、当該縫製領域の前記隣接領域においては当該部分模様を縫製する刺繍データを生成せず、
      前記複数の縫製領域の各々について、前記複数の部分模様の内、前記縫製領域内に配置されているが、当該縫製領域に収まらず、当該縫製領域の前記隣接領域にも収まらない前記部分模様を、前記縫製領域と、前記隣接領域とが重複する重複領域で前記隣接方向と直交する分割方向に当該部分模様を分割し、当該縫製領域に収まる一方の分割された部分模様を当該縫製領域において縫製する刺繍データを生成し、当該縫製領域に収まらない他方の分割された部分模様を当該縫製領域の前記隣接領域において縫製する刺繍データを生成することを特徴とする請求項2に記載の非一時的コンピュータ可読媒体。
  4.  前記刺繍データ生成ステップは、前記重複領域で前記部分模様を分割する場合に、前記一方の分割された部分模様と、前記他方の分割された部分模様との一部を前記隣接方向において重ねたぼかし接続して、前記刺繍データを生成することを特徴とする請求項3に記載の非一時的コンピュータ可読媒体。
  5.  前記刺繍データ生成ステップは、前記一方の分割された部分模様と、前記他方の分割された部分模様との一部の前記隣接方向における重なり量を、前記重複領域の前記隣接方向の長さよりも小さく設定して、前記刺繍データを生成することを特徴とする請求項4に記載の非一時的コンピュータ可読媒体。
  6.  前記指示は、
      前記一方の分割された部分模様と、前記他方の分割された部分模様との前記重複領域に対する重なり範囲の位置と、前記重なり量を設定する重なり設定ステップを前記コンピュータに実行させ、
     前記刺繍データ生成ステップは、前記重複領域で前記部分模様を分割する場合に、前記重なり設定ステップで設定した前記重なり範囲の位置と、前記重なり量とで、前記部分模様を前記一方の分割された部分模様と、前記他方の分割された部分模様とに分割して前記刺繍データを生成することを特徴とする請求項5に記載の非一時的コンピュータ可読媒体。
  7.  前記領域設定ステップは、前記複数の縫製領域の各々についての、前記模様を縫製する場合に糸の切断により区切られる複数の部分模様の内、前記縫製領域内に収まる前記部分模様の数に応じて、前記隣接方向について前記複数の縫製領域の前記相対位置を仮想的に設定することを特徴とする請求項2から6の何れかに記載の非一時的コンピュータ可読媒体。
  8.  前記刺繍データは、前記複数の縫目の色を示す色データを含み、
     前記領域設定ステップは、前記複数の縫製領域の各々について、前記刺繍データの前記色データに従って糸替えが行われる場合の前記糸替えの数に応じて、前記隣接方向について前記複数の縫製領域の前記相対位置を仮想的に設定することを特徴とする請求項2から7の何れかに記載の非一時的コンピュータ可読媒体。
  9.  前記指示は、
      表示部に前記複数の縫製領域の内の基準となる縫製領域である基準領域の位置を固定して、前記複数の縫製領域の前記相対位置と、前記複数の縫製領域に対する前記模様の配置を表示する表示ステップと、
      前記変更ステップで、前記複数の縫製領域の前記相対位置が変更された場合に、前記表示部に表示された前記複数の縫製領域の内の前記基準領域に対する前記相対位置を変更する対象となる少なくとも1の前記縫製領域である対象領域を移動することで、前記表示部に表示された前記複数の縫製領域の前記相対位置と、前記複数の縫製領域に対する前記模様の配置を更新する表示更新ステップと
     を前記コンピュータに実行させることを特徴とする請求項1から8の何れかに記載の非一時的コンピュータ可読媒体。
  10.  前記表示ステップ及び前記表示更新ステップは、前記複数の縫製領域の各々について前記相対位置を示す第一図形を前記表示部に表示し、
     前記指示は、
      前記複数の縫製領域の内の何れかに対応する前記第一図形を移動する移動指示を取得する指示取得ステップを前記コンピュータに実行させ、
     前記変更ステップは、前記指示取得ステップで取得された前記移動指示に応じて、前記複数の縫製領域の内の、前記第一図形に対応する前記縫製領域を前記基準領域に対して移動して、前記複数の縫製領域の前記相対位置を変更することを特徴とする請求項9に記載の非一時的コンピュータ可読媒体。
  11.  前記変更ステップは、前記第一図形に対応する前記縫製領域の移動方向に前記複数の縫製領域を配置されている場合、前記移動方向において、前記第一図形に対応する前記縫製領域と、前記第一図形に対応する前記縫製領域に対して前記基準領域とは反対側にある少なくとも1の縫製領域とを前記対象領域として、前記対象領域の前記移動方向における間隔を維持したまま、前記対象領域を前記移動方向に移動して、前記複数の縫製領域の前記相対位置を変更することを特徴とする請求項10に記載の非一時的コンピュータ可読媒体。
  12.  前記指示は、
      前記複数の縫製領域の前記相対位置を示す情報を出力する出力ステップを更に前記コンピュータに実行させることを特徴とする請求項1から11の何れかに記載の非一時的コンピュータ可読媒体。
  13.  前記指示は、
      前記複数の縫製領域の前記相対位置を示す第二図形を印刷するための印刷データを生成する印刷データ生成ステップを更に前記コンピュータに実行させ、
      前記出力ステップは、前記印刷データ生成ステップで生成された前記印刷データを出力することを特徴とする請求項12に記載の非一時的コンピュータ可読媒体。
  14.  模様を取得する模様取得ステップと、
     刺繍枠の内側に設定される縫製領域の大きさを取得する領域取得ステップと、
     被縫製物に対する複数の前記縫製領域の仮想的な配置を設定する領域設定ステップと、 前記被縫製物に対する前記模様の仮想的な配置を設定する模様設定ステップと、
     設定された前記複数の縫製領域の相対位置を変更する変更ステップと、
     前記相対位置が変更された前記複数の縫製領域の各々について、前記縫製領域内に位置する部分の前記模様を表す複数の縫目であって、当該縫製領域に対する前記複数の縫目の位置を表す針落ちデータを含む刺繍データを生成する刺繍データ生成ステップと
    を備えることを特徴とする刺繍データ生成方法。
PCT/JP2019/008558 2018-03-16 2019-03-05 非一時的コンピュータ可読媒体及び刺繍データ生成方法 WO2019176639A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/021,270 US11473228B2 (en) 2018-03-16 2020-09-15 Non-transitory computer-readable medium and embroidery data generation method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018-049673 2018-03-16
JP2018049673A JP2019154991A (ja) 2018-03-16 2018-03-16 非一時的コンピュータ可読媒体及び刺繍データ生成方法

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/021,270 Continuation US11473228B2 (en) 2018-03-16 2020-09-15 Non-transitory computer-readable medium and embroidery data generation method

Publications (1)

Publication Number Publication Date
WO2019176639A1 true WO2019176639A1 (ja) 2019-09-19

Family

ID=67906650

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2019/008558 WO2019176639A1 (ja) 2018-03-16 2019-03-05 非一時的コンピュータ可読媒体及び刺繍データ生成方法

Country Status (3)

Country Link
US (1) US11473228B2 (ja)
JP (1) JP2019154991A (ja)
WO (1) WO2019176639A1 (ja)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11164974A (ja) * 1997-12-04 1999-06-22 Janome Sewing Mach Co Ltd 刺繍用データ生成装置及びミシン
JP2000024350A (ja) * 1998-07-08 2000-01-25 Brother Ind Ltd 刺繍データ作成装置及び刺繍データ作成プログラムを記録した記録媒体
JP2007275549A (ja) * 2006-03-13 2007-10-25 Brother Ind Ltd 刺繍データ処理装置及び刺繍データ処理プログラム
JP2017113448A (ja) * 2015-12-25 2017-06-29 ブラザー工業株式会社 縫製データ生成プログラム及び縫製データ生成装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5855176A (en) 1997-05-07 1999-01-05 Janome Sewing Machine Co., Ltd. Embroidery stitch data producing device and sewing machine
JP3959791B2 (ja) * 1997-08-27 2007-08-15 ブラザー工業株式会社 刺繍データ処理装置及び記憶媒体
JP2004180993A (ja) 2002-12-04 2004-07-02 Juki Corp 刺繍模様データが記憶された刺繍縫いミシンのコンピュータ読み取り可能な記録媒体及び刺繍縫いミシン

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11164974A (ja) * 1997-12-04 1999-06-22 Janome Sewing Mach Co Ltd 刺繍用データ生成装置及びミシン
JP2000024350A (ja) * 1998-07-08 2000-01-25 Brother Ind Ltd 刺繍データ作成装置及び刺繍データ作成プログラムを記録した記録媒体
JP2007275549A (ja) * 2006-03-13 2007-10-25 Brother Ind Ltd 刺繍データ処理装置及び刺繍データ処理プログラム
JP2017113448A (ja) * 2015-12-25 2017-06-29 ブラザー工業株式会社 縫製データ生成プログラム及び縫製データ生成装置

Also Published As

Publication number Publication date
JP2019154991A (ja) 2019-09-19
US20200407897A1 (en) 2020-12-31
US11473228B2 (en) 2022-10-18

Similar Documents

Publication Publication Date Title
US7155302B2 (en) Embroidery data producing device, embroidery data producing method, embroidery data producing control program stored on computer-readable medium and embroidery method
JP6587390B2 (ja) 刺繍模様配置システム、刺繍模様配置装置、刺繍模様配置装置の刺繍模様配置方法、刺繍模様配置装置のプログラム、ミシン
US5592891A (en) Embroidery data processing apparatus and process of producing an embroidery product
US11060221B2 (en) Sewing machine
JP2014064660A (ja) ミシン
JP2013099455A (ja) ミシン
JP6860294B2 (ja) 刺繍模様連結データ生成装置、刺繍模様連結データ生成方法、プログラムおよび縫製システム
JP2013099456A (ja) ミシン
WO2017110329A1 (ja) 縫製データ生成プログラム及び縫製データ生成装置
WO2017090294A1 (ja) ミシン及びプログラムを記録した記録媒体
US9885131B2 (en) Sewing machine
JP6604171B2 (ja) 刺繍模様編集プログラム及び刺繍模様編集装置
US9228279B2 (en) Sewing machine
JP2019000419A (ja) ミシン
JPH0956942A (ja) 縫製データ処理装置
WO2019176639A1 (ja) 非一時的コンピュータ可読媒体及び刺繍データ生成方法
US9008818B2 (en) Embroidery data generating device and non-transitory computer-readable medium
WO2017130734A1 (ja) ミシン及び縫製データ編集プログラム
JP2023021695A (ja) 加工データ生成装置、刺繍ミシン、及び加工データ生成プログラム
US11661692B2 (en) Sewing machine
JP4162742B2 (ja) 刺繍用データ生成装置及びミシン
JP2005185297A (ja) 刺繍ミシン
JPS63105787A (ja) ミシン
WO2018158982A1 (ja) ミシン及びミシンプログラム
JPH10314471A (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: 19766708

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: 19766708

Country of ref document: EP

Kind code of ref document: A1