79 and thus drives the needle bar up and down movement mechanism 84 refer to fig6 until the cutting needle 8 moves to the top needle position next the cpu 151 determines whether the needle drop number n is u201c cut_end u201d step s 19 the cpu 151 performs the determination by referring to the needle drop number n stored in the ram 153 and then comparing this needle drop number n to the needle drop number n u201c cut_end u201d of the cutwork pattern data 100 that is stored in the cutwork data storage area 641 refer to fig6 when it is determined that the needle drop number n is not u201c cut_end u201d no at step s 19 the cpu 151 increments the needle drop number n step s 21 and the incremented needle drop number n is stored in the ram 153 after this the cpu 151 returns the processing to step s 15 for example when the needle drop number n is u201c 1 u201d no at step s 19 the needle drop number n is incremented to u201c 2 u201d step s 21 when the needle drop number n is u201c cut_end u201d yes at step s 19 the cpu 151 overwrites and stores the current cutting needle angle in the cutting needle angle storage area 643 step s 23 for example when the needle drop number n is u201c cut_end u201d yes at step s 19 the cutting needle angle data in the cutwork pattern.