CN115167285A - Cutting path generation method, device and program product - Google Patents

Cutting path generation method, device and program product Download PDF

Info

Publication number
CN115167285A
CN115167285A CN202210927208.2A CN202210927208A CN115167285A CN 115167285 A CN115167285 A CN 115167285A CN 202210927208 A CN202210927208 A CN 202210927208A CN 115167285 A CN115167285 A CN 115167285A
Authority
CN
China
Prior art keywords
area
cutting
surface area
tool
initial position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210927208.2A
Other languages
Chinese (zh)
Inventor
赵敏颖
董惠刚
吕文殿
林跃钦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kaifulong Xiamen Sealing Element Co ltd
Original Assignee
Kaifulong Xiamen Sealing Element Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kaifulong Xiamen Sealing Element Co ltd filed Critical Kaifulong Xiamen Sealing Element Co ltd
Priority to CN202210927208.2A priority Critical patent/CN115167285A/en
Publication of CN115167285A publication Critical patent/CN115167285A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35219From cad data derive cutting, stacking, sorting program
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

The application relates to a cutting path generation method, equipment and a program product, wherein the method is used in a path generation system, and comprises the following steps: responding to the path generation request, and acquiring a workpiece drawing and a cutter face area, wherein the workpiece drawing is obtained by projecting a workpiece model, and the cutter face area is obtained by projecting a cutter model; controlling the cutter surface area to move in the cutting area, determining a cutting position based on the area change condition of the cutter surface area in the moving process, and positioning the processing part of the workpiece drawing in the cutting area; generating a cutting path based on each cutting position under the condition that the position of the cutter surface area meets an end condition; the cutting paths of different types of cutters can be generated, and therefore the problem that the cutting paths of special-shaped cutters cannot be generated is solved. The method and the device have the effects of generating cutting paths of different types of cutters and facilitating use of users.

Description

