A milling cutter processing rate optimization method based on industrial data processing
Patent Information
- Application Number
- CN202611048720.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-15
- Publication Date
- 2026-10-16
AI Technical Summary
[0005]因此,本发明提供了一种基于工业数据处理的铣刀加工速率优化方法解决铣削进给速率实际生效位置与刀具真实接触边界难以准确对应的问题
[0016] The beneficial effects of this invention are as follows: Based on the rate command activation table and the tool contact boundary envelope, the actual speed change position group composed of four types of speed state positions is determined. The current writing position is inferred by using the historical writing position under the same working condition and the speed state position offset. An executable virtual boundary is defined. When there is no matching record, the original feed configuration is maintained, so that the feed rate fits the real contact range and reduces the advance and lag deviations.
Smart Images

Figure CN122923977A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of CNC machining technology, and in particular to a method for optimizing milling cutter machining rate based on industrial data processing. Background Technology
[0002] CNC milling is evolving from fixed feed control to process optimization based on industrial data fusion. Existing research typically combines tool path, workpiece contour, spindle and feed axis operation information to perform online analysis of cutting state, program segment execution process and feed rate, and supports rate adjustment and stable control of the machining process through historical machining records.
[0003] Existing methods mostly use theoretical entry and exit positions and program segment boundaries as the basis for rate adjustment, failing to simultaneously characterize the actual tool contact boundary and the positional migration of CNC commands from writing to actual effectiveness. When CNC look-ahead processing, axis response hysteresis, and changes in contact state work together, the feed rate may take effect earlier or later than the target cutting position, resulting in a misalignment between the rate action range and the actual cutting range. Summary of the Invention
[0004] In view of the aforementioned existing problems, the present invention is proposed.
[0005] Therefore, this invention provides a milling cutter machining rate optimization method based on industrial data processing to solve the problem that the actual effective position of the milling feed rate is difficult to accurately correspond to the actual contact boundary of the tool.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: This invention provides a milling cutter machining rate optimization method based on industrial data processing, comprising: acquiring milling machining configuration and collecting milling process operation information; mapping the milling machining configuration to the milling process operation information according to machining position and execution sequence to form a milling industrial benchmark record; extracting tool trajectory and workpiece contour from the milling industrial benchmark record, determining the entry and exit positions, acquiring the cutting response start position and no-load recovery position, constructing a tool contact boundary envelope with the earliest start position of the execution sequence as the envelope start point and the position where the last cutting response completes no-load recovery as the envelope end point; and, based on the tool contact boundary envelope, filtering historical rate execution records with the same machining configuration and contact state, extracting the machining rate command writing position and the actual speed starting change position, The correspondence between the target speed arrival position, the target speed duration range, and the speed recovery position is established to determine the effective program segment, the holding program segment, the continuation program segment, and the recovery program segment, and to create a rate command activation table. Based on the rate command activation table and the tool contact boundary envelope, the rate action position is determined. The current write position is deduced by reverse calculation according to the correspondence between the write position and the speed change position. When the rate action position is within the corresponding program segment, a virtual execution boundary is defined, forming a rate command landing point correction table. The feed rate of the corresponding program segment is configured according to the rate command landing point correction table to form a machining rate sequence and execute milling. The rate command activation table is corrected according to the actual speed change position, and the tool contact boundary envelope is corrected according to the cutting response start position and the idle recovery position. The contact boundary adapted feed execution result is output.
[0007] As a preferred embodiment of the milling cutter machining rate optimization method based on industrial data processing described in this invention, the specific steps for forming a milling industry benchmark record are as follows: Extract the tool path, workpiece contour, program segment and feed rate from the milling configuration, and extract the machining position, execution sequence and cutting response from the milling process operation information. Organize the extracted content into fields, time mark and position mark, and perform time-position correspondence according to the machining position and execution sequence to obtain the milling time-position correspondence record. Based on the milling time-position correspondence record, the milling machining configuration and milling process operation information are time-corrected, position-verified, and duplicate content is cleaned up. The tool path, workpiece contour, program segment, and feed rate are associated and recombined with the corresponding machining position, execution sequence, and cutting response to form a milling industry benchmark record.
[0008] As a preferred embodiment of the milling cutter machining rate optimization method based on industrial data processing described in this invention, the specific steps for constructing the tool contact boundary envelope are as follows: Based on the milling industry benchmark record, the tool path, workpiece contour and corresponding machining position are extracted, and the tool path and workpiece contour are matched to obtain the entry position and exit position. Based on the entry and exit positions, extract the milling process operation information within the corresponding machining range, align each cutting response according to the machining position and execution sequence, retain the response positions that continuously transition from the no-load state to the cutting state and continuously return from the cutting state to the no-load state, delete the response positions that do not form continuous changes, and obtain the cutting response start position and no-load recovery position. By using the starting position of the cutting response and the position of the no-load recovery, the positions are sorted and merged according to the execution sequence. The earliest starting position is determined as the envelope start point, and the position where the last cutting response completes the no-load recovery is determined as the envelope end point, thus constructing the tool contact boundary envelope.
[0009] As a preferred embodiment of the milling cutter machining rate optimization method based on industrial data processing described in this invention, the specific steps for obtaining the cutting response start position and the no-load recovery position are as follows: Based on the entry and exit positions, the milling process operation information within the corresponding machining range is extracted. Each cutting response is aligned according to the machining position and execution sequence. Candidate response positions for transitioning from no-load state to cutting state and from cutting state back to no-load state are extracted to obtain cutting response state transition records. By using the cutting response state transition record, the continuity of the changes in the candidate response position is verified. The response positions that continuously complete the state transition are retained and isolated fluctuation positions are deleted to obtain the cutting response start position and no-load recovery position.
[0010] As a preferred embodiment of the milling cutter machining rate optimization method based on industrial data processing described in this invention, the specific steps for establishing the rate command activation table are as follows: Based on the tool contact boundary envelope, the envelope start point, envelope end point and corresponding machining configuration are read. The cutting response state between the envelope start point and the envelope end point is determined as the current contact state. The consistency is compared with the historical rate execution record. The records of matching machining configuration and contact state are retained and arranged according to the execution time sequence to obtain the historical rate execution record under the same working condition. Based on the historical rate execution records under the same working conditions, obtain the processing rate command writing position, the actual speed starting change position, the target speed reaching position, the target speed duration range, and the speed recovery position. Perform time-position correspondence according to the same processing process to obtain the rate command position correspondence record. Using the rate command position correspondence record, the program segments corresponding to each position are divided and merged according to the state sequence of actual speed starting to change, reaching the target speed, maintaining the target speed, and recovering the speed. The effective program segments, the maintenance program segments, the continuation program segments, and the recovery program segments are determined, and a rate command effective table is established.
[0011] As a preferred embodiment of the milling cutter machining rate optimization method based on industrial data processing described in this invention, the specific steps for obtaining the rate command position corresponding record are as follows: Based on the historical rate execution records under the same working conditions, starting from the position where the processing rate instruction is written, continuously track the corresponding positions of the actual speed starting to change, reaching the target speed, maintaining the target speed, and recovering the speed along the execution sequence, and associate the processing position and program segment to obtain the rate effective trajectory record; By using the rate activation trajectory record, the sequential continuity of each speed state position, the program segment succession relationship, and the instruction attribution are verified. The corresponding content of the positions continuously triggered by the same processing rate instruction is retained, and cross-instruction mixed content and state interruption content are deleted to obtain the rate instruction position corresponding record.
[0012] As a preferred embodiment of the milling cutter machining rate optimization method based on industrial data processing described in this invention, the specific steps for forming the rate command landing point correction table are as follows: Based on the rate command activation table, the target speed is reached at the envelope start point, the contact interval from the envelope start point to the envelope end point is identified as the target speed duration interval, the envelope end point is determined as the end point of the target speed duration interval, and the speed recovery position and speed recovery position after the envelope end point are determined according to the recovery program segment. At the same time, the actual speed change position corresponding to the activation program segment is read to obtain the rate action position group. Based on the rate action position group, trace back along the correspondence between the processing rate command writing position and the actual speed change position to determine the current writing position and corresponding program segment corresponding to each rate action position, and obtain the command writing position record. By using the instruction write position record, the position of each rate action is compared with the corresponding program segment boundary. When the rate action position is inside the program segment, the tool path and machining sequence remain unchanged and a virtual execution boundary is defined. The rate action position, the current write position, the corresponding program segment and the virtual execution boundary are reorganized to form a rate instruction landing point correction table.
[0013] As a preferred embodiment of the milling cutter machining rate optimization method based on industrial data processing described in this invention, the specific steps for obtaining the instruction write position record are as follows: Based on the rate action position group, read the speed state and corresponding program segment corresponding to each rate action position, and obtain the historical write position and actual speed change position under the same speed state from the rate command effective table to obtain the historical effective position pair. By using historical effective position pairs, the program segment sequence and position offset between the written position and the actual speed change position are organized according to the processing direction and execution sequence to obtain the instruction effective offset record; Based on the instruction effective offset record, the corresponding program segment succession order and position offset are traced back from the position of each rate along the execution sequence to determine the current write position and associate it with the corresponding program segment, thereby obtaining the instruction write position record.
[0014] As a preferred embodiment of the milling cutter machining rate optimization method based on industrial data processing described in this invention, the specific steps for forming the machining rate sequence are as follows: According to the rate command landing point correction table, read the current writing position, rate action position, virtual execution boundary and corresponding program segment, write the feed rate corresponding to the machining rate command to the current writing position, and divide the feed rate action range according to the rate action position and virtual execution boundary to obtain the program segment rate configuration record. By utilizing the program segment rate configuration record, the effective range of each feed rate is arranged according to the execution order of the program segments that take effect, maintain, continue, and resume. The rate changes within the same program segment and between adjacent program segments are connected through virtual execution boundaries to form a processing rate sequence.
[0015] As a preferred embodiment of the milling cutter machining rate optimization method based on industrial data processing described in this invention, the specific steps for adapting the output contact boundary to the feed execution result are as follows: Based on the machining rate sequence and the rate command landing point correction table, the feed rate is written according to the current writing position and the virtual execution boundary and the milling machining is executed. The actual speed change position, cutting response start position and no-load recovery position are collected and sorted according to the machining position and execution sequence to obtain the feed execution record. Based on the feed execution record, the actual speed change position is compared with the rate action position, the cutting response start position and the no-load recovery position with the envelope start point and envelope end point to obtain the rate effective offset and contact boundary offset. The actual speed change position in the rate command effective table is corrected according to the rate effective offset, and the envelope start point and envelope end point in the tool contact boundary envelope are corrected according to the contact boundary offset. The contact boundary adaptation feed execution result is then output.
[0016] The beneficial effects of this invention are as follows: Based on the rate command activation table and the tool contact boundary envelope, the actual speed change position group composed of four types of speed state positions is determined. The current writing position is inferred by using the historical writing position under the same working condition and the speed state position offset. An executable virtual boundary is defined. When there is no matching record, the original feed configuration is maintained, so that the feed rate fits the real contact range and reduces the advance and lag deviations. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart of a milling cutter machining rate optimization method based on industrial data processing.
[0019] Figure 2 A flowchart for constructing the tool contact boundary envelope.
[0020] Figure 3 A flowchart for establishing the rate command effective table.
[0021] Figure 4 The flowchart for the feed execution to correct the rate landing point. Detailed Implementation
[0022] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0023] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0024] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0025] Reference Figures 1-4 This is one embodiment of the present invention, which provides a method for optimizing milling cutter machining rate based on industrial data processing, including the following steps: S1: Obtain the milling configuration and collect the milling process operation information. According to the processing position and execution sequence, match the milling configuration with the milling process operation information to form a milling industry benchmark record.
[0026] S1.1: Extract the tool path, workpiece contour, program segment and feed rate from the milling machining configuration, and extract the machining position, execution sequence and cutting response from the milling process operation information. Organize the extracted content into fields, time mark and position mark, and perform time-position correspondence according to the machining position and execution sequence to obtain the milling time-position correspondence record.
[0027] Furthermore, the milling configuration is read according to the execution order of the program segments, and the coordinates and sequence of the trajectory points in the tool path, the coordinates and contour segments of the contour points in the workpiece contour, the program segment number and the feed rate corresponding to the program segment are extracted item by item. The tool path and the workpiece contour are uniformly converted to the same workpiece coordinate system, and the coordinate direction, length unit, program segment number format and feed rate unit are unified, while retaining the order of each trajectory point in the corresponding program segment.
[0028] The milling process operation information is read according to the acquisition time. The actual machining position, program segment execution status, execution order and cutting response corresponding to each sampling time are extracted. The acquisition time recorded by the control clock is used as the time mark. The milling process operation information within the same acquisition time is arranged according to the original acquisition order and assigned a continuous execution sequence number. The program segment number is used as the first correspondence condition to classify the milling process operation information into the same program segment. Then, based on each actual machining position, the trajectory point with the smallest spatial distance or the trajectory segment between adjacent trajectory points is found in the tool trajectory of the corresponding program segment. The actual machining position is projected onto the corresponding trajectory point or trajectory segment. The projection position, trajectory point order and program segment number are used as position marks. When there are multiple corresponding positions with the same distance, the trajectory position with the earliest execution order is selected.
[0029] Based on the spatial correspondence between the tool path and the workpiece contour in the same workpiece coordinate system, each position mark is associated with the corresponding workpiece contour position, and the feed rate of the corresponding program segment is written into the same record. For tool path positions that do not directly coincide with the sampling position, linear insertion is performed according to the execution time and trajectory order of the adjacent sampling positions to supplement the corresponding time mark without changing the original execution order of the program segment.
[0030] Arrange the program segment number, execution sequence, and machining position sequentially. Write the tool path, workpiece contour, program segment, feed rate, machining position, execution sequence, and cutting response into the same corresponding record. This allows each record to represent the configuration and operation content under the same program segment, execution time, and machining position, thus obtaining the milling time-position corresponding record.
[0031] S1.2: Based on the milling time-position correspondence record, perform time correction, position verification and duplicate content cleanup on the milling machining configuration and milling process operation information, and reorganize the tool path, workpiece contour, program segment and feed rate with the corresponding machining position, execution sequence and cutting response to form a milling industry benchmark record.
[0032] Furthermore, the milling configuration and milling process operation information are read line by line according to the program segment and execution sequence. The start execution time of each program segment is used as the time correction benchmark. The arrangement order of program segments in the milling configuration is matched with the actual entry time and actual exit time in the milling process operation information. The offset between the configured time mark and the actual time mark within the same program segment is calculated. The time marks corresponding to the machining position, execution sequence and cutting response are adjusted uniformly according to the offset results. Then, the program segments are rearranged according to the order of actual entry, machining position arrival, cutting response generation and actual exit of the program segment to ensure that the corrected execution sequence is continuous and does not reverse.
[0033] After time correction is completed, the position verification is based on the sequence of trajectory points in the program segment and tool path, as well as the boundary position in the workpiece contour. Each machining position is matched point by point with the tool path in the same program segment. Machining positions located between the start and end trajectory points of the program segment and within the corresponding machining range of the workpiece contour are retained. For the case where the same machining position corresponds to multiple trajectory points, the trajectory point that is continuous with the previous machining position along the tool path forward direction and has the smallest position distance is selected as the corresponding trajectory point. Contents that are outside the trajectory range of the program segment, deviate from the tool path, or are not within the corresponding machining range of the workpiece contour are excluded.
[0034] The program segment, the corrected execution sequence, the verified machining position, and the cutting response content are used as the criteria for identifying duplicate content. Records with identical content are merged, and only records with complete timestamp, machining position, and cutting response fields are retained. If the completeness of the fields is the same, the record with the later acquisition time is retained, and the remaining duplicate content is deleted.
[0035] The cleaned content is arranged according to the program segment and the corrected execution sequence. The corresponding trajectory points in the tool path, the corresponding boundary positions in the workpiece contour, the program segment and the feed rate are associated with the verified machining position, the corrected execution sequence and the cutting response under the same machining position. When there are multiple consecutive cutting responses at the same machining position, they are all assigned to the corresponding positions according to the order of acquisition. Then, the corresponding content of each position is reorganized along the tool path forward direction to form a milling industry benchmark record.
[0036] S2: Extract the tool path and workpiece contour from the milling industry reference record, determine the entry and exit positions, obtain the cutting response start position and no-load recovery position, take the earliest start position of the execution sequence as the envelope start point, and take the position where the last cutting response completes no-load recovery as the envelope end point to construct the tool contact boundary envelope.
[0037] S2.1: Based on the milling industry benchmark record, extract the tool path, workpiece contour and corresponding machining position, and perform position correspondence between the tool path and workpiece contour to obtain the entry position and exit position.
[0038] Furthermore, according to the program segment and execution sequence, the trajectory points, corresponding machining positions, workpiece contours, and milling cutter radii in the milling configuration are read from the tool path. The tool action section is determined based on the milling cutter radius with each trajectory point as the center, and the tool action section is continuously connected along the tool path between adjacent trajectory points to form a continuous action range covered by the tool when it moves along the tool path. The continuous action range is then spatially compared with the corresponding workpiece contour. The adjacent trajectory point interval where the continuous action range first contacts the workpiece contour is determined as the cutting-in candidate interval, and the adjacent trajectory point interval where the continuous action range finally leaves the workpiece contour is determined as the cutting-out candidate interval.
[0039] The tool path segments corresponding to the candidate entry and exit intervals are subdivided step by step. The intersection status of each subdivision position with the workpiece contour is judged in turn until the subdivision position interval reaches the minimum machining position interval in the milling industry reference record. The subdivision position where the tool path first intersects with the workpiece contour is mapped to the corresponding machining position and determined as the entry position. The subdivision position where the tool path finally separates from the workpiece contour is mapped to the corresponding machining position and determined as the exit position. When there are multiple continuous machining intervals in the same program segment, the entry and exit positions of each continuous machining interval are determined according to the execution sequence to obtain the entry and exit positions.
[0040] It should be noted that the tool action section refers to the radial coverage area of the tool formed by taking the trajectory point in the tool path as the center and the milling cutter radius as the action radius. The tool action section moves continuously along the tool path with the trajectory point. The entry position and exit position are determined based on the first contact and the last separation between the tool action section and the workpiece contour, and are not based solely on whether the tool center trajectory enters the workpiece contour.
[0041] S2.2: Based on the entry and exit positions, extract the milling process operation information within the corresponding machining range, align each cutting response according to the machining position and execution sequence, extract candidate response positions for transitioning from no-load state to cutting state and from cutting state back to no-load state, and obtain cutting response state transition records.
[0042] Furthermore, the adjacent machining positions before the entry position, where the tool's continuous range of action has not yet contacted the workpiece contour and each cutting response remains stable, are defined as the unloaded segment before the entry position. The adjacent machining positions after the exit position, where the tool's continuous range of action has left the workpiece contour and each cutting response has continuously recovered and become stable, are defined as the unloaded segment after the exit position.
[0043] The machining positions are arranged according to the machining direction of the tool path, and the cutting responses within the same machining position are arranged according to the execution sequence. The machining position is used as an alignment node, and the cutting response with the closest execution sequence is associated with the corresponding machining position. When a single alignment node in the same program segment lacks sampling content, the cutting responses before and after the alignment node are linearly interpolated according to the ratio of the trajectory distance between the alignment node and the adjacent machining positions. When multiple consecutive alignment nodes lack sampling content or the missing position crosses the program segment boundary, no interpolation is performed and it is marked as missing content. For each type of cutting response, the lowest response value among all sampling content in the two idle segments is determined as the initial lower boundary of the idle response, and the highest response value is determined as the initial upper boundary of the idle response. The minimum resolvable change is read from the acquisition accuracy of the corresponding cutting response or the minimum change unit of the original record. The initial lower boundary is extended by a minimum resolvable change in the direction of decreasing value, and the initial upper boundary is extended by a minimum resolvable change in the direction of increasing value, forming the idle response range of the corresponding cutting response.
[0044] The cutting response within the machining range is read according to the execution sequence. Cutting responses within the no-load response range are marked as no-load states, and cutting responses below the lower boundary or above the upper boundary are marked as cutting states. The state marks of adjacent machining positions are compared sequentially. If the previous machining position is in a no-load state and the current machining position is in a cutting state, the current machining position is determined as a candidate response position for transitioning from a no-load state to a cutting state. If the previous machining position is in a cutting state and the current machining position is in a no-load state, the current machining position is determined as a candidate response position for transitioning from a cutting state back to a no-load state. The state transition direction, the state before the transition, the state after the transition, and the corresponding program segment are recorded to obtain the cutting response state transition record.
[0045] Specifically, the continuous stability of each cutting response means that the change in the cutting response corresponding to adjacent machining positions does not exceed the minimum resolvable change of the corresponding cutting response, and there is no transition between the idle state and the cutting state between adjacent positions. The idle segment before the entry position is continuously extracted forward from the idle machining position near the entry position, and the idle segment after the exit position is continuously extracted backward from the idle machining position near the exit position. The extension stops when encountering program segment interruption, sampling loss or response state change.
[0046] S2.3: Using the cutting response state transition record, the continuity of the changes before and after the candidate response position is verified, the response positions that have completed the state transition continuously are retained and the isolated fluctuation positions are deleted, and the cutting response start position and no-load recovery position are obtained.
[0047] Furthermore, the cutting response state transition records are arranged according to the machining position and execution sequence, and the state transition direction corresponding to each candidate response position is read one by one. For a candidate response position that transitions from an idle state to a cutting state, starting from the previous state transition position, it is verified whether the state markers between the candidate response position and the adjacent machining position before the previous state transition position are continuously in an idle state, and it is verified whether the state markers between the candidate response position and the adjacent machining position before the next state transition position are continuously in a cutting state. When the preceding and following states are continuously connected and there is no reverse transition, the candidate response position is determined as the starting position of the corresponding cutting response.
[0048] For a candidate response position that transitions from a cutting state back to an unloaded state, verify whether the state markers between the previous state transition position and the adjacent machining position before the candidate response position are continuously in the cutting state, and verify whether the state markers between the candidate response position and the adjacent machining position before the next state transition position are continuously in the unloaded state. If the preceding and following states are consecutive and the candidate response position does not transition back to the cutting state, the candidate response position is determined as the unloaded recovery position of the corresponding cutting response.
[0049] After a candidate response position changes state, it immediately returns to the state before the conversion at the next adjacent machining position, or if the direction of state change before and after the candidate response position is inconsistent, the candidate response position is determined as an isolated fluctuation position and deleted. The retained response positions are summarized according to the machining position and execution sequence to obtain the cutting response start position and no-load recovery position.
[0050] S2.4: Using the starting position of the cutting response and the position of the no-load recovery, sort and merge them according to the execution sequence, determine the earliest starting position as the envelope start point, and determine the position where the last cutting response completes the no-load recovery as the envelope end point, and construct the tool contact boundary envelope.
[0051] Furthermore, the starting position, no-load recovery position, machining position, execution timing, and state transition direction of each cutting response are read. The positions corresponding to the same cutting response are arranged according to the execution timing. For each cutting response starting position, the first no-load recovery position that continuously transitions from the cutting state to the no-load state is found sequentially after the cutting response starting position. The cutting response starting position is paired with the first no-load recovery position to form a continuous response interval of the corresponding cutting response. If the cutting response starting position appears again before the no-load recovery position is found, the cutting response starting position with the later execution timing is retained and the previous cutting response starting position is deleted. If the no-load recovery position is not found before the end of the no-load segment after the cutting position, the cutting response starting positions that have not been paired are deleted.
[0052] Arrange the continuous response intervals from front to back according to the execution sequence of the cutting response start position. Merge the continuous response intervals that are located in the same machining interval corresponding to the cut-in and cut-out positions and have overlapping or successive relationships in the execution sequence. When merging, retain the cutting response start position with the earliest execution sequence and take the no-load recovery position with the latest execution sequence as the recovery position after merging. Read all cutting response start positions from the merging results and determine the cutting response start position with the earliest execution sequence as the envelope start point. Check the state change of each cutting response one by one along the execution sequence from the envelope start point. If any cutting response is still in the cutting state, continue to extend the contact interval until all cutting responses have completed the continuous recovery from the cutting state to the no-load state. The no-load recovery position that has finally completed the no-load recovery is determined as the envelope end point.
[0053] By associating the envelope start point, envelope end point, and the corresponding tool path, workpiece contour, machining position, and cutting response state between the two sides according to the execution sequence, a continuous position range from the start of actual tool contact with the workpiece to the return of all cutting responses to no load is formed, thus constructing the tool contact boundary envelope.
[0054] S3: Based on the tool contact boundary envelope, filter historical rate execution records with the same machining configuration and contact state, extract the correspondence between the machining rate command writing position and the actual speed change position, the target speed reached position, the target speed duration range and the speed recovery position, determine the effective program segment, the holding program segment, the continuing program segment and the recovery program segment, and establish a rate command effective table.
[0055] S3.1: Based on the tool contact boundary envelope, read the envelope start point, envelope end point and corresponding machining configuration, determine the cutting response state between the envelope start point and envelope end point as the current contact state, compare it with the historical rate execution record, retain the records of matching machining configuration and contact state and arrange them according to the execution time sequence to obtain the historical rate execution record under the same working condition.
[0056] Furthermore, the machining positions, execution timing, and program segments corresponding to the envelope start point and envelope end point are read, and the tool path, workpiece contour, program segment, and feed rate are extracted from the milling industry benchmark record as the corresponding machining configuration. According to the machining interval defined from the envelope start point to the envelope end point, each cutting response within the machining interval is extracted from the milling process operation information. Each cutting response is arranged according to the machining position and execution timing. The sequence of changes from the empty state to the cutting state at the envelope start point, the cutting state between the envelope start point and the envelope end point, and the return from the cutting state to the empty state at the envelope end point is organized into the current contact state.
[0057] Read the machining position, execution sequence, tool path, workpiece contour, program segment, feed rate, and cutting response from the historical rate execution records. Delete historical rate execution records with missing machining positions, interrupted execution sequences, missing machining rate command writing positions, or incomplete actual speed changes. Compare the retained historical rate execution records item by item with the corresponding machining configuration according to the tool path, workpiece contour, program segment, and feed rate. Only retain historical rate execution records where the tool path passes through the same machining position, the workpiece contour corresponds to the same contact area, the program segment execution sequence is consistent, and the feed rate is consistent. Then, organize them according to machining position and execution sequence. For each historical rate execution record, the cutting response is extracted, and the sequence of changes from no-load state to cutting state, continuous cutting state, and return to no-load state is extracted. The sequence of changes is compared with the current contact state segment by segment. Historical rate execution records that are consistent with the state transition direction, state succession order, and program segment execution relationship are retained. Historical rate execution records with missing states, reversed state order, program segment execution order reversal, or interruption of adjacent program segment succession are deleted. If the contact process continuously spans multiple program segments, and each program segment is continuously succeeded in the execution sequence and the cutting response state is not interrupted, the corresponding historical rate execution record is retained.
[0058] The historical rate execution records are arranged from earliest to latest according to the execution sequence corresponding to the writing position of the processing rate instruction in each historical rate execution record, and then arranged according to the processing position under the same execution sequence to obtain the historical rate execution records under the same working conditions.
[0059] S3.2: Based on the historical rate execution record under the same working conditions, starting from the position where the processing rate instruction is written, continuously track the corresponding positions of the actual speed starting to change, reaching the target speed, maintaining the target speed, and recovering the speed along the execution sequence, and associate the processing position and program segment to obtain the rate effective trajectory record.
[0060] Furthermore, based on the historical rate execution records under the same working conditions, the processing rate command writing position, the target speed recorded in the processing rate command, the actual speed, the processing position, the execution sequence, and the program segment are read one by one. The processing rate command writing position is used as the starting point for tracking a single record. The actual speeds after the processing rate command writing position are arranged sequentially according to the execution sequence and processing direction. The actual speeds that were continuously maintained before the processing rate command writing position are read as the pre-writing speed state. Starting from the processing rate command writing position, the actual speeds are compared position by position. When the actual speed deviates from the pre-writing speed state for the first time, and the actual speeds of adjacent positions continue to change along the target speed direction, the processing position corresponding to the first deviation is determined as the position where the actual speed begins to change.
[0061] The minimum speed change is read from the minimum change unit of the actual speed acquisition accuracy or the original actual speed record. The target speed recorded in the processing rate command is extended by a minimum speed change in both the direction of numerical decrease and the direction of numerical increase to form the target speed corresponding range. The actual speed is tracked along the execution sequence from the position where the actual speed begins to change. The processing position where the actual speed first enters the target speed corresponding range is determined as the target speed reached position. The processing positions arranged continuously from the target speed reached position to the actual speed first leaving the target speed corresponding range are determined as the target speed continuous interval. When the actual speed leaves the target speed corresponding range and continuously changes towards the pre-write speed state, the tracking continues until the actual speed re-enters the pre-write speed state corresponding range. The next adjacent processing position is verified to still be within the pre-write speed state corresponding range. The processing position where the recovery is first completed is determined as the speed recovery position.
[0062] According to the execution time of the actual speed change start position, the target speed reach position, the target speed duration range and the speed recovery position, find the processing position and program segment corresponding to the same execution time, write the processing rate instruction to the position, the corresponding position of each speed state, the execution order, the processing position and the program segment, and obtain the rate effective trajectory record.
[0063] Specifically, the pre-write speed state is formed by the actual speeds that are continuously arranged before the processing rate command is written and have not changed. The lowest and highest speeds in the continuous actual speeds are used as the initial boundaries of the pre-write speed state. Then, a minimum speed change is extended in the direction of decreasing value and the direction of increasing value, respectively, to form the corresponding range of the pre-write speed state. Only after the actual speed first leaves the corresponding range of the pre-write speed state is it considered that the actual speed has started to change.
[0064] S3.3: Using the rate effective trajectory record, verify the sequential continuity of each speed state position, the program segment succession relationship, and the instruction affiliation. Retain the position corresponding content triggered continuously by the same processing rate instruction, delete cross-instruction mixed content and state interruption content, and obtain the rate instruction position corresponding record.
[0065] Furthermore, the processing rate instruction writing position, actual speed start change position, target speed reached position, target speed duration range, speed recovery position, processing position, execution sequence and corresponding program segment in the reading rate effective trajectory record are arranged according to the processing rate instruction writing order.
[0066] Starting from the position where each processing rate instruction is written, the sequence of actual speed change, reaching the target speed, maintaining the target speed, and recovering speed is verified sequentially along the execution timeline. The corresponding content of the positions where the speed states occur sequentially without any missing, reversed, or interrupted states is retained. Content with incorrect state order or interrupted continuous state is deleted. The processing positions of adjacent speed state positions are verified to be continuously advanced according to the processing direction. The corresponding program segments are verified to be the same program segment or program segments that are continuously inherited according to the execution timeline. Content with continuous processing positions and consistent program segment inheritance is retained. Content with reverse jumps in processing positions, program segment order rollbacks, and interrupted program segment inheritance is deleted.
[0067] Verify the attribution of instructions between the machining rate instruction write position and the speed recovery position. If no new machining rate instruction write position appears, assign each speed status position to the same machining rate instruction. If a new machining rate instruction write position appears, use the new machining rate instruction write position as the boundary and delete the content that still belongs to the previous machining rate instruction after the boundary. Then, associate and organize the verified and retained machining rate instruction write positions, each speed status position, machining position and corresponding program segment according to the execution sequence to obtain the record corresponding to the rate instruction position.
[0068] S3.4: Using the rate command position correspondence record, according to the state sequence of actual speed starting to change, reaching the target speed, maintaining the target speed, and recovering the speed, the program segments corresponding to each position are segmented and merged to determine the effective program segment, the maintenance program segment, the continuation program segment, and the recovery program segment, and a rate command effective table is established.
[0069] Furthermore, according to the same processing procedure and the same processing rate instruction, the processing rate instruction writing position, the actual speed starting change position, the target speed reaching position, the target speed duration range, and the speed recovery position are grouped, and each position is arranged in combination with the execution timing and processing direction.
[0070] Read the program segment number, program segment start position, program segment end position, and program segment execution order corresponding to each speed state position in the milling industry reference record. Classify the program segment where the actual speed begins to change and the continuous program segments from the target speed position to the target speed position into the effective program segment. Classify the program segment within the target speed position that continuously maintains the target speed state from the target speed position into the holding program segment. When the target speed duration crosses the target speed position program segment, classify the subsequent continuous program segments that maintain the target speed state in a continuous execution order into the continuation program segment. Classify the continuous program segments from the first departure of the actual speed from the target speed state to the speed recovery position into the recovery program segment. The holding program segment and the continuation program segment are separated by the end boundary of the program segment where the target speed position is reached. The same program segment content is not repeatedly classified into different types.
[0071] When adjacent speed status positions are located within the same program segment, the order of the same program segment and each speed status position within the program segment is retained, and repeated merging is not performed. When there is an interruption in the execution order, a change in the processing rate command, or an interruption in the speed status between program segments, the merging of the current program segment ends at the interruption position.
[0072] Record the corresponding information for the processing rate command, including the location where it is written, the location of each speed status, the effective program segment, the holding program segment, the continuing program segment, the recovery program segment, and the execution order of the program segments, and establish a rate command effective table.
[0073] S4: Determine the rate action position based on the rate command effective table and the tool contact boundary envelope. Inversely deduce the current write position according to the correspondence between the write position and the speed change position. When the rate action position is within the corresponding program segment, define the virtual execution boundary and form a rate command landing point correction table.
[0074] S4.1: Based on the rate command activation table, the target speed is reached at the envelope start point, the contact interval from the envelope start point to the envelope end point is identified as the target speed duration interval, the envelope end point is determined as the end point of the target speed duration interval, and the speed recovery position and speed recovery position after the envelope end point are determined according to the recovery program segment. At the same time, the actual speed change position corresponding to the activation program segment is read to obtain the rate action position group.
[0075] Furthermore, according to the execution sequence, the actual speed change start position, target speed reach position, target speed duration range, and speed recovery position corresponding to the effective program segment, holding program segment, continuation program segment, and recovery program segment are read. Time-position correspondence is performed according to the machining position and execution sequence. The envelope start point and envelope end point in the tool contact boundary envelope are read. The range of positions continuously in the cutting response state between the envelope start point and envelope end point is determined as the contact interval. The envelope start point is used as the target speed reach position and the start point of the target speed duration range, and the envelope end point is used as the end point of the target speed duration range. Only the start and end points of the target speed duration range are recorded; each machining position within the interval is not individually determined as the rate action position. Then, based on the recovery program segment, the speed start recovery position and speed recovery position after the envelope end point are determined. Combined with the actual speed change start position corresponding to the effective program segment, a rate action position group is obtained, avoiding repeated generation of rate commands and virtual execution boundaries within the same contact interval.
[0076] The historical rate execution records with consistent processing configuration, current contact status, processing direction, and program segment inheritance relationship are selected from the rate command effective table. The tool type and wear stage, workpiece material grade and batch, depth of cut, width of cut, spindle speed, cooling status, and machine tool temperature are read from the milling processing configuration and milling process operation information. The consistency of material grade, tool type, and cooling status is verified. The deviation range formed by the stable operation records under the same working conditions for tool wear, depth of cut, width of cut, spindle speed, and machine tool temperature is verified. Only historical rate execution records with consistent process status or within the corresponding deviation range are retained. When there are multiple matching records, the record with smaller deviations from the current processing process and complete speed status position is selected first. When the deviations are the same, the record with the execution time closest to the current processing process is selected.
[0077] The program segment sequence and position interval along the tool path are read from the selected record between the actual speed change position and the target speed arrival position. Taking the current envelope start point as the backtracking start point, backtracking is performed in the opposite execution direction according to the same program segment sequence and position interval. The backtracking end position is determined as the current actual speed change start point. The current actual speed change start point, the target speed arrival position corresponding to the envelope start point, the target speed duration interval start point, the target speed duration interval end point corresponding to the envelope end point, and the speed recovery start point and speed recovery position corresponding to the recovery program segment are associated to obtain the rate action position group.
[0078] S4.2: Based on the rate action position group, read the speed state and corresponding program segment corresponding to each rate action position, and obtain the historical write position and actual speed change position under the same speed state from the rate command effective table to obtain the historical effective position pair.
[0079] Furthermore, according to the execution order of the actual speed change start position, the target speed reach position, the target speed duration range and the speed recovery position, the position of each rate action is read, and based on the correspondence of each rate action position in the rate action position group, the actual speed change start state, the target speed reach state, the target speed duration state and the speed recovery state are determined respectively. At the same time, each rate action position is associated with the effective program segment, the maintenance program segment, the continuation program segment and the recovery program segment.
[0080] Using the speed state, corresponding program segment, machining direction, and program segment connection relationship at each speed application position as search criteria, historical speed execution records are filtered from the speed command effective table. Priority is given to historical speed execution records that are consistent with the current machining process in terms of machining configuration and current contact state, whose execution time is closest to the current machining process, and whose actual speed change position, target speed reach position, target speed duration range, and speed recovery position are all complete. If the execution times are the same, historical speed execution records with fewer program segments between the machining speed command writing position and the actual speed change position are selected.
[0081] The processing rate command writing positions corresponding to the actual speed change, target speed achievement, target speed maintenance, and speed recovery are all extracted from the same historical rate execution record. Different historical rate execution records are not mixed. The verification is performed according to the execution relationship that the processing rate command writing position precedes the actual speed change position. Content with reversed position order, interrupted program segment continuation, and inconsistent processing rate commands is deleted. The processing rate command writing positions in the same historical rate execution record are paired with each actual speed change position, and the corresponding speed status and corresponding program segment are associated to obtain the historical effective position pairs.
[0082] It should be noted that the historical effective positions corresponding to the actual speed change position, the target speed reached position, the target speed duration range, and the speed recovery position must come from the same historical rate execution record. If there is no historical rate execution record with complete speed status, matching process status, and consistent program segment inheritance relationship, the current write position will not be reversed at the corresponding rate position, nor will the position offset of the remaining processing configuration or contact state be used as a substitute.
[0083] If the missing content involves any of the key rate action positions among the target speed reach position, the start or end point of the target speed duration interval, the speed start recovery position, and the speed recovery position, then stop generating the corresponding processing rate sequence, retain the original feed configuration, and output the landing point correction failure record. If only non-key positions are missing, mark the corresponding content as the position where the instruction was not written and generate a position missing record.
[0084] S4.3: Using historical effective position pairs, organize the program segment continuation order and position offset between the written position and the actual speed change position according to the processing direction and execution sequence to obtain the instruction effective offset record.
[0085] Furthermore, the historical write position, actual speed change position, execution sequence, and corresponding program segments are read line by line. The relationship between the machining positions is determined according to the order of trajectory points in the tool path and the execution order of program segments. The program segment corresponding to the historical write position is used as the starting program segment, and the program segment corresponding to the actual speed change position is used as the ending program segment. All program segments between the historical write position and the actual speed change position are arranged along the actual execution direction, without judging the machining direction by the increase or decrease of machining coordinate values.
[0086] Starting with the program segment corresponding to the historical write position and ending with the program segment corresponding to the actual speed change position, extract all program segments whose execution timing is between the historical write position and the actual speed change position, and arrange them according to the actual execution order. Verify whether the end position of adjacent program segments is continuous with the start position of the next program segment. If there are missing program segments, reversed execution order, or changed processing direction, delete the corresponding historical effective position pair.
[0087] When the historical write position and the actual speed change position are in the same program segment, the trajectory distance between them is read along the machining direction as the position offset. When the historical write position and the actual speed change position are in different program segments, the trajectory distance from the historical write position to the end position of the starting program segment, the complete trajectory length of the intermediate program segment, and the trajectory distance from the start position of the ending program segment to the actual speed change position are read sequentially, and the trajectory distances of each segment are continuously merged into the position offset.
[0088] The historical write position, actual speed change position, machining direction, start program segment, end program segment, program segment continuation order, and position offset are organized according to the same historical effective position to obtain the instruction effective offset record.
[0089] The formula for determining the effective offset of an instruction is: ; ; in, This represents any machining position in the toolpath. Indicates processing position The corresponding cumulative trajectory coordinates, with the dimension of length, Indicates processing position The sequence number of the program segment within the order of succession of consecutive program segments is a positive integer. Indicates the sequence number of the program segment participating in the accumulation. Indicates the first The length of the complete toolpath corresponding to each program segment, measured in units of length. Indicates the first From the starting boundary of each program segment to the machining position The distance between them along the tool path, in units of length. This indicates the sequence number of the historical rate execution record selected. This indicates the velocity state position number in the rate action position group, corresponding sequentially to the position where the actual velocity begins to change, the position where the target velocity is reached, the target velocity duration range, and the velocity recovery position. Indicates the first The location where the processing rate instruction is written in the historical rate execution record. Indicates the first The first historical rate execution record The actual velocity change position corresponding to each velocity state This represents the offset between the location where the machining rate command is written and the corresponding actual speed change location, measured in length. Since the retained historical effective location pairs all satisfy the condition that the machining rate command is written before the actual speed change location, therefore... It is a non-negative value.
[0090] It should be noted that the premise for using the same cumulative trajectory coordinates for the historical write position and the current rate action position is that the corresponding historical rate execution record and the current machining process have the same tool path, machining direction, program segment execution order and program segment succession relationship, and the starting boundary of the same program segment is used as the starting point of the cumulative trajectory coordinates. If any condition is inconsistent, the historical instruction effective offset is not directly migrated, nor is the current write position reversed backtracked. Instead, the corresponding content is recorded as a trajectory mapping failure record.
[0091] S4.4: Based on the instruction effective offset record, trace back along the execution timing from each rate position to the corresponding program segment succession order and position offset, determine the current write position and associate it with the corresponding program segment to obtain the instruction write position record.
[0092] Furthermore, the rate action position, corresponding speed state, and corresponding program segment are read one by one according to the arrangement order in the rate action position group. The position offset with the same speed state and program segment continuation relationship is searched in the instruction effective offset record. The found position offset is determined as the distance that the corresponding rate action position needs to be backtracked. Taking the rate action position as the backtracking starting point, the position moves in the corresponding program segment in the opposite direction to the machining direction. When the position offset does not exceed the distance from the rate action position to the starting boundary of the corresponding program segment, the position reached after the position offset backtracking is determined as the current writing position, and the corresponding program segment is determined as the program segment corresponding to the current writing position.
[0093] When the position offset exceeds the distance from the rate application position to the start boundary of the corresponding program segment, it first backtracks to the start boundary of the corresponding program segment, deducts the backtracking distance already completed, and then enters the previous program segment according to the program segment succession order in the instruction effective offset record. It then continues to backtrack the remaining position offset from the end boundary of the previous program segment until the remaining position offset is completed. If the reverse backtracking spans multiple program segments, it sequentially reads the start boundary, end boundary, and succession order of each program segment, deducts the complete backtracking distance segment by segment, and determines the program segment into which the remaining position offset falls as the corresponding program segment. The position where the remaining position offset ends within the corresponding program segment is determined as the current write position.
[0094] After completing the reverse backtracking of all rate action positions, the rate action position, corresponding speed state, position offset, program segment continuation order, current write position and corresponding program segment are associated and organized according to the execution sequence to obtain the instruction write position record.
[0095] The formula for determining the reverse write position is: ; ; in, Indicates the position of the current rate in the position group. The location of the rate action, Indicates the first The cumulative trajectory coordinates corresponding to the positions where each velocity is applied are in the dimension of length. The formula for determining the offset of the instruction's effective date is used to obtain the first... The offset for command activation corresponding to each speed state, measured in length. Indicates from the first The cumulative trajectory coordinates after backtracking from the position of action at each rate along the opposite execution direction, with the dimension being length. This indicates that the cumulative trajectory coordinates are reversed and mapped to the unique processing position according to the sequence of program segments. Indicates the first The current write position corresponding to each rate action position.
[0096] The constraint condition indicates that the offset of the instruction taking effect must not exceed the cumulative trajectory length that can be traced back before the current rate position. If the constraint condition is not met, the corresponding current write position will not be generated, and the corresponding content will be marked as missing position offset.
[0097] It should be noted that the trajectory position mapping does not determine the machining position solely based on the cumulative trajectory coordinates. Instead, it uses the program segment number, the actual execution order of the program segment, and the cumulative trajectory coordinates as joint positioning conditions. When there are duplicate paths, tool retraction, or program segment re-entry, the corresponding execution interval is first defined based on the program segment number and the execution order of the program segment being entered this time. Then, the current writing position is determined within the execution interval according to the cumulative trajectory coordinates. Zero-length program segments do not participate in the trajectory length accumulation, but the program segment number and execution order are retained for program segment acceptance verification. When a unique correspondence cannot be formed, the current writing position is not generated, and a trajectory positioning anomaly record is output.
[0098] The constraint condition indicates that the offset of the instruction taking effect must not exceed the cumulative trajectory length that can be traced back before the current rate position. If the traceable length is exceeded, the current write position will not be generated, the corresponding processing rate sequence will stop being formed, the original feed configuration will be retained, and the landing point correction failure record will be output.
[0099] When the instruction effective offset is zero, the rate action position is determined as the current write position, and it is verified whether the position is within the writable range. When multiple rate action positions are reversed to the same current write position, records with the same target feed rate are merged, and records with different target feed rates are determined to be instruction write conflicts. When virtual execution boundaries coincide, the same rate switching content is merged, and the different rate switching content is determined to be boundary conflicts. When adjacent feed rate action intervals overlap, the rate succession relationship is verified according to the execution sequence. If they cannot be continuously succeeded, the rate instruction is not written and an execution conflict record is generated. Position offset missing, instruction write conflict, boundary conflict and execution interval conflict are all written to the contact boundary adaptation feed execution result.
[0100] S4.5: Using the instruction write position record, compare each rate action position with the corresponding program segment boundary. When the rate action position is inside the program segment, keep the tool path and machining sequence unchanged and define the virtual execution boundary. Reorganize the rate action position, current write position, corresponding program segment and virtual execution boundary to form a rate instruction landing point correction table.
[0101] Furthermore, by using the instruction write position record, the positions of each rate are arranged according to the processing direction and execution sequence. The current write position, the corresponding program segment, and the start and end boundaries of the corresponding program segment are read for each rate position. The positions of the rate positions are compared with the start and end boundaries of the corresponding program segments.
[0102] When the rate action position coincides with the start or end boundary of the corresponding program segment, the coincident program segment boundary is directly used as the execution boundary of the rate action position, and the existing execution content of the corresponding program segment remains unchanged. When the rate action position is between the start and end boundaries of the corresponding program segment, the sequential position of the rate action position within the corresponding program segment is determined according to the machining direction. A virtual execution boundary mark is written at the rate action position. The program segment content before the virtual execution boundary is kept as the current feed rate action range, and the program segment content after the virtual execution boundary is determined as the action range of the feed rate to be written. The virtual execution boundary only separates the feed rate action range within the corresponding program segment and does not change the machining coordinates, trajectory direction, interpolation order, or program segment execution order in the tool path.
[0103] When multiple rate action positions exist within the same corresponding program segment, these multiple rate action positions are arranged sequentially according to the execution timing, and virtual execution boundaries are defined at each rate action position. This creates a continuous feed rate action range between adjacent virtual execution boundaries, preventing different processing rate instructions from being repeatedly effective or overlapping at the same position.
[0104] After the virtual execution boundary is defined, each rate action position is associated with the corresponding current write position, corresponding program segment, program segment start boundary, program segment end boundary and virtual execution boundary, and reorganized according to the processing direction and execution sequence. Records with duplicate rate action positions, missing current write positions or inconsistent corresponding program segments are deleted to form a rate command landing point correction table.
[0105] It should be noted that the virtual execution boundary is written into the look-ahead buffer of the CNC system with the cumulative trajectory coordinates corresponding to the position of the rate action. The CNC system divides the original program segment into two internal interpolation intervals before and after the boundary at the position, and associates them with the current feed rate and the target feed rate respectively. When the interpolation execution reaches the control cycle corresponding to the virtual execution boundary, the current feed rate is stopped and the target feed rate is switched, forming a feed rate switching instruction that can be executed by the CNC system, without changing the original program segment number, tool path and execution order.
[0106] S5: Configure the feed rate of the corresponding program segment according to the rate command landing point correction table, form a machining rate sequence and execute milling machining, correct the rate command activation table according to the actual speed change position, and correct the tool contact boundary envelope according to the cutting response start position and no-load recovery position, and output the contact boundary adapted feed execution result.
[0107] S5.1: Based on the rate command landing point correction table, read the current write position, rate action position, virtual execution boundary and corresponding program segment, write the feed rate corresponding to the machining rate command to the current write position, and divide the feed rate action range according to the rate action position and virtual execution boundary to obtain the program segment rate configuration record.
[0108] Furthermore, the current write position, rate action position, virtual execution boundary, and corresponding program segment corresponding to each record in the read rate command landing point correction table are arranged according to the execution order of the corresponding program segments and the order of the rate action positions. Based on the corresponding program segment, the machining rate command and the feed rate corresponding to the machining rate command are read from the milling machining configuration. The current write position is checked against the machining position in the corresponding program segment. After confirming that the current write position is within the writable range of the corresponding program segment, the feed rate is written to the current write position, while keeping the tool path, program segment execution order, and machining position unchanged.
[0109] The feed rate action position is determined according to the execution sequence. When the feed rate action position is located inside the corresponding program segment, the corresponding virtual execution boundary is used as the starting boundary of the feed rate action interval, and the next virtual execution boundary following the current starting boundary along the execution sequence is used as the ending boundary of the feed rate action interval. When there is no virtual execution boundary, the ending position of the corresponding program segment is used as the ending boundary of the feed rate action interval. When the feed rate action position coincides with the boundary of the corresponding program segment, the boundary of the corresponding program segment is directly used as the starting boundary of the feed rate action interval, and the ending boundary is determined according to the execution order of adjacent program segments. Multiple feed rate action intervals within the same corresponding program segment are arranged sequentially according to the feed rate action position, so that the ending boundary of the previous feed rate action interval is continuously connected with the starting boundary of the next feed rate action interval, avoiding overlap or breakage of the action intervals.
[0110] The corresponding program segments, machining rate instructions, feed rates, current write positions, rate action positions, virtual execution boundaries, and the start and end boundaries of the feed rate action range are summarized to obtain the program segment rate configuration record.
[0111] S5.2: Using the program segment rate configuration record, arrange the effective range of each feed rate according to the execution order of the program segments that take effect, maintain, continue and restore. Connect the rate change content within the same program segment and between adjacent program segments through virtual execution boundaries to form a processing rate sequence.
[0112] Furthermore, the corresponding program segment, current write position, rate effective position, virtual execution boundary, feed rate and feed rate effective range are read from the program segment rate configuration record, and the execution order of the effective program segment, the holding program segment, the continuing program segment and the restoring program segment is determined according to the rate instruction effective table.
[0113] The program segment rate configuration records are arranged according to the execution order. Within the same program segment, the feed rate action intervals are arranged according to the machining direction and execution timing, so that the rate action position and the virtual execution boundary correspond to the machining position in the tool path. For adjacent feed rate action intervals within the same program segment, the virtual execution boundary is used as a common dividing position. The ending position of the previous feed rate action interval and the starting position of the next feed rate action interval are unified to the virtual execution boundary to eliminate position overlap and position interval. When the previous and next feed rates are the same, the adjacent feed rate action intervals are merged. When the previous and next feed rates are different, the feed rates on both sides of the virtual execution boundary are retained, and the virtual execution boundary is determined as the feed rate switching position. After completing the connection within the same program segment, the feed rate action intervals at the end and beginning of adjacent program segments are extracted. The intersection of adjacent program segments is used as the unified connection position, so that the feed rate action interval of the previous program segment ends at the intersection position, and the feed rate action interval of the next program segment starts at the intersection position.
[0114] The feed rate ranges are arranged according to the processing direction and execution sequence, and associated with the corresponding program segment, current write position, rate position, virtual execution boundary and feed rate to form a processing rate sequence.
[0115] S5.3: Based on the machining rate sequence and the rate command landing point correction table, write the feed rate according to the current writing position and the virtual execution boundary and execute the milling machining. Collect the actual speed change position, the cutting response start position and the no-load recovery position, and organize them according to the machining position and execution sequence to obtain the feed execution record.
[0116] Furthermore, based on the processing rate sequence, the feed rate and feed rate effective range corresponding to the effective program segment, the holding program segment, the continuing program segment and the recovery program segment are read, and the current write position, the rate effective position, the virtual execution boundary and the corresponding program segment corresponding to each feed rate are read from the rate command landing point correction table, and the corresponding relationship is established according to the program segment number and the execution sequence.
[0117] When the milling operation reaches the current writing position, the corresponding feed rate is written to the corresponding program segment. When the position of the rate action is inside the program segment, the execution interval before and after the feed rate change is separated by a virtual execution boundary. The previous feed rate is executed before the virtual execution boundary, and the currently written feed rate is executed after the virtual execution boundary, while keeping the tool path and machining sequence unchanged.
[0118] During the milling process, the machining position, execution timing, actual speed, and cutting response are continuously collected. Starting from the current writing position, the actual speed is checked along the execution timing. The earliest machining position where the actual speed begins to continuously deviate from the speed before writing and changes towards the corresponding feed rate is determined as the position where the actual speed begins to change. The corresponding positions where the actual speed reaches the target speed, the sustained target speed, and the recovery speed are recorded. Starting from the entry position, each cutting response is checked. The earliest machining position where the cutting response continuously transitions from the no-load state to the cutting state is determined as the cutting response start position. The earliest machining position where all cutting responses continuously return from the cutting state to the no-load state is determined as the no-load recovery position.
[0119] According to the same machining rate instruction and corresponding program segment, the current writing position, rate action position, virtual execution boundary, actual speed change position, cutting response start position and no-load recovery position are arranged in association with the machining position and execution sequence, and duplicate collection content is deleted to obtain the feed execution record.
[0120] S5.4: Based on the feed execution record, compare the actual speed change position with the rate action position, the cutting response start position and the no-load recovery position with the envelope start point and envelope end point respectively to obtain the rate effective offset and contact boundary offset. Correct the actual speed change position in the rate command effective table according to the rate effective offset, and correct the envelope start point and envelope end point in the tool contact boundary envelope according to the contact boundary offset. Output the contact boundary adapted feed execution result.
[0121] Furthermore, the actual speed change position, speed action position, cutting response start position, no-load recovery position, corresponding program segment and execution sequence corresponding to the same machining rate instruction are read from the feed execution record and arranged in the order of actual speed starting to change, reaching the target speed, maintaining the target speed and recovery speed.
[0122] Each actual speed change position is matched with the rate action position under the same speed state. The order of the actual speed change position relative to the rate action position is determined along the tool path. When the actual speed change position is earlier than the rate action position, it is determined to take effect in advance. When it is later than the rate action position, it is determined to take effect in lag. When the two coincide, it is determined to have no offset. The position interval between the two along the machining direction is recorded to form the rate action offset corresponding to each speed state.
[0123] The starting position of the cutting response is correlated with the starting point of the envelope, and the unloaded recovery position is correlated with the ending point of the envelope. The sequential relationship between the two sets of positions is determined and the position interval is recorded. The offset of the starting point of the envelope and the offset of the ending point of the envelope are formed respectively, and then summarized as the contact boundary offset.
[0124] Based on the machining rate command, speed status, and corresponding program segment, locate the corresponding record in the rate command effective table, replace the original actual speed change position in the rate command effective table with the actual speed change position collected in the feed execution record, and re-record the program segment succession order and position offset between the machining rate command writing position and the actual speed change position. Do not repeatedly move the actual speed change position forward or backward, thus completing the calibration of the rate command effective table.
[0125] The starting position of the cutting response is mapped to the starting point of the envelope, and the unloaded recovery position is mapped to the ending point of the envelope. The sequential relationship and trajectory distance between the two sets of positions are recorded according to the machining direction of the tool path to form the contact boundary offset. The starting point of the envelope in the tool contact boundary envelope is updated to the starting position of the current cutting response, and the ending point of the envelope is updated to the unloaded recovery position. The contact interval between the updated starting point and the ending point of the envelope is retained according to the execution sequence to complete the tool contact boundary envelope correction.
[0126] The corrected rate command effective table, tool contact boundary envelope, current write position, rate application position, virtual execution boundary and corresponding program segment are associated and organized according to the same machining process, and the contact boundary adapted feed execution result is output.
[0127] It should be noted that the corrected rate command effective table and tool contact boundary envelope are used to record the actual execution results of this milling operation, and serve as the basis for determining the rate action position and the current writing position under the same machining configuration and current contact state. The correction does not change the tool path, feed rate action range and program segment execution order that have been completed this time, nor does it trigger the feed rate writing again before this milling operation is completed.
[0128] The rate command activation table and tool contact boundary envelope are not directly replaced by the single feed execution record. Instead, the completeness, continuity, and sensor status of the actual speed change position, cutting response start position, and no-load recovery position collected in this session are first verified. Abnormal positions such as sampling interruption, jump, drift, and exceeding the historical offset limit under the same working condition are deleted. Then, the retained position is compared with the direction and position consistency of multiple consecutive execution records under the same working condition. Only when the multiple offset directions are consistent, the offset amount is within the allowable range, and the program segment belongs to the same group, is the rate command activation table and tool contact boundary envelope corrected according to the confirmed offset. Otherwise, the original record is retained and an execution offset abnormal record is generated to avoid parameter following caused by single noise.
[0129] In summary, this invention determines the actual speed change position group consisting of four types of speed state positions based on the rate command activation table and the tool contact boundary envelope, uses the historical write position under the same working condition and the speed state position offset to infer the current write position, and delineates the executable virtual boundary. When there is no matching record, the original feed configuration is maintained, so that the feed rate fits the real contact range and reduces the advance and lag deviations.
[0130] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A method for optimizing milling cutter machining rate based on industrial data processing, characterized in that, include: Obtain the milling machining configuration and collect the milling process operation information. According to the machining position and execution sequence, match the milling machining configuration with the milling process operation information to form a milling industry benchmark record. The tool path and workpiece contour are extracted from the milling industry reference record to determine the entry and exit positions, obtain the cutting response start position and no-load recovery position, and construct the tool contact boundary envelope with the earliest start position of the execution sequence as the envelope start point and the position where the last cutting response completes no-load recovery as the envelope end point. Based on the tool contact boundary envelope, historical rate execution records with the same machining configuration and contact state are screened. The correspondence between the machining rate command writing position and the actual speed change position, the target speed reached position, the target speed duration range, and the speed recovery position is extracted. The effective program segment, the holding program segment, the continuing program segment, and the recovery program segment are determined, and a rate command effective table is established. The rate action position is determined based on the rate command effective table and the tool contact boundary envelope. The current write position is deduced by the correspondence between the write position and the speed change position. When the rate action position is within the corresponding program segment, the virtual execution boundary is defined to form a rate command landing point correction table. Configure the feed rate of the corresponding program segment according to the rate command landing point correction table, form a machining rate sequence and execute milling machining, correct the rate command activation table according to the actual speed change position, and correct the tool contact boundary envelope according to the cutting response start position and no-load recovery position, and output the contact boundary adapted feed execution result.
2. The milling cutter machining rate optimization method based on industrial data processing as described in claim 1, characterized in that, The specific steps for forming the milling industry benchmark record are as follows: Extract the tool path, workpiece contour, program segment and feed rate from the milling configuration, and extract the machining position, execution sequence and cutting response from the milling process operation information. Organize the extracted content into fields, time mark and position mark, and perform time-position correspondence according to the machining position and execution sequence to obtain the milling time-position correspondence record. Based on the milling time-position correspondence record, the milling machining configuration and milling process operation information are time-corrected, position-verified, and duplicate content is cleaned up. The tool path, workpiece contour, program segment, and feed rate are associated and recombined with the corresponding machining position, execution sequence, and cutting response to form a milling industry benchmark record.
3. The milling cutter machining rate optimization method based on industrial data processing as described in claim 1, characterized in that, The specific steps for constructing the tool contact boundary envelope are as follows: Based on the milling industry benchmark record, the tool path, workpiece contour and corresponding machining position are extracted, and the tool path and workpiece contour are matched to obtain the entry position and exit position. Based on the entry and exit positions, extract the milling process operation information within the corresponding machining range, align each cutting response according to the machining position and execution sequence, retain the response positions that continuously transition from the no-load state to the cutting state and continuously return from the cutting state to the no-load state, delete the response positions that do not form continuous changes, and obtain the cutting response start position and no-load recovery position. By using the starting position of the cutting response and the position of the no-load recovery, the positions are sorted and merged according to the execution sequence. The earliest starting position is determined as the envelope start point, and the position where the last cutting response completes the no-load recovery is determined as the envelope end point, thus constructing the tool contact boundary envelope.
4. The milling cutter machining rate optimization method based on industrial data processing as described in claim 3, characterized in that, The specific steps for obtaining the cutting response start position and the no-load recovery position are as follows: Based on the entry and exit positions, the milling process operation information within the corresponding machining range is extracted. Each cutting response is aligned according to the machining position and execution sequence. Candidate response positions for transitioning from no-load state to cutting state and from cutting state back to no-load state are extracted to obtain cutting response state transition records. By using the cutting response state transition record, the continuity of the changes in the candidate response position is verified. The response positions that continuously complete the state transition are retained and isolated fluctuation positions are deleted to obtain the cutting response start position and no-load recovery position.
5. The milling cutter machining rate optimization method based on industrial data processing as described in claim 1, characterized in that, The specific steps for establishing the rate command activation table are as follows: Based on the tool contact boundary envelope, the envelope start point, envelope end point and corresponding machining configuration are read. The cutting response state between the envelope start point and the envelope end point is determined as the current contact state. The consistency is compared with the historical rate execution record. The records of matching machining configuration and contact state are retained and arranged according to the execution time sequence to obtain the historical rate execution record under the same working condition. Based on the historical rate execution records under the same working conditions, obtain the processing rate command writing position, the actual speed starting change position, the target speed reaching position, the target speed duration range, and the speed recovery position. Perform time-position correspondence according to the same processing process to obtain the rate command position correspondence record. Using the rate command position correspondence record, the program segments corresponding to each position are divided and merged according to the state sequence of actual speed starting to change, reaching the target speed, maintaining the target speed, and recovering the speed. The effective program segments, the maintenance program segments, the continuation program segments, and the recovery program segments are determined, and a rate command effective table is established.
6. The milling cutter machining rate optimization method based on industrial data processing as described in claim 5, characterized in that, The specific steps for obtaining the record corresponding to the rate command position are as follows: Based on the historical rate execution records under the same working conditions, starting from the position where the processing rate instruction is written, continuously track the corresponding positions of the actual speed starting to change, reaching the target speed, maintaining the target speed, and recovering the speed along the execution sequence, and associate the processing position and program segment to obtain the rate effective trajectory record; By using the rate activation trajectory record, the sequential continuity of each speed state position, the program segment succession relationship, and the instruction attribution are verified. The corresponding content of the positions continuously triggered by the same processing rate instruction is retained, and cross-instruction mixed content and state interruption content are deleted to obtain the rate instruction position corresponding record.
7. The milling cutter machining rate optimization method based on industrial data processing as described in claim 1, characterized in that, The specific steps for forming the rate command landing point correction table are as follows: Based on the rate command activation table, the target speed is reached at the envelope start point, the contact interval from the envelope start point to the envelope end point is identified as the target speed duration interval, the envelope end point is determined as the end point of the target speed duration interval, and the speed recovery position and speed recovery position after the envelope end point are determined according to the recovery program segment. At the same time, the actual speed change position corresponding to the activation program segment is read to obtain the rate action position group. Based on the rate action position group, trace back along the correspondence between the processing rate command writing position and the actual speed change position to determine the current writing position and corresponding program segment corresponding to each rate action position, and obtain the command writing position record. By using the instruction write position record, the position of each rate action is compared with the corresponding program segment boundary. When the rate action position is inside the program segment, the tool path and machining sequence remain unchanged and a virtual execution boundary is defined. The rate action position, the current write position, the corresponding program segment and the virtual execution boundary are reorganized to form a rate instruction landing point correction table.
8. The milling cutter machining rate optimization method based on industrial data processing as described in claim 7, characterized in that, The specific steps for obtaining the instruction write location record are as follows: Based on the rate action position group, read the speed state and corresponding program segment corresponding to each rate action position, and obtain the historical write position and actual speed change position under the same speed state from the rate command effective table to obtain the historical effective position pair. By using historical effective position pairs, the program segment sequence and position offset between the written position and the actual speed change position are organized according to the processing direction and execution sequence to obtain the instruction effective offset record; Based on the instruction effective offset record, the corresponding program segment succession order and position offset are traced back from the position of each rate along the execution sequence to determine the current write position and associate it with the corresponding program segment, thereby obtaining the instruction write position record.
9. The milling cutter machining rate optimization method based on industrial data processing as described in claim 1, characterized in that, The specific steps for forming the processing rate sequence are as follows: According to the rate command landing point correction table, read the current writing position, rate action position, virtual execution boundary and corresponding program segment, write the feed rate corresponding to the machining rate command to the current writing position, and divide the feed rate action range according to the rate action position and virtual execution boundary to obtain the program segment rate configuration record. By utilizing the program segment rate configuration record, the effective range of each feed rate is arranged according to the execution order of the program segments that take effect, maintain, continue, and resume. The rate changes within the same program segment and between adjacent program segments are connected through virtual execution boundaries to form a processing rate sequence.
10. The milling cutter machining rate optimization method based on industrial data processing as described in claim 1, characterized in that, The specific steps for adapting the output contact boundary to the feed execution result are as follows: Based on the machining rate sequence and the rate command landing point correction table, the feed rate is written according to the current writing position and the virtual execution boundary and the milling machining is executed. The actual speed change position, cutting response start position and no-load recovery position are collected and sorted according to the machining position and execution sequence to obtain the feed execution record. Based on the feed execution record, the actual speed change position is compared with the rate action position, the cutting response start position and the no-load recovery position with the envelope start point and envelope end point to obtain the rate effective offset and contact boundary offset. The actual speed change position in the rate command effective table is corrected according to the rate effective offset, and the envelope start point and envelope end point in the tool contact boundary envelope are corrected according to the contact boundary offset. The contact boundary adaptation feed execution result is then output.