摘要 |
PROBLEM TO BE SOLVED: To provide a numerical value control device which can shorten a cycle time required for processing, and a control method.SOLUTION: A CPU of a numerical value control device analyzes an NC program by one block. When there is a clamp command or an unclamp command in the analyzed block, the CPU turns on a completion-waiting flag, stores an axis information of the clamp command or the unclamp command, and performs clamping or unclamping. Next, in the case that there is an axis movement command in the analyzed block, when the completion waiting flag is turned on (S21: YES), and the axis movement command is a positioning command (S22: NO), the CPU determines whether or not a command axis of the positioning command and the axis information coincide with each other (S23). When the command axis and the axis information do not coincide with each other, the CPU performs axis movement without waiting for the completion of the clamping or unclamping (S29), and thus, a cycle time required for workpiece processing can be effectively shortened. |