output data of the latch 223 are 34 0000 34 as described above the comparator 231 produces 34 1 34 output at the terminal 03 this 34 1 34 output is fed to the motor control circuit 242 so as to drive the motor 62 and the drum 58 in y direction so that the cam follower 72 is raised by the rotation of the drum 58 the arm 66 oscillate and the microswitch 168 is changed over to produce a clock pulse which is to be fed to the counter 211 when the cam follower 72 reaches the cam 52 0 for the left side button hole stitching the counter 211 is decreased one by the clock pulse fed from the flip flop and the counter 211 becomes 34 0000 34 so that the comparator 231 produces the 34 1 34 output at the terminal 02 and the motor 62 is stopped the outputs 34 0000 34 of the counter 231 cause the decoder 261 to produce 34 1 34 signal at the terminal 34 0 34 and the output of the and gate 251 is disappeared then the flip flops 253 to 254 i e the counter 250 is reset therefore the transistor 293 is conducted by the 34 0 34 signal fed from the or gate 516 for enabling the resistor 291 to generate the speed control signal now the sewing machine is ready to sew the left side.