Numerical controller and expected power consumption calculation method

By calculating the actual power consumption during mechanical action in the numerical control device and adding the change amount of acceleration and deceleration setting, more accurate calculation and visual display of expected power consumption are achieved, and the insufficient accuracy of expected power consumption in the prior art is solved. The problem has promoted power reduction.

CN119053924APending Publication Date: 2024-11-29FANUC LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280095019.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-06-20
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The prior art is difficult to improve the accuracy of the expected value of power consumption during mechanical operation, and lacks the means to visualize the actual power consumption and the expected power consumption, which makes it difficult to effectively reduce the power consumption.

Method used

A numerical control device is designed to calculate or measure the actual power consumption by storing the action program of mechanical action, and add it to the change amount of acceleration and deceleration settings, calculate the expected power consumption, and visually display it on the display unit.

Benefits of technology

The expected value accuracy of power consumption is improved, and the actual power consumption is visualized with the expected power consumption, making it easier to compare, thereby assisting in reducing power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119053924A_ABST
    Figure CN119053924A_ABST
Patent Text Reader

Abstract

The purpose of the present invention is to improve the accuracy of an expected power consumption value. In addition, by visualizing the actual power consumption and the expected power consumption, it is easy to compare the actual power consumption and the expected power consumption to assist the power consumption. A numerical controller includes: a program storage unit that stores an operation program for operating a machine; an actual power consumption acquisition unit that operates the machine by means of a first acceleration / deceleration setting based on an operation program, and acquires actual power consumption by means of calculation or actual measurement; an expected power consumption calculation unit that calculates an expected power consumption by adding at least the actual power consumption and an increase / decrease in the power consumption of an amount of change in acceleration / deceleration from the first acceleration / deceleration setting to the second acceleration / deceleration setting; a setting value storage unit that stores at least a portion of information necessary for calculation of power consumption of the first acceleration / deceleration setting and the second acceleration / deceleration setting in the expected power consumption calculation unit; and a display unit that displays the actual power consumption and the expected power consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a numerical control device and a method for calculating estimated power consumption that calculates estimated power consumption and displays it together with actual power consumption. Background Art

[0002] From the perspective of economy or energy saving which has recently attracted attention, it is preferable to obtain a predicted value of power consumption when changing the operation of a machine.

[0003] Patent Document 1 describes a display device and a machine tool that can display in an easily understandable manner how improvements to a machining program affect the overall machining process.

[0004] Specifically, Patent Document 1 describes a display device that displays information obtained from a machine tool that executes a machining program including a plurality of program blocks as a plurality of program blocks identified by serial numbers. The display device includes: a data acquisition unit that acquires state information representing the state of the machine tool in motion using a change amount and a time axis and timing information representing a predetermined timing of the machining program being executed by the machine tool; a time series information generation unit that generates time series information based on the acquired state information and timing information; an overlapping unit that overlaps a plurality of time series information by making the timing represented by the timing information consistent; and a display unit that displays the overlapped plurality of time series information. The display device acquires data on processing states such as machining load, speed, change amount of machining position, change amount of electric power, etc. as state information.

[0005] Patent Document 2 describes a servo motor control device that can calculate the output of a servo motor with high accuracy.

[0006] Specifically, Patent Document 2 describes a servo motor control device for controlling a servo motor, comprising: a storage unit that stores a torque constant predetermined for the servo motor; a torque constant correction unit that corrects the torque constant stored in the storage unit when magnetic saturation occurs in the winding of the servo motor; and an output calculation unit that calculates the output of the servo motor based on the torque constant stored in the storage unit or the corrected torque constant calculated by the torque constant correction unit, a value associated with the current of the servo motor, and a value associated with the speed of the servo motor.

[0007] Patent Document 3 describes a robot program correction system for correcting a robot's motion program with high accuracy.

[0008] Specifically, Patent Document 3 describes a robot program correction system having a robot control device and a program correction device. The robot control device has: an information acquisition unit that acquires robot detection information obtained from the robot when executing the action program; and a communication unit that sends the acquired robot detection information to the program correction device. The program correction device has: a simulation unit that performs simulation according to the action program PR; a program correction unit that corrects the action program PR according to the robot detection information while repeatedly simulating through the simulation unit so that the result of the simulation satisfies a predetermined evaluation standard; and a communication unit that sends the corrected action program PR1 to the robot control device. The program correction unit uses the speed, current value, etc. of each axis motor obtained from the robot control device to correct the command speed and command acceleration at the teaching point of the action program PR to minimize the cycle time.

[0009] Prior art literature

[0010] Patent Literature

[0011] Patent Document 1: Japanese Patent Application Publication No. 2019-133346

[0012] Patent Document 2: Japanese Patent Application Publication No. 2018-153041

[0013] Patent Document 3: Japanese Patent Application Publication No. 2016-16488 Summary of the invention

[0014] Problems to be solved by the invention

[0015] Regarding the estimated value of power consumption, it is desired to improve the accuracy so as to obtain an accurate estimated value. In addition, it is desired to assist in reducing power consumption by visualizing the actual power consumption and the estimated power consumption so as to facilitate comparison.

[0016] Means for solving problems

[0017] (1) A first aspect of the present disclosure is a numerical control device including:

[0018] A program storage unit storing an action program for causing the machine to move;

[0019] an actual power consumption acquisition unit for operating the machine by the first acceleration / deceleration setting based on the operation program and acquiring the actual power consumption by calculation or measurement;

[0020] an estimated power consumption calculation unit that calculates estimated power consumption by adding at least the actual power consumption to an increase or decrease in power consumption corresponding to a change in acceleration or deceleration from the first acceleration or deceleration setting to the second acceleration or deceleration setting;

[0021] a setting value storage unit that stores at least a part of information necessary for calculating the power consumption of the first acceleration / deceleration setting and the second acceleration / deceleration setting in the estimated power consumption calculation unit; and

[0022] A display unit displays the actual power consumption and the expected power consumption.

[0023] (2) The second method disclosed in the present invention is a method for calculating expected power consumption, wherein a computer serving as a numerical control device having a program storage unit for storing an action program for causing a machine to move stores information required for calculating power consumption based on a first acceleration / deceleration setting and a second acceleration / deceleration setting of the action program, causes the machine to move using the first acceleration / deceleration setting, obtains actual power consumption by calculation or measurement, and calculates expected power consumption by at least adding the actual power consumption to an increase / decrease in power consumption due to a change in acceleration / deceleration from the first acceleration / deceleration setting to the second acceleration / deceleration setting.

[0024] Effects of the Invention

[0025] According to the aspect of the present disclosure, it is possible to improve the accuracy of the estimated value of power consumption. In addition, by visualizing the actual power consumption and the estimated power consumption, it is possible to easily compare and assist in reducing power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 This is a block diagram showing the structure of a numerical control machine tool including a numerical control device according to one embodiment of the present disclosure.

[0027] Figure 2 This is a block diagram showing a configuration example of a servo control device.

[0028] Figure 3 This is a block diagram showing the structure of a numerical control device according to one embodiment of the present disclosure.

[0029] Figure 4 This is a characteristic diagram showing the time change of the speed before and after the acceleration / deceleration change of the linear acceleration / deceleration.

[0030] Figure 5 This is a characteristic diagram showing the time change of acceleration before and after the acceleration / deceleration change of linear acceleration / deceleration.

[0031] Figure 6 This is a characteristic diagram showing the time change of the speed before the acceleration / deceleration is changed.

[0032] Figure 7 This is a characteristic diagram showing the time change of the speed during acceleration before the acceleration / deceleration change.

[0033] Figure 8This is a characteristic diagram showing the time change of the speed before and after the acceleration / deceleration change of the bell-shaped acceleration / deceleration.

[0034] Fig. 9 This is a characteristic diagram showing the time change of acceleration before and after the acceleration / deceleration change of the bell-shaped acceleration / deceleration.

[0035] Fig.10 This is a characteristic diagram showing the time change of the speed before and after the acceleration / deceleration change of the exponential acceleration / deceleration.

[0036] Fig.11 This is a characteristic diagram showing the time change of acceleration before and after the acceleration / deceleration change of the exponential acceleration / deceleration.

