摘要 |
PROBLEM TO BE SOLVED: To provide a numerical control device stopping driving of a predetermined spindle to operate a machine tool. SOLUTION: A main spindle flag is set to "1" when there is an "M300" command in a machining program. The main spindle flag is set to "0" when there is an "M301" command. A table flag is set to "1" when there is an "M302 " command. The table flag is set to "0" when there is an "M303" command. If the main spindle flag is "1" and the table flag is "1" (S31: Yes and S32: Yes), the rotation of the main spindle and the movement of the table are forbidden to carry out processing. If the main spindle flag is "1" and the table flag is "0" (S31: Yes and S32: No), the rotation of the main spindle is forbidden to carry out processing. If the main spindle flag is "0" and the table flag is "1" (S31: No and S33: Yes), the movement of the table is forbidden to carry out processing. If both the main spindle flag and table flag are "0" (S31: No and S33: No), processing is carried out as usual according to instructions. COPYRIGHT: (C)2009,JPO&INPIT
|