Parameter adjustment device, working machine system, and parameter adjustment method
Patent Information
- Application Number
- CN202180097981.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-09
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2041-06-09
AI Technical Summary
与此相伴,用于对这些功能进行调整的参数的种类也增大,存在参数的调整作业变得繁琐这一课题
[0009]本发明所涉及的参数调整装置具有下述效果,即,能够简单地设定能够依赖于加工部位而实现精度不同的加工的参数。
Smart Images

Figure CN117337414B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a parameter adjustment device, a machine tool system, and a parameter adjustment method for adjusting the parameters of a CNC device used to control a machine tool. Background Technology
[0002] CNC devices incorporate multiple functions for performing machining operations at higher speeds and with greater precision using machine tools. Consequently, the variety of parameters required to adjust these functions has increased, leading to more complex parameter adjustment procedures.
[0003] Patent document 1 discloses a technique in which a test procedure is executed by setting multiple parameters, and the parameter setting that determines the best value of the evaluation index based on the processing accuracy and processing time is selected, thereby assisting in parameter adjustment.
[0004] Patent Document 1: Japanese Patent Application Publication No. 2016-130908 Summary of the Invention
[0005] According to the technology described in Patent Document 1, the action can be confirmed using multiple parameters, and appropriate parameter settings can be selected. However, since a single set of parameters is applied across a series of processes, it is impossible to set the optimal parameters locally. That is, when there are parts of the workpiece that require precision and parts that can be processed at high speed without precision, in order to set high-precision parameters only for the parts requiring precision, the action needs to be confirmed using multiple parameters for each part requiring precision, making the operation cumbersome and difficult. For example, when processing a shape that includes planar and curved parts, it is difficult to handle situations where the planar parts are processed at high speed while the curved parts require high precision.
[0006] The present invention was proposed in view of the above circumstances, and its purpose is to provide a parameter adjustment device that can easily set parameters that can achieve different precisions depending on the processing part.
[0007] To address the aforementioned issues and achieve the objective, the parameter adjustment device of the present invention comprises: a sampling unit that acquires CNC instructions output by a CNC device based on a machining program, or measurement values (i.e., feedback signals) from sensors installed in a machine tool performing machining based on CNC instructions, as sampling information, and creates position information that associates the sampling information with the machining program; an interface unit that displays the sampling information, acquires any range of the sampling information (i.e., greater than or equal to one indication range), and indicates changes in the sampling information for each indication range; a position determination unit that determines the corresponding position of each indication range in the machining program (i.e., the corresponding position in the machining program) based on the position information and the indication range; an analysis unit that derives parameters (i.e., adjustment parameters) that satisfy the indication information based on each indication information; and a parameter reflection unit that reflects the adjustment parameters at each corresponding position in the machining program.
[0008] The effects of the invention
[0009] The parameter adjustment device involved in this invention has the following effect: it can easily set parameters that can achieve different processing precisions depending on the processing part. Attached Figure Description
[0010] Figure 1 This is a diagram illustrating an example of the working mechanical system of the parameter adjustment device involved in Implementation Method 1.
[0011] Figure 2 This is a diagram showing an example of the machined shape of a workpiece processed by a machine tool.
[0012] Figure 3 This is a diagram representing an example of data construction based on the sampling information output by the CNC device.
[0013] Figure 4 This is a diagram illustrating a structural example of the parameter adjustment device involved in Embodiment 1.
[0014] Figure 5 This is a flowchart illustrating an example of the operation of a CNC device.
[0015] Figure 6 This is a diagram illustrating an example of a machining program executed by a CNC device.
[0016] Figure 7 It is used for CNC devices based on Figure 6 The diagram illustrates the method of generating NC (Numerical Control) instructions from the shown machining process.
[0017] Figure 8This diagram illustrates a method for generating position information when the sampling unit of a parameter adjustment device uses NC commands as sampling information.
[0018] Figure 9 This diagram illustrates an example of position information generated by the sampling unit of the parameter adjustment device when the sampling information is an NC command.
[0019] Figure 10 This diagram illustrates a method for generating position information when the sampling unit of a parameter adjustment device uses a feedback signal as sampling information.
[0020] Figure 11 This is a diagram illustrating an example of position information generated by the sampling unit of the parameter adjustment device when the sampling information is a feedback signal.
[0021] Figure 12 This is a diagram illustrating an example of a method for displaying sampled information.
[0022] Figure 13 This is a diagram illustrating an example of a method for changing the tolerance setting in a color mapping display of positional errors.
[0023] Figure 14 This is a diagram showing an example of the indication range output by the I / F section to the position determination section.
[0024] Figure 15 This is a diagram showing an example of the instruction information output by the I / F section to the parsing section.
[0025] Figure 16 This is a diagram illustrating an example of how to change the clamping speed setting in a speed waveform display.
[0026] Figure 17 This is a diagram illustrating an example of how to change the setting of permissible acceleration in an acceleration waveform display.
[0027] Figure 18 This diagram illustrates an example of a method for changing the permissible jerk setting in a jerk waveform display.
[0028] Figure 19 It is a diagram that shows the outline of the actions of the position determination unit in deriving the corresponding position of the machining program based on the indicated range and position information.
[0029] Figure 20 This is a flowchart illustrating an example of the action taken by the parsing department to adjust the exported parameters.
[0030] Figure 21This is a block diagram representing the structural elements of the analytical unit used to calculate the positional error generated in each parameter setting value.
[0031] Figure 22 This is a diagram illustrating an example of how the parameter feedback unit reflects the adjustment parameters in the machining program.
[0032] Figure 23 This is a diagram illustrating a structural example of the parameter adjustment device involved in Embodiment 2.
[0033] Figure 24 This is a diagram illustrating a structural example of the parameter adjustment device involved in Embodiment 3.
[0034] Figure 25 This is a diagram of an example of the hardware that implements the parameter adjustment device. Detailed Implementation
[0035] The parameter adjustment device, working machine system, and parameter adjustment method involved in the embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0036] Implementation method 1.
[0037] Figure 1 This diagram illustrates an example of a machine tool system using the parameter adjustment device 1 according to Embodiment 1. The parameter adjustment device 1 according to Embodiment 1, together with the CNC device 2 (which is the parameter to be adjusted) and the machine tool 3 (which is controlled by the CNC device 2), constitute a machine tool system. Furthermore, in... Figure 1 In the structural example shown, the parameter adjustment device 1 and the CNC device 2 are set as separate, independent devices, but they can also be combined into one device. That is, the structure can be set so that the parameter adjustment device 1 is included in the CNC device 2.
[0038] The CNC device 2 maintains a machining program 20 and generates NC instructions for controlling the machine tool 3 based on the machining program 20, and outputs them to the machine tool 3. The machine tool 3 performs actions based on the NC instructions from the CNC device 2.
[0039] Machine tool 3, for example, processes the workpiece into Figure 2 The blade shape shown. Figure 2This diagram illustrates an example of the machined shape of a workpiece processed by machine tool 3. Here, when machine tool 3 performs the processing as described above, there are parts requiring precision during processing and parts that do not require precision but can be processed at high speed. That is, the two ends of the blade shape require high-precision processing, while the flat parts do not require precision. Moreover, in order to achieve the necessary machining accuracy and minimize the processing time, it becomes important to maximize the machining speed when machining the flat parts that do not require precision. In other words, the appropriate parameters for machining the two ends of the blade shape are different from the appropriate parameters for machining the flat parts. As an example, the case of machining a blade shape has been described, but the same applies to machining other shapes. Therefore, the parameter adjustment device 1 provides the user with the function of easily setting parameters that allow for different levels of precision depending on the machining part; specifically, it provides the function of easily adjusting the initial values of the parameters.
[0040] The working machine 3 has the following function: it feeds back the information required by the parameter adjustment device 1 to the CNC device 2 when adjusting the parameters. That is, the working machine 3 has various sensors (without the diagrams of encoders, linear scales, etc.), and outputs sensor information representing the measurement results obtained by the various sensors as feedback signals to the CNC device 2.
[0041] The CNC device 2 generates sampling information based on the same NC commands output to the machine tool 3 or feedback signals from the machine tool 3, and outputs the generated sampling information to the parameter adjustment device 1. Here, the NC commands and feedback signals are the coordinate values of the drive axis of the machine tool 3. Figure 3 This is a diagram illustrating an example of data construction based on the sampling information output by the CNC device 2. For example... Figure 3 As shown, the sampling information consists of the coordinate values of the drive axis of the machine tool 3 and a sequence number indicating which data point a series of coordinate values belongs to. Additionally, NC instructions or information for identifying which signal in the feedback signals can be appended to the sampling information. Furthermore, the CNC device 2 outputs the machining program 20 to the parameter adjustment device 1.
[0042] Next, the structure of parameter adjustment device 1 will be described. Figure 4 This is a diagram illustrating a structural example of the parameter adjustment device 1 according to Embodiment 1. (See diagram below.) Figure 4 As shown, the parameter adjustment device 1 includes a sampling unit 100, an interface unit 200 (hereinafter referred to as an I / F unit 200), a position determination unit 300, an analysis unit 400, and a parameter response unit 500.
[0043] The sampling unit 100 obtains sampling information from the CNC device 2 and outputs it to the I / F unit 200. In addition, the sampling unit 100 creates position information for associating the sampling information with the machining program 20 and outputs it to the I / F unit 200.
[0044] The I / F unit 200 obtains sampling information from the sampling unit 100, sets each coordinate value contained in the sampling information as a display waveform, and displays it to a display device (not shown). Here, the display device can be an external device to the parameter adjustment device 1, or it can be a structure included within the parameter adjustment device 1. The I / F unit 200 may include a display device. Furthermore, the I / F unit 200 functions as an interface for the user to change the display waveform to an arbitrary shape; that is, it functions as an interface for the user to change each coordinate value contained in the sampling information. It obtains the range within which the user has changed the sampling information (i.e., the indication range), and indication information indicating the change in the display waveform represented by each coordinate value within the indication range. Additionally, the I / F unit 200 outputs position information and the indication range to the position determination unit 300, and outputs the indication information to the analysis unit 400.
[0045] The position determination unit 300 obtains position information and indication range from the I / F unit 200. In addition, based on the position information and indication range, the position determination unit 300 determines the program block number of each program block included in the machining program 20 (here, a line of instructions described in the machining program 20 will be called a program block), that is, the program block number of each program block included in the indication range of the program block number, and outputs the determined program block number as the corresponding position of the machining program to the analysis unit 400 and the parameter reflection unit 500.
[0046] The analysis unit 400 obtains instruction information from the I / F unit 200, obtains the corresponding position of the machining program from the position determination unit 300, and exports the parameters that satisfy the instruction information as adjustment parameters to the parameter reflection unit 500. Here, the parameters that satisfy the instruction information, i.e., the adjustment parameters, represent the adjustment result of the machining program 20 for the portion shown at the corresponding position of the machining program. That is, the adjustment parameters are the adjustment result of the corresponding position (program block) of the machining program within the program block constituting the machining program 20.
[0047] The parameter feedback unit 500 obtains the corresponding position of the machining program from the position determination unit 300 and the adjustment parameters from the analysis unit 400. Furthermore, the parameter feedback unit 500 determines the corresponding program block of the machining program 20 based on the corresponding position of the machining program, and reflects the adjustment parameters for the determined corresponding program block. That is, the parameter feedback unit 500 changes the parameters of the corresponding program block of the machining program 20 to the adjustment parameters.
[0048] The detailed processing of each structural element of parameter adjustment device 1 will then be explained.
[0049] The sampling unit 100 generates position information for associating the sampling information with the processing program 20.
[0050] Before explaining the method for generating position information by the sampling unit 100, the method for generating NC commands and obtaining feedback signals in the numerical control device 2 will be explained here.
[0051] Figure 5 This is a flowchart illustrating an example of the operation of the CNC device 2. Figure 6 This is a diagram illustrating an example of a machining program 20 executed by a CNC device 2. Figure 6 For example, in machining program 20, there is a case where an arc command, namely the G2 command, is described. Figure 6 In the machining program 20 shown, the N instruction represents the program block number, the G2 instruction represents the arc instruction, the X and Y instructions represent the coordinates of the instruction point, the I and J instructions represent the coordinates of the arc center, and the F instruction represents the feed rate. Additionally, Figure 7 It is used for CNC device 2 based on Figure 6 The diagram illustrates the method for generating NC instructions using the machining procedure 20 shown. Figure 7 In the middle, the dotted line indicates that it is composed of... Figure 6 The path specified in machining program 20, i.e., the machining program path, is the path connecting the starting point (the end point of the previous program block) to the ending point. Figure 7 In the diagram, solid lines represent NC commands generated by the CNC device 2, which are obtained by dividing the machining program path into movements within each calculation cycle of the CNC device 2. One calculation cycle of the CNC device 2 is the cycle in which the CNC device 2 generates NC commands. Furthermore, for ease of recording, the dashed and solid lines are staggered, but in reality, they form paths on the same arc. Dashed lines represent feedback signals. Feedback signals indicate that according to... Figure 6 The machining path when the machining process 20 is performed by the working machine 3.
[0052] The CNC device 2 first reads the machining program 20 for each program block (step S101). Furthermore, as described above, one line of the machining program 20 corresponds to one program block. The CNC device 2 calculates the endpoint coordinates of each program block based on the instruction point coordinates recorded in each of the subsequently read program blocks (step S102).
[0053] Next, the CNC device 2 calculates the feed rate (step S103). The feed rate is specified by the F command of the machining program 20. For example, F3000 means machining at 3000 mm / min. Next, the CNC device 2 calculates the NC command for each calculation cycle (step S104). For example, with a feed rate of 3000 mm / min (50 mm / s) and a calculation cycle of 1 ms, the length of the NC command becomes 0.05 mm, and the NC command becomes as follows: Figure 7 The solid lines shown represent instructions that divide the machining process path.
[0054] The CNC device 2 outputs the NC commands calculated in step S104 to the machine tool 3 (step S105). The machine tool 3 performs actions based on the NC commands input from the CNC device 2.
[0055] The CNC device 2 then acquires a feedback signal indicating the movement of the machine tool 3 (step S106). Furthermore, the feedback signal may be acquired, for example, from an encoder installed in the motor that moves the machine tool 3, or from a linear scale installed in the machine tool 3. Since the machine tool 3 cannot perfectly follow NC commands, the feedback signal becomes a delayed response relative to the NC commands.
[0056] Next, the method for generating position information via the sampling unit 100 of the parameter adjustment device 1 will be described. Position information is used to associate the sampling information with the processing program 20.
[0057] Figure 8 This diagram illustrates a method for generating position information when the sampling unit 100 of the parameter adjustment device 1 uses NC commands as sampling information. Figure 9 This diagram illustrates an example of position information generated by the sampling unit 100 of the parameter adjustment device 1 when the sampling information is an NC command. It shows an example of position information generated using an NC command as sampling information.
[0058] NC instructions are obtained by dividing the machining program 20 into segments based on the cycle of instruction calculation by the CNC device 2. Therefore, the position information can be set as information that associates the sequence number of the NC instruction with the program block number used to generate the NC instruction. That is, as... Figure 8 As shown, when fdt(1), fdt(2), fdt(3), fdt(4), and fdt(5) are generated as NC instructions based on the N1 program block, and fdt(6), fdt(7), fdt(8), fdt(9), and fdt(10) are generated as NC instructions based on the N2 program block, the position information is as follows: Figure 9As shown, this information associates the sequence numbers 1, 2, 3, 4, and 5 of fdt(1), fdt(2), fdt(3), fdt(4), and fdt(5) with the program block number of program block N1, and associates the sequence numbers 6, 7, 8, 9, and 10 of fdt(6), fdt(7), fdt(8), fdt(9), and fdt(10) with the program block number of program block N2. Here, fdt(N) is the Nth (N is a natural number) NC instruction, and the sequence number is a series of identification numbers used to identify NC instructions. Furthermore, when there are NC instructions generated by overlapping multiple program blocks, it is possible to associate all overlapping program block numbers with their sequence numbers. For example, in Figure 8 In the case where fdt(5) is an NC instruction that overlaps program blocks N1 and N2, both program blocks N1 and N2 are associated with the sequence number 5 of fdt(5). Based on this position information, the program block of the machining program 20 corresponding to the generation source of fdt(N) can be identified.
[0059] Figure 10 This diagram illustrates a method for generating position information when the sampling unit 100 of the parameter adjustment device 1 uses a feedback signal as sampling information. Figure 11 This is a diagram illustrating an example of position information generated by the sampling unit 100 of the parameter adjustment device 1 when the sampling information is a feedback signal. It shows an example of position information generated using a feedback signal as sampling information.
[0060] When using feedback signals as sampling information, the position information can be set to the sequence number of the feedback signal and the position information derived from the feedback signal ( Figure 10 Starting from the endpoint of the dashed line in the diagram, a perpendicular line is drawn in a direction perpendicular to the feedback path. The information associated with the program block that intersects this perpendicular line by the shortest distance is... That is, in... Figure 10In the diagram, the perpendicular lines drawn from feedback signals fb(1), fb(2), fb(3), and fb(4) intersect with the N1 program block, and the perpendicular lines drawn from feedback signals fb(5), fb(6), fb(7), fb(8), fb(9), and fb(10) intersect with the N2 program block. Therefore, the position information becomes the information that associates the sequence numbers of fb(1), fb(2), fb(3), and fb(4), i.e., 1, 2, 3, and 4, with the program block number of the N1 program block, and associates the sequence numbers of fb(5), fb(6), fb(7), fb(8), fb(9), and fb(10), i.e., 5, 6, 7, 8, 9, and 10, with the program block number of the N2 program block. Furthermore, in the feedback signal where the program block where the perpendicular lines intersect changes, the program block number associated with the previous feedback signal can also be associated with the program block number of the program block where the perpendicular lines intersect. That is, in Figure 10 In the example, the program block that intersects with the vertical line from the feedback signal changes from program block N1 to program block N2 in fb(5). Therefore, based on the N2 program block that intersects with the vertical line from fb(5), the N1 program block that is associated with the previous feedback signal, i.e., fb(4), can also be associated with fb(5) at the same time.
[0061] The I / F unit 200 displays the sampling information obtained from the sampling unit 100 to the display device. Figure 12 This diagram illustrates an example of a method for displaying sampled information. For example, the I / F section 200... Figure 12 As shown, a display screen 601 visually representing the sampling information is displayed on the display device 600. Specifically, the I / F unit 200 generates a display screen 601 containing position error, velocity waveform, acceleration waveform, and jerk waveform based on the coordinate values included in the sampling information, and displays it on the display device 600. Here, the position error is a color mapping that represents the magnitude of the error on the 3D-represented machining shape. Furthermore, for convenience, in Figure 12 In this display, the magnitude of the error is represented by varying shades. Furthermore, the velocity waveform, acceleration waveform, and jerk waveform are timing waveforms. Here, the position error can be calculated based on the difference between the shape represented by the machining program 20 and the shape represented by the sampling information. That is, by drawing a perpendicular line in a direction perpendicular to the path connecting the coordinate values contained in the sampling information, the distance up to the intersection with the line segment connecting the command points of the machining program 20 can be defined as the position error. Moreover, the I / F unit 200 does not need to display the position error, velocity waveform, acceleration waveform, and jerk waveform simultaneously on the display screen 601. The I / F unit 200 only needs to display at least one of the position error, velocity waveform, acceleration waveform, and jerk waveform on the display screen 601.
[0062] Furthermore, the I / F unit 200 functions as an interface that allows the user to change the sampled information displayed on the display device 600, namely position error, velocity waveform, acceleration waveform, and jerk waveform, to arbitrary values. An example of a method for the user to change the sampled information will be described below.
[0063] Figure 13 This diagram illustrates an example of a method for changing the tolerance setting in a color mapping display of positional errors. For example... Figure 13 As shown, in the color mapping display of position error, the I / F unit 200 receives an operation from the user to specify the area for which the tolerance setting is to be changed using a frame of any shape. Furthermore, the I / F unit 200 can be connected to input devices such as a mouse or keyboard, allowing the user to specify the area for which the tolerance setting is to be changed using the input device connected to the I / F unit 200. If the I / F unit 200 receives a specification operation for a location for which the tolerance setting is to be changed, it extracts the sampling information contained in the specified area and outputs the sequence number of the extracted sampling information as an indication range to the position determination unit 300.
[0064] Figure 14 This is a diagram showing an example of the indication range output by the I / F unit 200 to the position determination unit 300. Figure 14 The indicated range is the same as in Figure 13 The sequence numbers of the sampling information within the range specified by the arbitrary-shaped box are M(1)~M(1)+k(1), M(2)~M(2)+k(2), ..., M(n)~M(n)+k(n). Here, M(n) and k(n) are natural numbers, and n is the suffix representing the data number.
[0065] Furthermore, the user can indicate the tolerance error within the specified range. That is, the I / F unit 200 receives the user's instruction to indicate the tolerance error within the specified range. The I / F unit 200 outputs the indicated tolerance error as instruction information to the parsing unit 400. Figure 15 This is a diagram illustrating an example of the instruction information output by the I / F unit 200 to the parsing unit 400. (Example) Figure 15 As shown, the indication information includes, for example, the category of the value indicated by the user (hereafter referred to as the indication category) and its set value. Figure 15 The indicated information is an example of an indication category with tolerance and a setting value of 5μm.
[0066] Figure 16 This diagram illustrates an example of how to change the clamping speed setting in a speed waveform display. (Example:) Figure 16As shown, the I / F unit 200 receives an operation from the user specifying the area in the speed waveform display where the clamping speed setting will be changed using a frame of arbitrary shape. Similar to the case of changing the tolerance setting, the user specifies the frame using an input device connected to the I / F unit 200. If the I / F unit 200 receives a specification operation for changing the clamping speed setting, it extracts the sampling information contained in the specified area and outputs the sequence number of the extracted sampling information as an indication range to the position determination unit 300. Furthermore, the user can indicate the clamping speed within the specified range. That is, the I / F unit 200 receives an operation from the user indicating the clamping speed within the specified range. The I / F unit 200 outputs the indicated clamping speed as indication information to the analysis unit 400. Figure 16 An example is shown when the clamping speed is changed to 100 mm / min.
[0067] Figure 17 This diagram illustrates an example of how to change the permissible acceleration setting in an acceleration waveform display. (Example...) Figure 17 As shown, in the acceleration waveform display, the I / F unit 200 receives an operation from the user to specify the area where the allowable acceleration setting will be changed using a frame of arbitrary shape. Similar to the case of changing the allowable error setting, the user specifies the frame using an input device connected to the I / F unit 200. If the I / F unit 200 receives a specification operation to change the allowable acceleration setting, it extracts the sampling information contained in the specified area and outputs the sequence number of the extracted sampling information as an indication range to the position determination unit 300. Furthermore, the user can indicate the allowable acceleration within the specified range. That is, the I / F unit 200 receives an operation from the user to indicate the allowable acceleration within the specified range. The I / F unit 200 outputs the indicated allowable acceleration as indication information to the analysis unit 400. Figure 17 An example is shown where the permissible acceleration is changed to 0.05G.
[0068] Figure 18 This diagram illustrates an example of a method for changing the permissible jerk setting in the jerk waveform display. (See diagram for example.) Figure 18As shown, in the accelerometer waveform display, the I / F unit 200 receives an operation from the user to specify the area where the allowable accelerometer setting will be changed using a frame of arbitrary shape. Similar to the case of changing the tolerance setting, the user specifies the frame using an input device connected to the I / F unit 200. If the I / F unit 200 receives a specification operation for changing the allowable accelerometer setting, it extracts the sampling information contained in the specified area and outputs the sequence number of the extracted sampling information as an indication range to the position determination unit 300. Furthermore, the user can indicate the allowable accelerometer within the specified range. That is, the I / F unit 200 receives an operation from the user to indicate the allowable accelerometer within the specified range. The I / F unit 200 outputs the indicated allowable accelerometer as indication information to the analysis unit 400. Figure 18 This shows the permissible jerk being changed to 10 m / s². 3 Examples of such cases.
[0069] In addition, Figure 13 , Figure 16 , Figure 17 and Figure 18 Each unit only records the indication range of one part, but the I / F unit 200 can accept the specification of multiple parts. When there are multiple indication ranges, the I / F unit 200 outputs each indication range to the position determination unit 300 and outputs the indication information in each indication range to the parsing unit 400.
[0070] The position determination unit 300 exports the program block number of the machining program 20 that corresponds to the instruction range indicated by the user via the I / F unit 200, and outputs the exported program block number as the corresponding position of the machining program to the analysis unit 400 and the parameter feedback unit 500.
[0071] Figure 19 This is a diagram summarizing the actions of the position determination unit 300 in deriving the corresponding position of the machining program based on the indicated range and position information. (Example) Figure 19 As shown, the position determination unit 300 retrieves position information with a serial number that is the same as the serial number of the sampling information stored in the indication range, and exports the program block number associated with the serial number of the retrieved position information, and outputs it to the analysis unit 400 and the parameter reflection unit 500 as the corresponding position of the machining program.
[0072] The analysis unit 400 derives the adjustment parameters based on the instruction information input from the I / F unit 200. Figure 20 This is a flowchart illustrating an example of the action taken by the parsing unit 400 to adjust parameters. Figure 20 The flowchart shows that when the indication information is within tolerance, the parsing unit 400 will adjust the order of parameter derivation.
[0073] The analysis unit 400 first sets the type, setting range, and scale of the parameters to be adjusted (step S201). The type, setting range, and scale of the parameters to be adjusted can be preset for each indication category of the indication information, or they can be set by the user using an input device not shown. Alternatively, the analysis unit 400 can determine the setting range and scale through machine learning. For example, the analysis unit 400 may have a state quantity observation unit that acquires state quantities that include at least the setting range, scale, setting value, and position error. Furthermore, it may have a learning unit that learns the relationship between the setting range, scale, setting value, and position error based on the state quantities. Additionally, the analysis unit 400 may have a trained learner that has models, data, etc., created by performing the learning through the learning unit described above. The case where the indication information is an allowable error is shown, but the same applies when the indication information is clamping speed, allowable acceleration, or allowable jerk.
[0074] Next, the analysis unit 400 updates the parameter setting value according to the setting range and scale set in step S201 (step S202). Specifically, when the minimum value of the setting range is set to α1, the maximum value is set to α2, and the scale is set to β, the parameter setting value is represented by the following formula (1). In formula (1), L is the number of parameter updates, the minimum value of L is 0, and the maximum value of L is the maximum value of the range in which the value of formula (1) does not exceed α2. Furthermore, when the value of formula (1) exceeds α2, the parameter setting value is set to α2.
[0075] Parameter setting value = α1 + β × L…(1)
[0076] Furthermore, in equation (1), the parameter setting value is updated sequentially from the minimum value to the maximum value, but conversely, it can also be updated sequentially from the maximum value to the minimum value.
[0077] Next, the analysis unit 400 calculates the position error generated in the parameter setting value updated in step S202 (step S203). Figure 21 This is a block diagram showing the structural elements of the analysis unit 400 used to calculate the positional error generated in each parameter setting value. That is, the analysis unit 400 includes a CNC device simulator 401 and a mechanical model 402.
[0078] The CNC device simulator 401 is a structural element used to simulate the CNC device 2, and can generate instructions equivalent to the NC instructions generated by the CNC device 2 within the analysis unit 400.
[0079] Mechanical model 402 is a structural element used to simulate the movements of the machine tool 3. By inputting NC commands into mechanical model 402, the response of the machine can be simulated. Examples of mechanical model 402 include a 2-inertia model and a 3-inertia model. The 2-inertia model approximates the inertia of the motor driving the machine tool 3 and the driven body driven by the motor through a 2-inertia vibration system. The 3-inertia model approximates the inertia of the motor, the driven body, and the lead screw of the machine tool through a 3-inertia vibration system.
[0080] In step S203, the analysis unit 400 sets the parameter settings updated in step S202 to the CNC device simulator 401, generating instructions equivalent to NC instructions. The analysis unit 400 further inputs the generated instructions to the mechanical model 402 to obtain the simulation results of the mechanical response, and calculates the position error of the simulation results of the mechanical response. Specifically, the analysis unit 400 draws a perpendicular line in a direction perpendicular to the path connecting the simulation results of the mechanical response, calculates the distance until it intersects the line segment connecting the instruction points of the machining program 20, and sets the calculated distance as the position error.
[0081] In addition, Figure 21 The text describes a CNC simulator 401 that simulates the CNC device 2 and generates instructions equivalent to NC instructions. However, it is also possible to simply simulate the CNC device 2 by replacing the CNC simulator 401 with a CNC simulator that generates instructions that approximate NC instructions and installing it in the analysis unit 400.
[0082] Next, the analysis unit 400 records the position error calculated in step S203 (step S204). Specifically, the analysis unit 400 records the calculated position error in association with the parameter setting value.
[0083] Next, the analysis unit 400 confirms whether the measurement is complete (step S205). If the current parameter setting value, i.e., the parameter setting value updated in step S202, reaches the maximum value of the setting range set in step S201, the analysis unit 400 determines that the measurement is complete. If the current parameter setting value does not reach the maximum value of the setting range (step S205: No), the analysis unit 400 returns to step S202 to update the parameter setting value, and executes steps S203 and S204 again. If the current parameter setting value reaches the maximum value of the setting range (step S205: Yes), the analysis unit 400 extracts the parameter setting value that is below the allowable error indicated by the indication information and is closest to the allowable error from the position errors recorded in step S204 (step S206). The analysis unit 400 outputs the extracted parameter setting value and the type of parameter as adjustment parameters to the parameter feedback unit 500.
[0084] The above explains the order of deriving the adjustment parameters when the indication information is an allowable error, i.e., when the allowable error is indicated as the indication information. When the indication information is clamping speed, the analysis unit 400 outputs the command speed F as the adjustment parameter. In this case, the value of the command speed F as the adjustment parameter can be the same as the clamping speed indicated by the information.
[0085] Furthermore, when the instruction information indicates permissible acceleration, the analysis unit 400 outputs an adjustment parameter that specifies a speed F at which the acceleration generated when the machining program 20 at the corresponding position in the machining program is less than or equal to the permissible acceleration specified in the instruction information. Specifically, when the shape represented by the machining program 20 is an angular shape, the adjustment parameter is output as the speed F at which the acceleration generated at the corner is less than or equal to the permissible acceleration.
[0086] Furthermore, when the indication information is for permissible jerk, the analysis unit 400 outputs an adjustment parameter that the jerk generated when the machining program 20 at the corresponding position in the machining program is operated is less than or equal to the permissible jerk specified in the indication information. Specifically, when the shape represented by the machining program 20 is an angular shape, the acceleration generated at the corner is calculated, and the adjustment parameter is output that the jerk generated when a moving average filter is applied to the acceleration generated at the corner is less than or equal to the permissible acceleration.
[0087] The parameter reflection unit 500 applies the adjustment parameters derived by the analysis unit 400 to the corresponding position of the machining program 20 determined by the position determination unit 300.
[0088] Figure 22 This diagram illustrates an example of how the parameter feedback unit 500 reflects adjustment parameters to the machining program 20. (Example) Figure 22 As shown, the parameter response unit 500 targets the program block of machining program 20 corresponding to the program block number stored at the corresponding position in the machining program, and adds a change instruction for the type and setting value of the adjustment parameters stored in the adjustment parameters. Figure 22 In this context, P1 represents the type of parameter, and p represents the parameter setting value. Additionally, G10 is the command used to modify parameters.
[0089] As described above, the parameter adjustment device 1 according to Embodiment 1 includes: a sampling unit 100, which acquires NC commands output by the CNC device 2 to the machine tool 3, or feedback signals indicating the machining path when the machine tool 3 performs machining, as sampling information, and generates position information for associating the sampling information and the machining program 20 based on the sampling information, the machining program 20, and the cycle of the NC commands generated by the CNC device 2; an I / F unit 200, which displays the sampling information on a display device and accepts changes to the sampling information, and generates an indication range indicating the changed part of the sampling information and indication information indicating the conditions that the sampling information in the indication range should satisfy; a position determination unit 300, which determines the corresponding position of the machining program indicating the part to be changed in each program block included in the machining program 20 based on the position information and the indication range; an analysis unit 400, which determines the parameter value included in the corresponding position of the machining program based on the indication information and the machining program 20 and sets it as an adjustment parameter; and a parameter reflection unit 500, which reflects the adjustment parameter to the program block indicated by the corresponding position of the machining program in the program block included in the machining program 20. According to the parameter adjustment device 1 with the structure described above, the user can obtain settings for physical quantities such as position error, speed, acceleration, and jerk that directly affect the machining process, and can also obtain parameter settings that indicate only the parts where changes are desired to be applied to achieve the desired machining. That is, it is possible to easily set parameters that can achieve different machining accuracies depending on the machining part.
[0090] Implementation method 2.
[0091] Figure 23 This diagram illustrates a structural example of the parameter adjustment device 1a according to Embodiment 2. In this embodiment, the machining program 20 is stored in the parameter adjustment device 1a. The parameter adjustment device 1a, in addition to the sampling unit 100, I / F unit 200, position determination unit 300, analysis unit 400, and parameter response unit 500 constituting the parameter adjustment device 1 according to Embodiment 1, also includes a numerical control device simulator 411 and a mechanical model 412. Furthermore, descriptions of common structural elements labeled with the same reference numerals as those in the parameter adjustment device 1 according to Embodiment 1 are omitted.
[0092] The CNC device simulator 411 simulates the CNC device 2, which is the object of parameter adjustment, and generates NC instructions based on the machining program 20, which are then output to the machine model 412 and the sampling unit 100. The machine model 412 simulates the operation of the working machine 3 controlled by the CNC device 2, generates feedback signals as described in Embodiment 1, and outputs them to the sampling unit 100. Furthermore, the CNC device simulator 411 and the machine model 412 are the same as the CNC device simulator 401 and the machine model 402 that constitute the analysis unit 400 as described in Embodiment 1.
[0093] The processing functions of the sampling unit 100, I / F unit 200, position determination unit 300, analysis unit 400, and parameter response unit 500 of the parameter adjustment device 1a are the same as those in Embodiment 1, and therefore their descriptions are omitted. Furthermore, the processing functions of the CNC device simulator 411 and the mechanical model 412 are also the same as those described in the description of the analysis unit 400 in Embodiment 1, and therefore their descriptions are omitted.
[0094] As described above, the parameter adjustment device 1a involved in this embodiment has a CNC device simulator 411 and a mechanical model 412. Therefore, without using the CNC device 2 and the working machine 3, parameter adjustment can be performed in a virtual environment.
[0095] Implementation method 3.
[0096] Figure 24 This is a diagram illustrating a structural example of the parameter adjustment device 1b according to Embodiment 3. The parameter adjustment device 1b according to this embodiment replaces the position determination unit 300b constituting the parameter adjustment device 1 according to Embodiment 1, and also has a clustering unit 310.
[0097] The processing of the sampling unit 100, I / F unit 200, analysis unit 400 and parameter response unit 500 of the parameter adjustment device 1b is the same as that in Embodiment 1, so the description is omitted.
[0098] The clustering unit 310 extracts feature quantities from each shape represented by the processing procedure 20, clusters each shape into similar shapes based on the feature quantities, and outputs the clustered similar shape groups as shape classifications to the position determination unit 300b. Here, the feature quantities can be any normalized feature quantity of the centroid coordinates, principal components, principal component vectors, and path length of the path of the processing procedure 20. Alternatively, it can be multidimensional information containing at least two or more of the centroid coordinates, principal components, principal component vectors, and path length, each normalized. The clustering unit 310 clusters the processing procedure 20 into similar shape groups based on the feature quantities. The k-means method or DBSCAN (Density-based spatial clustering of applications with noise) can be used during clustering. The clustering unit 310 outputs the clustered similar shape groups as shape classifications to the position determination unit 300b.
[0099] Similar to the position determination unit 300 of the parameter adjustment device 1 according to Embodiment 1, the position determination unit 300b obtains position information and indication range from the I / F unit 200, and exports the program block number of the machining program 20 included in the indication range, i.e., the corresponding position of the machining program. In addition, the position determination unit 300b obtains shape classification from the clustering unit 310, adds the program block number of the machining program 20 belonging to the same similar shape group as the corresponding position of the machining program to the corresponding position of the machining program to the corresponding position of the machining program and outputs it to the parameter reflection unit 500.
[0100] As described above, in the parameter adjustment device 1b of this embodiment, the clustering unit 310 clusters the machining program 20 into similar shape groups, and the position determination unit 300b adds the program block number of the machining program 20 belonging to the same similar shape group as the instruction range indicated by the user at the corresponding position of the machining program derived based on the position information and instruction range obtained from the I / F unit 200, and outputs it to the parsing unit 400 and the parameter reflection unit 500. Therefore, the parameter reflection unit 500 can reflect the adjustment parameters for the program block number of the machining program 20 corresponding to the instruction range stored at the corresponding position of the machining program and the program block number of the machining program 20 belonging to the similar shape group. Therefore, the user only needs to instruct the instruction range and instruction information for one part of the shape belonging to the similar shape group to adjust the parameters by applying the instruction range and instruction information to the entire similar shape group, thus achieving the desired machining within the entire similar shape group.
[0101] Next, the hardware implementing the parameter adjustment devices 1, 1a, and 1b described in each embodiment will be described. Since the hardware implementing the parameter adjustment devices 1, 1a, and 1b described in each embodiment is the same, the hardware implementing the parameter adjustment device 1 will be described as an example.
[0102] Figure 25 This is a diagram illustrating an example of the hardware that implements the parameter adjustment device 1 according to Embodiment 1.
[0103] The parameter adjustment device 1 can be implemented by a processor 91, a memory 92, and an interface circuit 93. Examples of the processor 91 are CPUs (also known as Central Processing Units, processing units, arithmetic units, microprocessors, microcomputers, DSPs (Digital Signal Processors)) or system LSIs (Large Scale Integration). Examples of the memory 92 are non-volatile or volatile semiconductor memories such as RAM (Random Access Memory), ROM (Read Only Memory), and flash memory, as well as disks.
[0104] Furthermore, the sampling unit 100, I / F unit 200, position determination unit 300, analysis unit 400, and parameter response unit 500 of the parameter adjustment device 1 are implemented by the processor 91 executing a program for operating as these units. The program for operating as the sampling unit 100, I / F unit 200, position determination unit 300, analysis unit 400, and parameter response unit 500 is pre-stored in the memory 92. The processor 91 reads this program from the memory 92 and executes it, thereby operating the sampling unit 100, I / F unit 200, position determination unit 300, analysis unit 400, and parameter response unit 500. In other words, this program can be described as instructing the computer to execute the sampling unit 100, I / F unit 200, position determination unit 300, analysis unit 400, and parameter response unit 500 in a specific order or method.
[0105] The memory 92 is used to store the machining program 20, sampling information, etc. Additionally, the memory 92 is also used as temporary storage when the processor 91 performs various processes. The interface circuit 93 is an interface for connecting the CNC device 2, display device, input device, etc.
[0106] The hardware for implementing parameter adjustment device 1 has been described, but as mentioned above, parameter adjustment devices 1a and 1b can also be implemented using the same hardware. Furthermore, Figure 25The processor 91, memory 92, and interface circuit 93 shown can also be hardware that constitutes an electronic computer. That is, the parameter adjustment devices 1, 1a, and 1b can be implemented by an electronic computer and a program executed by the electronic computer.
[0107] The structure shown in the above embodiments is an example, and it can also be combined with other known technologies, and the embodiments can be combined with each other. Without departing from the spirit of the subject, some parts of the structure can be omitted or changed.
[0108] Explanation of the label
[0109] 1. Parameter adjustment device (1a, 1b), 2. CNC device, 3. Working machine, 20. Machining program, 100. Sampling unit, 200. I / F unit, 300, 300b. Position determination unit, 310. Clustering unit, 400. Analysis unit, 401, 411. CNC device simulator, 402, 412. Mechanical model, 500. Parameter feedback unit, 600. Display device, 601. Display screen.
Claims
1. A parameter adjustment device, characterized in that, have: The sampling unit acquires the numerical control instructions output by the numerical control device based on the machining program, or the measurement values, i.e., feedback signals, of the sensors installed in the working machine that performs machining based on the numerical control instructions, as sampling information, and creates position information that associates the sampling information with the machining program. The interface unit displays the sampling information, obtains any range of the sampling information (i.e., greater than or equal to one indication range), and indicates the changes in the sampling information for each of the indication ranges. The position determination unit determines the corresponding position of each of the indication ranges in the machining program, i.e., the corresponding position of the machining program, based on the position information and the indication range; The analysis unit, based on each of the indicated information, derives the parameters that satisfy the indicated information, i.e., the adjustment parameters; as well as The parameter feedback unit reflects the adjustment parameters at the corresponding positions of each of the aforementioned processing procedures.
2. The parameter adjustment device according to claim 1, characterized in that, have: A CNC device simulator, which simulates the CNC device; and A mechanical model that simulates the actions of the working machinery. The CNC device simulator generates the CNC instructions based on the machining program. The mechanical model generates the feedback signal based on the numerical control instructions generated by the numerical control device simulator. The sampling unit obtains the numerical control commands generated by the numerical control device simulator or the feedback signals generated by the mechanical model as the sampling information.
3. The parameter adjustment device according to claim 1 or 2, characterized in that, The interface displays the sampling information visually and accepts the specification of the indication range and the input of the indication information.
4. The parameter adjustment device according to claim 3, characterized in that, The interface displays the difference between the shape represented by the machining program and the shape represented by the sampling information, i.e., the position error, and accepts the input of the allowable error for the position error as the indication information.
5. The parameter adjustment device according to claim 3, characterized in that, The interface displays the speed waveform shown by the sampling information and accepts the clamping speed input for the speed waveform as the indication information.
6. The parameter adjustment device according to claim 3, characterized in that, The interface displays the acceleration waveform shown by the sampling information and accepts the permissible acceleration for the acceleration waveform as the indication information.
7. The parameter adjustment device according to claim 3, characterized in that, The interface displays the jerk waveform shown by the sampling information and accepts input of the permissible jerk for the jerk waveform as the indication information.
8. The parameter adjustment device according to any one of claims 1 to 7, characterized in that, It has a clustering unit that extracts feature values from the processing procedure and clusters the processing procedure into similar shapes based on these feature values. The position determination unit determines the corresponding position of each of the indication ranges in the processing program based on the position information and the indication range, and determines the corresponding position of clustered to the same shape as the indication range based on the similar shape, and sets the determined corresponding position as the corresponding position of the processing program.
9. The parameter adjustment device according to any one of claims 1 to 8, characterized in that, The analysis unit modifies the parameter settings of the program blocks included in the indication range among the program blocks constituting the machining program, and repeatedly executes the simulation of the CNC device and the simulation of the operation of the machine tool to export the adjustment parameters.
10. The parameter adjustment device according to any one of claims 1 to 9, characterized in that, The parameter reflecting unit reflects the adjustment parameters to the machining program based on the corresponding position of the machining program.
11. A machine tool system, characterized in that, have: Numerical control devices generate numerical control instructions based on machining programs; Working machinery that performs machining based on the numerical control instructions; and A parameter adjustment device, which adjusts the parameters of the CNC device. The parameter adjustment device has: The sampling unit acquires the numerical control command or the measurement value, i.e., the feedback signal, of the sensor installed on the working machine as sampling information, and creates position information that associates the sampling information with the machining program; The interface unit displays the sampling information, obtains any range of the sampling information (i.e., greater than or equal to one indication range), and indicates the changes in the sampling information for each of the indication ranges. The position determination unit determines the corresponding position of each of the indication ranges in the machining program, i.e., the corresponding position of the machining program, based on the position information and the indication range; The analysis unit, based on each of the indicated information, derives the parameters that satisfy the indicated information, i.e., the adjustment parameters; as well as The parameter feedback unit reflects the adjustment parameters at the corresponding positions of each of the aforementioned processing procedures.
12. A parameter adjustment method, characterized in that, Includes the following steps: The numerical control instructions output by the numerical control device based on the machining program or the measurement values of the sensors installed in the working machine that performs machining based on the numerical control instructions are obtained as sampling information, and position information that associates the sampling information with the machining program is created. The sampling information is displayed to obtain any range of the sampling information, i.e., greater than or equal to one indication range, and indication information indicating the changes in the sampling information for each of the indication ranges; Based on the location information and the indication range, the corresponding positions of each of the indication ranges in the processing program, i.e., the corresponding positions of the processing program, are determined; Based on each of the aforementioned indications, the parameters that satisfy the indications, i.e., the adjustment parameters, are derived; and The adjustment parameters are reflected at the corresponding positions of each of the aforementioned processing procedures.
Citation Information
Patent Citations
Parameter automatic adjustment apparatus for adjusting parameters in response to processing condition
JP2016130908A
Abnormality detection parameter adjustment display device
CN110058983A
Control device and its control method
JP2005316937A
NC program display device
JP2011013997A