[0037] Fig.12 This is a block diagram showing a configuration example of a display setting unit.

[0038] Fig.13 This is a diagram showing a first example of a graph displayed on the display unit.

[0039] Fig.14 It is a diagram showing a second example of the graph display displayed on the display unit.

[0040] Fig.15 This is a characteristic diagram showing the integrated power of the coolant pump, the integrated power of the conveyor, and the integrated power of the lamp relative to the integrated power of the motor.

[0041] Fig.16 This is a flowchart showing the operation of the numerical control device according to this embodiment. DETAILED DESCRIPTION

[0042] Hereinafter, embodiments of the present disclosure will be described in detail using the drawings.

[0043] Figure 1 This is a block diagram showing the structure of a numerical control machine tool including a numerical control device according to one embodiment of the present disclosure.

[0044] like Figure 1 As shown, the numerical control machine tool 10 includes a numerical control device 20 such as a CNC (Computerized Numerical Control) device, a servo control device 30, a motor 40, and an external device 50. The servo control device 30 controls the motor 40. In this embodiment, a machine tool is listed as a machine controlled by the numerical control device 20, and an operation program is described as a processing program.

[0045] The numerical controller 20 outputs a control command such as a position command to the servo controller 30 according to a machining program that instructs the movement of a tool or a workpiece. In addition, the numerical controller 20 calculates the actual power consumption during program execution based on feedback information from the servo controller 30, or actually measures the actual power consumption with a power meter and calculates the expected power consumption during a set period when the acceleration and deceleration in the program are changed. Then, the numerical controller 20 displays a power graph of the measured power consumption and the expected power consumption on a display screen of a display unit 212 described later.

[0046] The numerical control device 20 may also include a servo control device 30 .

[0047] The servo control device 30 controls the motor 40 according to the control command such as the position command from the numerical control device 20. The servo control device 30 includes an X-axis servo control unit for driving the X-axis motor, a Y-axis servo control unit for driving the Y-axis motor, a Z-axis servo control unit for driving the Z-axis motor, and a spindle motor control unit for driving the spindle motor. Figure 1 Only one servo control unit that controls the motor 40 is shown, and the configurations of other servo control units and a spindle motor control unit are omitted.

[0048] The motor 40 is provided as a part of the machine tool, but may be provided as a part of the servo control device 30. In the following description, the motor 40 is described as a motor that performs a rotational motion, but may be a linear motor that performs a linear motion.

[0049] The motor 40 is included in a machine tool such as a 3-axis processing machine, for example, as a feed axis motor of the X axis. When the numerical control machine tool 10 is used for a 3-axis processing machine, motors of the Y axis and the Z axis are also provided as feed axis motors, and the 3-axis processing machine also has a spindle motor for rotating a tool such as a ball end mill.

[0050] When the motor 40 is a motor for rotating a 3-axis machine, the motor 40 moves the table on which the workpiece is placed linearly in the X-axis direction via a ball screw or the like. In addition, the structure of the 3-axis machine is not limited to this structure, and for example, the tool may be fixed so that the table moves linearly in the X-axis direction, the Y-axis direction, and the Z-axis direction, or the table may be fixed so that the tool moves linearly in the X-axis direction, the Y-axis direction, and the Z-axis direction. The machine tool is not limited to a 3-axis machine, and may be a 5-axis machine, for example.

[0051] The external equipment 50 is a coolant pump for circulating the coolant, a conveyor for collecting chips, a lamp, etc. Figure 1 Although one external device 50 is shown in the figure, there may be a plurality of external devices 50 .

[0052] Next, the configurations and operations of the servo control device 30 , the numerical control device 20 , and the external device 50 will be described in more detail.

[0053] <Servo control device>

[0054] In the case of a three-axis machining center, the servo control device 30 includes an X-axis servo control unit, a Y-axis servo control unit, a Z-axis servo control unit, and a spindle motor control unit, but in the following description, the X-axis servo control unit is cited for description. The structures of the Y-axis servo control unit and the Z-axis servo control unit are the same as those of the X-axis servo control unit, and the structure of the spindle motor control unit is described in, for example, Japanese Patent Application Laid-Open No. 2019-040556.

[0055] Figure 2 This is a block diagram showing a configuration example of a servo control device.

[0056] like Figure 2 As shown, the servo control device 30 includes a subtractor 301 , a position control unit 302 , a subtractor 303 , a speed control unit 304 , a subtractor 305 , a current control unit 306 , and an integrator 307 .

[0057] The subtractor 301 obtains a difference between a position command output from the numerical controller 20 and a detected position of position feedback, and outputs the difference as a position deviation to the position control unit 302 .

[0058] The position control unit 302 outputs a value obtained by multiplying the position deviation by the position gain PG to the subtractor 303 as a speed command value.

[0059] The subtractor 303 obtains a difference between the speed command value output from the position control unit 302 and the speed detection value of the speed feedback, and outputs the difference as a speed deviation to the speed control unit 304 .

[0060] The speed control unit 304 adds a value obtained by integrating the speed deviation by the integral gain K1v and a value obtained by multiplying the speed deviation by the proportional gain K2v, and outputs the sum to the subtractor 305 as a current command value.

[0061] The subtractor 305 obtains a difference between the current command value output from the speed control unit 304 and the current detection value of the current feedback, and outputs the difference as a current deviation to the current control unit 306 .

[0062] The current control unit 306 generates a voltage command for driving the motor 40 based on the current deviation, and outputs the voltage command to the motor 40 .

[0063] The rotation angle position of the motor 40 is detected by a rotary encoder (not shown), and the speed detection value is input as speed feedback information (speed FB information) to the subtractor 303. The speed detection value is input to the numerical controller 20.

[0064] The integrator 307 integrates the speed detection value to obtain a position detection value, and inputs the position detection value to the subtractor 301 as position feedback information (position FB information).

[0065] A current detector (not shown) attached to the motor 40 detects the current, and the current detection value is input as current feedback information (current FB information) to the subtractor 305. The current detection value is input to the numerical controller 20.

[0066] In addition, a voltage detector (not shown) attached to the motor 40 detects a voltage, and inputs the voltage detection value to the numerical control device 20 .

[0067] In calculation of actual power consumption described later, when the voltage detection value is not used, the voltage detection value may not be input to the numerical controller 20 , and when the speed detection value is not used, the speed detection value may not be input to the numerical controller 20 .

[0068] <Numerical controller>

[0069] Figure 3 This is a block diagram showing the structure of a numerical control device according to one embodiment of the present disclosure.

[0070] like Figure 3 As shown, the numerical control device 20 includes a program storage unit 201, an instruction analysis unit 202, an interpolation unit 203, an acceleration / deceleration control unit 204, an instruction output unit 205, a setting value storage unit 206, an estimated power consumption calculation unit 207, a setting change unit 208, an FB acquisition unit 209, an actual power consumption acquisition unit 210, a display setting unit 211, and a display unit 212.

[0071] The program storage unit 201 stores a machining program.

[0072] The command analysis unit 202 sequentially reads out program blocks including movement commands for the X-axis, Y-axis, Z-axis, and main axis from the machining program and analyzes them, and generates movement command data for instructing movement of each axis based on the analysis result.

[0073] The interpolation unit 203 generates interpolation data by performing interpolation calculations on points on the command path at an interpolation cycle based on the movement command indicated by the movement command data output from the command analysis unit 202 .

[0074] The acceleration / deceleration control unit 204 performs acceleration / deceleration processing based on the interpolation data output from the interpolation unit 203 , calculates the machining speed of each axis for each interpolation cycle, and outputs the calculated speed to the command output unit 205 described later.

[0075] The command output unit 205 generates a position command based on the machining speed of each axis output from the acceleration / deceleration control unit 204 , and outputs the position command to the servo control device 30 .

[0076] The setting value storage unit 206 stores motor specification values, measured values, power consumption of external devices, and parameter setting values. The motor specification value is, for example, a torque constant. The measured value is viscous friction, Coulomb friction, etc. The parameter setting value is speed, acceleration, etc. The speed and acceleration as parameter setting values ​​are changed by the setting change unit 208. The operation time is obtained based on the action signal input from the external device, and the power consumption of the external device is obtained by referring to the power consumption per unit time obtained based on the catalog specifications.

