摘要 |
PROBLEM TO BE SOLVED: To provide a photoelectric sensor capable of performing accurate detection of a detection object, measurement of an advance position or the like even if a slit is mounted. SOLUTION: A slit plate 26 having a proper opening area is selected from plural slit plates 26 corresponding to the size of the detection object W2, and the output signal level from a light receiving circuit 19 is stored as 'the maximum output signal level D1' in a storage part in the state where the slit plate 26 is not mounted and the detection object W2 does not exist in an optical path L1. Then the slit plate 26 is mounted, and the output signal level from the light receiving circuit 19 is stored as 'a detected output signal level D2' in the storage part. In this case, a CPU 20 calculates a light receiving ratio S (=D1/D2) from the maximum output signal level D1 and the detected output signal level D2 and stores it in the storage part, and multiplies the output signal level from the light receiving circuit 19 by the light receiving ratio at the 'detection mode' time and performs determination operation based on a conversion level. |