Patent ID: 7878133

Claim:
A sewing machine comprising: a needle bar; a needle bar up-and-down movement mechanism that raises and lowers the needle bar; a sewing machine motor that drives the needle bar up-and-down movement mechanism; an operation device that is provided separately from a body of the sewing machine, and that includes at least one operation member to be operated by a user, the operation device outputting an output signal which corresponds to an operation state of the operation member; a command determination device that determines a command which corresponds to the output signal outputted by the operation device as a determined command; a drive control device that controls a predetermined operation of the sewing machine in accordance with the determined command determined by the command determination device; a command selection device that selects a command, according to an instruction from the user, to be assigned to the output signal from among a plurality of different commands as a selected command; and a command assignment device that assigns the selected command selected by the command selection device to the output signal as an assigned command, wherein the command determination device references the assigned command assigned by the command assignment device, to determine the determined command that corresponds to the output signal provided by the operation device.