may be provided on the head 114 of the sewing machine 101 the camera may perform image capture of the accessory device or the presser member the cpu 61 may identify the type of the accessory device or the presser member by a known pattern matching method using the captured image the rom 62 may store the maximum cloth thickness table 622 in which the accessory device or the presser member is associated with the maximum cloth thickness value at step s 15 the cpu 61 may read the maximum cloth thickness table 622 and may determine whether or not the cloth thickness is larger than the maximum cloth thickness value that corresponds to the type of the accessory device or presser member identified at step s 14 in the present embodiment in order to perform notification that the threading operation by the threading device 11 is not possible the cpu 61 displays the error message 261 on the lcd 115 however the sewing machine 101 may be provided with a speaker or a buzzer and may output an error sound the above described program may be recorded on a computer readable storage medium such as a hard disk a flexible.