the correction processing and returns to the needle determination processing refer to fig7 in a case where the cutting needle r i u2212 1 j corresponding to the needle drop point p i u2212 1 that is immediately preceding the needle drop point p i has not been identified no at step s 73 the cpu 61 determines whether or not the cutting needle r i 1 j has already been identified step s 77 the cutting needle r i 1 j corresponds to the needle drop point p i 1 immediately after the needle drop point p i in a case where the cutting needle r i 1 j corresponding to the needle drop point p i 1 has already been identified yes at step s 77 the cutting edge of the cutting needle r i 1 j is oriented in a direction in which the warp threads 116 and the weft threads 117 of the work cloth 39 can be reliably cut the cpu 61 corrects the cutting needle r i j by replacing the cutting needle r i j stored in the table 141 with the cutting needle r i 1 j step s 79 the cpu 61 ends the.