[0077] The expected power consumption calculation unit 207 obtains the actual power consumption from the actual power consumption acquisition unit 210, obtains the speed and acceleration obtained according to the processing program from the setting value storage unit 206 (becoming the first acceleration and deceleration setting), and obtains the speed and acceleration changed by the setting change unit 208 from the setting value storage unit 206 (becoming the second acceleration and deceleration setting). Then, the expected power consumption calculation unit 207 calculates the expected power consumption using the actual power consumption, the speed and acceleration before the change (the first acceleration and deceleration setting), and the speed and acceleration after the change (the second acceleration and deceleration setting). The calculation method of the expected power consumption will be described later. In addition, the acceleration includes two cases: the case where the speed increases and the case where the speed decreases. The speed and acceleration obtained according to the processing program can also be stored in the setting change unit 208. The expected power consumption calculation unit 207 can obtain the power consumption of the external device 50 from the setting value storage unit 206, and calculate the expected power consumption including the power consumption of the external device 50.

[0078] When receiving an instruction for recalculation based on the changed second acceleration / deceleration setting from the setting changing unit 208 , the estimated power consumption calculating unit 207 recalculates the estimated power consumption using the speed, acceleration, etc. of the changed second acceleration / deceleration setting.

[0079] The setting change unit 208 obtains the speed and acceleration (first acceleration / deceleration setting) based on the machining program stored in the program storage unit 201, for example, and stores the speed and acceleration in the setting value storage unit 206. In addition, the setting change unit 208 changes the speed and acceleration obtained based on the machining program, and stores the speed and acceleration (second acceleration / deceleration setting) in the setting value storage unit 206. The speed and acceleration of the second acceleration / deceleration setting may be set by the user, or the change amount may be predetermined based on the first acceleration / deceleration setting.

[0080] The setting change unit 208 changes the acceleration / deceleration settings such as the speed and acceleration to the second acceleration / deceleration setting according to the user's designation of the time constant and the expected power consumption, and stores the changed speed and acceleration in the setting value storage unit 206. In addition, the setting change unit 208 sets the acceleration / deceleration time constant, the constant speed time, etc. of the acceleration / deceleration control unit 204 so as to achieve the determined expected power consumption.

[0081] In the above description, an example of the setting change unit 208 changing the speed and acceleration is described. However, when the acceleration and deceleration parameters changed according to the acceleration and deceleration type are different and the acceleration and deceleration type is the linear acceleration and deceleration described later, for example, the speed and acceleration or the time constant during acceleration and deceleration are changed. When the acceleration and deceleration type is the bell-shaped acceleration and deceleration described later, for example, the first acceleration and deceleration time and the second acceleration and deceleration time during further deceleration are changed, or the time constant and speed change. When the acceleration and deceleration type is the exponential acceleration and deceleration described later, for example, the time constant during further deceleration and the final arrival speed are changed.

[0082] The FB acquisition unit 209 acquires current detection values ​​and voltage detection values ​​or current detection values ​​and speed detection values ​​as feedback information from the servo control device 30. The feedback information obtained from the servo control device 30 is obtained by operating the servo control device 30 based on the position command generated by the first acceleration / deceleration setting.

[0083] The actual power consumption acquisition unit 210 calculates the actual power consumption using the current detection value and the voltage detection value or the current detection value and the speed detection value acquired by the FB acquisition unit 209. The actual power consumption acquisition unit 210 may acquire the actual power consumption using a power meter, in which case the FB acquisition unit 209 may not be required.

[0084] The display setting unit 211 performs display setting of the display unit 212 so that the actual power consumption acquired by the actual power consumption acquisition unit 210 and the estimated power consumption calculated by the estimated power consumption calculation unit 207 are displayed in each set period.

[0085] The display unit 212 displays the actual power consumption and the expected power consumption on the display screen based on the display setting of the display setting unit 211 .

[0086] The details of the configuration of the display setting section 211 and a display example of the display section 212 will be described later.

[0087] The user can change the value of the estimated power consumption by viewing the estimated power consumption displayed on the display unit 212. As described later, when a time constant or the like is displayed on the display screen, the user can change the value of the estimated power consumption by changing the time constant or the like.

[0088] The numerical control device 20 described above acquires the actual power consumption based on the first acceleration / deceleration setting by the actual power consumption acquisition unit 210, and calculates the expected power consumption based on the second acceleration / deceleration setting by the expected power consumption calculation unit 207. The display unit 212 displays the actual power consumption and the expected power consumption. When the user who sees the display screen of the display unit 212 changes the time constant or the expected power consumption, the setting change unit 208 changes the second acceleration / deceleration setting such as speed and acceleration, and stores the changed speed, acceleration, etc. in the setting value storage unit 206.

[0089] These operations are described in more detail below.

[0090] First, the actual power consumption acquisition method of the actual power consumption acquisition unit 210 will be described.

[0091] (How to obtain actual power consumption)

[0092] The actual power consumption acquisition unit 210 can calculate the actual power consumption P by using Formula 1 (hereinafter referred to as Formula 1). In Formula 1, Iq represents the detection current as current feedback, V represents the detection voltage, and ω represents the angular velocity. The detection current Iq and the detection voltage V are output from the servo control device 30. The angular velocity ω can be obtained based on the speed detection value as the speed feedback described later. The actual power consumption P can be calculated using the detection current Iq and the detection voltage V, or the detection current Iq and the angular velocity ω.

[0093] [Formula 1]

[0094]

[0095] In addition, regarding the actual power consumption P, the actual power consumption acquisition unit 210 can also acquire, as the actual power consumption P, a value actually measured from a power meter.

[0096] Next, a method for calculating the estimated power consumption by the estimated power consumption calculation unit 207 will be described.

[0097] (Calculation method for expected power consumption)

[0098] In the machining program, when there are n times (n is a natural number) of acceleration and deceleration actions, the overall expected power consumption Pe is expressed by Formula 2 (hereinafter referred to as Formula 2). In Formula 2, power Pa represents the expected power consumption of the servo control device at a certain time, time T represents the time from the start position to the target position, Tx represents the expected operation time of the machine, and A represents the power consumption of the external device 50 at a certain time. Here, the expected power consumption calculation unit 207 calculates the power consumption of the external device 50 within the time Tx, but the power consumption of the external device 50 may not be calculated.

[0099] [Formula 2]

[0100] TTx

[0101] Pe=Pa dt+A dt

[0102] J00

[0103] The first term of Formula 2 represents the integral value of the expected power consumption Pa within the time T, and the last term of Formula 2 represents the integral value of the expected power consumption A of the external device 50 within the expected operation time Tx of the machine. The acceleration and deceleration action performed within the time T is repeated n times within the expected operation time Tx. When the same acceleration and deceleration action is repeated n times, there are n first terms of Formula 2.

[0104] When the acceleration / deceleration in the machining program is changed (when the first acceleration / deceleration setting is changed to the second acceleration / deceleration setting), the increase / decrease amount of power consumption based on the acceleration / deceleration change amount is calculated, and the increase / decrease amount is added / subtracted from the actual power consumption P, thereby calculating the expected power consumption Pa of the first term of Formula 2. The acceleration / deceleration setting for obtaining the actual power consumption corresponds to the first acceleration / deceleration setting.

[0105] For example, if the expected power consumption under the first acceleration / deceleration setting before the acceleration / deceleration change at a certain moment is set to Px1, the expected power consumption under the second acceleration / deceleration setting after the acceleration / deceleration change is set to Px2, and the actual power consumption is set to P, then the expected power consumption Pa of the first term of Formula 2 at a certain moment can be calculated by Pa=(Px2-Px1)+P.

[0106] The first term of Formula 2 is the integrated value of the expected power consumption Pa within the time T, and indicates the expected power consumption in the first acceleration / deceleration operation in the machining program.

[0107] Here, if the power consumption under the set acceleration and deceleration is set to Px, the power consumption Px can be obtained by inserting Formula 3 (hereinafter referred to as Formula 3) into Formula 4 (hereinafter referred to as Formula 4). In Formula 3 and Formula 4, Kt is a torque constant, Iqa is a current, Jm is an inertia, F is a viscous friction or a Coulomb friction, and ω is an angular velocity.

