A numerical control device that controls, in accordance with a machining program, an additive manufacturing apparatus that includes a machining head emitting a beam and produces a modeled object by adding a material molten by irradiation of the beam to a workpiece , the numerical control device comprising: a program analyzing unit to analyze a transition of a moving velocity of the machining head relative to the workpiece and a transition of a supply amount of the material supplied to an irradiation position of the beam on the basis of the machining program; a movement distance calculating unit to calculate a first distance on the basis of a result of analysis performed by the program analyzing unit , the first distance being a length of a first movement section to a first position with which addition of the material to the workpiece is started, the first movement section being a section through which the machining head is moved while the head is accelerated; and a condition command generating unit to generate a supply command to increase the supply amount of the material per hour from zero to a command value according to a machining condition while the machining head is moved through the first movement section, wherein the condition command generating unit generates an output command to start output of the beam when the machining head reaches the first position, and the condition command generating unit generates a command for a pull-back operation of making a driving unit of the additive manufacturing apparatus operate in a second direction opposite to a first direction before movement of the machining head is started from a start point of the first movement section, the first direction being a direction in which the driving unit operates for supply of the material in the first movement section. a program analyzing unit to analyze a transition of a moving velocity of the machining head relative to the workpiece and a transition of a supply amount of the material supplied to an irradiation position of the beam on the basis of the machining program; a movement distance calculating unit to calculate a first distance on the basis of a result of analysis performed by the program analyzing unit , the first distance being a length of a first movement section to a first position with which addition of the material to the workpiece is started, the first movement section being a section through which the machining head is moved while the head is accelerated; and a condition command generating unit to generate a supply command to increase the supply amount of the material per hour from zero to a command value according to a machining condition while the machining head is moved through the first movement section, wherein the condition command generating unit generates an output command to start output of the beam when the machining head reaches the first position, and the condition command generating unit generates a command for a pull-back operation of making a driving unit of the additive manufacturing apparatus operate in a second direction opposite to a first direction before movement of the machining head is started from a start point of the first movement section, the first direction being a direction in which the driving unit operates for supply of the material in the first movement section. <EOS>