embodiment described above 5 stages are prepared but more stages may be provided as required numeral 17 denotes a start key depressed for shifting to an embroidering operation after the desired pattern number is registered or finished to be registered a control circuit shown in fig1 will now be described reference numeral 18 denotes a central processing unit cpu formed as a general microprocessor an i o denotes a programmable input output interface to communicate data between a peripheral unit and the central processing unit 18 numeral 19 denotes upper shaft rotating phase detecting means in the embroidering machine for detecting a brake signal output phase and an x y direction driving phase the brake signal output phase is set near a balance top dead point phase of the embroidering machine and the x y directional driving phase i e an embroidering frame driving phase is set to a phase in which the needle 2 is disposed above the cloth to be embroidered numeral 21 denotes an x axis stepping motor which is stepwisely driven by a pulse from an x directional driver 22 numeral 23 denotes a y directional stepping motor which is driven by an y directional driver 24 numeral 27 denote pattern size upper reference setting means for selecting the size of the upper reference as a base of an operation to store and set it in pattern size upper reference storage means 28 numeral 29 denotes pattern size lower reference setting means for similarly selecting the size of the lower reference as a base of an operation to store and set it in pattern size lower reference storage means 30 numeral 31 denotes selected pattern storage means connected to the central processing unit.