[0108] [Formula 3]

[0109] Kt×Iqa=Jm×(d / dt)+F×

[0110] [Formula 4]

[0111]

[0112] The inertia Jm and the friction F as viscous friction and Coulomb friction are measured in advance and stored in the setting value storage unit 206. The angular velocity ω and the angular acceleration dω / dt are obtained based on the machining program stored in the program storage unit 201, or are obtained based on the speed and acceleration stored in the setting value storage unit 206. The power consumption Px obtained using the angular velocity ω and the angular acceleration dω / dt before the change obtained based on the machining program is the above-mentioned power consumption Px1, and the power consumption Px obtained using the angular velocity ω and the angular acceleration dω / dt obtained based on the speed and acceleration after the change stored in the setting value storage unit 206 is the above-mentioned power consumption Px2.

[0113] Hereinafter, a method of obtaining the integrated value of the estimated power consumption Pe in Formula 2 within the time T will be described using a specific example.

[0114] (Linear acceleration and deceleration)

[0115] Hereinafter, an example will be described in which the time to reach a position increases due to a change in acceleration or deceleration when a machine tool operates by linear acceleration or deceleration.

[0116] In the case of linear acceleration and deceleration, the estimated power consumption is calculated by changing the speed change or time constant.

[0117] Figure 4 This is a characteristic diagram showing the time change of the speed before and after the acceleration / deceleration change of the linear acceleration / deceleration. Figure 5 This is a characteristic diagram showing the time change of acceleration before and after the acceleration / deceleration change of linear acceleration / deceleration.

[0118] exist Figure 4 In the figure, the solid line indicates the speed change before the acceleration / deceleration change, and the dotted line indicates the speed change after the acceleration / deceleration change. Figure 5 In the figure, the solid line represents the acceleration change before the acceleration / deceleration change, and the dotted line represents the acceleration change after the acceleration / deceleration change. Figure 4 and Figure 5 In the figure, time T1 represents the acceleration period before the acceleration / deceleration change, time T2 represents the difference period between the constant speed period before and after the acceleration / deceleration change, time T3 represents the deceleration period before the acceleration / deceleration change, and time T4 represents the difference period between the deceleration period before and after the acceleration / deceleration change. Time T5 represents the constant speed period before the acceleration / deceleration change.

[0119] In addition, Figure 4 In FIG. 1 , time T represents the time from the start position to the target position after the acceleration / deceleration change, and time Ts represents the time from the start position to the target position before the acceleration / deceleration change.

[0120] like Figure 4As shown, the speed after the acceleration / deceleration change is compared with the speed before the acceleration / deceleration change, the acceleration period becomes longer, the constant speed period becomes shorter, and the deceleration period becomes longer.

[0121] The integrated value of the expected power consumption Pa of the first term of Formula 2, which is the expected power consumption within the time T, and the power of the external device 50 can be obtained by the following Formula 5 (hereinafter referred to as Formula 5).

[0122] [Formula 5]

[0123] (Expected power consumption during time T) = (actual power consumption during time Ts) + (external device power consumption during time T4) - (expected power consumption during constant speed during time T2) + (expected power consumption during acceleration / deceleration after acceleration / deceleration change) - (expected power consumption during acceleration / deceleration before acceleration / deceleration change))

[0124] In formula 5, Figure 4 As shown, the expected power consumption during the acceleration / deceleration period after the acceleration / deceleration change represents the expected power consumption during the acceleration period (T1+T2) and the deceleration period (T3+T4), and the expected power consumption during the acceleration / deceleration period before the acceleration / deceleration change represents the expected power consumption during the acceleration period T1 and the deceleration period T3.

[0125] The (power at constant speed during time T2) and ((estimated power consumption during acceleration / deceleration after acceleration / deceleration change) - (estimated power consumption during acceleration / deceleration before acceleration / deceleration change)) of formula 5 do not include power consumption of external devices. The (actual power consumption during period Ts) of formula 5 includes power consumption of external devices. When the acceleration / deceleration is changed, the acceleration / deceleration time also changes, but the distance moved during acceleration / deceleration also changes, so the constant speed time also changes. Formula 5 is a formula for calculating the increase / decrease amount taking these two into consideration.

[0126] The power consumption at a constant speed before acceleration or deceleration excluding the power consumption of external devices can be obtained as follows: It can be obtained by Formula 6 (Formula 6 below).

[0127] Figure 6 This is a characteristic diagram showing the time variation of the speed before the acceleration / deceleration change. Figure 6 In, with Figure 4 Similarly, time T1 represents an acceleration period before the acceleration / deceleration is changed, time T3 represents a deceleration period before the acceleration / deceleration is changed, and time T5 represents a constant speed period before the acceleration / deceleration is changed.

[0128] The power consumption during time T5 excluding the power consumption of external devices can be calculated by Formula 6 (hereinafter referred to as Formula 6). The (actual power consumption until period Ts) in Formula 6 includes the power consumption of external devices, and the (power consumption during the acceleration and deceleration period of time (T1+T5)) does not include the power consumption of external devices.

[0129] [Formula 6]

[0130] (Expected power consumption at constant speed) = (actual power consumption until period Ts) - (expected power consumption during acceleration and deceleration of time (T1 + T5)) - (power consumption of external device until period Ts)

[0131] The specific calculation formula can be obtained by Formula 7 (the following Formula 7).

[0132] [Formula 7]

[0133]

[0134] In addition, the expected power consumption at constant speed can also be calculated by extracting only the actual power consumption obtained at constant speed and setting this value as the expected constant speed time. Specifically, the value per unit time (seconds, etc.) of the constant speed portion of the actual power consumption can also be calculated and multiplied by the expected constant speed time.

[0135] The time T1, T2, T3, T4, T5 and the distance Z to the target position during linear acceleration and deceleration can be calculated by Formula 8 (hereinafter referred to as Formula 8). In Formula 8, v1 represents the final arrival speed, a1 represents the acceleration before the acceleration and deceleration change, and a2 represents the acceleration after the acceleration and deceleration change. The final arrival speed v1 is the same before and after the acceleration and deceleration change.

[0136] [Formula 8]

[0137] T1=T3,T5=Ts-2T1

[0138]

[0139] T4=T1+T2-T3=T2

[0140] When a time constant is specified, the times T1 and T2 can be obtained using the time constant.

[0141] As an example, a case of obtaining the times T1 and T2 will be described.

[0142] If the time constant during acceleration before the acceleration / deceleration change is set to time constant T', and the time constant during acceleration after the acceleration / deceleration change is set to time constant T", the times T1 and T2 can be calculated using Formula 9 (Formula 9 below).

[0143] [Formula 9]

[0144] T"=0.632(T1+T2),

[0145] Figure 7 This is a characteristic diagram showing the time change of the speed during acceleration before the acceleration / deceleration change.

[0146] (Bell-shaped acceleration and deceleration)

[0147] Hereinafter, an example will be described in which the time to reach a position increases due to a change in acceleration or deceleration when a machine tool operates in a bell-shaped acceleration or deceleration.

[0148] In the case of bell-shaped acceleration, the expected power consumption is calculated based on the changes in the primary acceleration / deceleration time t1 and the secondary acceleration / deceleration time t2. The acceleration / deceleration setting after the acceleration / deceleration change (second acceleration / deceleration setting) is obtained by changing the primary acceleration / deceleration time t1 and the secondary acceleration / deceleration time t2 of the acceleration / deceleration setting before the deceleration change (first acceleration / deceleration setting).

[0149] Figure 8 This is a characteristic diagram showing the time change of the speed before and after the acceleration / deceleration change of the bell-shaped acceleration / deceleration. Fig. 9 This is a characteristic diagram showing the time change of acceleration before and after the acceleration / deceleration change of the bell-shaped acceleration / deceleration.

[0150] exist Figure 8 In the figure, the solid line indicates the speed change before the acceleration / deceleration change, and the dotted line indicates the speed change after the acceleration / deceleration change. Fig. 9 In FIG. 1 , the solid line represents the acceleration change before the acceleration / deceleration is changed, and the dotted line represents the acceleration change after the acceleration / deceleration is changed.

