Numerical control unit with block execution time display function

The numerical control unit addresses the challenge of verifying block processing times by measuring and displaying actual machining times, facilitating program optimization and cycle time reduction.

DE102017000122B4Inactive Publication Date: 2024-08-29FANUC LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
DE102017000122
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2016-01-14
Filing Date
2017-01-09
Publication Date
2024-08-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing numerical control units lack the ability to easily detect the actual processing time of each block in a program, making it difficult to verify the validity of processing times and identify potential cycle time increases in multi-path programs.

Method used

A numerical control unit that measures actual machining time using servo data and displays the relationship between block processing times, allowing for the identification of discrepancies and their causes.

Benefits of technology

Enables easy verification of block processing times and facilitates program improvements by identifying inappropriate blocks and reducing cycle time through understanding block relationships.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure DE102017000122B4_0000_ABST
    Figure DE102017000122B4_0000_ABST
Patent Text Reader

Abstract

Numerical control unit (1) controlling a machine with at least one axis driven by a servo motor (2) on the basis of at least one program (20), comprising: a unit (13) for measuring the actual machining time, configured to measure an actual machining time (Tr) using servo data specifying position feedback (B) from the servo motor (2), which is an actual time required to execute at least one block included in the program (20); a display unit (17) configured to generate display data indicating a relationship between the block and the actual machining time (Tr) of the block;and a reference processing time calculation unit (14) configured to calculate a reference processing time (Tb) which is a theoretical time required to execute at least one block included in the program, wherein the display unit (17) is configured to generate display data that index a relationship between the block, the actual processing time (Tr) of the block and the reference processing time (Tb) of the block.
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUND OF THE INVENTION1. Field of the InventionThe present invention relates to a numerical control unit having a function of displaying a time required for execution of a block in a program.2. Description of Related ArtA user who creates or modifies a program to be executed on a numerical control unit that controls a machine often confirms that the program is operating correctly, while checking a machining time required for a process performed by the control of the machine on the basis of the program after creating or modifying the program. As a means for recognizing a machining time, for example, a technique for displaying an execution time of a program or an operation time as integrated during automatic operation activation is disclosed in JP 2012-243152 A.In the technique disclosed in JP 2012-243152 A, when the program is checked to reduce a cycle time, there is no method of recognizing a block for which an actual machining time is required, and it is difficult to verify validity of the actual machining time of the block when there is no data serving as a reference for a corresponding machining time in each block.Furthermore, in multipath paths, programs for controlling paths are executed, but it is not easy to understand a relationship between blocks included in the program that controls the paths. For this reason, even when there is a part in which merging of machining steps can be performed in the multipath ways, the user is unable to recognize a part in which merging can be performed in each program and probably lengthens the cycle time as a result.From DE 692 29 309 T2 a device for monitoring the feed of a tool based on control data in a numerically controlled system is known. Here, based on the control data for the most recent machining portion, a target feed for the most recent started machining portion is calculated and a general feed rate is compared with the target feed rate. To calculate the target feed, a longitudinal movement of a tool is calculated for each machining operation, and a feed is calculated using the longitudinal movement and a predetermined tolerable minimum movement time. Then, the thus calculated feed is compared with the feed according to the control data. If the feed corresponding to the control data is larger than the calculated feed, the calculated feed is selected as the target feed. However, if the feed corresponding to the control data is smaller than the calculated feed, the feed corresponding to the control data is selected as the target feed.US 2002 / 0091460 A1 discloses a CNC control system which integrates changes caused by an operator into the preprogrammed machining process. This is done using a so-called human activity storage program (HASP), which is used together with the NC program. This allows an improved production process to be achieved. Specifically, during machining of a part, an operator manually overrides the feed speed and / or the spindle speed so as to improve the machining performance. The overwritten values are correlated with the active block number and this information is written to an event file.SUMMARY OF THE INVENTIONIn this regard, an object of the present invention is to provide a numerical control unit capable of easily detecting validity of an actual machining time of each block of a program.A numerical control unit according to the present invention controls a machine having at least one axis driven by a servo motor on the basis of at least one program, and includes an actual machining time measuring unit that measures an actual machining time, which is an actual time required for execution of at least one block included in the program, using servo data indicating a position feedback of the servo motor, and a display unit that generates display data indicating a relationship between the block and the actual machining time of the block.The numerical control unit may further include a reference machining time calculation unit that calculates a reference machining time that is a theoretical time required for execution of at least one block included in the program, wherein the display unit is configured to generate display data indicating a relationship among the block, the actual machining time of the block, and the reference machining time of the block.The numerical control unit may further include a cause specification unit configured to specify a cause of a difference between the actual machining time and the reference machining time for at least one block included in the program when the difference exceeds a predetermined threshold, wherein the display unit generates display data indicating a relationship between the block, the actual machining time of the block, and the cause.The machine may include a plurality of paths, the numerical control unit may be configured to control the machine based on a program that controls each of the paths, and the display unit may be configured to generate display data indicating a relationship between actual machining times of the plurality of paths. According to the present invention, the user can understand a block whose actual machining time is likely to be improper based on a difference between the actual machining time and the theoretical value, and easily specify a cause based on the cause of the difference.Further, when a program that controls multipath is displayed, it is possible to easily understand a relationship of blocks between paths and contribute to program improvement for merging processes and reduction of cycle time.BRIEF DESCRIPTION OF THE DRAWINGSFIG. 1 is a functional diagram of a numerical control unit according to an embodiment of the present invention; FIG. 2 illustrates a display example of a screen in the numerical control unit of FIG. 1 ; FIG. 3 is a functional diagram of a numerical control unit according to another embodiment of the present invention; and FIG. 4 is an example display of a screen in the numerical control unit of FIG. 3.DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTSIn a numerical control unit of the present invention, an actual machining time, which is a time required for execution of each block included in a program, is measured for each block, a theoretical machining time is calculated based on the details of each block, and the measured actual machining time and the calculated theoretical machining time are displayed in comparison.Further, in the numerical control unit of the present invention, for a block in which a difference between the measured actual machining time and the calculated theoretical machining time exceeds a predetermined limit value, the details of the block and data (servo data or the like) related to an operation of a machine controlled by the block are analyzed, and the cause of the difference between the actual machining time and the theoretical machining time is specified and displayed.Furthermore, in the numerical control unit of the present invention, for a plurality of programs that control multipath, the actual machining times of the blocks included in the programs that control the paths are displayed simultaneously on a time basis, and thus a relationship of the blocks of the programs that are executed under the control of the paths can be easily understood.FIG. 1 is a functional diagram of a numerical control unit according to an embodiment of the present invention.A numerical control unit 1 of the present embodiment includes an instruction analysis unit 10, an interpolation unit 11, the servo control unit 12, the actual machining time measurement unit 13, a reference machining time calculation unit 14, a servo data acquisition unit 15, a cause specification unit 16, and a display unit 17.The instruction analysis unit 10 sequentially reads and analyzes blocks for instructing an operation of a machine serving as a control target from a program 20 stored in a memory (not illustrated), generates instruction data for instructing a movement of an axis driven by a servo motor 2 based on an analysis result, and outputs the generated instruction data to the interpolation unit 11. Further, a block serving as the analysis target and the instruction data serving as the block analysis result are output to the reference machining time calculation unit 14.On the basis of the instruction data received from the instruction analysis unit, the interpolation unit 11 generates interpolation data as a point in each interpolation period on an instruction path by the instruction data, performs adjustment of a speed of each axis in each interpolation period for the generated interpolation data (an acceleration / deceleration process), and thereafter, outputs the adjusted interpolation data in each interpolation period to the servo control unit 12 as a position instruction A for instructing a position (movement amount) of the servo motor 2 for each interpolation period.The servo control unit 12 controls the servo motor 2 that drives the axis of the machine serving as a control target on the basis of the position instruction A received from the interpolation unit 11.The actual machining time measurement unit 13 measures an actual machining time Tr, which is a time required for execution of a block, for each block included in a program 20 when the program 20 is executed, and stores the measured actual machining time Tr in a storage unit 21 in association with each block. As a method for measuring the actual machining time Tr of each block, for example, a method of acquiring the instruction data output from the instruction analysis unit 10 or the interpolation data output from the interpolation unit 11 to the servo control unit 12 and the servo data including data related to the position of the servo motor 2 acquired from the servo control unit 12 by the servo data acquisition unit 15 may be used for detecting control start and control end points based on each block and using a difference between a time of the control start point and a time of the control end point based on each block as acquired by a timer (not illustrated) as the actual machining time Tr.The reference machining time calculation unit 14 calculates a reference machining time Tb, which is a theoretical machining time of each block, on the basis of the block received from the instruction analysis unit 10 and the instruction data serving as an analysis result of the block, and stores the reference machining time Tb in the storage unit 21 in association with the block.An example of the reference machining time calculated by the reference machining time calculation unit 14 is a lack of acceleration / deceleration reference machining time Tb na, which is calculated on the basis of a moving distance of each block and an instruction speed. The reference absence of acceleration / deceleration processing time Tb na is a simple estimation time in which an acceleration / deceleration time is not taken into account and which can be calculated by the following formula (1). In formula (1), a moving distance L is a moving amount of an axis instructed by an instruction of the block, and an instruction speed F is a moving speed of an axis instructed by an instruction of the block. The user can confirm an influence of the acceleration / deceleration process in the interpolation unit 11 based on a difference between the absence of acceleration / deceleration reference machining time Tb na and the actual machining time Tr. where Tb na is an absence of acceleration / deceleration reference machining time.Another example of the reference machining time calculated by the reference machining time calculation unit 14 is a presence-of-acceleration / deceleration reference machining time Tb a, which is calculated with the technique disclosed in JP 2012-243152 A described above, or with a machining time prediction process calculated by a simulation device, or the like.The reference machining time calculation unit 14 may calculate a plurality of types of reference machining times Tb described above for each block and store the reference machining times Tb in the storage unit 21 in association with the block.The servo data acquisition unit 15 acquires the servo data including the position instruction A received by the servo control unit 12 from the interpolation unit 11 and the position feedback B of the servo motor 2 as sequentially acquired from the servo control unit 12 by the servo motor 2, and stores the acquired servo data in the storage unit 21 in association with each block. For example, the servo data acquired by the servo data acquisition unit 15 may be stored in the storage unit 21 in association with (a plurality of pieces of) servo data acquired at intervals of interpolation periods or time units for each block, so that a displacement of the position of the servo motor 2 with respect to a temporal change may be detected.When there is a difference between the actual machining time and the reference machining time, the cause specification unit 16 specifies a cause of the difference on the basis of the actual machining time Tr, the reference machining time Tb (the absence of acceleration / deceleration reference machining time Tb na and the presence of acceleration / deceleration reference machining time Tb a) and the servo data stored in association with each block included in the program 20 by the reference machining time calculation unit 14, the actual machining time measurement unit 13, and the servo data acquisition unit 15.The cause specification unit 16 first acquires a difference between the actual machining time Tr and the reference machining time Tb, and when the acquired difference is larger than a certain predetermined threshold, the cause specification unit 16 specifies the block as a block having a difference between the actual machining time Tr and the reference machining time Tb. As an example of the threshold, a time threshold and a ratio threshold may be considered. When the time limit value is used, when the difference between the actual machining time Tr and the reference machining time Tb is larger than the time threshold value, the block may be specified as a block having a difference between the actual machining time Tr and the reference machining time Tb. When the ratio threshold is used, when the following formula (2) is satisfied, the block may be specified as a block having the difference between the actual machining time Tr and the reference machining time Tb.When a plurality of reference machining times such as the absence of acceleration / deceleration reference machining time Tb na and the presence of acceleration / deceleration reference machining time Tb a are recorded as described above, the cause specification unit 16 preferably specifies a block having a difference with the presence of acceleration / deceleration reference machining time Tb a.Thereafter, the cause specifying unit 16 analyzes data related to the specified block with the difference between the actual machining time Tr and the reference machining time Tb, and specifies the cause of the difference.When the block having the difference is an auxiliary function such as M (an auxiliary function), S (a spindle speed function), T (a tool function), or B (a second auxiliary function), the cause of the difference is specified by analyzing a corresponding function. In contrast to a movement instruction of a G code or the like, a time required for an operation of each assist function based on an instruction greatly changes according to a situation, and thus the operation of each assist function may be the cause of the difference. Examples of the cause of the difference are that when the instruction is a standby instruction having other paths, a "wait M code having other paths" is the cause, and when the instruction is a tool replacement instruction, a "tool function based on a T code" is the cause.On the other hand, when the block having the difference is a feed instruction such as a fast traverse instruction (G00) or a cutting feed instruction (G01), the cause of the difference is specified by analyzing the servo data stored in association with the block in the storage unit 21. The servo data includes the position instruction A that the servo control unit 12 receives from the interpolation unit 11 and the position feedback B of the servo motor 2 sequentially acquired by the servo motor 2 as described above and stored in the storage unit 21 in association with each block.For example, the cause specification unit 16 compares the instruction speed F of the block serving as an analysis target and a position instruction speed A' (a differential value of the position instruction A) calculated by the following formula (3) using the same unit based on the servo data. Thereafter, when the position command A' calculated by the formula (3) does not reach the command speed F instructed in the block at least once during the control in the block, the fact that "the command speed is not reached" is specified as the cause of the difference.Further, the cause specification unit 16 calculates an error amount C based on the difference between the position instruction A and the position feedback B of the servo motor 2 included in the servo data, and when the calculated error amount C is larger than a limit value of an allowable error amount set in advance, "a delay caused by servo trackability" is specified as the cause of the difference.The display unit 17 generates display data for displaying the actual machining time Tr stored in association with each block in the storage unit 21, the reference machining time Tb, and the difference between the actual machining time Tr and the reference machining time Tb of each block as calculated by the cause specification unit 16, the cause of the difference between the actual machining time Tr and the reference machining time Tb of each block, and the like, and causes the display data to be displayed on a display device (not caused).FIG. 2 illustrates an example of a screen in which the display data generated by the display unit 17 is displayed on the display device.In the screen example of FIG. 2, the actual machining time Tr, the absence of acceleration / deceleration reference machining time Tb na and the presence of acceleration / deceleration reference machining time Tb a, which serve as the reference machining time Tb, the difference between the actual machining time Tr and the reference machining time, and the cause of the difference are displayed together with a corresponding block. Through such a display, the user can understand a block whose actual machining time is likely to be improper based on the difference between the actual machining time and the theoretical value for each block, and easily specify the cause based on the cause of the difference.The display data generated by the display unit 17 need not include all of the above-mentioned data, and only some items of the data may be displayed according to the destination of the user. For example, when the actual machining time Tr and the reference machining time Tb are displayed together, the user can sufficiently understand the validity of the actual machining time of each block of the program. Furthermore, only the cause of the difference may be displayed without displaying the difference. Further, a graph indicating a change in the error amount C may be displayed adjacent to each block or any other display element may be displayed together.FIG. 3 is a functional diagram of the numerical control unit when the multipath paths of the present invention are controlled.The numerical control unit 1 of this embodiment is different from the numerical control unit 1 illustrated in FIG. 1 in that a plurality of servomotors 2 each of which drives each path and a plurality of servo control units 12 each of which drives each servomotor 2 are provided. Furthermore, the instruction analysis unit 10, the interpolation unit 11, the actual machining time measurement unit 13, the reference machining time calculation unit 14, and the servo data acquisition unit 15 may be provided in each path.The instruction analysis unit 10 of the present embodiment sequentially reads and analyzes blocks instructing an operation of the machine serving as a control target from each program 20 controlling each path as stored in a memory (not illustrated), generates instruction data of each path for instructing a movement of an axis driven by a servomotor 2 of each path on the basis of an analysis result, and outputs the generated instruction data of each path to the interpolation unit 11. Further, the instruction analysis unit 10 outputs the block for each path serving as an analysis target and the instruction data serving as an analysis result of the block to the reference machining time calculation unit 14.The interpolation unit 11 generates the interpolation data of each path as a point in each interpolation period on the instruction path from the instruction data on the basis of the instruction data of each path received from the instruction analysis unit, performs adjustment of a speed of each axis in each interpolation period with respect to the generated interpolation data of each path (an acceleration / deceleration process), and thereafter, outputs the adjusted interpolation data for each interpolation period to the servo control unit 12 of each path as a position instruction A for instructing the position (the movement amount) of the servo motor 2 in each interpolation period.The servo control unit 12 controls the servo motor 2 of each path that drives the axis of the machine of each path serving as a control target on the basis of the position instruction A received from the interpolation unit 11. the servo control unit 12 sequentially acquires the servo data indicating the position feedback B of the servo motor 2 upon control of the servo motor 2 of each path.The actual machining time measurement unit 13 measures the actual machining time Tr, which is a time required for execution of a block, for each block included in the program 20 of each path when the program 20 is executed, and stores the measured actual machining time Tr in the storage unit 21 in association with each block of each program. A method of measuring the actual machining time Tr by the actual machining time measuring unit 13 is similar to that of the embodiment illustrated in FIG. 1.The reference machining time calculation unit 14 calculates the reference machining time Tb, which is a theoretical machining time of each block of the program of each path, based on the block of the program of each path received from the instruction analysis unit 10 and the instruction data that is the analysis result of the block, and stores the calculated reference machining time Tb in the storage unit 21 in association with the block of each program. A method of calculating the reference machining time Tb by the reference machining time calculation unit 14 is similar to that of the embodiment illustrated in FIG. 1.The servo data acquisition unit 15 acquires the servo data including the position instruction A received from the interpolation unit 11 by the servo control unit 12 of each path and the position feedback B of the servo motor 2 of each path acquired from the servo control unit 12 of each path by the servo motor 2 of each path, and stores the acquired servo data in the storage unit 21 in association with each block of the program of each path. A method of acquiring the servo data via the servo data acquisition unit 15 is similar to that of the embodiment illustrated in FIG. 1.When there is a difference between the actual machining time and the reference machining time, the cause specification unit 16 specifies the cause of the difference on the basis of the actual machining time Tr, the reference machining time Tb (the absence of acceleration / deceleration reference machining time Tb na and the presence of acceleration / deceleration reference machining time Tb a) and the servo data stored in association with each block included in the program 20 of each path by the reference machining time calculation unit 14, the actual machining time measuring unit 13 and the servo data acquisition unit 15.The display unit 17 generates display data for displaying the actual machining time Tr stored in association with each block in the storage unit 21, the reference machining time Tb, and the difference between the actual machining time Tr and the reference machining time Tb of each block included in each program 20 of each path calculated by the cause specification unit 16, the cause of the difference between the actual machining time Tr and the reference machining time Tb of each block included in each program 20 of each path, and the like, and causes the display data to be displayed on a display device (not caused).FIG. 4 illustrates an example of a screen in which the display data generated by the display unit 17 is displayed on the display device. In the example of FIG. 4, the actual machining time Tr required for the execution of each block of the program of each path is indexed by a box having a width corresponding to the length of the actual machining time Tr, and each path is indexed such that boxes are connected in the correct direction in the order of the first block of the program and are displayed. A block number of a corresponding block is displayed on each box, and an instruction given from a corresponding block and the cause of the difference of the actual machining time Tr and the reference machining time Tb are displayed below the box. Further, the respective paths are displayed vertically side by side so as to be aligned with a time axis at the time of execution. By such display, the user can easily understand a temporal relationship of blocks between routes and contribute to program improvement for merging processes and reducing cycle time.The display data generated by the display unit 17 need not include all of the above-mentioned data, and only some items of the data may be displayed according to the destination of the user. Further, the reference machining time Tb of each route may be collectively displayed below the display of each route, similarly to the display of the actual machining time described above. Furthermore, it is also possible to display any other display element together.Although the embodiment of the present invention has been described above, the present invention is not limited to the example of the above-described embodiment, and the present invention can be carried out in various forms with appropriate modifications.For example, in the above-described embodiment, it has been described that the calculation of the reference machining time Tb by the reference machining time calculation unit 14 is performed simultaneously with the execution of the program, but the calculation of the reference machining time Tb does not need to be performed simultaneously with the execution of the program, and the reference machining time Tb of each block of the program may be calculated in advance and stored in association with each block in the storage unit 21.Further, the above-described embodiment describes an example in which the display is performed so that the relationship between each block of the program and the actual and reference machining times of the block can be understood, and another example in which the display is performed so that the relationship between the actual machining times of the blocks of the program of the routes can be understood, but the numerical control unit 1 may also be configured so that switching between these display types can be performed.

