tip 911 is in a protruding position in which the pen tip 911 protrudes slightly to the outside from the pen body when a force acts on the pen tip 911 in the rearward direction the pen tip 911 enters into the pen body when the force acting on the pen tip 911 is released the pen tip 911 returns to the original protruding position an electric substrate not shown in the drawings is provided in the interior of the ultrasonic pen 91 the electric substrate may be connected to a control portion 60 refer to fig7 of the sewing machine 1 via the cable 915 that extends from the rear end of the ultrasonic pen 91 a switch 912 an ultrasonic transmitter 913 and a signal output circuit 914 etc are mounted on the electric substrate refer to fig7 the switch 912 is provided facing the rear end of the pen tip 911 the ultrasonic transmitter 913 is an ultrasonic wave transmission source the ultrasonic transmitter 913 transmits an ultrasonic wave when the switch 912 is pressed the ultrasonic transmitter 913 is provided in a position that is extremely close to the pen tip 911 the signal output circuit 914 normally outputs a high signal to the sewing machine 1 via the cable.