[0151] exist Figure 8 and Fig. 9 In the figure, time T1 represents the acceleration period before the acceleration / deceleration change, time T2 represents the difference period between the constant speed period before and after the acceleration / deceleration change, time T3 represents the deceleration period before the acceleration / deceleration change, and time T4 represents the difference period between the deceleration period before and after the acceleration / deceleration change. Time T5 represents the constant speed period before the acceleration / deceleration change.

[0152] like Figure 8 As shown, the speed after the acceleration / deceleration change is compared with the speed before the acceleration / deceleration change, the acceleration period becomes longer, the constant speed period becomes shorter, and the deceleration period becomes longer.

[0153] The integrated value of the estimated power consumption Pa of the first term of Formula 2 within the time T and the power of the external device can be obtained by the following Formula 10 (hereinafter referred to as Formula 10).

[0154] [Formula 10]

[0155] (Expected power consumption) = (actual power consumption) + (external device power consumption at time T4) - (expected power consumption at constant speed at time (T5-T2)) + (expected power consumption during acceleration / deceleration after acceleration / deceleration change) - (expected power consumption during acceleration / deceleration before acceleration / deceleration change)

[0156] In Formula 10, the expected power consumption during the acceleration / deceleration period after the acceleration / deceleration change represents the expected power consumption during the acceleration period (T1+T2) and the deceleration period (T3+T4), and the expected power consumption during the acceleration / deceleration period before the acceleration / deceleration change represents the expected power consumption during the acceleration period T1 and the deceleration period T3.

[0157] The (power at constant speed during time (T5-T2)) and ((estimated power consumption during acceleration / deceleration after acceleration / deceleration change)-(estimated power consumption during acceleration / deceleration before acceleration / deceleration change)) of Formula 10 do not include power of external devices.

[0158] When the acceleration / deceleration is changed, the acceleration / deceleration time also changes, but the distance moved during acceleration / deceleration also changes, so the constant speed time also changes. Formula 10 is a formula for calculating the increase / decrease amount taking these two into consideration.

[0159] In the case of bell-shaped acceleration / deceleration, the times T1, T2, T3, T4, T5, and the distance Z to the destination position can be calculated by formula 11 (hereinafter referred to as formula 11). In formula 11, v1 represents the final arrival speed, and a1 represents the acceleration before the acceleration / deceleration change. The final arrival speed v1 is the same before and after the acceleration / deceleration change. In addition, in formula 11, τ1 is the time constant before the acceleration / deceleration change, τ2 is the time constant after the acceleration / deceleration change, t1 is the first acceleration / deceleration time before the acceleration / deceleration change, t2 is the second acceleration / deceleration time before the acceleration / deceleration change, and T5 is the measured constant speed time. In addition, T5-T2 represents the expected constant speed time.

[0160] [Formula 11]

[0161] T1=τ1,T1+T2=τ1,T1=T3,T5=Ts-2T1

[0162] T1+T2=T3+T4, T2=T4, p1=a1×t1

[0163]

[0164] (Exponential acceleration and deceleration)

[0165] Hereinafter, an example will be described in which the time to reach a position increases due to a change in acceleration or deceleration when a machine tool operates in an exponential acceleration or deceleration mode.

[0166] In the case of exponential acceleration / deceleration, the estimated power consumption is calculated based on the change in the time constant or the final speed. The acceleration / deceleration setting after the acceleration / deceleration change (the second acceleration / deceleration setting) is obtained by changing the time constant during acceleration / deceleration and the final speed of the acceleration / deceleration setting before the acceleration / deceleration change (the first acceleration / deceleration setting).

[0167] Fig.10 This is a characteristic diagram showing the time change of the speed before and after the acceleration / deceleration change of the exponential acceleration / deceleration. Fig.11 This is a characteristic diagram showing the time change of acceleration before and after the acceleration / deceleration change of the exponential acceleration / deceleration.

[0168] exist Fig.10 In the figure, the solid line indicates the speed change before the acceleration / deceleration change, and the dotted line indicates the speed change after the acceleration / deceleration change. Fig.11 In the figure, the solid line represents the acceleration change before the acceleration / deceleration change, and the dotted line represents the acceleration change after the acceleration / deceleration change. Fig.10 In the figure, time T1 represents the acceleration period before the acceleration / deceleration change, time T2 represents the difference period between the constant speed period before and after the acceleration / deceleration change, time T3 represents the deceleration period before the acceleration / deceleration change, and time T4 represents the difference period between the deceleration period before and after the acceleration / deceleration change. Time T5 represents the constant speed period before the acceleration / deceleration change.

[0169] like Fig.10 As shown, the speed after the acceleration / deceleration change is compared with the speed before the acceleration / deceleration change, the acceleration period becomes longer, the constant speed period becomes shorter, and the deceleration period becomes longer.

[0170] The integrated value of the estimated power consumption Pa of the first term of Formula 2 within the time T and the power of the external device can be obtained by the following Formula 12 (hereinafter referred to as Formula 12).

[0171] [Formula 12]

[0172] (Expected power consumption) = (actual power consumption) + (power consumption of external device at time T4) - (power consumption at constant speed at time T2) + ((expected power consumption during acceleration / deceleration after acceleration / deceleration change) - (expected power consumption during acceleration / deceleration before acceleration / deceleration change))

[0173] In Formula 12, the expected power consumption during the acceleration / deceleration period after the acceleration / deceleration change represents the expected power consumption during the acceleration period (T1+T2) and the deceleration period (T3+T4), and the expected power consumption during the acceleration / deceleration period before the acceleration / deceleration change represents the expected power consumption during the acceleration period T1 and the deceleration period T3.

[0174] The (power consumption at constant speed at time T2) and ((estimated power consumption during acceleration / deceleration after acceleration / deceleration change) - (estimated power consumption during acceleration / deceleration before acceleration / deceleration change)) in Formula 12 do not include the power of external devices.

[0175] When the acceleration / deceleration is changed, the acceleration / deceleration time also changes, but the distance moved during acceleration / deceleration also changes, so the constant speed time also changes. Formula 12 is a formula for calculating the increase / decrease amount taking these two factors into consideration.

[0176] In the case of exponential acceleration and deceleration, the times T1, T2, T3, T4, T5, and the distance Z to the target position can be calculated by formula 13 (hereinafter referred to as formula 13) and formula 14 (hereinafter referred to as formula 14). In formula 13 and formula 14, v1 is the final arrival speed, τ1 is the time constant before the acceleration and deceleration change, τ2 is the time constant after the acceleration and deceleration change, V1(t) is the speed during acceleration, and V'1(t) is the speed during deceleration. In the exponential type, it is difficult to calculate the exact time T1, so the time when the speed feedback reaches v1 is set as time T1.

[0177] [Formula 13]

[0178]

[0179]

[0180] Ts=T1+T5+T3

[0181] The time Ts may also be set to the actually measured time taken to reach the target position.

[0182] Assuming that V1(T1)=V2(T1+T2), time T2 is expressed by Formula 14 (hereinafter referred to as Formula 14).

[0183] [Formula 14]

[0184] T4=T2

[0185] In the above, examples in which the time to reach a position increases due to the acceleration / deceleration change are described regarding linear acceleration / deceleration, bell-shaped acceleration / deceleration, and exponential acceleration / deceleration. However, the present embodiment can also be applied to an example in which the time to reach a position decreases due to the acceleration / deceleration change.

[0186] In this case, the signs of the second terms and the third terms of Formula 5, Formula 10, and Formula 12, which are calculation formulas for calculating the estimated power consumption, are opposite.

[0187] Next, details of the configuration of the display setting unit 211 and a display example of the display unit 212 will be described.

[0188] (Configuration of Display Setting Section and Display Example of Display Section)

[0189] Fig.12 This is a block diagram showing a configuration example of a display setting unit.

[0190] like Fig.12 As shown, the display setting unit 211 includes an actual power consumption input unit 2111 , an estimated power consumption input unit 2112 , a period setting unit 2113 , a period dividing unit 2114 , and a display information generating unit 2115 .

