摘要 |
PURPOSE:To prevent an accumulation of errors due to the rounding to the nearest whole number in the arithmetic process of pulse number, by adding the cumulative extent of shift stored in a shift accumulating means with every read of the extent of shift and the present extent of shift and then distributing the pulse number based on the result of said addition. CONSTITUTION:A data writing device MDI, a memory M and a driving circuit DU that drives a servomotor SM are connected to a numerical controller NC consisting of a microprocessor or the like. At the same time, the controller NC is used for the memory M to store the desired numerical control program NCP. Furthermore the pulse number is cumulatively stored in the memory M every time when the pulses are distributed in accordance with the programed extent of shift. Then the cumulative extent of shift stored with every read of the extent of shift is added to the read-out extent of shift, and the value obtained by multiplying the result of addition by a constant plus the pulse number equal to the deviation to the stored pulse are applied to the circuit DU. Thus an accumulation of errors due to the rounding to the nearest whole number is prevented to ensure a highly precision positioning. |