The invention relates to a numerical control (hereinafter referred to as NC) apparatus including a means to calculate a power consumption amount, and more particularly to a calculation of a power consumption amount on peripheral devices constituting a machine tool controlled by an NC apparatus.
As a control apparatus for calculating a power consumption amount for an entire machine including peripheral devices, apparatus including a means for determining a power consumption amount for a peripheral device based on the product of an energization time and a power consumption of the device concerned has been proposed (for example, refer to Patent Document 1).
Similarly, as a control apparatus for calculating a power consumption amount for an entire machine including peripheral devices, an apparatus including a means for obtaining power consumption amounts of peripheral devices by using information taken into a control apparatus in advance to sum up power consumptions while the devices are in the on-state, has been proposed (for example, refer to Patent Document 2).
Patent Document 1: Japanese Patent Application Laid-open No. 2000-206150
Patent Document 2: Japanese Patent Application Laid-open No. 2010-115063
By the way, in the former example of the conventional control apparatus described above, a problem arises in that since there is no means to identify an operational state of a peripheral device, a means to identify an operational state has to be newly provided.
In addition, in the latter example of the conventional control apparatus described above, there remains a problem that an accurate power consumption in accordance with an actual operational situation of a peripheral device cannot be calculated.
Moreover, in the conventional control apparatus as described above, there is a problem that an unnecessary power consumption cannot be reduced although a power consumption for a peripheral device can be calculated.
The present invention is accomplished to solve such problems, and a purpose thereof is to realize an NC apparatus in which a power consumption amount for a peripheral device is accurately calculated without installing an external device.
Another purpose of the invention is to realize an NC apparatus which can stop the operation of a peripheral device when there exists a peripheral device consuming power wastefully.
A numerical control apparatus according to the invention includes: a storage means which stores power consumptions of peripheral devices constituting a machine tool; a state monitoring means which identifies operational states of the peripheral devices by monitoring state changes of I/O control signals or auxiliary commands which control the peripheral devices; and a power calculation means which calculates power consumption amounts for peripheral devices based on signals from the state monitoring means and power consumptions of peripheral devices stored in the storage means.
In addition, a numerical control apparatus according to the invention includes a function in which the state monitoring means judges whether a peripheral device is stopped or not after machining is completed, and makes a PCL processing unit output a signal to stop the peripheral device if the peripheral device is not stopped.
According to this invention, a power consumption amount is calculated based on a state change of an I/O control signal and an auxiliary command which are essential to an NC apparatus, so that a power consumption amount can be calculated without adding devices or wiring, and consequently without increasing a cost largely.
Furthermore, according to this invention, a peripheral device is forcibly stopped even in the case where a peripheral device is not turned off after machining is completed, so that an unnecessary power consumption amount can be reduced.
Hereinafter Embodiment 1 of the invention will be explained using
The storage unit 101 stores a machining program 102, parameters 103 shown in
The PLC processing unit 106 has a function of processing a sequence program which controls the machine operation and the peripheral devices 114, and controls the peripheral devices 114 by turning on and off the I/O control signal (an input signal 107, an output signal 108) based on the notification on the execution state of the machining program (auxiliary command notification) from the machining program analyzing section 105. A PLC I/F section 113 of the I/F unit 112 has a function of exchanging signals with the PLC processing unit 106 and the peripheral devices 114, and inputs the I/O control signal outputted from the PLC processing unit 106 to the peripheral devices 114, and conversely, inputs the operational state signals of the peripheral devices 114 to the PLC processing unit 106.
The state monitoring section 110 in the power consumption amount processing unit 109 has a function of monitoring I/O control signals of the PLC processing unit 106 which are set in the parameters 103, and calculates the operating time when there are running peripheral devices 114, and also has a function of stopping the peripheral devices 114 through the PLC processing unit 106 if they are running after machining is completed. A power amount calculating section 111 in the power consumption amount processing unit 109 has a function of calculating power consumptions of the peripheral devices 114 based on the operating time calculated in the state monitoring section 110 and a consumption power (W) set in the parameters 103, and also carries out processing to sum up the calculated power consumptions for each group set in the parameters 103. The display unit 115 has a function of displaying the power consumptions obtained by the power consumption amount processing unit 109, and displays the power consumption amount of the entire machine and the power consumption amount for each group.
Next, an operation of a NC apparatus according to Embodiment 1 in the invention will be explained. Namely, the program analyzing section 105 loads the machining program 102 from the storage unit 101, and analyzes it. For example, when the machining program 102 shown in
The PLC processing unit 106, after receiving an operational state signal of the peripheral device 114 from the PLC-I/F section 113, notifies the machining program analyzing section 105 of the fact that the discharge of the cutting fluid is started. An interpolation processing unit (not illustrated), which receives the fact from the machining program analyzing section 105, executes (interpolates) the next block process (G01 X100. Y100. F100;), and then the result is outputted through a smoothing unit and an output unit, which are known and not illustrated, to a servo control unit, so that a servo motor is driven and machining is started.
The state monitoring section 110 in the power consumption amount processing unit 109 is operated as shown in
In Step 4, whether there is a state change of the I/O control signal or not is monitored, and when there is no change in the state of the I/O control signal, the process proceeds to Step 6, and whether there is a program termination command (for example, M02 command) or not is monitored. When there is no program termination command, the process is moved back to Step 4, and whether there is a state change of the I/O control signal or not is monitored. When there is a state change in the I/O control signal in Step 4, for example, M101 command (discharge termination (coolant off) command) shown in
In Step 7, a predetermined time from the end of machining (reading of a program termination command) until the turnoff is read from among the parameters 103, and whether the time elapses or not is judged. And when the time elapses, the process proceeds to Step 8. In Step 8, the PLC processing unit 106 is notified of a request for outputting an OFF signal as the I/O control signal, and the process proceeds to Step 5. The state monitoring section 110 functions as described above. Incidentally, the PLC processing unit 106, which has been notified of the request from the state monitoring section 110 for outputting an OFF signal as the I/O control signal, outputs an I/O control signal through the I/F unit 112 for stopping a peripheral device 114. In the machining program shown in
Further, the power amount calculating section 111, which is notified of the counted operating time from the state monitoring section 110, reads from among the parameters 103 the power consumption (W) corresponding to the device (I/O control signal) for which the operating time is notified, and obtains a power consumption amount for each peripheral device by calculating the power consumption (W) x the operating time, and then stores the result in the storage unit 101. Furthermore, referring to the group numbers stored in the parameters 103, it sums up the power consumption amounts for the same group. In addition, by correlating the calculated power consumption amount of each peripheral device with the sequence number of the machining program, the power amount calculating section 111 can also display how the power consumption amount for each peripheral device changes as the machining program is executed. The display unit 115 has a function of displaying the power consumption amount obtained by the power consumption amount processing unit 109. For example, it can display the power consumption amount for the entire machine or on a group basis.
As described above, according to Embodiment 1, by monitoring the state change of the I/O control signal which is essential for a NC apparatus, a power consumption amount for a peripheral device can be obtained in accordance with a machining situation. Also in Embodiment1, because the change in the I/O control signal is monitored, the measurement of the power consumption amount is possible on a peripheral device which is activated by a button on an operation board of the machine or the like other than a machining program. In addition, because a function of forcibly turning off a peripheral device which is running for a certain period after execution of the machining program is terminated, is provided, the peripheral device can be forcibly stopped, for example, in a situation in which, after execution of the machining program is stopped, a peripheral device is not turned off after exceeding the time from the end of machining until the turnoff, or after exceeding the power consumption amount from the end of machining until the turnoff, both of which are set in the parameters. Thus, according to an NC apparatus of Embodiment1, using an I/O control signal which is essential for an NC apparatus, a power consumption amount for a peripheral device can be accurately calculated in accordance with an operational situation, and also an unnecessary power consumption amount can be reduced.
Incidentally, in Embodiment 1 as described above, the state monitoring section 110 in the power consumption amount processing unit 109 monitors the I/O control signal (monitoring the device state change corresponding to the I/O control signal) of the PLC processing unit 106 so that a power consumption amount of a peripheral device which is activated by a button on an operation board of a machine or the like can be measured. However, it is not particularly limited to this method, but by monitoring the change of an M code, counting the operating time of a peripheral device can be started and stopped. Moreover, in Embodiment 1 as described above, in Step 7 of
A numerical control apparatus according to the invention is suitable for calculating a power consumption amount for a peripheral device.
100: Numerical control apparatus, 101: Storage unit, 102: Machining program, 103: Parameters, 104: Analyzer unit, 105: Machining program analyzing section, 106: PLC processing unit, 107: Input signal, 108: Output signal, 109: Power consumption amount processing unit, 110: State monitoring section, 111: Power amount calculating section, 112: I/F unit, 113: PLC-I/F section, 114: Peripheral device, 115: Display unit.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2011/003998 | 7/13/2011 | WO | 00 | 2/7/2014 |