Cutting path generation method, device and program product
Technical Field
The present application relates to the field of numerical control programming, and in particular, to a method, device, and program product for generating a cutting path.
Background
The numerical control programming refers to a process of generating a data processing program by a computer according to a workpiece drawing, and mainly comprises the steps of analyzing a workpiece pattern, selecting a technological process, generating a cutting path and the like. The cutting path refers to a path along which the tool moves during the processing of the workpiece.
In the related art, when generating a cutting path, first, a user is required to select a type of a standard tool to be used, such as: an R-angle knife, a sharp-angle knife, an angle knife, a groove knife and the like; and then, generating a cutting path based on a path generation algorithm corresponding to the standard tool selected by the user.
However, for a special-shaped tool, which is self-made by a user and is not a standard tool, the related art does not have a path generation algorithm corresponding to the special-shaped tool, which may cause a problem that a cutting path of the special-shaped tool cannot be generated.
Disclosure of Invention
In order to help solve the problem that the cutting path of the special-shaped cutter cannot be generated, the application provides a cutting path generation method, equipment and a program product.
In a first aspect, the present application provides a cutting path generating method, which adopts the following technical scheme:
a cutting path generation method is used in a path generation system, and comprises the following steps:
responding to a path generation request, and acquiring a workpiece drawing and a tool surface area, wherein the workpiece drawing is obtained by projecting a workpiece model, and the tool surface area is obtained by projecting a tool model;
controlling the cutter surface area to move in a cutting area, and determining a cutting position based on the area change condition of the cutter surface area in the moving process, wherein the processing part of the workpiece drawing is positioned in the cutting area;
and generating a cutting path based on each cutting position when the position of the cutter surface area meets an end condition.
By adopting the technical scheme, the path generation system responds to a path generation request sent by a user, acquires a workpiece drawing and a cutter area, controls the cutter area to move in a cutting area, determines a cutting position based on the area change condition of the cutter area in the moving process, finally generates a cutting path, can generate the cutting paths of different types of cutters, and solves the problem that the cutting path of a special-shaped cutter cannot be generated; because the type of the tool does not need to be input in the path generation process, the cutting paths of different types of tools can be generated, and the use by a user is facilitated.
Optionally, the controlling the tool surface area to move in the cutting area, and determining the cutting position based on an area change condition of the tool surface area in the moving process includes:
acquiring a moving starting point of the cutter area, and determining the moving starting point as a first initial position;
controlling the cutter surface area to move a first distance from the first initial position to the first direction, and determining whether the area of the cutter surface area changes;
determining the cutting position based on the current position of the tool face area under the condition that the area of the tool face area changes; controlling the cutter surface area to move to the first initial position; controlling the cutter surface area to move a second distance in a second direction to obtain a second initial position, wherein the second direction is vertical to the first direction;
and determining the second initial position as the first initial position, controlling the cutter surface area to move a first distance from the first initial position to a first direction, and determining whether the area of the cutter surface area changes.
By adopting the technical scheme, under the condition that the area of the cutter surface area changes, the cutting position is determined based on the current position of the cutter surface area, the initial position of the cutter surface area is updated, the cutter surface area is continuously controlled to move, the cutting position is continuously determined, the cutting position can be accurately determined, and meanwhile, the generation efficiency of a cutting path can be increased.
Optionally, the determining the second initial position as the first initial position includes:
determining whether the second initial position satisfies an end condition;
determining the second initial position as the first initial position if the second initial position does not satisfy the end condition.
By adopting the technical scheme, after the cutting position is determined, whether the second initial position meets the end condition or not is judged firstly, the cutting position is determined continuously under the condition that the second initial position does not meet the end condition, the search can be finished in time under the condition that the end condition is met, and the efficiency of generating the cutting path can be improved.
Optionally, the controlling the tool area to move a first distance from the first initial position to the first direction includes:
determining whether the first initial position satisfies an end condition;
and controlling the tool area to move a first distance from the first initial position to the first direction when the first initial position does not satisfy the end condition.
By adopting the technical scheme, before the cutting position is determined based on the first initial position, whether the first initial position meets the end condition or not is judged, and the step of continuously determining the cutting position is executed under the condition that the first initial position does not meet the end condition, so that the problem that the cutting position cannot be generated or an error cutting position is generated based on the first initial position under the condition that the first initial position meets the end condition can be solved, and the accuracy of the generated cutting path can be improved.
Optionally, the controlling the tool surface area to move in the cutting area, and determining the cutting position based on an area change condition of the tool surface area in the moving process further includes:
and under the condition that the area of the tool surface area is not changed, controlling the tool surface area to move the first distance towards the first direction, and executing the step of determining whether the area of the tool surface area is changed.
By adopting the technical scheme, under the condition that the area of the cutter surface area is not changed, the cutter surface area is controlled to move towards the first direction until the area of the cutter surface area is changed, so that the problem of time waste caused by blind movement of the cutter surface area can be avoided, and the time for generating the path is shortened.
Optionally, the obtaining a movement starting point of the tool surface area, and determining the movement starting point as a first movement starting point includes:
and determining a movement start point of the tool surface area based on the position information of the processing unit.
By adopting the technical scheme, the initial position of the cutter surface area is determined based on the position information of the processing part, the moving range of the cutter surface area can be reduced, the time for determining the cutting position is shortened, and the time for generating the path is shortened.
Optionally, the determining a movement start point of the tool surface area based on the position information of the processing unit includes:
the processing portion is located in the first direction of the movement starting point, and the minimum distance between the movement starting point and the processing portion in the first direction is greater than the length of the tool surface area in the first direction;
the processing portion is located in the second direction of the movement starting point, and the minimum distance between the movement starting point and the processing portion in the second direction is smaller than a preset offset distance.
By adopting the technical scheme, the processing part is positioned in the first direction of the moving starting point, the processing part is positioned in the second direction of the moving starting point, and all cutting positions can be determined by only moving the cutter surface area to the first direction and the second direction, so that the difficulty of realizing the method can be reduced, and meanwhile, the time for generating the path can be shortened.
Optionally, the workpiece drawing includes at least two constituent lines, and the method further includes:
determining a cutting line from each of the constituent lines;
and determining a processing part of the workpiece drawing based on the cutting line.
By adopting the technical scheme, the influence of the non-cutting line in the workpiece drawing on the path generation process can be removed, so that the accuracy of the determined cutting position is improved, and meanwhile, the path generation time can be shortened.
In a second aspect, the present application provides a computer device, which adopts the following technical solutions:
a computer device comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and that performs any of the methods provided by the first aspect.
In a third aspect, the present application provides a computer program product, which adopts the following technical solutions:
a computer program product comprising computer instructions for causing a computer device to perform any one of the methods provided by the first aspect when the computer program product is run on the computer device.
In summary, the present application includes at least one of the following beneficial technical effects:
1. the path generation system responds to a path generation request sent by a user to generate a cutting path, and can generate cutting paths of different types of cutters, so that the problem that the cutting path of a special-shaped cutter cannot be generated is solved; because the type of the tool does not need to be input in the path generation process, the cutting paths of different types of tools can be generated, and the use by a user is facilitated.
2. Under the condition that the area of cutter face territory changes, confirm the cutting position based on the current position of cutter face territory to the first initial position of renewal cutter face territory continues to control cutter face territory and removes, thereby constantly determines the cutting position, can accurately determine the cutting position, also can improve the generation efficiency of cutting position simultaneously.
Drawings
Fig. 1 is a schematic flowchart of a cutting path generating method according to an embodiment of the present application;
FIG. 2 is a schematic illustration of a workpiece drawing sheet and a tool face area provided by an embodiment of the present application;
FIG. 3 is a drawing of an annular seal and a workpiece for the annular seal according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a tool area situation provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of a tool face area movement path provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a tool movement path provided by an embodiment of the present application;
fig. 7 is a flowchart illustrating an example of a path generation method according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to fig. 1-8 and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
First, a number of terms related to the embodiments of the present application will be described.
The area of face means: a two-dimensional closed area with a certain boundary is a surface object. The boundary of the surface area can be formed by straight lines, multiple lines, circles, circular arcs, ellipses and other objects. The software program can fill patterns, color and analyze geometric characteristics and physical characteristics of the face area, and can also perform Boolean operation on the face area.
The lathe is that: a machine tool for turning a rotating workpiece by a tool.
The embodiment of the application discloses a cutting path generation method, which is used in a path generation system, wherein the path generation system can respond to a path generation request sent by a user, acquire a workpiece drawing and a cutter face area, control the cutter face area to move in a cutting area, determine a cutting position based on the area change condition of the cutter face area in the moving process, and finally generate a cutting path.
The path generation system may be integrated as a plug-in other software, such as: the cutting path generation system may be integrated as a plug-in Computer Aided Design (CAD) software, or may be a system capable of operating independently as long as the cutting path generation method can be implemented.
In the embodiment of the present application, a path generation system is described as an example when the path generation system runs in an electronic device, where the electronic device is a terminal, a server, or a lathe, and the terminal may be a computer, a mobile phone, a tablet computer, or the like.
The embodiment of the application discloses a cutting path generation method. Referring to fig. 1, the method includes the following steps:
step 101, in response to a path generation request, acquiring a workpiece drawing and a tool face area.
In one example, the path generation system may provide a user operation interface for receiving a path generation request sent by a user, where the path generation request may include the path generation request and a tool area and other user-defined requirements, and in an embodiment, the information may be data directly input by the user, and the data may be in the form of specific parameters, or may be a workpiece image, a tool image, and the like; in another embodiment, the information may also be directly acquired through an external device, for example, through an external image acquisition and analysis device, so that the related operation data can be directly acquired based on the workpiece and the tool, manual identification is not required, the operation is simple, and output errors caused by errors of manual identification are avoided.
In one example, the workpiece drawing is a cross-section of a workpiece model, and the tool face area is projected from the tool model.
In one example, as shown in FIG. 2, the tool portion in FIG. 2 is the tool face area 21 and the shaded portion is the workpiece drawing 22.
Optionally, obtaining a workpiece drawing includes: acquiring a workpiece image; and intercepting the processing surface in the workpiece image to obtain a workpiece drawing.
The machining surface is a surface where the machining portion is located, and the machining portion is a portion where a tool of a lathe contacts a workpiece during machining of the workpiece.
Optionally, the workpiece image may be a design drawing of the workpiece, or may also be an image obtained by image acquisition of the workpiece, and the embodiment does not limit the type of the workpiece image.
In one example, intercepting a machined surface in a workpiece image to obtain a workpiece drawing comprises: displaying a workpiece image on an operation interface of a path generation system; receiving the intercepting operation of a user on a workpiece image; and intercepting the processing surface in the working image based on the intercepting operation of the user on the working image to obtain a workpiece drawing.
In another example, intercepting a machined surface in an image of a workpiece to obtain a workpiece drawing includes: and determining a rotating shaft of the workpiece image, and intercepting a processing surface in the working image based on the rotating shaft to obtain a workpiece drawing.
Such as: as shown in fig. 3, in one example, the workpiece in fig. 3 isbase:Sub>A ring-shaped seal 3base:Sub>A, and the ring-shaped seal 3base:Sub>A is cut alongbase:Sub>A linebase:Sub>A-base:Sub>A to obtainbase:Sub>A drawing sheet 3b of the ring-shaped seal.
In actual implementation, the workpiece drawing can also be obtained in other ways, such as: and receiving a workpiece drawing input by a user, wherein the method for acquiring the workpiece drawing is not limited in the embodiment.
Optionally, the tool area is pre-stored in the electronic device, and at this time, the manner of obtaining the tool area includes: a tool face area is determined based on a user's tool specifying operation.
In one example, the tool designating operation is a tool identifier input by a user, and the tool identifiers corresponding to different tool areas are different; correspondingly, the tool area is determined based on the tool specifying operation of the user, and the method comprises the following steps: a tool face region is determined based on the tool identification entered by the user.
Optionally, the tool identifier may be a number, or may also be a letter, or may also be a combination of a number and a letter, and the embodiment does not limit the expression manner of the tool identifier.
In another example, the tool designating operation is a user selecting operation on a tool image, and the tool surface areas corresponding to different tool images are different; correspondingly, the face area is determined based on the tool specifying operation of the user, and the face area comprises the following steps: displaying the cutter image of each cutter on an operation interface of the path generation system; receiving the selection operation of a user on a tool image; and determining the tool face area based on the selection operation of the user on the tool image.
In practical implementation, the tool surface area may also be obtained by other ways, such as: acquiring a cutter image; the tool surface area is determined based on the tool image, and the embodiment does not limit the manner of obtaining the tool surface area.
Since the workpiece drawing may include a non-processed portion in addition to the processed portion, that is, there may be a portion of the workpiece drawing that is not formed by the lathe processing, this may cause a problem that the cutting path cannot be accurately determined directly based on the workpiece drawing.
Based on the above technical problem, optionally, the workpiece drawing includes at least two constituent lines, and the path generating method further includes: determining a cutting line from each of the constituent lines; and determining a processing part of the workpiece drawing based on the cutting line.
Wherein, the line of formation means: lines in the workpiece drawing.
In one example, determining a cut line from each of the constituent lines includes: displaying each composition line on an operation interface of the path generation system; receiving selection operation of a user on a formation line; the cut line is determined based on a selection operation of the constituent line by the receiving user.
And 102, controlling the cutter surface area to move in the cutting area, determining a cutting position based on the area change condition of the cutter surface area in the moving process, and positioning the processing part of the workpiece drawing in the cutting area.
Wherein, the cutting area refers to: range of motion of the tool face area.
The cutting position refers to: the position of the tool surface when the tool surface is cut into the processing portion.
The area of the cutter surface area is as follows: the area of the two-dimensional closed region corresponding to the tool face region. When the cutter surface area is not intersected with other objects, the area of the cutter surface area is the initial area of the cutter surface area; when intersecting other objects, the area of the tool face region is the difference between the initial area of the tool face region and the area of the portion of the tool face region where it intersects other objects.
The area change condition of the cutter surface area refers to that: a change in a current area of the toolface region relative to an initial area of the toolface region.
Optionally, in order to match the determined cutting position with an actual cutting position of the tool in the cutting process of the lathe, the shape of the cutting area is the same as the shape of the moving range of the turning tool mounted on the lathe.
Since the area of the tool face area is reduced due to the overlap of the tool face area and the processing portion when the tool face area is cut to the processing portion, the cutting position can be determined based on the change in the area of the tool face area.
In one example, as shown in FIG. 4, the initial area of the tool face area 21 is A; when the machined portion 22 is cut, the area of the intersection of the tool face region 21 and the machined portion 22 is B, and at this time, the area of the tool face region 21 is a-B, that is, the area of the tool face region 21 is reduced.
Optionally, in order to locate the processing portion of the workpiece drawing in the cutting area, the cutting area may be determined based on the position of the processing portion, or the position of the processing portion may be determined first, and then the processing portion is pulled into the cutting area.
Optionally, the moving direction of the tool face area includes: the first direction, the second direction, the direction opposite to the first direction and the direction opposite to the second direction, the first direction is perpendicular to the second direction.
For convenience of describing the position of the tool area and the cutting position, in this embodiment, a moving coordinate system is established, the first direction is a positive direction of an X axis in the moving coordinate system, and the second direction is a negative direction of a Z axis in the moving coordinate system, and at this time, the position of the tool area and the cutting position are expressed by coordinates on the moving coordinate system.
In practical implementation, the first direction may also be a negative direction of an X axis in the moving coordinate system, and the second direction may also be a positive direction of a Z axis in the moving coordinate system.
Further, as shown in fig. 5, in the present embodiment, the positive X-axis direction and the positive Z-axis direction of the moving coordinate system are described as up and right, respectively, and accordingly, the direction opposite to the positive X-axis direction is down and the direction opposite to the positive Z-axis direction is left.
In one example, the moving coordinate system is the same as the coordinate system used by the lathe, i.e., the position of the origin in the tool movement range, the positive direction of the X-axis, the positive direction of the Z-axis, and the scaling ratio of the scale in the coordinate system to the actual distance are the same in both the moving coordinate system and the coordinate system used by the lathe. At this time, the coordinates of the tool surface area in the movement coordinates are the coordinates of the corresponding position of the tool on the coordinate system used by the lathe.
In another example, the moving coordinate system is different from the coordinate system used by the lathe, and during actual use, the coordinates of the moving area in the moving coordinate system need to be converted based on the mapping relationship between the moving coordinate system and the coordinate system used by the lathe, so as to obtain the coordinates of the position of the tool corresponding to the coordinate coefficient used by the lathe.
Optionally, controlling the cutter surface area to move within the cutting range includes: acquiring a moving starting point of a cutter surface area, and determining the moving starting point as a first initial position; and controlling the cutter surface area to move a first distance from the first initial position to the first direction, and determining whether the area of the cutter surface area changes.
Under the condition that the area of the cutter surface area changes, determining a cutting position based on the current position of the cutter surface area; controlling the cutter surface area to move to a first initial position; controlling the cutter surface area to move a second distance in a second direction to obtain a second initial position; and determining the second initial position as a first initial position, controlling the cutter surface area to move a first distance from the first initial position to the first direction, and determining whether the area of the cutter surface area changes.
And under the condition that the area of the tool surface area is not changed, controlling the tool surface area to move a first distance in the first direction, and executing the step of determining whether the area of the tool surface area is changed.
Under the condition that the area of the cutter surface area changes, the cutting position is determined based on the current position of the cutter surface area, the initial position of the cutter surface area is updated, the cutter surface area is continuously controlled to move, the cutting position is continuously determined, the cutting position can be accurately determined, and meanwhile, the generation efficiency of a cutting path can be improved.
In one example, obtaining a movement start point for a tool face region includes: a movement start point of the tool surface area is determined based on the position information of the processing unit.
Optionally, determining a movement start point of the tool surface area based on the position information of the processing unit includes: the processing part is positioned in a first direction of the movement starting point, and the minimum distance between the movement starting point and the processing part in the first direction is greater than the length of the cutter surface area in the first direction; the processing part is positioned in a second direction of the moving starting point, and the minimum distance between the moving starting point and the processing part in the second direction is smaller than a preset offset distance.
Therefore, in a specific embodiment, a user can set offset distances corresponding to the respective movement accuracies in advance according to requirements of the respective movement accuracies on the offset distances, and when the tool face moves to the second direction with a certain movement accuracy, the system can obtain the corresponding offset distances according to the movement accuracies, so that requirements of different movement accuracies can be met.
In another example, obtaining a start point of movement for a tool face region includes: a movement start point is determined based on the cutting area.
Optionally, the movement starting point is located at the lower right corner of the uncut region.
In practical implementation, the moving start point of the tool face area may also be determined in other manners, such as: the start point of the movement of the tool surface area is determined based on the input operation of the user, and the determination method of the start position of the tool surface area is not limited in this embodiment.
In one example, the start of movement is on the Z-axis.
Optionally, the first distance is determined according to the moving accuracy of the tool surface area in the first direction, the second distance is determined according to the moving accuracy of the tool surface area in the second direction, the first distance and the second distance may be the same or different, and the size of the first distance and the size of the second distance are not limited in this embodiment.
In one example, the first distance is the same as the second distance, both being 0.01 millimeters.
Optionally, the movement precision in the first direction and the movement precision in the second direction may be directly input by a user, or may also be determined according to a lathe model input by the user, and the obtaining manner of the movement precision is not limited in this embodiment.
In an example, the first distance is pre-stored in the electronic device, in a specific implementation, a user may set the first distance corresponding to each movement precision according to a requirement of each movement precision for the first distance in advance, and when the tool face moves to the first direction with a certain movement precision, the system may obtain the corresponding first distance according to the movement precision, so that requirements of different movement precisions may be met.
In practical implementation, the first distance may also be directly input by the user, and the embodiment does not limit the determination manner of the first distance.
In this embodiment, the determination manner of the second distance is the same as that of the first distance, which is not described in detail in this embodiment.
In order to more clearly illustrate the movement of the tool face, an example is provided below for illustration. As shown in fig. 5, in this example, the first three cutting positions of the processing portion 22 are determined as an example, and the first distance and the second distance are the same and are both K; the first direction is up and the second direction is left.
The tool surface area 21 moves upwards in steps of K from the first initial position 1, when the tool surface area 21 moves to the position 2, the area of the tool surface area 21 changes, at this time, a first cutting position is determined based on the position 2, the tool surface area 21 is controlled to move to the position 3 (the position 3 is overlapped with the first initial position 1), the tool surface area 21 is controlled to move to the left by K, the second initial position 4 is reached, and the second initial position 4 is determined to be the first initial position 4.
The tool surface area 21 is moved upwards in steps of K from the first initial position 4, when the tool surface area 21 is moved to the position 5, the area of the tool surface area 21 is changed, at this time, a second cutting position is determined based on the position 5, the tool surface area 21 is controlled to move to the position 6 (the position 6 is overlapped with the first initial position 4), the tool surface area 21 is controlled to move to the left by K, the second initial position 7 is reached, and the second initial position 7 is determined to be the first initial position 7.
The tool surface 21 is moved upwards in steps of K from the first initial position 7, the area of the tool surface 21 changes when moving to the position 8, a third cutting position is determined based on the position 9, and the tool surface 21 is controlled to move to the position 9 (the position 9 coincides with the first initial position 7).
Since the tool surface area is already intersected with the workpiece when the area of the tool surface area changes, and if the current position of the tool surface area is directly determined as the cutting position, the problem of over-cutting of the workpiece may be caused, in this embodiment, when the area of the tool surface area changes, the determining of the cutting position based on the current position of the tool surface area includes: acquiring a reference coordinate of the current position of the cutter area; and moving the reference coordinate by a reference distance in the direction opposite to the first direction to obtain the coordinate of the cutting position.
Optionally, the reference distance is pre-stored in the electronic device and may be set according to the first distance, and therefore, in a specific embodiment, the user may set the reference distance corresponding to each first distance according to a requirement of each first distance on the reference distance in advance, and when the tool face moves to the first direction with a certain first distance, the system may obtain the corresponding reference distance according to the first distance, so that requirements of different first distances may be met.
Optionally, the reference distance is less than or equal to the first distance.
In one example, the reference distance is equal to the first distance.
In the case where the initial region is not determined based on the position of the processing portion, the first initial position may be relatively distant from the processing portion, and in this case, if the tool surface is controlled to move from the first initial position in the first direction, the area of the tool surface may not change during the movement, and the cutting position may not be determined.
Based on the above technical problem, optionally, in a case that the area of the tool surface area is not changed, the step of controlling the tool surface area to move a first distance in the first direction and determining whether the area of the tool surface area is changed is performed, and includes: determining whether the current position of the tool face area meets a continuous searching condition under the condition that the area of the tool face area is not changed;
under the condition that the current position of the cutter surface area meets the condition of continuing searching, controlling the cutter surface area to move a first distance to a first direction, and executing the step of determining whether the area of the cutter surface area changes;
under the condition that the current position of the cutter surface area does not meet the continuous searching condition, controlling the cutter surface area to move to a first initial position; controlling the cutter surface area to move a second distance towards a second direction; and determining the current position of the tool surface area as a first initial position, executing the step of controlling the tool surface area to move a first distance from the first initial position to a first direction, and determining whether the area of the tool surface area changes.
In one example, the condition for continuing the search is determined based on the position of the processing portion, and in this case, the condition for continuing the search may be determined based on the maximum value of the coordinates of the processing portion in the first direction, such as: the continuous search condition is that the coordinates of the tool surface area in the first direction are smaller than the maximum value of the coordinates of the processing unit in the first direction.
In another example, the continuation search condition is determined based on the cutting region, and at this time, the continuation search condition may be determined based on a boundary of the cutting region in the first direction, such as: the search continuation condition is that the cutter face is located within the boundary of the cutting region in the first direction.
In practical implementation, the condition for continuing to search may also be determined based on other ways, such as: the continuous search condition is determined based on the number of times the tool surface area is continuously moved in the first direction, and the determination manner of the continuous search condition is not limited in this embodiment.
Optionally, in the process of moving the tool surface area, it is required to determine whether the position of the tool surface area meets an end condition, and if the position of the tool surface area meets the end condition, step 103 is executed; and under the condition that the position of the cutter surface area does not meet the end condition, continuously determining the cutting position.
In one example, the ending condition is determined based on a preset ending position, and at this time, the ending condition may be: the position of the tool face area coincides with the end position or the position of the tool face area is located in a second direction of the end position.
In another example, the end condition is determined based on the cutting area, in which case the end condition may be determined based on the boundary of the cutting area in the second direction, such as: the end condition is that the tool face area is located outside the boundary of the cutting area in the second direction.
In practical implementation, the ending condition may also be determined based on other ways, such as: the termination condition may be determined based on a maximum value of the coordinates of the processing portion in the second direction, and the present embodiment does not limit the manner of determination of the termination condition.
Optionally, determining whether the position of the tool face region satisfies the end condition includes the following cases:
the first method, when determining the second initial position as the first initial position, determining whether the position of the tool surface area satisfies an end condition, and in this case, determining the second initial position as the first initial position, includes: determining whether the second initial position satisfies an end condition; determining the second initial position as the first initial position when the second initial position does not meet the end condition; if the position of the tool face satisfies the end condition, step 103 is executed.
Second, when the tool surface is controlled to move from the first initial position to the first direction, determining whether the position of the tool surface satisfies an end condition, and at this time, controlling the tool surface to move from the first initial position to the first direction by a first distance includes: determining whether the first initial position satisfies an end condition; under the condition that the first initial position does not meet the end condition, controlling the cutter surface area to move a first distance from the first initial position to a first direction; if the position of the tool surface region satisfies the end condition, step 103 is executed.
Step 103, when the position of the tool surface area satisfies the end condition, a cutting path is generated based on each cutting position.
Optionally, generating a cutting path based on each cutting position includes: and arranging all cutting positions according to the generation sequence to obtain a cutting path.
In practical implementation, in a case where an actual moving direction of the tool is opposite to the second direction during the machining, generating a cutting path based on each cutting position includes: and arranging the cutting positions in the reverse order of the generation order to obtain a cutting path.
In one example, the storing the cutting path in a path array, where elements in the path array are used to store coordinates of the cutting positions, and at this time, the cutting positions are arranged according to the generation sequence to obtain the cutting path, including: and inserting the coordinates of each cutting position into the path array according to the generation sequence to obtain a cutting path.
In the case of numerical control machining, the format of the control program is the mode code + coordinates of the cutting position. Such as: the mode code is G01, and the coordinates of the cutting position are (X =10, z = 10), (X =10.1, z = 10.1), and (X =10.2, z = 10.2), in this order, the corresponding control program is as follows:
G01 X10,Z10
X10.1 Z10.1
X10.2 Z10.2
in one example, the process of the knife moving according to the cutting path is shown in FIG. 6.
The implementation principle of the embodiment of the application is as follows: the path generation system responds to a path generation request sent by a user, acquires a workpiece drawing and a cutter face area, controls the cutter face area to move in a cutting area, determines a cutting position based on the area change condition of the cutter face area in the moving process, finally generates a cutting path, can generate the cutting paths of different types of cutters, and accordingly solves the problem that the cutting path of a special-shaped cutter cannot be generated; because the type of the cutter does not need to be input in the path generation process, the cutting paths of different types of cutters can be generated, and the use by a user is facilitated.
In addition, under the condition that the area of the cutter surface area changes, the cutting position is determined based on the current position of the cutter surface area, the initial position of the cutter surface area is updated, and the cutter surface area is continuously controlled to move, so that the cutting position is continuously determined, the cutting position can be accurately determined, and meanwhile, the generation efficiency of a cutting path can be improved.
In addition, before the cutting position is determined based on the first initial position, whether the first initial position meets the end condition is judged, and the step of continuously determining the cutting position is executed under the condition that the first initial position does not meet the end condition, so that the problem that the cutting position cannot be generated or an error cutting position is generated based on the first initial position under the condition that the first initial position meets the end condition can be solved, and the accuracy of the generated cutting path can be improved.
In order to more clearly understand the cutting path generation method provided by the present application, the embodiment of the present application further describes an example of the method. In this example, the first direction is upward along the X-axis, the second direction is leftward along the Z-axis, the first distance and the second distance are both K, and the initial area of the tool face is A. As shown in fig. 7, the method includes the following steps:
step 701, in response to a path generation request, acquiring a workpiece drawing and a tool face area.
And step 702, controlling the cutter surface area to move to the left along the Z axis by K.
And step 703, controlling the cutter surface area to move K upwards along the X axis.
Step 704, acquiring the area of the cutter surface area, and determining whether the area of the cutter surface area is smaller than A; in case the area of the tool face is equal to a, perform step 703; in the case where the area of the tool face is smaller than a, step 705 is performed.
Step 705, inserting the X coordinate of the current position of the tool area minus K and the Z coordinate of the current position into the path array.
And step 706, controlling the tool surface area to move downwards along the X axis to the position of X = 0.
Step 707, judging whether the Z coordinate of the current position of the tool area meets an end condition; executing step 702 under the condition that the Z coordinate of the current position of the tool face area does not meet the end condition; in the case where the Z-coordinate of the current position of the tool face satisfies the end condition, step 708 is executed.
In step 708, the path array is output, and the process ends.
For related details, reference is made to the above-described cutting path generation method.
The implementation principle of the embodiment of the application is as follows: under the condition that the area of the cutter surface area is not changed, the cutter surface area is controlled to move upwards until the area of the cutter surface area is changed, so that the problem of time waste caused by blind movement of the cutter surface area can be avoided, and the time for generating the path is shortened.
The embodiment of the application also discloses computer equipment.
Specifically, the computer device includes a memory and a processor.
As shown in fig. 8, for a server disclosed in the present application, the computer device includes a memory 810 and a processor 820, the number of the processors 820 in the computer device may be one or more, and one processor 820 is taken as an example in fig. 8; the memory 810 and the processor 820 in the device may be connected by a bus or other means, and fig. 8 illustrates the connection by the bus as an example.
The memory 810 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the cutting path generating method in the embodiment of the present invention; the processor 820 executes various functional applications and data processing of the device/terminal/apparatus by executing software programs, instructions and modules stored in the memory 810, that is, implements the above-described cut path generation method.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product.
The embodiment of the application also discloses a computer program product.
In particular, the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or a portion of the procedures or functions according to the embodiments of the present application are generated. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, e.g., the computer instructions may be transmitted from one website site, computer, training device, or data center to another website site, computer, training device, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). Computer-readable storage media can be any available media that a computer can store or data storage devices, including training devices, data centers, and the like, that incorporate one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
The foregoing is a preferred embodiment of the present application and is not intended to limit the scope of the application in any way, and any features disclosed in this specification (including the abstract and drawings) may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.

