摘要 |
PURPOSE:To avoid the production of accumulated error, by resetting a counting value of a counter to a reference value at a reference position. CONSTITUTION:First, modes A-C and a decimal reference value alpha are inputted from a data input device 48 and stores in an RAM 54. When a mobile body is moved, a forward pulse signal Pa or a reverse pulse signal Pb are outputted from a pulse generator 40. When the mobile body moves in a reference region, a reference signal Pc outputted from a reference signal generator 44 goes to a low level and the low level is kept while the mobile body is being moved in the reference region. Which mode of the A-C is stored in the RAM 54 is discriminated, and a switch signal SW1 is outputted to a controller 60 when the mode A is stored and the mobile body is controlled. When all the conditions are affirmative, a reset signal is outputted to a counter 42 and the counting value of the counter 42 is reset to the reference value alpha. That is, the reference value set to the counter 42 is corrected. |