摘要 |
There is provided a numerical control device and system (i.e. method) for executing numerical control processing on the basis of a command program on a command tape 21 and for actuating a machine 30 in accordance with the results of the processing steps to machine a workpiece in the manner specified by the instructions in the command program on the command tape 21. There are prepared a plurality of system variables the values of which represent a variety of operational conditions on the side of the machine 30 or on the side of a numerical control device 23 to 32. A user macro on a user macro command tape 22 and having at least an identification and an instruction that employs the system variables, is stored beforehand in a memory 24. The command program on tape 21 is programmed to include a user macro call instruction. A prescrubed user macro is read out from the memory 24 by means of the user macro call instruction, thereby to allow processing in a processing section 27 in accordance with the user macro. For example, it is possible to execute processing upon reading out input/output interface signals, clock time and a variety of machine positions. |