Patent ID: 8539893

Claim:
A sewing machine that has a function to sew an embroidery pattern, the sewing machine comprising: a transfer device that includes a carriage to which an embroidery frame that holds a work cloth can be attached under a plurality of attaching conditions and that is adapted to transfer the carriage, the plurality of attaching conditions mutually differing in at least one of an attaching position and an attaching angle of the embroidery frame in relation to the carriage, a sewing area being set for the embroidery frame based on a movable range of the embroidery frame, and the embroidery frame being attached to the carriage in a state in which one of the plurality of attaching conditions is changed to another one of the plurality of the attaching conditions in a process in which an embroidery pattern is sewn in a case in which the embroidery pattern is larger than the sewing area; a sewing device that moves a needle bar, to a bottom end of which a needle can be attached, up and down; a specification device that specifies an embroidery pattern to be sewn on the work cloth; an allocation device that allocates pattern data to one of the plurality of attaching conditions, the pattern data being data used to sew each of partial patterns that are parts of the specified embroidery pattern, and the attaching conditions to which the pattern data are allocated being mutually different; a data acquisition device that acquires pattern data allocated to a current condition by the allocation device in accordance with the current condition, the current condition being an attaching condition which is one of the plurality of attaching conditions and under which the embroidery frame is currently attached; an image capture device that is adapted to capture an image of at least one marker that is provided on the embroidery frame attached to the carriage, the image being captured before and after the current condition is changed; a computation device that computes a difference as a correcting condition based on image data generated by the image capture device, the difference being a difference between at least one of positions of the at least one marker and angles of the at least one marker in relation to the carriage before and after the current condition is changed; a correction device that corrects the pattern data acquired by the data acquisition device by determining a position and an angle of the partial pattern in relation to the carriage based on the correcting condition computed by the computation device; and a sewing control device that performs sewing of the partial pattern by controlling the transfer device and the sewing device in accordance with the pattern data corrected by the correction device.