[0191] The actual power consumption input unit 2111 outputs the actual power consumption input from the actual power consumption acquisition unit 210 to the display information generation unit 2115 .

[0192] The estimated power consumption input unit 2112 outputs the estimated power consumption input from the estimated power consumption calculation unit 207 to the display information generation unit 2115 .

[0193] The period setting unit 2113 outputs the set period set by the user as period setting information to the display information generating unit 2115. The period setting unit 2113 stores the set period. In addition, the set period is set by the user here, but the set period may be set in advance.

[0194] When there is an instruction to divide a set period from the user, the period dividing unit 2114 reads the set period from the period setting unit 2113 , divides the set period, and outputs the divided plurality of set periods to the display information generating unit 2115 as period setting information.

[0195] The display information generation unit 2115 stores the actual power consumption input from the actual power consumption input unit 2111 in time series, and stores the expected power consumption input from the expected power consumption input unit 2112 in time series. Then, the display information generation unit 2115 reads the actual power consumption and the expected display power within the set period set by the period setting unit 2113, and graphs them, and outputs the display information for displaying the graph on the screen to the display unit 212.

[0196] When there are multiple expected power consumptions calculated using multiple acceleration / deceleration settings or acceleration / deceleration settings before and after a change, the multiple expected power consumptions and actual power consumptions may be displayed in one graph or by providing multiple graphs showing one expected power consumption and actual power consumption.

[0197] Hereinafter, a display example displayed on the display unit 212 will be described.

[0198] Fig.13 This is a diagram showing a first example of a graph displayed on the display unit.

[0199] Fig.13 A graph showing the time changes of actual power consumption and expected power consumption from the start of machine operation (upper graph), and a graph showing the daily changes of actual power consumption and expected power consumption (lower graph). Fig.13 The actual power consumption and expected power consumption for the first to fifth days after today in the figure below are future data predicted based on the actual power consumption and expected power consumption today and the tendency of the actual power consumption and expected power consumption data in the past.

[0200] In order for the user to display Fig.13 As shown, the time and date for displaying the actual power consumption and the expected power consumption in a graph are inputted into the period setting unit 2113 of the display setting unit 211.

[0201] When the operation time or the number of operation cycles of the machining program differs according to the date, the display unit 212 can also display the operation time or the number of operation cycles of the machining program.

[0202] In addition, when the set period is divided by the period dividing unit 2114, Fig.13 One or both of the upper and lower figures are divided into multiple graphs for display.

[0203] Fig.14 It is a figure which shows the 2nd example of the graph display which is displayed on a display part.

[0204] Fig.14 Displays a table showing the accumulation period, period division, time constant, acceleration type, power consumption, cycle time, etc., and a graph showing the actual power consumption (current setting) and expected power consumption.

[0205] The user inputs the accumulation period and the division of the period, and sets them arbitrarily, for example, from Monday to Friday, Saturday, and Sunday, to the display setting unit 211. When the period is divided, it can also be divided into Monday to Friday, Saturday, and Sunday.

[0206] The time constant and the acceleration / deceleration type (linear acceleration / deceleration, bell-shaped acceleration / deceleration, exponential acceleration / deceleration) are determined by the display information generation unit 2115 from the machining program or read and set from the setting value storage unit 206. The user can also set from the display screen.

[0207] The power consumption and cycle time are calculated by the expected power consumption calculation unit 207 and input to the display information generation unit 2115 of the display setting unit 211. The power consumption (expected power consumption) and cycle time can also be calculated by the display information generation unit 2115. The display information generation unit 2115 can display the electricity fee instead of the cycle time on the display unit 212 according to the user's designation, or can display both the cycle time and the electricity fee. The cycle time (axis operation time) can be calculated based on, for example, Figure 4 , Figure 6 as well as Fig.10 The time T shown is obtained. When multiple axes are moved simultaneously, the longest operation time is set as the cycle time. Waiting time such as dwell can also be added to the cycle time. The operation time of the main axis is determined by the specified rotation time.

[0208] Fig.14 The table and graph shown can cooperate with each other. For example, the graph shows actual power consumption and expected power consumption after change. When the user changes the value of power consumption (estimated power consumption) in the table, the length of the expected power consumption in the graph also changes.

[0209] The user can directly change the length of the graph of estimated power consumption.

[0210] Next, the change of the acceleration / deceleration setting by the setting change unit 208 will be described.

[0211] When the time constant and the acceleration / deceleration type are input by the user, the setting change unit 208 outputs the time constant and the acceleration / deceleration type to the estimated power consumption calculation unit 207 .

[0212] The estimated power consumption calculation unit 207 calculates the estimated power consumption from a time constant based on the acceleration / deceleration type.

[0213] When the user inputs the expected power consumption, a reverse calculation is performed on how to change the acceleration / deceleration in order to achieve the expected power consumption set as the target.

[0214] When changing the time constant or accelerating or decelerating, the constant speed time also changes while the acceleration or deceleration time changes. Since the power at constant speed is calculated based on the measured value, the optimal value is calculated by also including the change in power of external devices caused by acceleration or deceleration and the increase or decrease in constant speed time. When changing the expected power consumption, the acceleration or deceleration change method can make the increase or decrease ratio of all acceleration or deceleration time constants the same, or the acceleration or deceleration can be set separately. The change range of the expected power consumption is set within the range that can be changed by acceleration or deceleration.

[0215] When the acceleration / deceleration type is linear acceleration / deceleration, the setting change unit 208 changes, for example, the time constant for further deceleration.

[0216] When the acceleration / deceleration type is bell-shaped acceleration / deceleration, the setting change unit 208 changes, for example, the primary acceleration / deceleration time and the secondary acceleration / deceleration time during further deceleration, or the time constant and the speed change.

[0217] When the acceleration / deceleration type is exponential acceleration / deceleration, the setting change unit 208 changes the time constant and the final arrival speed during further deceleration.

[0218] <External devices>

[0219] As already described, the external device 50 is a coolant pump for circulating the coolant, a conveyor for collecting chips, a lamp, etc., a vibration measuring device, a camera, a brake device, etc. As already described, the power consumption of the external device 50 is calculated from the operating time of the external device 50 using the power consumption per unit time obtained based on the catalog specifications.

[0220] Fig.15 This is a characteristic diagram showing the cumulative power consumption of the coolant pump, the cumulative power consumption of the conveyor, and the cumulative power consumption of the lamp relative to the cumulative power of the motor.

[0221] exist Fig.15 In the figure, from 0 to te1 represents the waiting time (pause) of the motor, from te1 to te2 represents the acceleration time, from te2 to te3 represents the constant speed time, from te3 to te4 represents the deceleration time, from te4 to te5 represents the waiting time (pause) of the motor, from te5 to te6 represents the acceleration time, from te6 to te7 represents the constant speed time, from te7 to te8 represents the deceleration time, and from te8 to te9 represents the waiting time (pause) of the motor.

[0222] like Fig.15 As shown, the coolant pump operates in conjunction with the operation of the electric motor, and the power of the coolant pump is not consumed during the waiting time of the electric motor.

[0223] The conveyor and lamp that collect the chips etc. do not operate in conjunction with the operation of the motor. The conveyor operates when the chips reach a certain amount, consuming the power of the conveyor. The lamp lights up before the motor operates, consuming the power of the lamp.

[0224] According to the numerical control device of the present embodiment described above, it is possible to calculate a more accurate estimated power consumption than a simple estimated value based on actual power consumption and the amount of increase or decrease in power consumption due to changes in acceleration or deceleration.

[0225] In addition, the actual measured power consumption and the estimated power consumption can be displayed in a graph or visualized to assist in setting.

[0226] In the above, the functional blocks included in the numerical control device 20 and the servo control device 30 have been described.

[0227] In order to realize these functional blocks, the numerical controller 20 and the servo controller 30 are respectively provided with a CPU (Central Processing Unit) and other arithmetic processing devices. In addition, the numerical controller 20 and the servo controller 30 are also provided with auxiliary storage devices such as HDD (Hard Disk Drive) storing various control programs such as application software or OS (Operating System), and main storage devices such as RAM (Random Access Memory) for storing data temporarily required when the arithmetic processing device executes the program.

