摘要 |
PURPOSE:To decrease the number of signal lines between a numerical controller side and a machine tool side by executing a transfer of a pulse outputted from a position detector and a transfer of a counter value of a reversible counter, by using the same signal line. CONSTITUTION:When a power source is turned on, a microprocessor 11 controls an output part 15, its output signal (a) is set to '1', and both changeover switches 18, 25 are set to a side B. Subsequently, a count value CNTn of a reversible counter 24 of this time is read, and in case a flag is '0', the signal (a) is set to '0' and a command pulse is applied to an error register 17, a machine movable part is returned to the origin, the signal (a) is set to '1' and a count value CNT0 is read, and subsequently, -CNT0 is stored as alpha in a memory 12. Next, a present position X is derived by adding the CNT0 and alpha, the flag is set to '1' and it is stored in the memory 12. Subsequently, the signal (a) is set to '0' and both the switches 18, 25 are set to a side A, and an output pulse of a position detector 23 is applied to the register 17. Thereafter, in accordance with numerical information of a tape reader 13, the command pulse is applied to the register 17, and working is started.
|