摘要 |
<p>A numerical control device capable of executing a machining program in which variable instructions are written includes: a variable editing and setting mechanism (2) for setting an arithmetic expression as a variable; a memory (3) for storing the arithmetic expression set by the variable editing and setting mechanism (2); an arithmetic expression solving mechanism (4a) for, when the arithmetic expression is set as the variable by the variable editing and setting mechanism (2), calculating the arithmetic expression immediately to compute the solution; a variable display mechanism for displaying the arithmetic expression set as the variable together with the solution computed by the arithmetic expression solving mechanism (4a); and a variable substitution mechanism (8) for, when a variable written in the machining program is an arithmetic expression, reading the arithmetic expression corresponding to the variable from the memory (3) and for substituting the arithmetic expression read from the memory (3) for the variable written in the machining program. As a result, the arithmetic expressions in the machining program can be denoted alternatively by variables.</p> |