摘要 |
A photoelectric switch can be widely applied with a function to sensuously and intuitively display a light-receiving amount as an artificial numeric value in a given range. A preset display value “100” is set to an average value of sampled light-receiving amounts (S2). A preset display value “0” is allocated to a light-receiving amount of “0” already held by the photoelectric switch (S3), to obtain a preset display conversion factor (S4). When an operation based on this preset display conversion formula is disadvantageous, an average value of the sampled actual light-receiving amounts is set to a preset display value “0 (zero)” (S23), and a preset display conversion formula, obtained by substituting the above actual light-receiving amount for the light-receiving amount with respect to the preset display value “0” in the already created preset display conversion formula, is created (S22). |