A grounding includes a photoelectric sensor that emits light to a detection region in which the detection target portion moves in conjunction with the grounding of the electronic component to a board and receives light from the detection region, and a grounding discrimination section that discriminates between the presence or absence of the grounding based on a signal from the photoelectric sensor. The detection target portion is disposed in the detection region in the ungrounded state.