To restrict the function of a sewing machine so as not to be wholly or partly performed quickly and accurately when specified conditions are held while releasing the restriction properly and quickly.
An embroidary machine 1 is provided with a timer 30 to detect application time of the machine surpassing a specified restriction time and a restriction means (program stored in an ROM 28) which restricts the function of the embroidary machine 1 so as not to be performed wholly or partly after the expiration of time is detected by the timer 30. The restriction means will not restrict the function before the completion of sewing even when the timer 30 detects the expiration of time during the sewing work with the embroidary machine 1. The embroidary machine 1 is provided with an operation panel 7 that allows inputting of characters, symbols and the like to extend or release the restriction time set on the timer 30 when a specified extension code or releasing code is inputted.