39 s needle position and for detecting the number of revolutions per minute of the sewing machine 16 a thread cutting device 18 an x direction driving pulse motor for the cloth feeding device 19 a y direction driving pulse motor the pulse motors 18 and 19 driving the cloth feeding device through a well known belt or rack and pinion device by which the rotational movement of the pulse motors is converted to linear movement to move the cloth as desired to thereby sew a desired patter and 20 a cloth retaining device for operating a clamping portion 20 a of the feeding device for holding a piece of cloth in the cloth feeding device further in fig1 reference numeral 17 designates a pulse motor drive circuit in which pulse motor driving data are received in parallel from the output port 6 and are converted into a sewing machine rotation signal and series data synchronous with the signal from the pulse oscillator 21 to drive the pulse motors 18 and 19 25 a temporary stop switch 26 a positive direction minute movement switch and 27 a negative direction minute movement switch two kinds of pattern data are stored in the memory cassette 2 i e x direction.