WO2020178978A1 - Machining program conversion device, numerical control device, and machining program conversion method - Google Patents

Machining program conversion device, numerical control device, and machining program conversion method Download PDF

Info

Publication number
WO2020178978A1
WO2020178978A1 PCT/JP2019/008587 JP2019008587W WO2020178978A1 WO 2020178978 A1 WO2020178978 A1 WO 2020178978A1 JP 2019008587 W JP2019008587 W JP 2019008587W WO 2020178978 A1 WO2020178978 A1 WO 2020178978A1
Authority
WO
WIPO (PCT)
Prior art keywords
tool
path
point
distance
machining
Prior art date
Application number
PCT/JP2019/008587
Other languages
French (fr)
Japanese (ja)
Inventor
弘樹 金子
入口 健二
Original Assignee
三菱電機株式会社
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 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to PCT/JP2019/008587 priority Critical patent/WO2020178978A1/en
Priority to CN202080017844.0A priority patent/CN113490894A/en
Priority to DE112020000656.5T priority patent/DE112020000656T5/en
Priority to JP2020540366A priority patent/JP6808106B1/en
Priority to PCT/JP2020/008990 priority patent/WO2020179798A1/en
Publication of WO2020178978A1 publication Critical patent/WO2020178978A1/en

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/41Numerical 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 interpolation, e.g. the computation of intermediate points between programmed end points to define the path to be followed and the rate of travel along that path
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B13/00Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
    • G05B13/02Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
    • G05B13/0265Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric the criterion being a learning criterion