Claims (10)

1. A cutting path generation method, used in a path generation system, the method comprising:
responding to a path generation request, and acquiring a workpiece drawing and a cutter face area, wherein a processing part of the workpiece drawing is positioned in a cutting area;
controlling the cutter surface area to move in the cutting area, and determining a cutting position based on the area change condition of the cutter surface area in the moving process;
and generating a cutting path based on each cutting position when the position of the cutter surface area meets an end condition.
2. The method of claim 1, wherein controlling the tool face to move within the cutting region, and determining the cutting position based on an area change of the tool face during the moving comprises:
acquiring a movement starting point of the cutter surface area, and determining the movement starting point as a first initial position;
controlling the cutter surface area to move a first distance from the first initial position to the first direction, and determining whether the area of the cutter surface area changes;
determining the cutting position based on the current position of the tool face area under the condition that the area of the tool face area changes; controlling the cutter surface area to move to the first initial position; controlling the cutter surface area to move a second distance in a second direction to obtain a second initial position, wherein the second direction is vertical to the first direction;
and determining the second initial position as the first initial position, controlling the cutter surface area to move a first distance from the first initial position to a first direction, and determining whether the area of the cutter surface area changes.
3. The method of claim 2, wherein the determining the second initial position as the first initial position comprises:
determining whether the second initial position satisfies an end condition;
determining the second initial position as the first initial position if the second initial position does not satisfy the end condition.
4. The method of claim 2, wherein said controlling said tool face to move a first distance from said first initial position to said first direction comprises:
determining whether the first initial position satisfies an end condition;
and controlling the tool area to move a first distance from the first initial position to the first direction when the first initial position does not satisfy the end condition.
5. The method of claim 2, wherein the controlling the tool face to move within a cutting region, wherein a cutting location is determined based on an area change of the tool face during the moving, and further comprising:
and under the condition that the area of the tool surface area is not changed, controlling the tool surface area to move the first distance towards the first direction, and executing the step of determining whether the area of the tool surface area is changed.
6. The method of claim 2, wherein the obtaining the moving start point of the tool face area comprises:
and determining a movement start point of the tool surface area based on the position information of the processing unit.
7. The method according to claim 6, wherein the determining a movement start point of the tool face area based on the position information of the processing portion includes:
the processing part is positioned in the first direction of the movement starting point, and the minimum distance between the movement starting point and the processing part in the first direction is greater than the length of the cutter surface area in the first direction;
the processing part is located in the second direction of the movement starting point, and the minimum distance between the movement starting point and the processing part in the second direction is smaller than a preset offset distance.
8. The method of claim 1, wherein the workpiece drawing includes at least two constituent lines, the method further comprising:
determining a cutting line from each of the constituent lines;
and determining a processing part of the workpiece drawing based on the cutting line.
9. A computer device comprising a memory and a processor, the memory having stored thereon a computer program that can be loaded by the processor and that executes the method according to any of claims 1 to 8.
10. A computer program product comprising computer instructions for causing a computer device to perform the method of any one of claims 1 to 8 when the computer program product is run on the computer device.
CN202210927208.2A 2022-08-03 2022-08-03 Cutting path generation method, device and program product Pending CN115167285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210927208.2A CN115167285A (en) 2022-08-03 2022-08-03 Cutting path generation method, device and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210927208.2A CN115167285A (en) 2022-08-03 2022-08-03 Cutting path generation method, device and program product

