fig6 and 7 the command system controller 34 which inputs the control code to the control device will be detailed as shown in fig6 the cpu 63 in the command system controller 34 not shown is connected to the rom 64 the ram 65 the pedal sensor 66 the control panel 32 and interface 48 the interface 48 is connected to the drive controller 29 the details of the command system controller 34 will be apparent from the following description in conjunction with fig7 the control panel 32 comprises a pattern stitch number setting means 67 a needle stop position setting means 68 a presser bar raising switch sensing means 69 a thread cut solenoid timing setting means 70 a wiper solenoid timing setting means 71 and a presser bar raising solenoid timing setting means 72 the pedal sensor 66 consists of a fore pedalling amount detecting means 73 and an aft pedalling amount sensing means 74 the outputs of the pattern stitch number setting means 67 the needle stop position setting means 68 the thread cut solenoid timing setting means 70 the wiper solenoid timing setting means 71 and the presser bar raising solenoid timing setting means 72 are connected to a control encoding means 75 to which the presser bar raising switch sensing means 69.