Definitions

  • the present invention relates to a machining program conversion device for converting a numerical control machining program, a numerical control device, and a machining program conversion method.
  • machining program In order to machine a machining object by a numerical control device, a tool mounted on the machining target or a machine tool controlled by the numerical control device (hereinafter, simply referred to as “numerical control machine tool”) is set in advance.
  • a numerically controlled machining program (hereinafter simply referred to as “machining program”) in which a movement command for moving to a different path is described is used.
  • the processing program is created by, for example, a commercially available CAD (Computer-Aided Design)/CAM (Computer-Aided Manufacturing) system, and described in a predetermined format of a character string such as a G code and a macro statement.
  • a CAD / CAM system is used to virtually move the tool so as to be in contact with the curved surface to be machined (hereinafter, simply referred to as "machined curved surface").
  • the ideal path is sequenced by a machining program to generate command points, a path approximated by a minute line segment connecting each command point is created, and then a numerically controlled machine tool is used to create a tool along the tool path. Is being moved to cut the object to be processed.
  • the tool path output from the CAD / CAM system is described in the machining program as a G-code movement command that can be interpreted by the numerical control device, and the machining program is input to the numerical control device of the numerical control machine tool.
  • the numerical control device creates and interpolates the tool path for each interpolation cycle from the movement command by reading and interpreting the machining program.
  • the numerical control device controls each axis of the numerically controlled machine tool by the created interpolation data, and moves the tool to a desired position to machine the object to be machined.
  • the machining quality is degraded because the machining is performed by interpolating on the straight line represented by the minute line segment.
  • a curved path is approximately generated from the tool path, and the generated curved path is interpolated for machining. As a result, it can be expected that a smooth processing result can be obtained.
  • Patent Document 1 is characterized in that a plurality of target points are set at equal intervals on a tool path, an approximate curve is calculated based on the plurality of target points, and a tool path along the approximate curve is generated. A method of generating a tool path is disclosed.
  • the present invention has been made to solve the above problems, and an object of the present invention is to provide a machining program conversion device and a numerical control device capable of improving the machining accuracy of a machining result of a machining object. ..
  • the machining program conversion device is provided on the tool path according to the movement command based on the tool path obtained from the machining program in which the movement command for the tool is described.
  • the curve path generator that generates a curve path between a plurality of command points and the tool that operates according to the curve path operates along the machined curved surface that is the finished shape of the object to be machined.
  • a permissible dimension tolerance input section for judging whether or not the distance L is within a permissible range value input to the permissible dimension tolerance input section, and a case where the distance L is out of the permissible range, Only the evaluation points that are out of the permissible range are moved to a position where the distance L is within the permissible range, the evaluation points after the movement are set as new command points, and a tool path correction unit that corrects the tool path is provided.
  • the numerical control device generates a curved path between a plurality of command points provided on the tool path according to the movement command based on the tool path obtained from the machining program in which the movement command for the tool is described.
  • the evaluation point is a point provided on the curved path to determine whether the curved path generator and the tool that operates according to the curved path operate along the machined curved surface that is the finished shape of the object to be machined.
  • the allowable dimensional tolerance input unit in which the value of the allowable range for the distance L, which is the distance between the evaluation point and the reference point, is input, and the distance L is the allowable dimensional tolerance.
  • the machining path is corrected by correcting the tool path so that the distance between the evaluation point on the curved path and the reference point provided on the machining curved surface is within the allowable range. It is possible to improve the processing accuracy of the processing result of. Further, according to the numerical control device according to the present invention, numerical control can be performed according to the modified tool path, so that the work efficiency can be improved.
  • FIG. 5 is a diagram showing an example of a finished shape machined by a tool path in the machining program conversion device according to the first embodiment of the present invention. It is a figure which showed the state which arranged the curved path and the finished shape correspond with each other from the cross-sectional direction in the machining program conversion apparatus which concerns on Embodiment 1 of this invention.
  • FIG. 6 is a diagram showing a state where the tool and the machining curved surface are apart from each other, in the machining program conversion device according to the first embodiment of the present invention, taking a case of a ball end mill tool as an example.
  • FIG. 3 is a diagram showing a state where the tool and a machining curved surface are in contact with each other, in the machining program conversion device according to the first embodiment of the present invention, by taking a case of a ball end mill tool as an example.
  • FIG. 6 is a diagram showing a state in which the tool and the machining curved surface are in an interference state in the machining program conversion device according to the first embodiment of the present invention, taking a case of a ball end mill tool as an example.
  • FIG. 4 is a diagram showing a state where the tool and the machining curved surface are apart from each other, in the machining program conversion device according to the first embodiment of the present invention, taking a case of a flat end mill tool as an example.
  • FIG. 6 is a diagram showing a state where the tool and a machining curved surface are in contact with each other, in the machining program conversion device according to the first embodiment of the present invention, by taking a case of a flat end mill tool as an example.
  • FIG. 6 is a diagram showing a state in which the tool and the machining curved surface interfere with each other in the machining program conversion device according to the first embodiment of the present invention, taking a case of a flat end mill tool as an example.
  • FIG. 6 is a diagram showing a state where the tool and the machining curved surface are apart from each other in the machining program conversion device according to the first embodiment of the present invention, by taking a case of a radius end mill tool as an example.
  • FIG. 6 is a diagram showing a state where the tool and a machining curved surface are in contact with each other, in the machining program conversion device according to the first embodiment of the present invention, by taking a case of a radius end mill tool as an example.
  • FIG. 4 is a diagram showing a state in which the tool and the machining curved surface are interfering with each other in the machining program conversion device according to the first embodiment of the present invention, taking a case of a radius end mill tool as an example.
  • FIG. 6 is a diagram showing an example of a state in which the evaluation point is moved and a new command point is added so that the tool and the machining curved surface are in contact with each other in the machining program conversion device according to the first embodiment of the present invention.
  • FIG. 5 is a diagram showing an example of a curved path passing through two points after excluding the middle point from three adjacent command points in the machining program conversion apparatus according to the second embodiment of the present invention. It is the figure which showed an example of the finished shape processed by a tool path in the processing program converter which concerns on Embodiment 2 of this invention.
  • FIG. 5 is a diagram showing a state in which the tool and the machining curved surface are separated from each other, taking the case of a ball end mill tool as an example in the machining program conversion apparatus according to the second embodiment of the present invention.
  • FIG. 11 is a diagram showing a state where the tool and the machining curved surface are in contact with each other, in the machining program conversion device according to the second embodiment of the present invention, taking a case of a ball end mill tool as an example.
  • FIG. 5 is a diagram showing a state in which the tool and the machining curved surface are separated from each other, taking the case of a ball end mill tool as an example in the machining program conversion apparatus according to the second embodiment of the present invention.
  • FIG. 11 is a diagram showing a state where the tool and the machining curved surface are in contact with each other, in the machining program conversion device according to the second embodiment of the present invention, taking a case of a ball end mill tool as an example.
  • FIG. 5 is a diagram showing a
  • FIG. 11 is a diagram showing a state in which the tool and a machining curved surface are in an interference state in the machining program conversion device according to the second embodiment of the present invention, taking a case of a ball end mill tool as an example. It is the figure which showed an example which corrected the tool path
  • a machining program conversion device, a machining program conversion method, and a numerical control device will be described below with reference to the drawings. The invention is not limited to the embodiments.
  • Embodiment 1. 1 is a diagram showing a configuration example of a machining program conversion device according to a first embodiment of the present invention.
  • the machining program conversion device 100 is obtained by a machining program input unit 101 that receives a machining program input from the outside, a machining program analysis unit 102 that analyzes the input machining program and obtains a tool path, and a machining program analysis unit 102.
  • a tool path storage unit 103 for storing a tool path stored therein, a curve path generation unit 104 for generating a curve path according to the tool path stored in the tool path storage unit 103, and a tool data input unit 105 for inputting tool data.
  • a shape data input unit 106 for inputting the shape data of the processed object after processing, and points formed on the curved path for determining whether the tool operates along the processed curved surface of the processed object and the processed curved surface. Allowable dimension tolerance input unit 107 for inputting the allowable range of distance, curved path evaluation unit 108 for determining whether the distance between a point provided on the curved path and the machined curved surface is within the allowable range, and modifying the tool path.
  • the tool path correction unit 109 and the post-conversion machining program output unit 110 are provided.
  • the post-conversion machining program output unit 110 converts the machining program after the tool path is corrected according to a predetermined conversion method, and outputs the converted machining program to the numerical controller 111, which is an external device.
  • the external device is not limited to the numerical control device and may be, for example, a program confirmation device or a tool path display device.
  • FIG. 2 is a flowchart showing an operation example of the machining program conversion device 100 according to the first embodiment. The procedure of the operation of the machining program conversion device 100 for generating or correcting the tool path will be described with reference to FIG.
  • a machining program is input to the machining program conversion device 100 (step S101). That is, in the machining program conversion device 100, the machining program input unit 101 reads a machining program for controlling the machine tool from the outside.
  • the machining program describes a movement command for moving a workpiece or a tool, which is a machining object, to a preset route.
  • the input of the machining program executed in step S101 is realized by reading the file in which the format of the G code is described, which is output by the CAD / CAM system. Alternatively, it is realized by the operator operating the input device such as the keyboard to input necessary information and creating the machining program.
  • the machining program conversion apparatus 100 analyzes the machining program acquired by executing step S101 by the machining program analysis unit 102 and obtains the tool path described in the machining program (step S102). Specifically, the processing program described in G code or the like, that is, the tool path information is read. The read tool path is stored in the tool path storage unit 103 (step S103).
  • FIG. 3 is an example of a tool path converted from the machining program.
  • the tool path has command points P1 to P6, and the command points are connected by a straight line.
  • the command point means a point commanded by the machining program.
  • the intervals between the command points are predetermined by the machining program.
  • the curved path generation unit 104 generates a curved path between the adjacent command points according to the tool path stored in the tool path storage unit 103 (step S104).
  • FIG. 4 shows an example of a curved path generated according to the tool path having the command points P1 to P6.
  • the curved path shown in FIG. 4 is generated such that the tool passes between the command points along the curved paths TP1 to TP6.
  • the curve path generated by the machining program conversion device 100 needs to be the same curve as the curve on which the numerical control device 111 moves, that is, the curve that can form the shape of the machining object to be machined by the numerical control device 111. Therefore, it is desirable that the method of generating the curve path is the same as the method of generating the curve path in the numerical control device 111 in which the machining program input to the machining program conversion device 100 is finally input.
  • the method of generating the curved path for example, there is a method of interpolating the spline curve so as to pass each command point.
  • Tool data is externally input to the tool data input unit 105 (step S105).
  • the tool data is information that defines the shape of the tool for processing the object to be processed, and includes information that expresses the type of the tool and information that expresses the shape of the tool such as the tool diameter, the tool cutting edge radius, and the tool length. Further, in the case of a tool shape having a taper or the like, the tool data input unit 105 may be given information on the inclination of the tool outer diameter bus with respect to the central axis of the tool, or has an asymmetric shape such as a turning tool. Tool information may be provided.
  • the external input is performed by a method such as an input operation of a keyboard by an operator or a data conversion from CAD data.
  • the machining program conversion device 100 can generate a tool model based on the tool data.
  • FIG. 5 shows an example of a tool passing on the tool path.
  • the tool T10 is the shape of the ball end mill generated based on the tool data.
  • Shape data is externally input to the shape data input unit 106 (step S105).
  • the shape data is information that defines the shape of the processed object after processing, and is information that can generate a finished shape that is the target shape of the processed object.
  • the finished shape has a processed curved surface S1 that is a curved surface to be processed.
  • the finished shape is an ideal shape of a workpiece that is machined as a result by the machine tool processing the object according to the machining program.
  • the machine tool processes the object to be processed so that the difference between the finished shape and the object is reduced.
  • the external input is performed by a method such as an input operation of a keyboard by an operator or a data conversion from CAD data.
  • FIG. 6 is an example of the finished shape processed by the tool path.
  • the finished shape M1 shown in FIG. 6 is generated based on the shape data input to the shape data input unit 106, and has a processed curved surface S1.
  • FIG. 7 shows a state in which the curved path and the finished shape M1 are arranged so as to correspond to each other from the cross-sectional direction.
  • the evaluation points Q1 to Q5 are set on the curved path TP3.
  • the evaluation point refers to a point provided on the curved path for determining whether or not the tool that operates according to the curved path moves along the machining curved surface of the machining target.
  • the evaluation points can be obtained, for example, as points sampled on the curve path so that the curve parameters are evenly spaced, or the maximum error between the line segment connecting adjacent evaluation points and the curve path is a predetermined value. There is a method of iteratively determining until the following.
  • FIG. 8 shows a state where the processing curved surface S1 and the tool T10 are apart from each other.
  • the point on the machining curved surface S1 where the distance between the tool T10 and the machining curved surface S1 is the shortest is defined as a reference point C1.
  • the reference point C1 is also a point on the machining curved surface S1 in which the distance between the evaluation point Q arranged on the tool and the machining curved surface S1 in step S106 described later is the shortest.
  • the distance between the evaluation point Q and the reference point C1 is defined as the distance L1.
  • FIG. 9 shows a state where the machining curved surface S1 and the tool T10 are in contact with each other.
  • the point where the tool T10 and the machining curved surface S1 come into contact is defined as the reference point C2.
  • the reference point C2 is also a cutting point when the tool T10 cuts the machining curved surface S1.
  • the distance between the evaluation point Q and the reference point C2 is the distance L2
  • the distance L2 is the most ideal value for machining an object to be machined with a machine tool.
  • FIG. 10 shows a state in which the tool T10 interferes with the machining curved surface S1.
  • a point on the machining curved surface S1 where the distance between the evaluation point Q of the tool T10 and the machining curved surface S1 is the shortest is defined as a reference point C3.
  • the tool may be offset until the tool and the machined surface come into contact with each other, and the point where the offset tool and the machined surface contact with each other may be obtained as the reference point C3.
  • the reference point C3 is a point where the tool T10 offset indicated by a dotted line in FIG. 10 and the machining curved surface S1 are in contact with each other.
  • the distance between the evaluation point Q and the reference point C3 is defined as the distance L3.
  • the allowable range with respect to the distance L will be described assuming that the distance L2 is 2.00 mm. If the dimensional tolerance of the machining curved surface of a certain object is ⁇ 0.05 mm with respect to the standard tolerance, the distance L1 is 2.00 mm ⁇ distance L1 ⁇ 2.05 mm, and the distance L3 is 1.95 mm ⁇ . The distance L3 becomes ⁇ 2.00 mm. Therefore, the allowable range of the distance L is 1.95 mm ⁇ distance L ⁇ 2.05 mm.
  • the evaluation point Q of the tool T10 is provided on the central axis and near the tip of the tool T10, but the evaluation point Q may be provided, for example, at the tip of the tool. It may be provided at a portion or a point on the tool T10 where the object to be processed is cut, or may be provided at a point on the tool T10 where the distance between the tool T10 and the processing curved surface S1 is the shortest. However, after setting a specific position on the tool as the evaluation point Q, the distance L is evaluated at the set evaluation point Q.
  • the allowable dimension tolerance input unit 107 inputs an allowable range with respect to the distance L (step S105).
  • the value of the allowable range is determined by the machining accuracy targeted by each of the objects to be machined. Further, when the shape data input by the shape data input unit 106 has information on the machining tolerance with respect to the machining curved surface of the machining object, the allowable range value may be obtained according to the machining tolerance. In this case, the allowable range can be automatically set according to the machined portion, and the work efficiency is improved.
  • the value of the allowable range input to the allowable dimension tolerance input unit 107 may be the allowable range of the shortest distance between the tool and the finished shape. For example, if the dimensional tolerance of the machining curved surface of a certain object is ⁇ 0.05 mm with respect to the standard tolerance, the difference in the shortest distance between the tool and the machining curved surface of the finished shape may be within 0.05 mm. Therefore, the value in the allowable range is given as 0.05 mm.
  • the allowable range for the distance L is input to the allowable dimensional tolerance input unit 107, but the value of the allowable range for the distance L is input to the allowable dimensional tolerance storage unit of the machining program conversion device 100 (not shown in advance). It may be stored.
  • FIG. 11 shows a state in which the machining curved surface S2 and the tool T11 are separated from each other.
  • a point on the machining curved surface S2 where the distance between the tool T11 and the machining curved surface S2 is the shortest is defined as a reference point C2.
  • the distance between the evaluation point Q and the reference point C11 is defined as the distance L11.
  • FIG. 12 shows a state in which the machining curved surface S2 and the tool T11 are in contact with each other.
  • the point where the tool T11 and the machining curved surface S2 meet is defined as the reference point C12.
  • the distance between the evaluation point Q and the reference point C12 is the distance L12
  • the distance L12 is the most ideal value for machining an object to be machined with a machine tool.
  • FIG. 13 shows how the tool T11 is in a state of interfering with the machining curved surface S2.
  • the point on the machining curved surface S2 where the distance between the evaluation point Q of the tool T11 and the machining curved surface S2 is the shortest is set as a reference point C13.
  • the reference point C13 is a point where the tool T11 offset indicated by the dotted line in FIG. 13 and the machining curved surface S2 are in contact with each other.
  • the distance between the evaluation point Q and the reference point C13 is defined as the distance L13.
  • the evaluation point Q of the tool T11 is provided at the center of the tip of the tool T11.
  • the evaluation point Q is, for example, a portion of the tool T11 for cutting an object to be machined. It may be provided at a point, or may be provided at a point on the tool T11 where the distance between the tool T11 and the processing curved surface S2 is the shortest. However, after setting a specific position on the tool as the evaluation point Q, the distance L is evaluated at the set evaluation point Q.
  • FIG. 14 shows a state where the machining curved surface S3 and the tool T12 are apart from each other.
  • a point on the machining curved surface S3 where the distance between the tool T12 and the machining curved surface S3 is the shortest is defined as a reference point C21.
  • the distance between the evaluation point Q and the reference point C21 is defined as a distance L21.
  • FIG. 15 shows a state in which the machining curved surface S3 and the tool T12 are in contact with each other.
  • the point where the tool T12 and the machining curved surface S3 meet is defined as the reference point C22.
  • the distance L22 is the most ideal value for machining an object to be machined with a machine tool.
  • FIG. 16 shows a state in which the tool T12 interferes with the processing curved surface S3.
  • a point on the machining curved surface S3 where the distance between the evaluation point Q of the tool T12 and the machining curved surface S3 is the shortest is set as a reference point C23.
  • the reference point C23 is a point where the tool T12 offset indicated by the dotted line in FIG. 16 and the machining curved surface S3 are in contact with each other.
  • the distance between the evaluation point Q and the reference point C23 is defined as the distance L23.
  • the evaluation point Q of the tool T12 is provided near the central axis and the tip of the tool T12.
  • the evaluation point Q is, for example, cutting an object to be machined on the tool T12. It may be provided at a portion or a point to be formed, or may be provided at a point on the tool T10 where the distance between the tool T12 and the processing curved surface S3 is the shortest. However, after setting a specific position on the tool as the evaluation point Q, the distance L is evaluated at the set evaluation point Q.
  • the curve path evaluation unit 108 evaluates the curve path TP generated by the curve path generation unit 104 according to the values of the allowable range input to the tool data, the shape data, and the allowable dimensional tolerance input unit (step S106). .. First, a plurality of evaluation points are obtained on the curved paths TP1 to TP6. Subsequently, as shown in FIGS. 8 to 16, the tools generated based on the tool data input in step 5 are arranged so as to correspond to the obtained evaluation points Q. At this time, when the tool is arranged at the evaluation point Q, ideally the tool and the finished curved surface of the shape come into contact with each other.
  • the curved path evaluation unit 108 evaluates whether or not the value of the distance L is within the allowable range for the curved path TP. When the distance L obtained in a certain curved path TP is larger than the allowable range with respect to the distance L, the process proceeds to step S107 described later with the curved path TP as the curved path to be corrected. When the distance L obtained on all the curved paths TP is within the allowable range for the distance L, the process proceeds to step S108 described later.
  • the tool path evaluation unit 108 if the value of the distance L exceeds the allowable range for the distance L, that is, if “NO” in step S106, the tool path is corrected (step S107).
  • the operation for correcting the tool path will be described with reference to FIG. 17, taking as an example the case where the tool T10, which is a ball end mill, is in a state where the tool T10 and the machining curved surface S1 as shown in FIG. 10 interfere with each other. To do.
  • FIG. 17 is a diagram showing an example of how the evaluation point is moved so that the tool T10 and the machining curved surface S1 are in contact with each other and a new command point is added.
  • the tool path correction unit 109 extracts the evaluation point Q that is the largest out of the allowable range for the distance L from the evaluation points Q on the correction target curved path TP obtained in step S106.
  • the curved path TP3 is the curved path to be corrected
  • the evaluation point Q3 on the curved path TP3 is the evaluation point that deviates most from the allowable range for the distance L3.
  • the evaluation point Q3 is moved so that the tool T10 and the machining curved surface S1 are in contact with each other.
  • the evaluation point after movement is set as a new command point R1.
  • the evaluation point Q3 is moved in the tool axis direction, the normal direction of the machining curved surface at the reference point on the machining curved surface when the tool is arranged at the evaluation point Q3, or the arbitrary direction. May be.
  • a method of moving the evaluation point Q3 so that the tool T10 and the machining curved surface S1 are in contact with each other is to calculate a distance L3 at the movement evaluation point Q after the movement by moving a small distance in the given movement direction. , Can be obtained by repeating until the distance becomes equal to or less than the allowable range for the distance L3.
  • the tool path correction unit 109 issues a new command to the evaluation point Q3 after movement, in which the distance L3 is equal to or less than the allowable range for the distance L3 with respect to the tool path stored in the tool path storage unit 103 in step S103.
  • the point R1 is added to the tool path to correct the tool path. This improves the accuracy of the processing result of the processing target object.
  • FIG. 18 is a diagram showing the tool paths corrected for the command points P1 to P6 by adding a new command point R1 in step S107. After the execution of step S107, the process returns to step S104 and the process is repeated. In this case, the process of step S105 may be omitted.
  • step S106 when the distance L3 at all the evaluation points Q falls within the allowable range for the distance L3 and the tool path correction is completed, the corrected tool path is stored in the tool path storage unit 103.
  • the post-conversion machining program output unit 110 generates a modified machining program from the tool path according to a predetermined conversion method according to the tool path stored in the tool path storage unit 103, and after converting the modified machining program.
  • the data is output to the outside of the machining program conversion device 100 (step S108).
  • step S108 After the execution of step S108, the processing is terminated, and the output converted machining program is input to the numerical controller 111, and the machining target is machined.
  • the tool T10 that is a ball end mill and the machining curved surface S1 interfere with each other has been described in steps S106 to S108, the same applies to other cases.
  • the tool path is modified so that the distance L between the evaluation point and the reference point is equal to or less than the allowable range with respect to the distance L.
  • the processing accuracy of the processing result can be improved.
  • the distance L moves only the evaluation points that exceed the allowable range for the distance L and a new command point is added, the number of command points to be added can be suppressed to the required number, and the data amount of the program is required. It is possible to prevent the processing from increasing due to the increase above.
  • Embodiment 2 Since the configuration of the machining program conversion device 100 according to the second embodiment of the present invention is the same as the configuration of the machining program conversion device 100 according to the first embodiment, the description thereof will be omitted.
  • the machining program conversion device 100 according to the second embodiment of the present invention operates according to the flowchart shown in FIG.
  • step S201 to step S203 is similar to the operation from step S101 to step S103 in the first embodiment of the present invention.
  • the method of generating the curved path is different from that of the first embodiment.
  • FIG. 20 is a diagram showing an example of a tool path read from the machining program by the machining program conversion device.
  • the tool path shown in FIG. 20 has command points P11 to P17, and the command points are connected by a straight line.
  • a curved path TP11 is generated between P13 and P15 among the command point P13 that is the first command point, the second command point P14, and the third command point P15. It shows the situation.
  • the tool data is externally input to the tool data input unit 105
  • the shape data is externally input to the shape data input unit 106 (step S205).
  • the respective distances L at the evaluation points set to a plurality of points on the curved path TP11 are evaluated according to the tool data, the shape data, and the value of the allowable range input to the allowable dimension tolerance input unit (step S206). ). That is, it is evaluated whether the distance L is less than or equal to the allowable range or greater than the allowable range for the distance L. If all the distances L are within the allowable range for the distance L, the command point P14 is deleted from the tool path stored in the tool path storage unit 103 (step S207). Further, in this case, since there is no correction target curve path, the curve path TP11 is a tool path that is finally converted and output (step S208).
  • FIG. 22 is an example of a finished shape machined in the tool path.
  • the finished shape M2 shown in FIG. 22 is generated based on the shape data input to the shape data input unit 106, and has a processed curved surface S4.
  • FIG. 23 shows a state in which the curved path and the finished shape M2 are arranged so as to correspond to each other from the cross-sectional direction. Further, as an example, the evaluation points Q11 to Q14 are set on the curved path TP11.
  • FIG. 24 shows a state where the machining curved surface S4 and the tool T10 are in contact with each other when the tool is a ball end mill tool. In FIG. 24, the point where the tool T10 and the machining curved surface S4 meet is set as the reference point C31. In FIG. 24, the tool is placed at the evaluation point Q12 on the curved path TP11, and the distance L32 is defined between the evaluation point Q12 and the reference point C31.
  • FIG. 24 shows a state where the machining curved surface S4 and the tool T10 are apart from each other.
  • a point on the machining curved surface S4 where the distance between the tool T10 and the machining curved surface S4 is the shortest is a reference point C31.
  • the distance between the evaluation point Q12 and the reference point C31 is defined as the distance L31.
  • FIG. 25 shows a state in which the machining curved surface S4 and the tool T10 are in contact with each other.
  • the point where the tool T10 and the machining curved surface S4 meet is defined as the reference point C32.
  • the distance L32 is the most ideal value for machining an object to be machined with a machine tool.
  • FIG. 26 shows a state in which the tool T10 interferes with the machining curved surface S4.
  • the point on the machining curved surface S4 where the distance between the evaluation point Q12 of the tool T10 and the machining curved surface S4 is the shortest is set as the reference point C31.
  • the reference point C31 is a point where the tool T10 offset indicated by the dotted line in FIG. 26 and the machining curved surface S4 are in contact with each other.
  • the distance between the evaluation point Q12 and the reference point C33 is defined as the distance L33.
  • the second command point is obtained from the tool path stored in the tool path storage unit 103.
  • the curve path TP11 is a tool path that is finally converted and output (step S208).
  • FIG. 27 is an example of the final form in which the tool path is corrected in the second embodiment.
  • the command point P14 becomes Without deleting, a curved path between the command points P13 and P14 and a curved path between P14 and P15 are generated (step S209).
  • each curved path generated by the curved path generation unit 104 is input with tool data, shape data, and allowable dimension tolerance. It is evaluated whether or not the value of the distance L is within the allowable range according to the value of the allowable range input to the unit (step S210).
  • the tool path is corrected (step S211).
  • the operation for correcting the tool path is the same as that in the first embodiment.
  • step S210 when the distance L at all the evaluation points Q becomes equal to or less than the allowable range with respect to the distance L and the correction of the tool path is completed, the corrected tool path is stored in the tool path storage unit 103.
  • the post-conversion machining program output unit 110 generates a modified machining program from the tool path according to a predetermined conversion method according to the tool path stored in the tool path storage unit 103, and after converting the modified machining program.
  • the data is output to the outside of the machining program conversion device 100 (step S208).
  • the distance between the evaluation point and the reference point provided on the curved path that passes through the two points at both ends of the three adjacent command points When L satisfies the condition that the distance L is equal to or less than the allowable range with respect to the distance L, the existing middle command point is deleted from the tool path, so that the data amount of the machining program can be reduced and the work efficiency is improved. Further, the processing accuracy of the processing result of the processing object can satisfy the desired accuracy. ..
  • Embodiment 3 A numerical controller according to Embodiment 3 of the present invention will be described below with reference to the drawings. The invention is not limited by this embodiment.
  • the numerical control device 200 uses a machining program input unit 201 that receives a machining program input from the outside, a machining program analysis unit 202 that analyzes the input machining program and finds a tool path, and a machining program analysis unit 202.
  • a tool route storage unit 203 for storing a tool route
  • a curved route generation unit 204 for generating a curved route according to the tool route stored in the tool route storage unit 203
  • a tool data input unit 205 for inputting tool data
  • a shape data input unit 206 for inputting the shape data of the processed object after processing, and a distance between a point provided on a curved path and the processed curved surface for determining whether the tool operates along the processed curved surface of the processed object.
  • Allowable dimension tolerance input section 207 for inputting the allowable range of the above, a curved path evaluation section 208 for judging whether or not the distance between a point provided on the curved path and the machining curved surface is within the allowable range, and a tool for correcting the tool path.
  • a route correction unit 209 and a curved route interpolation unit 210 are provided.
  • FIG. 29 is a flowchart showing an operation example of the numerical control device 200 according to the third embodiment.
  • the flowchart of FIG. 29 shows a procedure of an operation in which the numerical control device 200 generates a tool path.
  • the procedure from step S301 to step S307 is the same as the procedure of the operation from step S101 to step S107 in the first embodiment.
  • step S306 the curved route generation unit 204 passes the generated curved route to the curved route interpolation unit 210 when the distance L at the evaluation point Q is less than or equal to the allowable range for the distance L.
  • the numerical controller 200 then interpolates the curved path in the curved path interpolation unit 210 (step S308). Specifically, the curved path interpolation unit 210 generates an interpolated point on the curved path received from the curved path generation unit 204 by calculating the amount of movement of the tool per interpolation cycle that is a unit time. The curved path after the interpolation processing in step S308 becomes the final tool path. When the generation of the interpolation points is completed, the curved path interpolation unit 210 passes the interpolation points to the external motor drive unit 211.
  • the numerical control device 200 By operating according to the above procedure, the numerical control device 200 according to the third embodiment generates a tool path.
  • numerical control can be performed according to the modified tool path. Therefore, it is necessary to convert the machining program once and then output the converted machining program. In addition, since it is possible to satisfy the desired processing accuracy of the object to be processed, reworking does not occur and the work efficiency is improved.

