摘要 |
PROBLEM TO BE SOLVED: To achieve a function that smoothly performs an operation check by suspending execution of a program immediately after a sub program call or macro call in a numerical control device for controlling a machine tool.SOLUTION: A numerical control device 10 analyzes a program by a command program analysis unit 12, determines a macro call or sub program call by a macro call or sub program call determination unit 14, and executes the macro call or sub program call by a macro call or sub program call execution unit 15. A program stop determination unit 17 determines information of the macro call or sub program call received from the macro call or sub program call determination unit 14. When the program stop determination unit 17 determines to perform program stop, a program stop request unit 18 is commanded to output a program stop request to a command program analysis unit 12 and an interpolation processing unit 13 to stop the program. |