Patent ID: 8763542

Claim:
A sewing machine comprising: a sewing device configured to form stitches on a sewing workpiece held by an embroidery frame; a processor; and a memory configured to store computer-readable instructions that, when executed by the processor, instruct the processor to perform processes comprising: acquiring embroidery data, the embroidery data being data to sew an embroidery pattern on the sewing workpiece, the embroidery pattern being formed by a plurality of stitches; generating stitched marker data based on the acquired embroidery data, the stitched marker data being data to form at least one stitched marker in a position where the at least one stitched marker is covered by the embroidery pattern, and each of the at least one stitched marker being formed by at least one stitch used as a reference for at least one of a first sewing position and a first sewing angle of the embroidery pattern; causing the sewing device to sew the at least one stitched marker in accordance with the generated stitched marker data; causing the sewing device to start sewing the embroidery pattern in accordance with the acquired embroidery data; identifying a pattern to be sewn when the sewing of the embroidery pattern is stopped, the pattern to be sewn having at least one stitch included in the plurality of stitches of the embroidery pattern and not yet sewn; detecting at least one of a second sewing position and a second sewing angle of the at least one stitched marker on the sewing workpiece when the sewing of the embroidery pattern is stopped; setting at least one of a third sewing position and a third sewing angle of the identified pattern to be sewn, in accordance with at least one of a fourth sewing position and a fourth sewing angle of a sewn pattern on the sewing workpiece, based on the detected at least one of the second sewing position and the second sewing angle, the sewn pattern having at least one sewn stitch that is included in the plurality of stitches of the embroidery pattern; correcting data to be used to sew the pattern to be sewn included in the embroidery data based on the set at least one of the third sewing position and the third sewing angle; and causing the sewing device to restart sewing the embroidery pattern in accordance with the embroidery data including the corrected data for the pattern to be sewn.