Abstract

A machining program conversion device (100) is provided with: a curved path generation unit (104) which generates a curved path (TP) between a plurality of command points (P) provided on a tool path; an allowable dimensional tolerance input unit (107) which receives a value for a tolerance range for distances L, which are the distances between a reference point (C) and evaluation points (Q), where the evaluation points (Q) are points provided on the curved path (TP), and the reference point (C) is a point at which a tool is in contact with a machining surface; a curved path evaluation unit (108) which determines whether or not each distance L is within the tolerance range; a tool path modification unit (109) which, if there are evaluation points for which the distance L is outside the tolerance range, moves only these evaluation points to positions where the distance L is within the tolerance range, then sets the moved evaluation points as new command points (R), and modifies the tool path; and a converted machining program output unit (110) which converts the modified tool path into a program to be output to an external device.

Description

加工プログラム変換装置、数値制御装置および加工プログラム変換方法Machining program converter, numerical controller and machining program converting method
 本発明は、数値制御加工プログラムを変換する加工プログラム変換装置および数値制御装置、加工プログラム変換方法に関する。 The present invention relates to a machining program conversion device for converting a numerical control machining program, a numerical control device, and a machining program conversion method.
 数値制御装置により加工対象物を加工するためには、加工対象物または数値制御装置により制御される工作機械(以下、単に「数値制御工作機械」と称する)に装着された工具を、予め設定された経路に移動させるための移動指令が記述された数値制御加工プログラム(以下、単に「加工プログラム」と称する)が用いられる。加工プログラムは、例えば、市販のCAD(Computer-Aided Design)/CAM(Computer-Aided Manufacturing)システムによって作成され、Gコード及びマクロ文など文字列の所定のフォーマットで記述される。 In order to machine a machining object by a numerical control device, a tool mounted on the machining target or a machine tool controlled by the numerical control device (hereinafter, simply referred to as "numerical control machine tool") is set in advance. A numerically controlled machining program (hereinafter simply referred to as “machining program”) in which a movement command for moving to a different path is described is used. The processing program is created by, for example, a commercially available CAD (Computer-Aided Design)/CAM (Computer-Aided Manufacturing) system, and described in a predetermined format of a character string such as a G code and a macro statement.
 従来、自由曲面を有する形状の加工を行う際には、CAD/CAMシステムを利用して加工対象の曲面(以下、単に「加工曲面」と称する)に接するようにして仮想的に工具を移動させた理想的な経路を、加工プログラムで点列化して指令点を生成し、各指令点を結んだ微小線分によって近似した経路を作成した後、数値制御工作機械によってその工具経路に沿って工具を移動させて加工対象物を切削加工することが行われている。 Conventionally, when machining a shape having a free curved surface, a CAD / CAM system is used to virtually move the tool so as to be in contact with the curved surface to be machined (hereinafter, simply referred to as "machined curved surface"). The ideal path is sequenced by a machining program to generate command points, a path approximated by a minute line segment connecting each command point is created, and then a numerically controlled machine tool is used to create a tool along the tool path. Is being moved to cut the object to be processed.
 CAD/CAMシステムから出力される工具経路は、数値制御装置が解釈できるGコードの移動指令として加工プログラムに記述され、加工プログラムは数値制御工作機械が有する数値制御装置に入力される。数値制御装置は、加工プログラムを読み取り解釈することによって、移動指令から補間周期ごとに工具経路を補間した補間データを作成する。数値制御装置は、作成した補間データによって数値制御工作機械の各軸を制御し、工具を所望の位置に移動させることにより、加工対象物を加工する。 The tool path output from the CAD / CAM system is described in the machining program as a G-code movement command that can be interpreted by the numerical control device, and the machining program is input to the numerical control device of the numerical control machine tool. The numerical control device creates and interpolates the tool path for each interpolation cycle from the movement command by reading and interpreting the machining program. The numerical control device controls each axis of the numerically controlled machine tool by the created interpolation data, and moves the tool to a desired position to machine the object to be machined.
 上述の手順により生成された工具経路を用いて加工を行う場合、微小線分によって表現された直線上を補間することにより加工されるため、加工品質が低下してしまう。このような場合に、工具経路から近似的に曲線経路を生成し、生成した曲線経路を補間して加工することが行われている。これにより、滑らかな加工結果を得ることが期待できる。 When performing machining using the tool path generated by the above procedure, the machining quality is degraded because the machining is performed by interpolating on the straight line represented by the minute line segment. In such a case, a curved path is approximately generated from the tool path, and the generated curved path is interpolated for machining. As a result, it can be expected that a smooth processing result can be obtained.
 例えば、特許文献1には、工具経路上に等間隔で複数の目標点を設定し、複数の目標点に基づいて近似曲線を演算し、近似曲線に沿った工具経路を生成することを特徴とした工具経路の生成方法が開示されている。 For example, Patent Document 1 is characterized in that a plurality of target points are set at equal intervals on a tool path, an approximate curve is calculated based on the plurality of target points, and a tool path along the approximate curve is generated. A method of generating a tool path is disclosed.
特開2011-96077号公報JP, 2011-96077, A
 しかしながら、特許文献1に記載の工具経路の生成方法および工具経路の生成装置では、微小線分がつくる工具経路から近似的に曲線経路を生成するため、生成した曲線経路が所望の加工曲面と一致する保証がなく、加工結果が所望の加工曲面の形状とかけ離れてしまうという課題があった。また、所望の加工精度を得られなかったために追加加工が必要となり、CAD/CAMシステムに戻って工具経路を作成し直し、再度加工プログラムを出力する工程等が発生し、作業者の作業効率が低下するという課題があった。 However, in the tool path generation method and the tool path generation device described in Patent Document 1, since the curved path is approximately generated from the tool path created by the minute line segment, the generated curved path matches the desired machined curved surface. However, there is a problem that the processing result is far from the desired shape of the processed curved surface. In addition, since the desired machining accuracy could not be obtained, additional machining was required, and the process of returning to the CAD/CAM system, recreating the tool path, and outputting the machining program again occurred. There was a problem of decrease.
 本発明は、上述のような問題を解決するためになされたもので、加工対象物の加工結果の加工精度を向上させることができる加工プログラム変換装置および数値制御装置を提供することを目的とする。 The present invention has been made to solve the above problems, and an object of the present invention is to provide a machining program conversion device and a numerical control device capable of improving the machining accuracy of a machining result of a machining object. ..
 上述した課題を解決し、目的を達成するために、本発明にかかる加工プログラム変換装置は、工具に対する移動指令が記述された加工プログラムから求めた工具経路に基づき、移動指令に従い工具経路上に設けられた複数の指令点の間に曲線経路を生成する曲線経路生成部と、曲線経路に従って動作する工具が、加工対象物の仕上がり形状である加工曲面に沿って動作するか否かを判断するために曲線経路上に設けた点を評価点とし、工具と加工曲面が接触する点を基準点とした場合に、評価点と基準点との距離である距離Lに対する許容範囲の値が入力される許容寸法公差入力部と、距離Lが、許容寸法公差入力部に入力された、許容範囲の値以内か否かを判断する曲線経路評価部と、距離Lが許容範囲から外れている場合に、許容範囲から外れている評価点のみを、距離Lが許容範囲以内となる位置に移動させ、移動後の評価点を新たな指令点とし、工具経路を修正する工具経路修正部とを備える。 In order to solve the above-mentioned problems and achieve the object, the machining program conversion device according to the present invention is provided on the tool path according to the movement command based on the tool path obtained from the machining program in which the movement command for the tool is described. To determine whether or not the curve path generator that generates a curve path between a plurality of command points and the tool that operates according to the curve path operates along the machined curved surface that is the finished shape of the object to be machined. When the point provided on the curved path is set as the evaluation point and the point where the tool and the machined curved surface contact is set as the reference point, the value of the allowable range for the distance L, which is the distance between the evaluation point and the reference point, is input. A permissible dimension tolerance input section, a curved path evaluation section for judging whether or not the distance L is within a permissible range value input to the permissible dimension tolerance input section, and a case where the distance L is out of the permissible range, Only the evaluation points that are out of the permissible range are moved to a position where the distance L is within the permissible range, the evaluation points after the movement are set as new command points, and a tool path correction unit that corrects the tool path is provided.
また、本発明に係る数値制御装置は、工具に対する移動指令が記述された加工プログラムから求めた工具経路に基づき、移動指令に従い工具経路上に設けられた複数の指令点の間に曲線経路を生成する曲線経路生成部と、曲線経路に従って動作する工具が、加工対象物の仕上がり形状である加工曲面に沿って動作するかを判断するために曲線経路上に設けた点を評価点とし、工具と前記加工曲面が接触する点を基準点とした場合に、評価点と基準点との距離である距離Lに対する許容範囲の値が入力される許容寸法公差入力部と、距離Lが、許容寸法公差入力部に入力された、許容範囲の値以内か否かを判断する曲線経路評価部と、距離Lが前記許容範囲から外れている場合に、許容範囲から外れている評価点のみを、距離Lが前記許容範囲以内となる位置に移動させ、移動後の評価点を新たな指令点とし、工具経路を修正する工具経路修正部とを備える。 Further, the numerical control device according to the present invention generates a curved path between a plurality of command points provided on the tool path according to the movement command based on the tool path obtained from the machining program in which the movement command for the tool is described. The evaluation point is a point provided on the curved path to determine whether the curved path generator and the tool that operates according to the curved path operate along the machined curved surface that is the finished shape of the object to be machined. When the point where the processed curved surface contacts is used as the reference point, the allowable dimensional tolerance input unit in which the value of the allowable range for the distance L, which is the distance between the evaluation point and the reference point, is input, and the distance L is the allowable dimensional tolerance. Only the curve path evaluation unit that determines whether or not it is within the allowable range value input to the input unit and the evaluation points that are out of the allowable range when the distance L is out of the allowable range are the distance L. Is moved to a position within the allowable range, the evaluation point after the movement is set as a new command point, and a tool path correction unit for correcting the tool path is provided.
 本発明に係る加工プログラム変換装置によれば、曲線経路上の評価点と、加工曲面上に設けた基準点との距離が許容範囲以下となるように工具経路を修正することで、加工対象物の加工結果の加工精度を向上させることができる。
 また、本発明に係る数値制御装置によれば、修正された工具経路に従って数値制御することが可能となるため、作業効率を向上できる。
