摘要 |
PROBLEM TO BE SOLVED: To prevent a marker from being erroneously detected by a sensor in the case of detecting a bar code and a marker by the sensor.SOLUTION: A CPU 21 acquires an output value from the output of a sensor part 28. The CPU 21 determines whether or not the acquired output value of the sensor part 28 is within a predetermined range. The CPU 21 acquires the maximum value when the acquired output value of the sensor part 28 becomes the maximum and the minimum value when the acquired output value of the sensor part 28 becomes the minimum, and calculates a difference between the maximum value and the minimum value. When determining that the output value of the sensor part 28 is within the predetermined range, the CPU 21 determines whether or not the calculated difference is equal to or more than predetermined fixed bar recognition width (variable bar recognition width). When determining that the difference is equal to or more than the fixed bar recognition width (variable bar recognition width), the CPU 21 determines that the output value of the sensor part 28 is beyond the predetermined range. |