摘要 |
PROBLEM TO BE SOLVED: To provide a numerical control device capable of creating a smooth path even when segment length is non-uniform.SOLUTION: A CPU calculates segment length before and after an object point among command points, and calculates enlarged segment length by multiplying the larger segment length by a correction multiple (S21, S22). The CPU creates a calculation table showing the information of the coordinate data of each command point and segment length between respective command points (S23), and displaces the segment length which is longer than the enlarged segment length with the enlarged segment length (S26). The CPU corrects the coordinate data of the calculation table on the basis of the displaced enlarged segment length (S27). The CPU approximates a path connecting the respective command points to a secondary curve by a least square method (S28) on the basis of the corrected calculation table (S28), and corrects the coordinate data of the object point (S29). Thus, it is possible to create a smooth path even when segment length is non-uniform in the case of calculating an approximation curve by the least square method from the plurality of command points. |