According to the machining program conversion device of the present invention, the machining path is corrected by correcting the tool path so that the distance between the evaluation point on the curved path and the reference point provided on the machining curved surface is within the allowable range. It is possible to improve the processing accuracy of the processing result of.
Further, according to the numerical control device according to the present invention, numerical control can be performed according to the modified tool path, so that the work efficiency can be improved.
本発明の実施の形態1及び実施の形態2に係る加工プログラム変換装置の構成を示した図である。It is the figure which showed the structure of the machining program converter which concerns on Embodiment 1 and Embodiment 2 of this invention. 本発明の実施の形態1に係る加工プログラム変換装置の動作のフローチャートである。It is a flowchart of the operation of the machining program conversion apparatus which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係る加工プログラム変換装置が加工プログラムから読み取った工具経路の一例を示した図である。It is the figure which showed an example of the tool path|route which the machining program conversion apparatus which concerns on Embodiment 1 of this invention read from the machining program. 本発明の実施の形態1に係る加工プログラム変換装置が加工プログラムから読み取った工具経路に従って生成された曲線経路の一例を示した図である。It is the figure which showed an example of the curve path|route produced according to the tool path|route which the machining program converter which concerns on Embodiment 1 of this invention read from the machining program. 本発明の実施の形態1から3において、工具経路上を通過する工具の一例を示した図である。It is the figure which showed an example of the tool which passes along the tool path|route in Embodiments 1 to 3 of this invention. 本発明の実施の形態1に係る加工プログラム変換装置において、工具経路で加工される仕上がり形状の一例を示した図である。FIG. 5 is a diagram showing an example of a finished shape machined by a tool path in the machining program conversion device according to the first embodiment of the present invention. 本発明の実施の形態1に係る加工プログラム変換装置において、曲線経路と仕上り形状とが対応するように配置した状態を断面方向から示した図である。It is a figure which showed the state which arranged the curved path and the finished shape correspond with each other from the cross-sectional direction in the machining program conversion apparatus which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係る加工プログラム変換装置において、ボールエンドミル工具である場合を例に、工具と加工曲面が離れている状態にある様子を示した図である。FIG. 6 is a diagram showing a state where the tool and the machining curved surface are apart from each other, in the machining program conversion device according to the first embodiment of the present invention, taking a case of a ball end mill tool as an example. 本発明の実施の形態1に係る加工プログラム変換装置において、ボールエンドミル工具である場合を例に、工具と加工曲面が接している状態にある様子を示した図である。FIG. 3 is a diagram showing a state where the tool and a machining curved surface are in contact with each other, in the machining program conversion device according to the first embodiment of the present invention, by taking a case of a ball end mill tool as an example. 本発明の実施の形態1に係る加工プログラム変換装置において、ボールエンドミル工具である場合を例に、工具と加工曲面が干渉している状態にある様子を示した図である。FIG. 6 is a diagram showing a state in which the tool and the machining curved surface are in an interference state in the machining program conversion device according to the first embodiment of the present invention, taking a case of a ball end mill tool as an example. 本発明の実施の形態1に係る加工プログラム変換装置において、フラットエンドミル工具である場合を例に、工具と加工曲面が離れている状態にある様子を示した図である。FIG. 4 is a diagram showing a state where the tool and the machining curved surface are apart from each other, in the machining program conversion device according to the first embodiment of the present invention, taking a case of a flat end mill tool as an example. 本発明の実施の形態1に係る加工プログラム変換装置において、フラットエンドミル工具である場合を例に、工具と加工曲面が接している状態にある様子を示した図である。FIG. 6 is a diagram showing a state where the tool and a machining curved surface are in contact with each other, in the machining program conversion device according to the first embodiment of the present invention, by taking a case of a flat end mill tool as an example. 本発明の実施の形態1に係る加工プログラム変換装置において、フラットエンドミル工具である場合を例に、工具と加工曲面が干渉している状態にある様子を示した図である。FIG. 6 is a diagram showing a state in which the tool and the machining curved surface interfere with each other in the machining program conversion device according to the first embodiment of the present invention, taking a case of a flat end mill tool as an example. 本発明の実施の形態1に係る加工プログラム変換装置において、ラジアスエンドミル工具である場合を例に、工具と加工曲面が離れている状態にある様子を示した図である。FIG. 6 is a diagram showing a state where the tool and the machining curved surface are apart from each other in the machining program conversion device according to the first embodiment of the present invention, by taking a case of a radius end mill tool as an example. 本発明の実施の形態1に係る加工プログラム変換装置において、ラジアスエンドミル工具である場合を例に、工具と加工曲面が接している状態にある様子を示した図である。FIG. 6 is a diagram showing a state where the tool and a machining curved surface are in contact with each other, in the machining program conversion device according to the first embodiment of the present invention, by taking a case of a radius end mill tool as an example. 本発明の実施の形態1に係る加工プログラム変換装置において、ラジアスエンドミル工具である場合を例に、工具と加工曲面が干渉している状態にある様子を示した図である。FIG. 4 is a diagram showing a state in which the tool and the machining curved surface are interfering with each other in the machining program conversion device according to the first embodiment of the present invention, taking a case of a radius end mill tool as an example. 本発明の実施の形態1に係る加工プログラム変換装置において、工具と加工曲面とが接するように評価点を移動させ、新たな指令点を追加する様子の一例を示した図である。FIG. 6 is a diagram showing an example of a state in which the evaluation point is moved and a new command point is added so that the tool and the machining curved surface are in contact with each other in the machining program conversion device according to the first embodiment of the present invention. 本発明の実施の形態1に係る加工プログラム変換装置において、新たな指令点を追加することにより修正した工具経路を示した図である。It is the figure which showed the tool path|route corrected by adding a new command point in the machining program converter which concerns on Embodiment 1 of this invention. 本発明の実施の形態2に係る加工プログラム変換装置の動作のフローチャートである。It is a flowchart of the operation of the machining program conversion apparatus which concerns on Embodiment 2 of this invention. 本発明の実施の形態2に係る加工プログラム変換装置が加工プログラムから読み取った工具経路の一例を示した図である。It is the figure which showed an example of the tool path|route which the machining program conversion apparatus which concerns on Embodiment 2 of this invention read from the machining program. 本発明の実施の形態2に係る加工プログラム変換装置において、隣接した3点の指令点から真ん中の点を除外した後の2点を通過する曲線経路の一例を示した図である。FIG. 5 is a diagram showing an example of a curved path passing through two points after excluding the middle point from three adjacent command points in the machining program conversion apparatus according to the second embodiment of the present invention. 本発明の実施の形態2に係る加工プログラム変換装置において、工具経路で加工される仕上がり形状の一例を示した図であるIt is the figure which showed an example of the finished shape processed by a tool path in the processing program converter which concerns on Embodiment 2 of this invention. 本発明の実施の形態2に係る加工プログラム変換装置において、曲線経路と仕上り形状とが対応するように配置した状態を断面方向から示した図である。It is a figure which showed the state which arranged the curved path and the finished shape correspond with each other from the cross-sectional direction in the machining program conversion apparatus which concerns on Embodiment 2 of this invention. 本発明の実施の形態2に係る加工プログラム変換装置において、ボールエンドミル工具である場合を例に、工具と加工曲面が離れている状態にある様子を示した図であるFIG. 5 is a diagram showing a state in which the tool and the machining curved surface are separated from each other, taking the case of a ball end mill tool as an example in the machining program conversion apparatus according to the second embodiment of the present invention. 本発明の実施の形態2に係る加工プログラム変換装置において、ボールエンドミル工具である場合を例に、工具と加工曲面が接している状態にある様子を示した図である。FIG. 11 is a diagram showing a state where the tool and the machining curved surface are in contact with each other, in the machining program conversion device according to the second embodiment of the present invention, taking a case of a ball end mill tool as an example. 本発明の実施の形態2に係る加工プログラム変換装置において、ボールエンドミル工具である場合を例に、工具と加工曲面が干渉している状態にある様子を示した図である。FIG. 11 is a diagram showing a state in which the tool and a machining curved surface are in an interference state in the machining program conversion device according to the second embodiment of the present invention, taking a case of a ball end mill tool as an example. 本発明の実施の形態2に係る加工プログラム変換装置において、工具経路から指令点を削除して工具経路を修正した一例を示した図である。It is the figure which showed an example which corrected the tool path|route by deleting the command point from the tool path|route in the machining program converter which concerns on Embodiment 2 of this invention. 本発明の実施の形態3に係る数値制御装置の構成を示した図である。It is the figure which showed the structure of the numerical control apparatus which concerns on Embodiment 3 of this invention. 本発明の実施の形態3に係る数値制御装置の動作のフローチャートである。It is a flowchart of the operation of the numerical control apparatus which concerns on Embodiment 3 of this invention.
 以下に、本発明の実施の形態に係る加工プログラム変換装置、加工プログラム変換方法、および数値制御装置を図面に基づいて説明する。なお、この実施の形態により発明が限定されるものではない。 A machining program conversion device, a machining program conversion method, and a numerical control device according to an embodiment of the present invention will be described below with reference to the drawings. The invention is not limited to the embodiments.
実施の形態1.
図1は、本発明の実施の形態1に係る加工プログラム変換装置の構成例を示す図である。加工プログラム変換装置100は、外部から入力される加工プログラムを受け取る加工プログラム入力部101と、入力された加工プログラムを解析し、工具経路を求める加工プログラム解析部102と、加工プログラム解析部102で求めた工具経路が記憶される工具経路記憶部103と、工具経路記憶部103に記憶された工具経路に従って曲線経路を生成する曲線経路生成部104と、工具のデータを入力する工具データ入力部105と、加工対象物の加工後の形状データを入力する形状データ入力部106と、工具が加工対象物の加工曲面に沿って動作するかを判断するため曲線経路上に設けた点と加工曲面との距離の許容範囲を入力する許容寸法公差入力部107と、曲線経路上に設けた点と加工曲面との距離が許容範囲内か否かを判断する曲線経路評価部108と、工具経路を修正する工具経路修正部109と、変換後加工プログラム出力部110と、を備える。変換後加工プログラム出力部110は、所定の変換方法に従って、工具経路を修正した後の加工プログラムを変換し、外部装置である数値制御装置111に出力される。なお、本実施の形態においては外部装置が数値制御装置である場合について説明するが、外部装置は数値制御装置に限定されず、例えばプログラム確認装置や、工具経路表示装置等であってもよい。
Embodiment 1.
1 is a diagram showing a configuration example of a machining program conversion device according to a first embodiment of the present invention. The machining program conversion device 100 is obtained by a machining program input unit 101 that receives a machining program input from the outside, a machining program analysis unit 102 that analyzes the input machining program and obtains a tool path, and a machining program analysis unit 102. A tool path storage unit 103 for storing a tool path stored therein, a curve path generation unit 104 for generating a curve path according to the tool path stored in the tool path storage unit 103, and a tool data input unit 105 for inputting tool data. A shape data input unit 106 for inputting the shape data of the processed object after processing, and points formed on the curved path for determining whether the tool operates along the processed curved surface of the processed object and the processed curved surface. Allowable dimension tolerance input unit 107 for inputting the allowable range of distance, curved path evaluation unit 108 for determining whether the distance between a point provided on the curved path and the machined curved surface is within the allowable range, and modifying the tool path. The tool path correction unit 109 and the post-conversion machining program output unit 110 are provided. The post-conversion machining program output unit 110 converts the machining program after the tool path is corrected according to a predetermined conversion method, and outputs the converted machining program to the numerical controller 111, which is an external device. In addition, although the case where the external device is a numerical control device will be described in the present embodiment, the external device is not limited to the numerical control device and may be, for example, a program confirmation device or a tool path display device.
 図2は、実施の形態1に係る加工プログラム変換装置100の動作例を示すフローチャートである。図2に基づき、加工プログラム変換装置100が工具経路を生成または修正する動作の手順について説明する。 FIG. 2 is a flowchart showing an operation example of the machining program conversion device 100 according to the first embodiment. The procedure of the operation of the machining program conversion device 100 for generating or correcting the tool path will be described with reference to FIG.
 加工プログラム変換装置100が工具経路を生成する動作においては、まず、加工プログラムが加工プログラム変換装置100に入力される(ステップS101)。すなわち、加工プログラム変換装置100において、加工プログラム入力部101が工作機械を制御するための加工プログラムを外部から読み込む。加工プログラムには、加工対象物である被加工物または工具を、予め設定された経路に移動させるための移動指令が記述されている。 In the operation of the machining program conversion device 100 to generate a tool path, first, a machining program is input to the machining program conversion device 100 (step S101). That is, in the machining program conversion device 100, the machining program input unit 101 reads a machining program for controlling the machine tool from the outside. The machining program describes a movement command for moving a workpiece or a tool, which is a machining object, to a preset route.
 ステップS101で実行する加工プログラムの入力は、CAD/CAMシステムにより出力された、例えばGコードのフォーマット記述されたファイルを読込むことにより実現される。または、作業者がキーボードなどの入力機器を操作することにより必要な情報を入力して加工プログラムを作成することにより実現される。 The input of the machining program executed in step S101 is realized by reading the file in which the format of the G code is described, which is output by the CAD / CAM system. Alternatively, it is realized by the operator operating the input device such as the keyboard to input necessary information and creating the machining program.
 加工プログラム変換装置100は、次に、ステップS101を実行して取得した加工プログラムを加工プログラム解析部102で解析し、加工プログラムに記述された工具経路を求める(ステップS102)。具体的には、Gコード等で記述された加工プログラムの読み取り、つまり工具経路情報の読み取りを行う。読み取った工具経路は、工具経路記憶部103に記憶される(ステップS103)。図3は、加工プログラムから変換する工具経路の一例である。図3において、工具経路は、指令点P1~P6を有し、各指令点間を直線で結んだものである。ここで、指令点とは、加工プログラムで指令される点をいう。各指令点間の間隔は、加工プログラムで予め決められている。 Next, the machining program conversion apparatus 100 analyzes the machining program acquired by executing step S101 by the machining program analysis unit 102 and obtains the tool path described in the machining program (step S102). Specifically, the processing program described in G code or the like, that is, the tool path information is read. The read tool path is stored in the tool path storage unit 103 (step S103). FIG. 3 is an example of a tool path converted from the machining program. In FIG. 3, the tool path has command points P1 to P6, and the command points are connected by a straight line. Here, the command point means a point commanded by the machining program. The intervals between the command points are predetermined by the machining program.
 次に、曲線経路生成部104において、工具経路記憶部103に記憶された工具経路に従って、各々の隣接した指令点の間に曲線経路を生成する(ステップS104)。図4は、指令点P1~P6を有する工具経路に従って生成された曲線経路の一例を示す。図4に示した曲線経路は、各指令点の間を曲線経路TP1~TP6に沿って工具が通過するように生成したものである。 Next, the curved path generation unit 104 generates a curved path between the adjacent command points according to the tool path stored in the tool path storage unit 103 (step S104). FIG. 4 shows an example of a curved path generated according to the tool path having the command points P1 to P6. The curved path shown in FIG. 4 is generated such that the tool passes between the command points along the curved paths TP1 to TP6.
 また、加工プログラム変換装置100が生成する曲線経路は、数値制御装置111が動く曲線、つまり、数値制御装置111が加工する加工対象物の形状を作れるような曲線と同じ曲線である必要がある。よって、曲線経路の生成方法は、加工プログラム変換装置100に入力された加工プログラムが最終的に入力される数値制御装置111における曲線経路の生成方法と同一であることが望ましい。曲線経路を生成する方法の他の例としては、例えば各々の指令点を通過するようにスプライン曲線を補間する方法などがある。 Further, the curve path generated by the machining program conversion device 100 needs to be the same curve as the curve on which the numerical control device 111 moves, that is, the curve that can form the shape of the machining object to be machined by the numerical control device 111. Therefore, it is desirable that the method of generating the curve path is the same as the method of generating the curve path in the numerical control device 111 in which the machining program input to the machining program conversion device 100 is finally input. As another example of the method of generating the curved path, for example, there is a method of interpolating the spline curve so as to pass each command point.
 工具データ入力部105には、工具データが外部入力される(ステップS105)。工具データは、加工対象物を加工するための工具の形状を定義する情報であり、工具の種別を表現する情報、工具径、工具刃先半径および工具長といった工具の形状を表現する情報を含む。また、テーパ等を有する工具形状の場合、工具データ入力部105には、工具の中心軸に対する工具外径母線の傾きの情報などが与えられても良いし、旋削工具等の非対称な形状である工具の情報が与えられてもよい。外部入力は、作業者によるキーボードなどの入力操作、CADデータからのデータ変換などの方法による。加工プログラム変換装置100は、工具データに基づいて工具モデルを生成することが可能である。図5は、工具経路上を通過する工具の一例を示す。工具T10は、工具データに基づき生成されたボールエンドミルの形状である。 Tool data is externally input to the tool data input unit 105 (step S105). The tool data is information that defines the shape of the tool for processing the object to be processed, and includes information that expresses the type of the tool and information that expresses the shape of the tool such as the tool diameter, the tool cutting edge radius, and the tool length. Further, in the case of a tool shape having a taper or the like, the tool data input unit 105 may be given information on the inclination of the tool outer diameter bus with respect to the central axis of the tool, or has an asymmetric shape such as a turning tool. Tool information may be provided. The external input is performed by a method such as an input operation of a keyboard by an operator or a data conversion from CAD data. The machining program conversion device 100 can generate a tool model based on the tool data. FIG. 5 shows an example of a tool passing on the tool path. The tool T10 is the shape of the ball end mill generated based on the tool data.
 形状データ入力部106には、形状データが外部入力される(ステップS105)。形状データは、加工対象物の加工後の形状を定義する情報であり、加工対象物の目標の形状である仕上り形状を生成できる情報である。仕上り形状は、加工すべき曲面である加工曲面S1を有する。また、仕上り形状は、加工プログラムに従って工作機械が加工対象物を加工することにより、結果として加工される加工物の理想的な形状である。工作機械は、仕上り形状と加工物との誤差が少なくなるように加工対象物を加工する。外部入力は、作業者によるキーボードなどの入力操作、CADデータからのデータ変換などの方法による。 Shape data is externally input to the shape data input unit 106 (step S105). The shape data is information that defines the shape of the processed object after processing, and is information that can generate a finished shape that is the target shape of the processed object. The finished shape has a processed curved surface S1 that is a curved surface to be processed. In addition, the finished shape is an ideal shape of a workpiece that is machined as a result by the machine tool processing the object according to the machining program. The machine tool processes the object to be processed so that the difference between the finished shape and the object is reduced. The external input is performed by a method such as an input operation of a keyboard by an operator or a data conversion from CAD data.
 図6は、工具経路で加工される仕上がり形状の一例である。図6に示した仕上り形状M1は、形状データ入力部106に入力された形状データに基づいて生成されるもので、加工曲面S1を有する。 FIG. 6 is an example of the finished shape processed by the tool path. The finished shape M1 shown in FIG. 6 is generated based on the shape data input to the shape data input unit 106, and has a processed curved surface S1.
図7は、曲線経路と仕上り形状M1とが対応するように配置した状態を断面方向から示し、さらに一例として、曲線経路TP3上に評価点Q1~Q5を設定した図である。ここで、評価点は、曲線経路に従って動作する工具が、加工対象物の加工曲面に沿って動作するか否かを判断するために曲線経路上に設けた点をいう。評価点の求め方は、例えば曲線経路上を曲線パラメータが等間隔となるようにサンプリングした点として求める方法や、隣接する評価点を結んだ線分と曲線経路の間の最大誤差が所定の値以下となるまで繰り返し処理によって求める方法がある。 FIG. 7 shows a state in which the curved path and the finished shape M1 are arranged so as to correspond to each other from the cross-sectional direction. Further, as an example, the evaluation points Q1 to Q5 are set on the curved path TP3. Here, the evaluation point refers to a point provided on the curved path for determining whether or not the tool that operates according to the curved path moves along the machining curved surface of the machining target. The evaluation points can be obtained, for example, as points sampled on the curve path so that the curve parameters are evenly spaced, or the maximum error between the line segment connecting adjacent evaluation points and the curve path is a predetermined value. There is a method of iteratively determining until the following.
図8、図9、図10は、工具がボールエンドミル工具(以下、工具T10とする。)である場合における、工具T10と加工曲面S1の関係を示す図である。図8は、加工曲面S1と工具T10が離れている状態にある様子を示している。図8において、工具T10と加工曲面S1の距離が最短となる加工曲面S1上の点を、基準点C1とする。基準点C1は、後述するステップS106において工具上に配置した評価点Qと加工曲面S1の距離が最短となる、加工曲面S1上の点でもある。ここで、評価点Qと基準点C1の距離を距離L1とする。 8, 9, and 10 are diagrams showing the relationship between the tool T10 and the machining curved surface S1 when the tool is a ball end mill tool (hereinafter, referred to as tool T10). FIG. 8 shows a state where the processing curved surface S1 and the tool T10 are apart from each other. In FIG. 8, the point on the machining curved surface S1 where the distance between the tool T10 and the machining curved surface S1 is the shortest is defined as a reference point C1. The reference point C1 is also a point on the machining curved surface S1 in which the distance between the evaluation point Q arranged on the tool and the machining curved surface S1 in step S106 described later is the shortest. Here, the distance between the evaluation point Q and the reference point C1 is defined as the distance L1.
図9は、加工曲面S1と工具T10が接している状態にある様子を示している。図9において、工具T10と加工曲面S1が接触する点を基準点C2とする。基準点C2は工具T10が加工曲面S1を切削するときの切削点でもある。評価点Qと基準点C2の距離を距離L2とすると、距離L2は工作機械で加工対象物を加工する上で、最も理想的な値である。 FIG. 9 shows a state where the machining curved surface S1 and the tool T10 are in contact with each other. In FIG. 9, the point where the tool T10 and the machining curved surface S1 come into contact is defined as the reference point C2. The reference point C2 is also a cutting point when the tool T10 cuts the machining curved surface S1. Assuming that the distance between the evaluation point Q and the reference point C2 is the distance L2, the distance L2 is the most ideal value for machining an object to be machined with a machine tool.
図10は、工具T10が加工曲面S1に干渉する状態にある様子を示している。図10において、工具T10の評価点Qと加工曲面S1との距離が最短となる、加工曲面S1上の点を基準点C3とする。また、このような工具と加工曲面が干渉する状態の場合、工具と加工曲面とが接触する状態となるまで工具をオフセットし、オフセット工具と加工曲面が接触した点を基準点C3として求めることもできる。基準点C3は、図10において点線で示した工具T10オフセットと加工曲面S1とが接触している点であるともいえる。ここで、評価点Qと基準点C3の距離を距離L3とする。 FIG. 10 shows a state in which the tool T10 interferes with the machining curved surface S1. In FIG. 10, a point on the machining curved surface S1 where the distance between the evaluation point Q of the tool T10 and the machining curved surface S1 is the shortest is defined as a reference point C3. Further, in the case where the tool and the machined curved surface interfere with each other, the tool may be offset until the tool and the machined surface come into contact with each other, and the point where the offset tool and the machined surface contact with each other may be obtained as the reference point C3. it can. It can be said that the reference point C3 is a point where the tool T10 offset indicated by a dotted line in FIG. 10 and the machining curved surface S1 are in contact with each other. Here, the distance between the evaluation point Q and the reference point C3 is defined as the distance L3.
ここで、距離Lに対する許容範囲について、距離L2を2.00mmと仮定した場合について説明する。ある加工対象物の加工曲面の寸法公差が、標準公差に対して±0.05mmであったとすれば、距離L1については2.00mm<距離L1≦2.05mm、距離L3については1.95mm≦距離L3<2.00mmとなる。よって、距離Lの許容範囲は、1.95mm≦距離L≦2.05mmとなる。 Here, the allowable range with respect to the distance L will be described assuming that the distance L2 is 2.00 mm. If the dimensional tolerance of the machining curved surface of a certain object is ±0.05 mm with respect to the standard tolerance, the distance L1 is 2.00 mm<distance L1≦2.05 mm, and the distance L3 is 1.95 mm≦. The distance L3 becomes <2.00 mm. Therefore, the allowable range of the distance L is 1.95 mm≦distance L≦2.05 mm.
なお、図8、図9、図10において、工具T10の評価点Qを、工具T10の中心軸かつ先端付近に設けているが、評価点Qは、例えば工具の先端に設けられても良いし、工具T10上の加工対象物を切削する部分または点に設けられてもよいし、工具T10と加工曲面S1の距離が最短となるような工具T10上の点に設けられても良い。ただし、工具上の特定の位置を評価点Qとして設定した後、設定した評価点Qで距離Lを評価する。 In FIGS. 8, 9, and 10, the evaluation point Q of the tool T10 is provided on the central axis and near the tip of the tool T10, but the evaluation point Q may be provided, for example, at the tip of the tool. It may be provided at a portion or a point on the tool T10 where the object to be processed is cut, or may be provided at a point on the tool T10 where the distance between the tool T10 and the processing curved surface S1 is the shortest. However, after setting a specific position on the tool as the evaluation point Q, the distance L is evaluated at the set evaluation point Q.
許容寸法公差入力部107では、距離Lに対する許容範囲が入力される(ステップS105)。許容範囲の値は、加工対象物のそれぞれが目標とする加工精度によって決まる。また、形状データ入力部106において入力される形状データが、加工対象物の加工曲面に対する加工公差の情報を有する場合は、加工公差に従って許容範囲の値を求めても良い。この場合、加工部位に応じて許容範囲を自動で設定することができ、作業効率が向上する。 The allowable dimension tolerance input unit 107 inputs an allowable range with respect to the distance L (step S105). The value of the allowable range is determined by the machining accuracy targeted by each of the objects to be machined. Further, when the shape data input by the shape data input unit 106 has information on the machining tolerance with respect to the machining curved surface of the machining object, the allowable range value may be obtained according to the machining tolerance. In this case, the allowable range can be automatically set according to the machined portion, and the work efficiency is improved.
さらに、許容寸法公差入力部107に入力される許容範囲の値は、工具と仕上り形状の間の最短距離の許容範囲であってもよい。例えば、ある加工対象物の加工曲面の寸法公差が標準公差に対して±0.05mmであったとすれば、工具と仕上り形状の加工曲面との最短距離の差が0.05mm以内となればよいため、許容範囲の値は、0.05mmとして与える。 Further, the value of the allowable range input to the allowable dimension tolerance input unit 107 may be the allowable range of the shortest distance between the tool and the finished shape. For example, if the dimensional tolerance of the machining curved surface of a certain object is ±0.05 mm with respect to the standard tolerance, the difference in the shortest distance between the tool and the machining curved surface of the finished shape may be within 0.05 mm. Therefore, the value in the allowable range is given as 0.05 mm.
なお、本実施の形態において、距離Lに対する許容範囲は許容寸法公差入力部107に入力されるが、距離Lに対する許容範囲の値は、あらかじめ図示しない加工プログラム変換装置100の許容寸法公差記憶部に記憶されてもよい。 In the present embodiment, the allowable range for the distance L is input to the allowable dimensional tolerance input unit 107, but the value of the allowable range for the distance L is input to the allowable dimensional tolerance storage unit of the machining program conversion device 100 (not shown in advance). It may be stored.
図11、図12、図13は、工具がフラットエンドミル工具(以下、工具T11とする。)である場合における、工具T11と加工曲面S2の関係を示す図である。図11は、加工曲面S2と工具T11が離れている状態にある様子を示している。図11において、工具T11と加工曲面S2の距離が最短となる加工曲面S2上の点を、基準点C2とする。評価点Qと基準点C11の距離を距離L11とする。 11, 12, and 13 are diagrams showing the relationship between the tool T11 and the machining curved surface S2 when the tool is a flat end mill tool (hereinafter, referred to as tool T11). FIG. 11 shows a state in which the machining curved surface S2 and the tool T11 are separated from each other. In FIG. 11, a point on the machining curved surface S2 where the distance between the tool T11 and the machining curved surface S2 is the shortest is defined as a reference point C2. The distance between the evaluation point Q and the reference point C11 is defined as the distance L11.
図12は、加工曲面S2と工具T11が接している状態にある様子を示している。図12において、工具T11と加工曲面S2が接する点を基準点C12とする。評価点Qと基準点C12の距離を距離L12とすると、距離L12は工作機械で加工対象物を加工する上で、最も理想的な値である。 FIG. 12 shows a state in which the machining curved surface S2 and the tool T11 are in contact with each other. In FIG. 12, the point where the tool T11 and the machining curved surface S2 meet is defined as the reference point C12. Assuming that the distance between the evaluation point Q and the reference point C12 is the distance L12, the distance L12 is the most ideal value for machining an object to be machined with a machine tool.
図13は、工具T11が加工曲面S2に干渉する状態にある様子を示している。図13において、工具T11の評価点Qと加工曲面S2との距離が最短となる、加工曲面S2上の点を基準点C13とする。また、このような工具と加工曲面が干渉する状態の場合、工具と加工曲面とが接触する状態となるまで工具を内側へオフセットすることがある。基準点C13は、図13において点線で示した工具T11オフセットと加工曲面S2とが接触している点であるともいえる。評価点Qと基準点C13の距離を距離L13とする。 FIG. 13 shows how the tool T11 is in a state of interfering with the machining curved surface S2. In FIG. 13, the point on the machining curved surface S2 where the distance between the evaluation point Q of the tool T11 and the machining curved surface S2 is the shortest is set as a reference point C13. Further, when such a tool and the machining curved surface interfere with each other, the tool may be offset inward until the tool comes into contact with the machining curved surface. It can be said that the reference point C13 is a point where the tool T11 offset indicated by the dotted line in FIG. 13 and the machining curved surface S2 are in contact with each other. The distance between the evaluation point Q and the reference point C13 is defined as the distance L13.
なお、図11、図12、図13において、工具T11の評価点Qを、工具T11の先端の中心に設けているが、評価点Qは、例えば工具T11上の加工対象物を切削する部分または点に設けられてもよいし、工具T11と加工曲面S2の距離が最短となるような工具T11上の点に設けられても良い。ただし、工具上の特定の位置を評価点Qとして設定した後は、設定した評価点Qで距離Lを評価する。 In FIGS. 11, 12, and 13, the evaluation point Q of the tool T11 is provided at the center of the tip of the tool T11. The evaluation point Q is, for example, a portion of the tool T11 for cutting an object to be machined. It may be provided at a point, or may be provided at a point on the tool T11 where the distance between the tool T11 and the processing curved surface S2 is the shortest. However, after setting a specific position on the tool as the evaluation point Q, the distance L is evaluated at the set evaluation point Q.
図14、図15、図16は、工具がラジアスエンドミル工具(以下、工具T12とする。)である場合における、工具T12と加工曲面S3の関係を示す図である。図14は、加工曲面S3と工具T12が離れている状態にある様子を示している。図14において、工具T12と加工曲面S3の距離が最短となる加工曲面S3上の点を、基準点C21とする。評価点Qと基準点C21の距離を距離L21とする。 14, 15, and 16 are diagrams showing the relationship between the tool T12 and the machining curved surface S3 when the tool is a radius end mill tool (hereinafter referred to as a tool T12). FIG. 14 shows a state where the machining curved surface S3 and the tool T12 are apart from each other. In FIG. 14, a point on the machining curved surface S3 where the distance between the tool T12 and the machining curved surface S3 is the shortest is defined as a reference point C21. The distance between the evaluation point Q and the reference point C21 is defined as a distance L21.
図15は、加工曲面S3と工具T12が接している状態にある様子を示している。図15において、工具T12と加工曲面S3が接する点を基準点C22とする。評価点Qと基準点C22の距離を距離L22とすると、距離L22は工作機械で加工対象物を加工する上で、最も理想的な値である。 FIG. 15 shows a state in which the machining curved surface S3 and the tool T12 are in contact with each other. In FIG. 15, the point where the tool T12 and the machining curved surface S3 meet is defined as the reference point C22. Assuming that the distance between the evaluation point Q and the reference point C22 is the distance L22, the distance L22 is the most ideal value for machining an object to be machined with a machine tool.
図16は、工具T12が加工曲面S3に干渉する状態にある様子を示している。図16において、工具T12の評価点Qと加工曲面S3との距離が最短となる、加工曲面S3上の点を基準点C23とする。また、このような工具と加工曲面が干渉する状態の場合、工具と加工曲面とが接触する状態となるまで工具を内側へオフセットすることがある。基準点C23は、図16において点線で示した工具T12オフセットと加工曲面S3とが接触している点であるともいえる。評価点Qと基準点C23の距離を距離L23とする。 FIG. 16 shows a state in which the tool T12 interferes with the processing curved surface S3. In FIG. 16, a point on the machining curved surface S3 where the distance between the evaluation point Q of the tool T12 and the machining curved surface S3 is the shortest is set as a reference point C23. Further, when such a tool and the machining curved surface interfere with each other, the tool may be offset inward until the tool comes into contact with the machining curved surface. It can be said that the reference point C23 is a point where the tool T12 offset indicated by the dotted line in FIG. 16 and the machining curved surface S3 are in contact with each other. The distance between the evaluation point Q and the reference point C23 is defined as the distance L23.
なお、図14、図15、図16において、工具T12の評価点Qを、工具T12の中心軸かつ先端付近に設けているが、評価点Qは、例えば、工具T12上の加工対象物を切削する部分または点に設けられてもよいし、工具T12と加工曲面S3の距離が最短となるような工具T10上の点に設けられても良い。ただし、工具上の特定の位置を評価点Qとして設定した後は、設定した評価点Qで距離Lを評価する。 In FIGS. 14, 15, and 16, the evaluation point Q of the tool T12 is provided near the central axis and the tip of the tool T12. The evaluation point Q is, for example, cutting an object to be machined on the tool T12. It may be provided at a portion or a point to be formed, or may be provided at a point on the tool T10 where the distance between the tool T12 and the processing curved surface S3 is the shortest. However, after setting a specific position on the tool as the evaluation point Q, the distance L is evaluated at the set evaluation point Q.
次に、曲線経路評価部108において、曲線経路生成部104において生成された曲線経路TPを、工具データ、形状データ、許容寸法公差入力部に入力される許容範囲の値に従って評価する(ステップS106)。まず、曲線経路TP1~TP6上に複数の評価点を求める。続いて、図8~図16に示すように、求めた評価点Qに対応するように、ステップ5で入力した工具データに基づいて生成された工具を配置する。このとき、評価点Qに工具を配置すると、理想的には工具と仕上り形状の加工曲面が接する。 Next, the curve path evaluation unit 108 evaluates the curve path TP generated by the curve path generation unit 104 according to the values of the allowable range input to the tool data, the shape data, and the allowable dimensional tolerance input unit (step S106). .. First, a plurality of evaluation points are obtained on the curved paths TP1 to TP6. Subsequently, as shown in FIGS. 8 to 16, the tools generated based on the tool data input in step 5 are arranged so as to correspond to the obtained evaluation points Q. At this time, when the tool is arranged at the evaluation point Q, ideally the tool and the finished curved surface of the shape come into contact with each other.
曲線経路評価部108は、曲線経路TPについて、距離Lの値が許容範囲内か否かを評価する。ある曲線経路TPにおいて求めた距離Lが、距離Lに対する許容範囲より大きい場合、当該曲線経路TPを修正対象の曲線経路として後述するステップS107へ進む。すべての曲線経路TPにおいて求めた距離Lが距離Lに対する許容範囲以内であった場合には後述するステップS108へ進む。 The curved path evaluation unit 108 evaluates whether or not the value of the distance L is within the allowable range for the curved path TP. When the distance L obtained in a certain curved path TP is larger than the allowable range with respect to the distance L, the process proceeds to step S107 described later with the curved path TP as the curved path to be corrected. When the distance L obtained on all the curved paths TP is within the allowable range for the distance L, the process proceeds to step S108 described later.
 曲線経路評価部108において、距離Lの値が距離Lに対する許容範囲を超えた場合、すなわち、ステップS106において「NO」の場合、工具経路を修正する(ステップS107)。ここで、工具経路を修正するための動作について、ボールエンドミルである工具T10が、図10に示すような工具T10と加工曲面S1とが干渉する状態の場合を例に、図17を用いて説明する。 In the curved path evaluation unit 108, if the value of the distance L exceeds the allowable range for the distance L, that is, if “NO” in step S106, the tool path is corrected (step S107). Here, the operation for correcting the tool path will be described with reference to FIG. 17, taking as an example the case where the tool T10, which is a ball end mill, is in a state where the tool T10 and the machining curved surface S1 as shown in FIG. 10 interfere with each other. To do.
 図17は、工具T10と加工曲面S1とが接するように評価点を移動させ、新たな指令点を追加する様子の一例を示した図である。まず、工具経路修正部109において、ステップS106で得られた修正対象の曲線経路TP上の評価点Qのうち、距離Lに対する許容範囲から最も大きく外れている評価点Qを抽出する。図17においては、曲線経路TP3が修正対象の曲線経路であり、曲線経路TP3上の評価点Q3が、距離L3に対する許容範囲から最も大きく外れている評価点であるとする。 FIG. 17 is a diagram showing an example of how the evaluation point is moved so that the tool T10 and the machining curved surface S1 are in contact with each other and a new command point is added. First, the tool path correction unit 109 extracts the evaluation point Q that is the largest out of the allowable range for the distance L from the evaluation points Q on the correction target curved path TP obtained in step S106. In FIG. 17, it is assumed that the curved path TP3 is the curved path to be corrected, and the evaluation point Q3 on the curved path TP3 is the evaluation point that deviates most from the allowable range for the distance L3.
 次に、工具T10と加工曲面S1とが接する状態になるように、評価点Q3を移動させる。このとき、移動後の評価点を新たな指令点R1とする。このとき、評価点Q3を移動させる方向としては、工具軸方向や、評価点Q3に工具を配置したときの加工曲面上における基準点における加工曲面の法線方向、または、任意の方向に移動してもよい。 Next, the evaluation point Q3 is moved so that the tool T10 and the machining curved surface S1 are in contact with each other. At this time, the evaluation point after movement is set as a new command point R1. At this time, the evaluation point Q3 is moved in the tool axis direction, the normal direction of the machining curved surface at the reference point on the machining curved surface when the tool is arranged at the evaluation point Q3, or the arbitrary direction. May be.
 また、工具T10と加工曲面S1が接する状態になるように評価点Q3を移動させる方法は、与えられた移動方向に微小距離だけ動かして移動後の移動評価点Qにおける距離L3を計算することを、距離L3に対する許容範囲以下となるまで繰り返すことにより求めることができる。 A method of moving the evaluation point Q3 so that the tool T10 and the machining curved surface S1 are in contact with each other is to calculate a distance L3 at the movement evaluation point Q after the movement by moving a small distance in the given movement direction. , Can be obtained by repeating until the distance becomes equal to or less than the allowable range for the distance L3.
 さらに、工具経路修正部109では、ステップS103で工具経路記憶部103に記憶した工具経路に対して、距離L3が、距離L3に対する許容範囲以下となった、移動後の評価点Q3を新たな指令点R1として工具経路に追加し、工具経路を修正する。これにより、加工対象物の加工結果の精度が向上する。 Further, the tool path correction unit 109 issues a new command to the evaluation point Q3 after movement, in which the distance L3 is equal to or less than the allowable range for the distance L3 with respect to the tool path stored in the tool path storage unit 103 in step S103. The point R1 is added to the tool path to correct the tool path. This improves the accuracy of the processing result of the processing target object.
修正後の工具経路は、工具経路記憶部103に記憶する。図18は、指令点P1~P6について、ステップS107において新たな指令点R1を追加することにより修正した工具経路を示す図である。ステップS107の実行後は、ステップS104に戻り、処理を繰り返す。この場合、ステップS105の処理は省略しても良い。 The corrected tool path is stored in the tool path storage unit 103. FIG. 18 is a diagram showing the tool paths corrected for the command points P1 to P6 by adding a new command point R1 in step S107. After the execution of step S107, the process returns to step S104 and the process is repeated. In this case, the process of step S105 may be omitted.
 ステップS106の処理において、すべての評価点Qにおける距離L3が距離L3に対する許容範囲以下となり、工具経路の修正が完了した場合、修正後の工具経路が工具経路記憶部103に記憶される。次に、変換後加工プログラム出力部110において、工具経路記憶部103に記憶された工具経路に従って、所定の変換方法に従って工具経路から修正後の加工プログラムを生成し、修正後の加工プログラムを変換後に加工プログラム変換装置100の外部へ出力する(ステップS108)。 In the process of step S106, when the distance L3 at all the evaluation points Q falls within the allowable range for the distance L3 and the tool path correction is completed, the corrected tool path is stored in the tool path storage unit 103. Next, the post-conversion machining program output unit 110 generates a modified machining program from the tool path according to a predetermined conversion method according to the tool path stored in the tool path storage unit 103, and after converting the modified machining program. The data is output to the outside of the machining program conversion device 100 (step S108).
 ステップS108の実行後は処理を終了し、出力された変換後の加工プログラムは数値制御装置111に入力され、加工対象物の加工が行われる。なお、ステップS106からステップS108においては、ボールエンドミルである工具T10と加工曲面S1が干渉する場合について説明したが、その他の場合についても同様である。 After the execution of step S108, the processing is terminated, and the output converted machining program is input to the numerical controller 111, and the machining target is machined. Although the case where the tool T10 that is a ball end mill and the machining curved surface S1 interfere with each other has been described in steps S106 to S108, the same applies to other cases.
 以上より、本発明の実施の形態1に係る加工プログラム変換装置によれば、評価点と基準点の距離Lが、距離Lに対する許容範囲以下となるように工具経路を修正するため、加工対象物の加工結果の加工精度を向上させることができる。 From the above, according to the machining program conversion device according to the first embodiment of the present invention, the tool path is modified so that the distance L between the evaluation point and the reference point is equal to or less than the allowable range with respect to the distance L. The processing accuracy of the processing result can be improved.
さらに、距離Lが、距離Lに対する許容範囲を超えた評価点のみ移動させ、新たな指令点を追加するため、追加される指令点は必要な数に抑えることができ、プログラムのデータ量が必要以上に増えて処理が遅くなることを回避することができる。 Furthermore, since the distance L moves only the evaluation points that exceed the allowable range for the distance L and a new command point is added, the number of command points to be added can be suppressed to the required number, and the data amount of the program is required. It is possible to prevent the processing from increasing due to the increase above.
 実施の形態2.
本発明の実施の形態2に係る加工プログラム変換装置100の構成は、本実施の形態1に係る加工プログラム変換装置100の構成と同様であるため、説明を省略する。本発明の実施の形態2に係る加工プログラム変換装置100は、図19に示すフローチャートに従って動作する。
Embodiment 2.
Since the configuration of the machining program conversion device 100 according to the second embodiment of the present invention is the same as the configuration of the machining program conversion device 100 according to the first embodiment, the description thereof will be omitted. The machining program conversion device 100 according to the second embodiment of the present invention operates according to the flowchart shown in FIG.
 ステップS201からステップS203における動作は、本発明の実施の形態1におけるステップS101からステップS103までの動作と同様である。実施の形態2においては、曲線経路の生成方法が、本実施の形態1と相違する。 The operation from step S201 to step S203 is similar to the operation from step S101 to step S103 in the first embodiment of the present invention. In the second embodiment, the method of generating the curved path is different from that of the first embodiment.
 図20は、加工プログラム変換装置が加工プログラムから読み取った工具経路の一例を示した図である。図20に示した工具経路は、指令点P11~P17を有し、各指令点間を直線で結んだものである。本実施の形態2のステップS204においては、隣接した3点の指令点である第1、第2、第3の指令点から、両端の第1および第3の指令点の間を通過する曲線経路を生成する。図21は、一例として、第1の指令点である指令点P13、第2に指令点であるP14、第3の指令点であるP15のうち、P13とP15の間に曲線経路TP11を生成した様子を示している。次に、工具データ入力部105に工具データが外部入力され、形状データ入力部106に形状データが外部入力される(ステップS205)。 FIG. 20 is a diagram showing an example of a tool path read from the machining program by the machining program conversion device. The tool path shown in FIG. 20 has command points P11 to P17, and the command points are connected by a straight line. In step S204 of the second embodiment, a curved path passing between the first, second, and third command points, which are adjacent three command points, between the first and third command points at both ends. To generate. In FIG. 21, as an example, a curved path TP11 is generated between P13 and P15 among the command point P13 that is the first command point, the second command point P14, and the third command point P15. It shows the situation. Next, the tool data is externally input to the tool data input unit 105, and the shape data is externally input to the shape data input unit 106 (step S205).