Publications (1)

Publication Number Publication Date
CN115167285A true CN115167285A (en) 2022-10-11

Family

ID=83478176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210927208.2A Pending CN115167285A (en) 2022-08-03 2022-08-03 Cutting path generation method, device and program product

Country Status (1)

Country Link
CN (1) CN115167285A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116596958A (en) * 2023-07-18 2023-08-15 四川迪晟新达类脑智能技术有限公司 Target tracking method and device based on online sample augmentation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116596958A (en) * 2023-07-18 2023-08-15 四川迪晟新达类脑智能技术有限公司 Target tracking method and device based on online sample augmentation
CN116596958B (en) * 2023-07-18 2023-10-10 四川迪晟新达类脑智能技术有限公司 Target tracking method and device based on online sample augmentation

Similar Documents

Publication Publication Date Title
US10078321B2 (en) Device, system and methods for automatic development and optimization of positioning paths for multi-axis numerically controlled machining
CN108369407B (en) Tool path correction device and tool path correction method
CN105793788B (en) The control device of work mechanism
JP5459255B2 (en) Robot system
JP5925976B1 (en) Machining program editing support device
EP3028103B1 (en) Device, system and methods for automatic development and optimization of positioning paths for multi-axis numerically controlled machining
US11048231B2 (en) Beam tool pathing for 3D compound contours using machining path surfaces to maintain a single solid representation of objects
JP5905159B2 (en) Numerical control program editing apparatus, numerical control program editing method and program
JP5436733B1 (en) Numerical control machining program creation device
CN103576606A (en) Machining support apparatus and machining support system
JP2016528620A5 (en)
CN109358567B (en) Method for compensating and processing cutter path of numerical control machine tool
CN115167285A (en) Cutting path generation method, device and program product
US11138808B2 (en) Apparatus and method for processor-aided design of a workholding frame
JP2004110828A (en) Method and system for generating numerical control tool path on solid model
CN115933538A (en) Equipment control method and system
US10877457B2 (en) Method for providing a travel profile, control device, machine, and computer program
JP6110692B2 (en) Machining data creation system and method using original abutting tip and abutting position defining method
JP2005349520A (en) Wire-cut electric-discharge machining method, machining program producing method in wire-cut electric-discharge machining method, and wire cut electric-discharge machining program producing device
CN116847958A (en) Method and device for adjusting a robot path for processing a workpiece
CA2822563C (en) Device, system and methods for automatic development and optimization of positioning paths for multi-axis numerically controlled machining
EP1116078B1 (en) Process and system for working a workpiece through numerically controlled machine tools
Brecher et al. Numerical Controllers
US20210397159A1 (en) Processing support system
JP2022111397A (en) NC data creation support device, NC data creation support method, and NC data creation support program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination