Patent ID: 8042479

Claim:
A sewing machine comprising: a needle bar that holds a sewing needle and moves up and down as it is driven by a drive shaft of the sewing machine; a feed dog that shifts a piece of work cloth in a back-and-forth direction or a right-and-left direction; a feed mechanism that drives the feed dog; a detection device that detects whether a feed distance by which the piece of work cloth is shifted by the feed dog in the back-and-forth or right-and-left direction has reached a predetermined distance; a counting device that counts a number of forward feed stitches and a number of backward feed stitches which are sewn when the piece of work cloth is shifted backward and forward, respectively, by the predetermined feed distance detected by the detection device or a number of leftward feed stitches and a number of rightward feed stitches which are sewn when the piece of work cloth is shifted leftward and rightward, respectively, by the predetermined feed distance, based on up-and-down movement of the needle bar; a correction value setting device that sets a correction value to correct the feed distance by at least one of the forward shift and the backward shift or at least one of the leftward shift and the rightward shift, based on a result of the counting of the number of stitches by the counting device; and a feed controller that controls the feed mechanism in accordance with the correction value set by the correction value setting device.