曲線経路評価部108において、曲線経路TP11に複数点設定した評価点における、それぞれの距離Lを、工具データ、形状データ、許容寸法公差入力部に入力される許容範囲の値に従って評価する(ステップS206)。つまり、距離Lが、距離Lに対する許容範囲以下か許容範囲より大きいかを評価する。ここで、全ての距離Lが、距離Lに対する許容範囲以下であった場合、工具経路記憶部103に記憶されている工具経路から、指令点P14を削除する(ステップS207)。さらに、この場合は修正対象の曲線経路がないため、曲線経路TP11は最終的に変換されて出力される工具経路となる(ステップS208)。 In the curved path evaluation unit 108, the respective distances L at the evaluation points set to a plurality of points on the curved path TP11 are evaluated according to the tool data, the shape data, and the value of the allowable range input to the allowable dimension tolerance input unit (step S206). ). That is, it is evaluated whether the distance L is less than or equal to the allowable range or greater than the allowable range for the distance L. If all the distances L are within the allowable range for the distance L, the command point P14 is deleted from the tool path stored in the tool path storage unit 103 (step S207). Further, in this case, since there is no correction target curve path, the curve path TP11 is a tool path that is finally converted and output (step S208).
図22は、工具経路で加工される仕上がり形状の一例である。図22に示した仕上り形状M2は、形状データ入力部106に入力された形状データに基づいて生成されるもので、加工曲面S4を有する。 FIG. 22 is an example of a finished shape machined in the tool path. The finished shape M2 shown in FIG. 22 is generated based on the shape data input to the shape data input unit 106, and has a processed curved surface S4.
ステップS206を図23、図24、図25を用いて具体的に説明する。図23は、曲線経路と仕上り形状M2とが対応するように配置した状態を断面方向から示し、さらに一例として、曲線経路TP11上に評価点Q11~Q14を設定した図である。図24は、工具がボールエンドミル工具である場合に、加工曲面S4と工具T10が接している状態にある様子を示している。図24において、工具T10と加工曲面S4が接する点を基準点C31とする。図24においては、曲線経路TP11上の評価点Q12に工具を配置し、評価点Q12と基準点C31の距離L32とする。 Step S206 will be specifically described with reference to FIGS. 23, 24, and 25. FIG. 23 shows a state in which the curved path and the finished shape M2 are arranged so as to correspond to each other from the cross-sectional direction. Further, as an example, the evaluation points Q11 to Q14 are set on the curved path TP11. FIG. 24 shows a state where the machining curved surface S4 and the tool T10 are in contact with each other when the tool is a ball end mill tool. In FIG. 24, the point where the tool T10 and the machining curved surface S4 meet is set as the reference point C31. In FIG. 24, the tool is placed at the evaluation point Q12 on the curved path TP11, and the distance L32 is defined between the evaluation point Q12 and the reference point C31.
図24、図25、図26は、工具がボールエンドミル工具(以下、工具T10とする。)である場合における、工具T10と加工曲面S4の関係を示す図である。工具TP10は、曲線経路TP11上の評価点Q12に配置する。図24は、加工曲面S4と工具T10が離れている状態にある様子を示している。図24において、工具T10と加工曲面S4の距離が最短となる加工曲面S4上の点を、基準点C31とする。ここで、評価点Q12と基準点C31の距離を距離L31とする。 24, 25, and 26 are diagrams showing the relationship between the tool T10 and the machining curved surface S4 when the tool is a ball end mill tool (hereinafter, referred to as tool T10). The tool TP10 is arranged at the evaluation point Q12 on the curved path TP11. FIG. 24 shows a state where the machining curved surface S4 and the tool T10 are apart from each other. In FIG. 24, a point on the machining curved surface S4 where the distance between the tool T10 and the machining curved surface S4 is the shortest is a reference point C31. Here, the distance between the evaluation point Q12 and the reference point C31 is defined as the distance L31.
図25は、加工曲面S4と工具T10が接している状態にある様子を示している。図25において、工具T10と加工曲面S4が接する点を基準点C32とする。評価点Q12と基準点C32の距離を距離L32とすると、距離L32は工作機械で加工対象物を加工する上で、最も理想的な値である。 FIG. 25 shows a state in which the machining curved surface S4 and the tool T10 are in contact with each other. In FIG. 25, the point where the tool T10 and the machining curved surface S4 meet is defined as the reference point C32. Assuming that the distance between the evaluation point Q12 and the reference point C32 is the distance L32, the distance L32 is the most ideal value for machining an object to be machined with a machine tool.
図26は、工具T10が加工曲面S4に干渉する状態にある様子を示している。図26において、工具T10の評価点Q12と加工曲面S4との距離が最短となる、加工曲面S4上の点を基準点C31とする。また、このような工具と加工曲面が干渉する状態の場合、工具と加工曲面とが接触する状態となるまで工具をオフセットすることがある。基準点C31は、図26において点線で示した工具T10オフセットと加工曲面S4とが接触している点であるともいえる。ここで、評価点Q12と基準点C33の距離を距離L33とする。 FIG. 26 shows a state in which the tool T10 interferes with the machining curved surface S4. In FIG. 26, the point on the machining curved surface S4 where the distance between the evaluation point Q12 of the tool T10 and the machining curved surface S4 is the shortest is set as the reference point C31. Further, when such a tool and the machining curved surface interfere with each other, the tool may be offset until the tool comes into contact with the machining curved surface. It can be said that the reference point C31 is a point where the tool T10 offset indicated by the dotted line in FIG. 26 and the machining curved surface S4 are in contact with each other. Here, the distance between the evaluation point Q12 and the reference point C33 is defined as the distance L33.
曲線経路評価部108において、全ての距離L(距離L31~距離L33)が、距離Lに対する許容範囲以下であった場合、工具経路記憶部103に記憶されている工具経路から、第2の指令点である指令点P14を削除する(ステップS207)。さらに、この場合は修正対象の曲線経路がないため、曲線経路TP11は最終的に変換されて出力される工具経路となる(ステップS208)。図27は、本実施の形態2において工具経路を修正した最終形態の一例である。 In the curve path evaluation unit 108, when all the distances L (distance L31 to distance L33) are equal to or less than the allowable range with respect to the distance L, the second command point is obtained from the tool path stored in the tool path storage unit 103. The command point P14 which is is deleted (step S207). Further, in this case, since there is no correction target curve path, the curve path TP11 is a tool path that is finally converted and output (step S208). FIG. 27 is an example of the final form in which the tool path is corrected in the second embodiment.
曲線経路評価部108において、曲線経路TP11に複数点設定した評価点Qにおける、それぞれの距離Lのうち、1点でも距離Lに対する許容範囲より大きい距離になる評価点がある場合、指令点P14は削除せず、指令点P13とP14の間の曲線経路、P14とP15の間の曲線経路を生成する(ステップS209)。 In the curved path evaluation unit 108, if at least one of the evaluation points Q set in the curved path TP11 is a distance larger than the allowable range for the distance L, the command point P14 becomes Without deleting, a curved path between the command points P13 and P14 and a curved path between P14 and P15 are generated (step S209).
次に、実施の形態1のステップS106から108までの流れと同様に、曲線経路評価部108において、曲線経路生成部104において生成された各曲線経路を、工具データ、形状データ、許容寸法公差入力部に入力される許容範囲の値に従って距離Lの値が許容範囲内か否かを評価する(ステップS210)。曲線経路評価部108において、距離Lの値が距離Lに対する許容範囲を超えた場合、すなわち、ステップS210において「NO」の場合、工具経路を修正する(ステップS211)。ここで、工具経路を修正するための動作は、実施の形態1と同様である。 Next, similar to the flow from step S106 to step 108 of the first embodiment, in the curved path evaluation unit 108, each curved path generated by the curved path generation unit 104 is input with tool data, shape data, and allowable dimension tolerance. It is evaluated whether or not the value of the distance L is within the allowable range according to the value of the allowable range input to the unit (step S210). In the curved path evaluation unit 108, when the value of the distance L exceeds the allowable range for the distance L, that is, when “NO” in step S210, the tool path is corrected (step S211). Here, the operation for correcting the tool path is the same as that in the first embodiment.
ステップS210の処理において、すべての評価点Qにおける距離Lが距離Lに対する許容範囲以下となり、工具経路の修正が完了した場合、修正後の工具経路が工具経路記憶部103に記憶される。次に、変換後加工プログラム出力部110において、工具経路記憶部103に記憶された工具経路に従って、所定の変換方法に従って工具経路から修正後の加工プログラムを生成し、修正後の加工プログラムを変換後に加工プログラム変換装置100の外部へ出力する(ステップS208)。 In the process of step S210, when the distance L at all the evaluation points Q becomes equal to or less than the allowable range with respect to the distance L and the correction of the tool path is completed, the corrected tool path is stored in the tool path storage unit 103. Next, the post-conversion machining program output unit 110 generates a modified machining program from the tool path according to a predetermined conversion method according to the tool path stored in the tool path storage unit 103, and after converting the modified machining program. The data is output to the outside of the machining program conversion device 100 (step S208).
以上より、本発明の実施の形態2に係る加工プログラム変換装置によれば、隣接した3点の指令点のうち、両端の2点を通過する曲線経路上に設けた評価点と基準点の距離Lが、距離Lに対する許容範囲以下となることを満たした場合は、工具経路から既存の真ん中の指令点を削除するため、加工プログラムのデータ量を削減することができ、作業効率が向上する。さらに、加工対象物の加工結果の加工精度が所望の精度を満たすこともできる。  As described above, according to the machining program conversion apparatus according to the second embodiment of the present invention, the distance between the evaluation point and the reference point provided on the curved path that passes through the two points at both ends of the three adjacent command points. When L satisfies the condition that the distance L is equal to or less than the allowable range with respect to the distance L, the existing middle command point is deleted from the tool path, so that the data amount of the machining program can be reduced and the work efficiency is improved. Further, the processing accuracy of the processing result of the processing object can satisfy the desired accuracy. ‥
 実施の形態3.
 以下に、本発明の実施の形態3に係る数値制御装置を図面に基づいて説明する。なお、この実施の形態により、発明が限定されるわけではない。
Embodiment 3.
A numerical controller according to Embodiment 3 of the present invention will be described below with reference to the drawings. The invention is not limited by this embodiment.
 数値制御装置200は、外部から入力される加工プログラムを受け取る加工プログラム入力部201と、入力された加工プログラムを解析し、工具経路を求める加工プログラム解析部202と、加工プログラム解析部202で求めた工具経路が記憶される工具経路記憶部203と、工具経路記憶部203に記憶された工具経路に従って曲線経路を生成する曲線経路生成部204と、工具のデータを入力する工具データ入力部205と、加工対象物の加工後の形状データを入力する形状データ入力部206と、工具が加工対象物の加工曲面に沿って動作するかを判断するため曲線経路上に設けた点と加工曲面との距離の許容範囲を入力する許容寸法公差入力部207と、曲線経路上に設けた点と加工曲面との距離が許容範囲内か否かを判断する曲線経路評価部208と、工具経路を修正する工具経路修正部209と、曲線経路補間部210とを備える。本実施の形態に係る数値制御装置200は、外部から囲うプログラムが入力されると、加工プログラムを解析して工具経路を生成し、モータ駆動部211へ出力する動作を実行する。 The numerical control device 200 uses a machining program input unit 201 that receives a machining program input from the outside, a machining program analysis unit 202 that analyzes the input machining program and finds a tool path, and a machining program analysis unit 202. A tool route storage unit 203 for storing a tool route, a curved route generation unit 204 for generating a curved route according to the tool route stored in the tool route storage unit 203, a tool data input unit 205 for inputting tool data, A shape data input unit 206 for inputting the shape data of the processed object after processing, and a distance between a point provided on a curved path and the processed curved surface for determining whether the tool operates along the processed curved surface of the processed object. Allowable dimension tolerance input section 207 for inputting the allowable range of the above, a curved path evaluation section 208 for judging whether or not the distance between a point provided on the curved path and the machining curved surface is within the allowable range, and a tool for correcting the tool path. A route correction unit 209 and a curved route interpolation unit 210 are provided. When the enclosing program is input from outside, the numerical control device 200 according to the present embodiment analyzes the machining program, generates a tool path, and outputs the tool path to the motor drive unit 211.
 図28に示した実施の形態3に係る数値制御装置200が工具経路を生成する手順について説明する。図29は、実施の形態3に係る数値制御装置200の動作例を示すフローチャートである。図29のフローチャートは、数値制御装置200が工具経路を生成する動作の手順を示している。図29において、ステップS301からステップS307までの手順は、実施の形態1におけるステップS101からステップS107までの動作の手順と同様である。 A procedure for generating the tool path by the numerical control device 200 according to the third embodiment shown in FIG. 28 will be described. FIG. 29 is a flowchart showing an operation example of the numerical control device 200 according to the third embodiment. The flowchart of FIG. 29 shows a procedure of an operation in which the numerical control device 200 generates a tool path. In FIG. 29, the procedure from step S301 to step S307 is the same as the procedure of the operation from step S101 to step S107 in the first embodiment.
 ステップS306において、曲線経路生成部204は、評価点Qにおける距離Lが、距離Lに対する許容範囲以下となった場合、生成した曲線経路を曲線経路補間部210に渡す。 In step S306, the curved route generation unit 204 passes the generated curved route to the curved route interpolation unit 210 when the distance L at the evaluation point Q is less than or equal to the allowable range for the distance L.
数値制御装置200は、次に、曲線経路補間部210において、曲線経路を補間する(ステップS308)。具体的には、曲線経路補間部210が曲線経路生成部204から受け取った曲線経路上に、単位時間である補間周期あたりの工具の移動量を求めて補間した補間点を生成する。ステップS308で補間処理を行った後の曲線経路が、最終的な工具経路となる。曲線経路補間部210は、補間点の生成が終了すると、補間点を外部のモータ駆動部211に渡す。 The numerical controller 200 then interpolates the curved path in the curved path interpolation unit 210 (step S308). Specifically, the curved path interpolation unit 210 generates an interpolated point on the curved path received from the curved path generation unit 204 by calculating the amount of movement of the tool per interpolation cycle that is a unit time. The curved path after the interpolation processing in step S308 becomes the final tool path. When the generation of the interpolation points is completed, the curved path interpolation unit 210 passes the interpolation points to the external motor drive unit 211.
以上のような手順で動作することにより、実施の形態3に係る数値制御装置200は、工具経路を生成する。 By operating according to the above procedure, the numerical control device 200 according to the third embodiment generates a tool path.
 本発明の実施の形態3に係る数値制御装置によれば、修正された工具経路に従って数値制御することが可能となるため、加工プログラムを一度変換した後、変換後の加工プログラムを出力する必要がなく、また、加工対象物の所望の加工精度を満たすことが可能となることから、手戻りが発生せず、作業効率が向上する。 According to the numerical control device according to the third embodiment of the present invention, numerical control can be performed according to the modified tool path. Therefore, it is necessary to convert the machining program once and then output the converted machining program. In addition, since it is possible to satisfy the desired processing accuracy of the object to be processed, reworking does not occur and the work efficiency is improved.
100 加工プログラム変換装置、101、201 加工プログラム入力部、102、202 加工プログラム解析部、103、203 工具経路記憶部、104、204 曲線経路生成部、105、205 工具データ入力部、106、206 形状データ入力部、107、207 許容寸法公差入力部、108、208 曲線経路評価部、109、209 工具経路修正部、110 変換後加工プログラム出力部、111、200 数値制御装置、210 曲線経路補間部、P1~P6、P11~P17、R1 指令点
Q1~Q 評価点、C1~C3、C11~C13、C21~C23 基準点、L1~L3、L11~L13、L21~L23 距離L、S1~S3 加工曲面、T10~T12 工具、TP1~TP 曲線経路
  
100 Machining program converter, 101, 201 Machining program input unit, 102, 202 Machining program analysis unit, 103, 203 Tool path storage unit, 104, 204 Curved path generator, 105, 205 Tool data input unit, 106, 206 Shape Data input unit, 107, 207 Allowable dimension tolerance input unit, 108, 208 Curve path evaluation unit, 109, 209 Tool path correction unit, 110 Post-conversion machining program output unit, 111, 200 Numerical controller, 210 Curve path interpolation unit, P1 to P6, P11 to P17, R1 Command point Q1 to Q Evaluation point, C1 to C3, C11 to C13, C21 to C23 Reference point, L1 to L3, L11 to L13, L21 to L23 Distance L, S1 to S3 Machining curved surface , T10-T12 tools, TP1-TP curved path