Claims

A numerical control unit (1) that controls a machine having at least one axis driven by a servomotor (2) based on at least one program (20), comprising: an actual machining time measurement unit (13) configured to measure an actual machining time (Tr) using servo data indicating a position feedback (B) of the servomotor (2), which is an actual time necessary for execution of at least one block included in the program (20); a display unit (17) configured to generate display data indicating a relationship between the block and the actual machining time (Tr) of the block; and a reference machining time calculation unit (14) configured to calculate a reference machining time (Tb) that is a theoretical time necessary for execution of at least one block included in the program, wherein the display unit (17) is configured to generate display data indicating a relationship among the block, the actual machining time (Tr) of the block, and the reference machining time (Tb) of the block.The numerical control unit according to claim 1, further comprising: a cause specification unit (16) configured to specify a cause of a difference between the actual machining time (Tr) and the reference machining time (Tb) for at least one block included in the program (20) when the difference exceeds a predetermined threshold, wherein the display unit (17) generates display data indicating a relationship between the block, the actual machining time (Tr) of the block, and the cause.The numerical control unit according to claim 1 or claim 2, wherein the machine comprises a plurality of paths, the numerical control unit (1) is configured to control the machine based on a program (20) that controls each of the paths, and the display unit (17) is configured to generate display data indicating a relationship between actual machining times (Tr) of the plurality of paths.

Citation Information

Patent Citations

  • Production control optimization method, involves calculating effective disturbance time for each processing station that is then used in production optimization

    DE10144696A1

  • Process and device for monitoring the feed in numerically controlled systems

    DE69229309T2

  • Working time prediction part and numerical control device with working error prediction part

    JP2012243152A

  • Hybrid CNC control system

    US20020091460A1

  • Method and system for diagnosing operating states of a production facility

    US20100241266A1