摘要 |
PURPOSE:To obtain sufficient interpolation accuracy by providing a means storing the present position actual value, storing the round-off error in the present position actual value and reflecting the round-off error stored so far onto a distribution pulse thereby preventing the storage of error. CONSTITUTION:An interpolation distance calculation means 1 calculates an interpolation distance L from a coordinate (XS, YS) of a start point of an interpolation interval and a coordinate (XE, YE) of an end point. An interpolation number of time calculation means 2 calculates an interpolation number of times N within the two intervals of distribution from the interpolation distance L and a given feed speed F. An X axis distribution distance calculation means 3 calculates an X axis distribution distance DELTAX1 being an ideal distance distributed for each one interpolation. The X axis distribution distance DELTAX1 is accumulated by an adder means 4 for each pulse distribution and stored in a storage means 5 as the present position actual value X1. Moreover, a distribution pulse DELTAX2 corresponding to the actual distribution distance outputted from a distribution pulse calculation means 6 is accumulated for each pulse distribution by an adder means 7 and stored in a storage means 8 as a present position integral value X2.
|