[0228] Then, in the numerical control device 20 and the servo control device 30, each operation processing device reads the application software or OS from the auxiliary storage device, expands the read application software or OS in the main storage device, and performs operation processing based on these application software or OS. In addition, based on the operation result, various hardwares possessed by each device are controlled. In this way, the functional blocks of this embodiment are realized. That is, this embodiment can be realized by the cooperation of hardware and software.

[0229] Furthermore, the numerical controller 20 may include a servo controller 30 . In this case, a CPU (Central Processing Unit) or other arithmetic processing devices, auxiliary storage devices, and main storage devices are shared, and there is no need to separately provide the numerical controller 300 and the servo controller 400 .

[0230] When the amount of computation of the numerical control device 20 or the servo control device 30 is large, for example, a GPU (Graphics Processing Units) is mounted in a personal computer, and when the GPU is used for computational processing accompanying machine learning through a technology called GPGPU (General-Purpose computing on Graphics Processing Units), high-speed processing can be performed. Furthermore, in order to perform even faster processing, a computer cluster can be constructed using multiple computers equipped with such GPUs, and parallel processing can be performed by the multiple computers included in the computer cluster.

[0231] Next, refer to Fig.16 The operation of the numerical control device 20 according to the present embodiment will be described with reference to the flowchart. Fig.16This is a flowchart showing the operation of the numerical control device 20 according to the present embodiment.

[0232] First, in Fig.16 In step S11 , the actual power consumption acquisition unit 210 acquires the detected current value and the detected voltage value from the FB acquisition unit 209 to calculate the actual power consumption.

[0233] In step S12 , the estimated power consumption calculation unit 207 obtains the operating time of the external device 50 , and obtains the power consumption of the external device 50 using the power consumption per unit time obtained based on the catalog specification.

[0234] In step S13, the increase or decrease in power consumption due to the change in acceleration or deceleration is calculated.

[0235] Specifically, the expected power consumption calculation unit 207 reads the inertia Jm, viscous friction, and Coulomb friction, i.e., friction F, from the setting value storage unit 206, and obtains the angular velocity ω and the angular acceleration dω / dt based on the machining program stored in the program storage unit 201 or the speed and acceleration stored in the setting value storage unit 206. In addition, the expected power consumption calculation unit 207 obtains the change of acceleration and deceleration from the setting change unit 208. Then, the expected power consumption calculation unit 207 uses the formula 4 into which the formula 3 is inserted to obtain the increase or decrease in power consumption caused by the change in acceleration and deceleration through calculation.

[0236] In step S14 , the estimated power consumption calculation unit 207 calculates the estimated power consumption by adding the actual power consumption, the increase or decrease in power consumption due to the acceleration / deceleration change amount, and the power consumption of the external device 50 .

[0237] In step S15, the display setting unit 211 performs display settings on the display unit 212 so that the actual power consumption obtained by the actual power consumption acquisition unit 210 and the expected power consumption calculated by the expected power consumption calculation unit 207 are displayed in each set period, and the display unit 212 displays the actual power consumption and the expected power consumption in a graph.

[0238] The user who sees the display screen of the display unit 212 determines whether to set the current power consumption (actual power consumption) or the expected power consumption, or whether to calculate a new expected power consumption again.

[0239] In step S16, when the user who sees the display screen of the display unit 212 inputs a change in acceleration or deceleration or power consumption to the setting change unit 208 in order to recalculate the new expected power consumption, the setting change unit 208 determines that the setting value for deceleration is changed ("new power consumption" in step S16). Then, the setting change unit 208 instructs the expected power consumption calculation unit 207 to recalculate the expected power consumption, stores the changed values ​​of the speed, acceleration, etc. in the setting value storage unit 206, and returns to step S13. In steps S13 and S14, the expected power consumption is recalculated.

[0240] In step S16 , when the user inputs the expected power consumption to the setting change unit 208 , the process proceeds to step S17 .

[0241] In step 17 , the setting change unit 208 changes the acceleration / deceleration of the deceleration control unit 204 so as to achieve the predicted power consumption, and ends the processing.

[0242] In step 16 , when the user inputs actual power consumption to the setting change unit 208 , the process ends because there is no change in acceleration or deceleration.

[0243] Each component included in the numerical control device 10 can be implemented by hardware, software, or a combination thereof. In addition, the control parameter adjustment method performed by the cooperation of each component included in the numerical control device 10 can also be implemented by hardware, software, or a combination thereof. Here, implementation by software means implementation by reading and executing a program by a computer.

[0244] The program can be saved using various types of non-transitory computer readable media (non-transitorycomputer readable medium) and provided to the computer. Non-transitory computer readable media include various types of tangible recording media (tangible storage medium). Examples of non-transitory computer readable media include magnetic recording media (e.g., hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROMs (read-only memories), CD-Rs, CD-R / Ws, and semiconductor memories (e.g., mask ROMs, PROMs (programmable ROMs), EPROMs (erasable PROMs), flash ROMs, and RAMs (random access memories)). In addition, the program can also be provided to the computer via various types of transitory computer readable media (transitory computer readable medium).

[0245] The above-described embodiment is a preferred embodiment of the present invention, but the scope of the present invention is not limited to the above-described embodiment, and the present invention can be implemented in various modified forms without departing from the gist of the present invention.

[0246] For example, in the above-mentioned embodiment, a numerically controlled machine tool in which a numerical control device controls a machine tool is described. However, the machine controlled by the numerical control device is not limited to the machine tool, and may be a robot or an industrial machine.

[0247] The numerical control device and the estimated power consumption calculation method of the present disclosure can take various embodiments including the above-mentioned embodiments and having the following structures.

[0248] (1) A numerical control device (for example, the numerical control device 20) comprising:

[0249] A program storage unit (e.g., program storage unit 201) storing an operation program for causing the machine to operate;

[0250] an actual power consumption acquisition unit (for example, actual power consumption acquisition unit 210) for operating the machine according to the first acceleration / deceleration setting based on the operation program and acquiring the actual power consumption by calculation or measurement;

[0251] an estimated power consumption calculation unit (e.g., estimated power consumption calculation unit 207) that calculates estimated power consumption by adding at least the actual power consumption to an increase or decrease in power consumption corresponding to a change in acceleration or deceleration from the first acceleration or deceleration setting to the second acceleration or deceleration setting;

[0252] a setting value storage unit (for example, setting value storage unit 206) storing at least a part of information necessary for calculating the power consumption of the first acceleration / deceleration setting and the second acceleration / deceleration setting in the expected power consumption calculation unit; and

[0253] A display unit (for example, the display unit 212 ) that displays the actual power consumption and the expected power consumption.

[0254] According to this numerical control device, the accuracy of the predicted value of power consumption can be improved. In addition, by visualizing the actual power consumption and the expected power consumption, it is possible to easily compare and assist in power consumption.

[0255] (2) The numerical control device according to (1), wherein the numerical control device is connected to a servo control device (e.g., the servo control device 30) for operating the machine, and comprises a feedback acquisition unit (e.g., an FB feedback acquisition unit) for acquiring feedback information consisting of a detection voltage and a detection current, or a detection current and a detection speed from the servo control device;

[0256] The actual power consumption acquisition unit acquires the actual power consumption through calculation using the feedback information.

[0257] (3) A numerical control device according to (1) above, wherein the numerical control device comprises: a display setting unit (e.g., display setting unit 211) which performs display settings for displaying the actual power consumption and the expected power consumption on the display unit for each set period.

[0258] (4) A numerical control device according to (3) above, wherein the display setting unit includes a period setting unit (e.g., period setting unit 2113) for setting the period and a period dividing unit (e.g., period dividing unit 2114) for dividing the period set by the period setting unit, and the display setting unit performs display settings for displaying the actual power consumption and the expected power consumption in the display unit for each divided period.

[0259] (5) The numerical control device according to (1) above, wherein the numerical control device comprises: a setting change unit (for example, the setting change unit 208) that changes the first acceleration / deceleration setting to the second acceleration / deceleration setting;

[0260] The setting changing unit changes the second acceleration / deceleration setting,

[0261] The estimated power consumption calculation unit recalculates the estimated power consumption based on the second acceleration / deceleration setting changed by the setting change unit.

[0262] (6) The numerical control device according to (1) above, wherein the estimated power consumption calculation unit obtains power consumption of an external device from the setting value storage unit, and calculates the estimated power consumption including the power consumption of the external device.

[0263] (7) The numerical control device according to any one of (1) to (6) above, wherein:

[0264] The expected power consumption calculation unit calculates the expected power consumption by accumulating the increase or decrease in the actual power consumption before and after the change of the acceleration or deceleration setting from the first acceleration or deceleration setting to the second acceleration or deceleration setting, which is related to the power consumption at constant speed, and the increase or decrease in the actual power consumption before and after the change of the acceleration or deceleration setting from the first acceleration or deceleration setting to the second acceleration or deceleration setting, which is related to the power consumption during acceleration or deceleration.

[0265] (8) The numerical control device according to (7) above, wherein:

[0266] The first acceleration / deceleration setting and the second acceleration / deceleration setting are set to linear acceleration / deceleration.

[0267] The numerical control device includes: a setting change unit (for example, the setting change unit 208) that changes the first acceleration / deceleration setting to the second acceleration / deceleration setting,

[0268] The setting change unit changes the time constant during further deceleration.

[0269] (9) The numerical control device according to (7) above, wherein:

[0270] The first acceleration / deceleration setting and the second acceleration / deceleration setting are set to bell-shaped acceleration / deceleration.

[0271] The numerical control device includes: a setting change unit (for example, the setting change unit 208) that changes the first acceleration / deceleration setting to the second acceleration / deceleration setting,

[0272] The setting change unit changes the primary acceleration / deceleration time and the secondary acceleration / deceleration time, or the time constant and the speed change during further deceleration.

[0273] (10) The numerical control device according to (7) above, wherein:

[0274] The first acceleration / deceleration setting and the second acceleration / deceleration setting are set to exponential acceleration / deceleration.

[0275] The numerical control device includes: a setting change unit (for example, the setting change unit 208) that changes the first acceleration / deceleration setting to the second acceleration / deceleration setting,

[0276] The setting change unit changes the time constant and the final arrival speed during further deceleration.

[0277] (11) A method for calculating an estimated power consumption is to cause a computer as a numerical control device having a program storage unit storing an operation program for operating a machine to perform the following processing:

[0278] storing information required for calculating power consumption based on the first acceleration / deceleration setting and the second acceleration / deceleration setting of the operation program;

[0279] The machine is operated by the first acceleration / deceleration setting, and actual power consumption is obtained by calculation or measurement; and

[0280] The estimated power consumption is calculated by adding at least the actual power consumption to an increase or decrease in power consumption corresponding to a change in acceleration or deceleration from the first acceleration or deceleration setting to the second acceleration or deceleration setting.

[0281] According to this estimated power consumption calculation method, it is possible to improve the accuracy of the estimated value of power consumption.

[0282] Explanation of symbols

[0283] 10 Numerical Control Machine Tools

[0284] 20 Numerical control device

[0285] 30 Servo control device

[0286] 40 Electric Motor

[0287] 50 External devices

[0288] 201 Program storage unit

[0289] 202 instruction analysis unit

[0290] 203 Interpolation Department

[0291] 204 Acceleration and deceleration control unit

[0292] 205 command output unit

[0293] 206 Setting value storage unit

[0294] 207 Estimated power consumption calculation unit

[0295] 208 Setting Change Department

[0296] 209FB Acquisition Department

[0297] 210 Actual power consumption acquisition unit

[0298] 211 Display setting unit

[0299] 212 Display unit

[0300] 301 Subtractor

[0301] 302 Position Control Unit

[0302] 303 Subtractor

[0303] 304 speed control unit

[0304] 305 Subtractor

[0305] 306 Current Control Unit

[0306] 307 Integrator.

Claims

1. A numerical control device, characterized in that: have: A program storage unit storing an action program for causing the machine to move; an actual power consumption acquisition unit for operating the machine by the first acceleration / deceleration setting based on the operation program and acquiring the actual power consumption by calculation or measurement; an estimated power consumption calculation unit that calculates estimated power consumption by adding at least the actual power consumption to an increase or decrease in power consumption corresponding to a change in acceleration or deceleration from the first acceleration or deceleration setting to the second acceleration or deceleration setting; a setting value storage unit for storing at least a part of information necessary for calculating the power consumption of the first acceleration / deceleration setting and the second acceleration / deceleration setting in the estimated power consumption calculation unit; as well as A display unit displays the actual power consumption and the expected power consumption.

2. The numerical control device according to claim 1, characterized in that: The numerical control device is connected to a servo control device for moving the machine, and includes a feedback acquisition unit for acquiring feedback information consisting of a detection voltage and a detection current, or a detection current and a detection speed from the servo control device. The actual power consumption acquisition unit acquires the actual power consumption through calculation using the feedback information.

3. The numerical control device according to claim 1, characterized in that: The numerical control device includes a display setting unit configured to perform display setting for displaying the actual power consumption and the estimated power consumption on the display unit for each set period.

4. The numerical control device according to claim 3, characterized in that: The display setting unit includes a period setting unit for setting the period and a period dividing unit for dividing the period set by the period setting unit. The display setting unit performs display setting for displaying the actual power consumption and the estimated power consumption on the display unit for each divided period.

5. The numerical control device according to claim 1, characterized in that: The numerical control device includes: a setting change unit that changes the first acceleration / deceleration setting to the second acceleration / deceleration setting; The setting changing unit changes the second acceleration / deceleration setting, The estimated power consumption calculation unit recalculates the estimated power consumption based on the second acceleration / deceleration setting changed by the setting change unit.

6. The numerical control device according to claim 1, characterized in that: The estimated power consumption calculation unit acquires power consumption of an external device from the set value storage unit, and calculates the estimated power consumption including the power consumption of the external device.

7. The numerical control device according to any one of claims 1 to 6, characterized in that: The expected power consumption calculation unit calculates the expected power consumption by accumulating the increase or decrease in the actual power consumption before and after the change of the acceleration or deceleration setting from the first acceleration or deceleration setting to the second acceleration or deceleration setting, which is related to the power consumption at constant speed, and the increase or decrease in the actual power consumption before and after the change of the acceleration or deceleration setting from the first acceleration or deceleration setting to the second acceleration or deceleration setting, which is related to the power consumption during acceleration or deceleration.

8. The numerical control device according to claim 7, characterized in that: The first acceleration / deceleration setting and the second acceleration / deceleration setting are set to linear acceleration / deceleration. The numerical control device includes: a setting change unit that changes the first acceleration / deceleration setting to the second acceleration / deceleration setting; The setting change unit changes the time constant during further deceleration.

9. The numerical control device according to claim 7, characterized in that: The first acceleration / deceleration setting and the second acceleration / deceleration setting are set to bell-shaped acceleration / deceleration. The numerical control device includes: a setting change unit that changes the first acceleration / deceleration setting to the second acceleration / deceleration setting; The setting change unit changes the primary acceleration / deceleration time and the secondary acceleration / deceleration time, or the time constant and the speed change during further deceleration.

10. The numerical control device according to claim 7, characterized in that: The first acceleration / deceleration setting and the second acceleration / deceleration setting are set to exponential acceleration / deceleration. The numerical control device includes: a setting change unit that changes the first acceleration / deceleration setting to the second acceleration / deceleration setting; The setting change unit changes the time constant and the final arrival speed during further deceleration.

11. A method for calculating expected power consumption, characterized in that: A computer as a numerical control device including a program storage unit storing an operation program for operating a machine is caused to perform the following processing: storing information required for calculating power consumption based on the first acceleration / deceleration setting and the second acceleration / deceleration setting of the operation program; The machine is operated by the first acceleration / deceleration setting, and the actual power consumption is obtained by calculation or measurement; as well as The estimated power consumption is calculated by adding at least the actual power consumption to an increase or decrease in power consumption corresponding to a change in acceleration or deceleration from the first acceleration or deceleration setting to the second acceleration or deceleration setting.