Claims (11)

  1. 工具に対する移動指令が記述された加工プログラムから求めた工具経路に基づき、前記移動指令に従い前記工具経路上に設けられた複数の指令点の間に曲線経路を生成する曲線経路生成部と、
     前記曲線経路に従って動作する工具が、加工対象物の仕上がり形状である加工曲面に沿って動作するか否かを判断するために前記曲線経路上に設けた点を評価点とし、前記工具と前記加工曲面が接触する点を基準点とした場合に、前記評価点と前記基準点との距離である距離Lに対する許容範囲の値が記憶された許容寸法公差記憶部と、
    前記距離Lが、前記許容寸法公差記憶部に記憶された、前記許容範囲の値以内か否かを判断する曲線経路評価部と、
     前記距離Lが前記許容範囲から外れている場合に、前記許容範囲から外れている評価点を、前記距離Lが前記許容範囲以内となる位置に移動させ、移動後の評価点を新たな指令点とし、前記工具経路を修正する工具経路修正部と、
    を備える加工プログラム変換装置。
    A curve route generation unit that generates a curved route between a plurality of command points provided on the tool route according to the movement command, based on the tool route obtained from a machining program in which a movement command for the tool is described,
    A tool that operates according to the curved path is a point provided on the curved path for determining whether or not the tool moves along a machining curved surface that is a finished shape of a machining target, and the tool and the machining are used as evaluation points. An allowable dimension tolerance storage unit that stores a value of an allowable range for a distance L, which is a distance between the evaluation point and the reference point, when a point where the curved surface contacts is used as the reference point;
    A curve path evaluation unit that determines whether or not the distance L is within the value of the allowable range stored in the allowable dimension tolerance storage unit.
    When the distance L is out of the allowable range, an evaluation point outside the allowable range is moved to a position where the distance L is within the allowable range, and the evaluation point after the movement is a new command point. And a tool path correction unit that corrects the tool path,
    A machining program converter equipped with.
  2.  前記曲線経路生成部は、連続した第1、第2、および第3の指令点のうち、前記第1の指令点と前記第3の指令点を結ぶ曲線経路を生成し、
     前記工具経路修正部は、工具が、前記第1と第3の指令点を結ぶ曲線経路を通過する場合の前記距離Lが前記許容範囲以下であった場合に、前記第2の指令点を削除すること
     を特徴とする請求項1に記載の加工プログラム変換装置。
    The curved path generation unit generates a curved path connecting the first command point and the third command point among the continuous first, second, and third command points,
    The tool path correction unit deletes the second command point when the distance L when the tool passes through the curved path connecting the first and third command points is equal to or less than the allowable range. The machining program conversion device according to claim 1, wherein:
  3.  前記工具を定義する工具データが入力される工具データ入力部と、
     前記加工対象物の前記加工曲面を定義する形状データが入力される形状データ入力部と、
     をさらに備えることを特徴とする請求項1又は2に記載の加工プログラム変換装置。
    A tool data input unit for inputting tool data that defines the tool,
    A shape data input unit for inputting shape data defining the processing curved surface of the processing object;
    The machining program conversion device according to claim 1 or 2, further comprising:
  4. 前記形状データは、前記加工曲面における加工公差を含み、前記許容範囲は、前記加工曲面における前記加工公差に従って決定されること、
     を特徴とする請求項3に記載の加工プログラム変換装置。
    The shape data includes a machining tolerance on the machining surface, and the permissible range is determined according to the machining tolerance on the machining surface.
    The machining program conversion apparatus according to claim 3.
  5. 工具に対する移動指令が記述された加工プログラムから求めた工具経路に基づき、前記移動指令に従い前記工具経路上に設けられた複数の指令点の間に曲線経路を生成する曲線経路生成部と、
     前記曲線経路に従って動作する工具が、加工対象物の仕上がり形状である加工曲面に沿って動作するかを判断するために前記曲線経路上に設けた点を評価点とし、前記工具と前記加工曲面が接触する点を基準点とした場合に、前記評価点と前記基準点との距離である距離Lに対する許容範囲の値が入力される許容寸法公差記憶部と、
    前記距離Lが、前記許容寸法公差入力部に入力された、前記許容範囲の値以内か否かを判断する曲線経路評価部と、
     前記距離Lが前記許容範囲から外れている場合に、前記許容範囲から外れている評価点のみを、前記距離Lが前記許容範囲以内となる位置に移動させ、移動後の評価点を新たな指令点とし、前記工具経路を修正する工具経路修正部と、
     を備える数値制御装置。
    A curve route generation unit that generates a curved route between a plurality of command points provided on the tool route according to the movement command, based on the tool route obtained from a machining program in which a movement command for the tool is described,
    A point provided on the curved path is set as an evaluation point in order to determine whether the tool operating according to the curved path operates along the machining curved surface which is the finished shape of the object to be machined, and the tool and the machining curved surface are When the point of contact is used as the reference point, the permissible dimension tolerance storage unit in which the value of the permissible range for the distance L, which is the distance between the evaluation point and the reference point, is input.
    A curve path evaluation unit for determining whether or not the distance L is within the value of the allowable range input to the allowable dimension tolerance input unit, and
    When the distance L is out of the permissible range, only the evaluation points out of the permissible range are moved to a position where the distance L is within the permissible range, and the evaluation points after the movement are given a new command. A point, and a tool path correction unit that corrects the tool path,
    Numerical control device equipped with.
  6.  前記曲線経路生成部で生成した曲線経路上に、一定時間周期である補間周期あたりの工具の移動量を求めて補間した補間点を生成する曲線経路補間部を備える、
    ことを特徴とする請求項5に記載の数値制御装置。
    A curve path interpolation unit is provided on the curve path generated by the curve path generation unit to generate an interpolation point obtained by obtaining the amount of movement of the tool per interpolation cycle having a fixed time period.
    The numerical control device according to claim 5.
  7.  前記工具経路修正部は、前記距離Lに対する許容範囲から外れている前記評価点を、前記距離Lが前記許容範囲以下となる位置に移動させ、移動後の新たな指令点として追加すること、
     を特徴とする請求項5又は6に記載の数値制御装置。
    The tool path correction unit moves the evaluation point outside the allowable range for the distance L to a position where the distance L is equal to or less than the allowable range, and adds the evaluation point as a new command point after the movement.
    The numerical controller according to claim 5 or 6, characterized in that.
  8.  前記曲線経路生成部は、連続した第1、第2、および第3の指令点のうち、前記第1の指令点と前記第3の指令点を結ぶ曲線経路を生成し、
     前記工具経路修正部は、工具が、前記第1と第3の指令点を結ぶ曲線経路を通過するときの前記距離Lが前記許容範囲以下であった場合に、前記第2の指令点を削除すること
     を特徴とする請求項5に記載の数値制御装置。
    The curved path generation unit generates a curved path connecting the first command point and the third command point among the continuous first, second, and third command points,
    The tool path correction unit deletes the second command point when the distance L when the tool passes through the curved path connecting the first and third command points is equal to or less than the allowable range. The numerical control device according to claim 5, wherein
  9.  前記工具を定義する工具データが入力される工具データ入力部と、
     前記加工対象物の仕上がり形状を定義する形状データが入力される形状データ入力部と、
    をさらに備えることを特徴とする請求項5から8のいずれか1項に記載の数値制御装置。
    A tool data input unit for inputting tool data that defines the tool,
    A shape data input unit for inputting shape data defining a finished shape of the processing object;
    The numerical controller according to claim 5, further comprising:
  10. 前記形状データは、前記加工曲面における加工公差を含み、前記許容範囲は、前記加工曲面における前記加工公差に従って決定されること、
     を特徴とする請求項9に記載の数値制御装置。
    The shape data includes a machining tolerance on the machining surface, and the permissible range is determined according to the machining tolerance on the machining surface.
    9. The numerical control device according to claim 9.
  11. 工具および加工対象物に対する移動指令が記述された加工プログラムから求めた工具経路に基づき、前記移動指令に従い前記工具経路上に設けられた複数の指令点の間に曲線経路を生成するステップと、
     前記曲線経路に従って動作する工具が、加工対象物の仕上がり形状である加工曲面に沿って動作するかを判断するために前記曲線経路上に設けた点を評価点とし、前記工具と前記加工曲面が接触する点を基準点とした場合に、前記評価点と前記基準点との距離である距離Lに対する許容範囲の値を入力するステップと、
    前記距離Lが、入力された、前記許容範囲の値以内か否かを判断するステップと、
     前記距離Lが前記許容範囲から外れている場合に、前記許容範囲から外れている評価点のみを、前記距離Lが前記許容範囲以内となる位置に移動させ、移動後の評価点を新たな指令点とし、前記工具経路を修正するステップと、
    前記工具経路修正部で修正された工具経路を外部に出力するためのプログラムに変換するステップと、
     を含む加工プログラム変換方法。
    A step of generating a curved path between a plurality of command points provided on the tool path according to the move command, based on the tool path obtained from a machining program in which a move command for the tool and the object to be machined is described;
    A tool operating according to the curved path, the point provided on the curved path in order to determine whether to operate along the processing curved surface that is the finished shape of the workpiece is an evaluation point, the tool and the processing curved surface When the point of contact is used as the reference point, the step of inputting the value of the allowable range for the distance L, which is the distance between the evaluation point and the reference point, and
    Determining whether the distance L is within a value of the input allowable range,
    When the distance L is outside the allowable range, only the evaluation points that are outside the allowable range are moved to a position where the distance L is within the allowable range, and the evaluation point after the movement is given a new command. As a point, the step of correcting the tool path and
    Converting the tool path corrected by the tool path correction unit into a program for outputting to the outside,
    Machining program conversion method including.
PCT/JP2019/008587 2019-03-05 2019-03-05 Machining program conversion device, numerical control device, and machining program conversion method WO2020178978A1 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
PCT/JP2019/008587 WO2020178978A1 (en) 2019-03-05 2019-03-05 Machining program conversion device, numerical control device, and machining program conversion method
CN202080017844.0A CN113490894A (en) 2019-03-05 2020-03-03 Machining program conversion device, numerical control device, machining program conversion method, and machine learning device
DE112020000656.5T DE112020000656T5 (en) 2019-03-05 2020-03-03 Machining program converting apparatus, numerical control, machining program converting method and machine learning apparatus
JP2020540366A JP6808106B1 (en) 2019-03-05 2020-03-03 Machining program conversion device, numerical control device, machining program conversion method and machine learning device
PCT/JP2020/008990 WO2020179798A1 (en) 2019-03-05 2020-03-03 Machining program conversion device, numerical control device, machining program conversion method, and machine-learning device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2019/008587 WO2020178978A1 (en) 2019-03-05 2019-03-05 Machining program conversion device, numerical control device, and machining program conversion method

Publications (1)

Publication Number Publication Date
WO2020178978A1 true WO2020178978A1 (en) 2020-09-10

Family

ID=72337450

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/JP2019/008587 WO2020178978A1 (en) 2019-03-05 2019-03-05 Machining program conversion device, numerical control device, and machining program conversion method
PCT/JP2020/008990 WO2020179798A1 (en) 2019-03-05 2020-03-03 Machining program conversion device, numerical control device, machining program conversion method, and machine-learning device

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/JP2020/008990 WO2020179798A1 (en) 2019-03-05 2020-03-03 Machining program conversion device, numerical control device, machining program conversion method, and machine-learning device

Country Status (4)

Country Link
JP (1) JP6808106B1 (en)
CN (1) CN113490894A (en)
DE (1) DE112020000656T5 (en)
WO (2) WO2020178978A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022138843A1 (en) * 2020-12-25 2022-06-30 ファナック株式会社 Numerical control device
JP7274649B1 (en) 2022-06-15 2023-05-16 Dmg森精機株式会社 Information processing device and information processing program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117716305A (en) * 2021-07-27 2024-03-15 发那科株式会社 Numerical controller

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03259307A (en) * 1990-01-21 1991-11-19 Sony Corp Method for generating sculptured surface working data
JPH10240329A (en) * 1997-02-26 1998-09-11 Mitsubishi Electric Corp Curve fine-segmentation method and numerical controller provided with spline interpolation function
WO2017110236A1 (en) * 2015-12-24 2017-06-29 三菱電機株式会社 Tool path modification device and tool path modification method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3662799B2 (en) * 2000-03-09 2005-06-22 三菱電機株式会社 Numerical control apparatus and numerical control method
EP2336839A4 (en) * 2008-09-16 2013-11-06 Shin Nippon Koki Co Ltd Numerical controller
JP2011096077A (en) 2009-10-30 2011-05-12 Makino Milling Mach Co Ltd Method and device for generating tool path
CN103246237B (en) * 2013-05-23 2015-06-03 南京工业大学 Local ending point-based numerical control system speed controlling method
JP6470251B2 (en) * 2016-12-26 2019-02-13 ファナック株式会社 Numerical control device and machine learning device
JP6289765B1 (en) * 2016-12-27 2018-03-07 三菱電機株式会社 Numerical control device, program conversion device, numerical control method and program conversion method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03259307A (en) * 1990-01-21 1991-11-19 Sony Corp Method for generating sculptured surface working data
JPH10240329A (en) * 1997-02-26 1998-09-11 Mitsubishi Electric Corp Curve fine-segmentation method and numerical controller provided with spline interpolation function
WO2017110236A1 (en) * 2015-12-24 2017-06-29 三菱電機株式会社 Tool path modification device and tool path modification method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022138843A1 (en) * 2020-12-25 2022-06-30 ファナック株式会社 Numerical control device
JP7274649B1 (en) 2022-06-15 2023-05-16 Dmg森精機株式会社 Information processing device and information processing program
WO2023243215A1 (en) * 2022-06-15 2023-12-21 Dmg森精機株式会社 Information processing device and information processing program
JP2023182974A (en) * 2022-06-15 2023-12-27 Dmg森精機株式会社 Information processing device and information processing program

Also Published As

Publication number Publication date
JP6808106B1 (en) 2021-01-06
DE112020000656T5 (en) 2021-12-09
JPWO2020179798A1 (en) 2021-03-11
WO2020179798A1 (en) 2020-09-10
CN113490894A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
WO2020178978A1 (en) Machining program conversion device, numerical control device, and machining program conversion method
EP1720085B1 (en) Curve interpolating method
CN108369407B (en) Tool path correction device and tool path correction method
US6823234B2 (en) Curve interpolation method
US9851709B2 (en) Numerical control device
JP6289765B1 (en) Numerical control device, program conversion device, numerical control method and program conversion method
JP7012229B2 (en) Numerical control programming device, numerical control work system and numerical control work program
JP4637197B2 (en) Numerical controller
JP5785224B2 (en) Numerical control device for controlling a 5-axis machine
JP2018124996A (en) Numerical control device and control method
JPWO2018020663A1 (en) Numerical controller
JP4102521B2 (en) Trajectory control device
JP2752787B2 (en) Numerical control information creation device
US7392110B2 (en) Method and device for milling freeform surfaces
JP7037457B2 (en) Numerical control device and numerical control method
JP2619532B2 (en) Involute interpolation error correction method
CN110908332B (en) Method for realizing cutter radius compensation control aiming at circular arc cutter path in numerical control system
JP5875740B1 (en) Numerical controller
JP2002132317A (en) Controller
JPH0354610A (en) Involute interpolation error correcting system
JP6021690B2 (en) Numerical controller
JP2002366208A (en) Method for interpolating free curve of machine tool and numerical controller
WO2024084706A1 (en) Machining instruction correction device and machining instruction correction method
JP2000347715A (en) Numerical controller
JP2000003212A (en) Method for interpolating curve

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19918292

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19918292

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP