WO2016027355A1 - 数値制御装置 - Google Patents

数値制御装置 Download PDF

Info

Publication number
WO2016027355A1
WO2016027355A1 PCT/JP2014/071939 JP2014071939W WO2016027355A1 WO 2016027355 A1 WO2016027355 A1 WO 2016027355A1 JP 2014071939 W JP2014071939 W JP 2014071939W WO 2016027355 A1 WO2016027355 A1 WO 2016027355A1
Authority
WO
WIPO (PCT)
Prior art keywords
numerical control
unit
data
command data
machining program
Prior art date
Application number
PCT/JP2014/071939
Other languages
English (en)
French (fr)
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/JP2014/071939 priority Critical patent/WO2016027355A1/ja
Publication of WO2016027355A1 publication Critical patent/WO2016027355A1/ja

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
    • 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/406Numerical 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 monitoring or safety
    • G05B19/4068Verifying part programme on screen, by drawing or other means
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine

Definitions

  • the present invention relates to a numerical control device for numerically controlling a machine tool.
  • NC numerical control machining program
  • the NC machining program is created by, for example, commercially available CAM (Computer Aided Manufacturing) software, and is, for example, a format defined by EIA (Electronic Industries Alliance) (hereinafter referred to as “EIA format”) or ISO (International Standard Standard Organization). ) Defined in accordance with the format format (hereinafter referred to as “ISO format format”), for example, G code and a macro sentence character string.
  • the G code is a command code described in the NC machining program when, for example, positioning, linear interpolation, circular interpolation, or plane designation is performed.
  • the created NC machining program needs to be confirmed in advance before actually operating, but it is difficult to confirm the NC machining program by looking at the NC machining program alone. Therefore, when confirming the NC machining program, for example, a movement command described in the NC machining program is converted into a tool path, and the converted tool path trajectory is converted into, for example, a CRT (Cathode Ray Ray Tube) device or Display on a display device such as a display of a liquid crystal monitor is performed.
  • CTR Cathode Ray Ray Tube
  • interpolation processing is executed based on the movement command described in the NC machining program, other machining conditions, and the machine configuration, and a command trajectory after the interpolation processing is calculated.
  • the actual machine is operated in accordance with the calculated NC command data, and the actual locus that is the locus of the tool tip point is detected by the detection device.
  • the NC command data and the actual trajectory are stored in a storage device such as a memory, and called up when necessary. For example, for machining processing evaluation, the NC command data and the actual trajectory are displayed on a tool trajectory display device and used for visual analysis.
  • converted tool path “converted tool path”, “command trajectory after interpolation processing”, and “actual trajectory of tool tip point” are “program path” and “NC command respectively” by those skilled in the art.
  • data and “feedback (FB) position data” are often referred to as “data” and “feedback: FB” position data.
  • Patent Document 1 discloses displaying a tool path and a command path or an actual path.
  • Patent Document 2 includes a display unit that displays at least two of the program path, the command path, and the actual path so that they can be compared with each other, and a tool vector that represents a tool posture corresponding to the command path or the actual path. It is disclosed that they are displayed in a mutually comparable manner.
  • Patent Document 3 includes a display unit that displays at least two of the program path, the command path, and the actual path so that they can be compared, and calculates the acceleration in the command path and the actual path.
  • a color display that color-codes the locus of the tip of the tool
  • a vector display that displays the acceleration as an acceleration vector on the locus of the tip of the tool
  • a connection that connects the end points of adjacent acceleration vectors to each other It is disclosed that at least one of the connection display to be displayed is performed.
  • the machine tool has a plurality of drive shafts, and even if an error occurs in the movement of one drive shaft, there is a characteristic that a machining mark may be made on the machining surface of the workpiece. Therefore, in order to analyze the cause of the error for each drive axis, further information such as acceleration for each drive axis is required.
  • the B axis performs rotation control of the tool axis
  • the C axis performs turning processing by rotating the workpiece, control of these axes is performed.
  • the X, Y, and Z axes that are milling machining axes, the B axis that is the tool axis, and the C axis that is the rotation axis of the workpiece are distinguished from each other. It was necessary to analyze the cause of the processing marks that occur in the process.
  • Patent Document 3 since there is no technical idea of analyzing only the selected range of NC machining programs, it is necessary to analyze the NC machining program with respect to all of the read NC machining programs. Can not do.
  • the present invention has been made in view of the above, and provides a numerical control device capable of efficiently and accurately performing an analysis for reducing the occurrence of machining traces that may occur on the machining surface of a workpiece. Objective.
  • the present invention provides a numerical control in a numerical control device for a machine tool that controls the position and posture of at least one of a tool and a workpiece by a plurality of drive shafts.
  • a numerical control machining program reading unit for reading a machining program, a numerical control machining program selection unit for an operator to select an arbitrary range of the numerical control machining program, and a plurality of drive axes from the read numerical control machining program
  • a numerical control command data generation unit that generates numerical control command data that is a numerical control command position for each control cycle, and the numerical control command data for each of the plurality of drive shafts generated by the numerical control command data generation unit are acquired.
  • the plurality of drive shafts And numerical control command data acceleration calculating section for calculating a degree or acceleration, characterized by comprising a.
  • the flowchart which shows the processing flow in the numerical control apparatus of this Embodiment. Flowchart showing the process of calculating the command position of the NC program with the range specified
  • the figure which shows an example of a program route, NC command data, and FB position data Flowchart explaining generation process of NC command data when using ball end mill tool
  • the figure which shows an example at the time of generating NC command data of a ball end mill tool at the tool edge center Flowchart showing processing for adding and displaying color information corresponding to speed and acceleration to NC command data
  • the flowchart which shows the process which adds and displays the color information according to speed and acceleration to FB position data Flowchart showing processing for adding color information to the revers
  • change_quantity of a tool vector The figure which shows an example of NC command data color-coded according to the variation
  • the flowchart which shows the process which adds and stores a related machining program block number to NC command data The flowchart which shows the display processing flow of NC processing program relevant to NC command data which the operator specified.
  • the figure which shows the example of 1 structure of NC command data storage part The figure which shows one structural example of NC processing program display process part
  • the figure which shows one structural example of NC command data display process part The figure which shows the example of 1 structure of FB position data display process part.
  • FIG. 1 is a functional block diagram showing a configuration example when a machine tool is controlled using a numerical control device according to an embodiment of the present invention.
  • a numerical control apparatus 100 includes an NC machining program reading unit 101, an NC machining program storage unit 102, an NC machining program display processing unit 103, an NC machining program analysis unit 104, an NC command, Data generation unit 105, NC command data storage unit 106, NC command data display processing unit 107, NC command data analysis unit 108, FB position data acquisition unit 109, FB position data storage unit 110, FB position data display processing unit 111, FB A position data analysis unit 112, a CAD data reading unit 113, a CAD data storage unit 114, a CAD data display processing unit 115, an NC machining program selection unit 121, and an offset data storage unit 122 are configured, and the work according to the present embodiment
  • the machine 200 includes a dialogue operation processing unit 201, a display unit 202, Display input unit 203, the drive X
  • the drive X axis 204, the drive Y axis 205, the drive Z axis 206, the drive B axis 207, and the drive C axis 208 in the machine tool 200 include sensors or processing units that can output displacement signals on the respective drive axes. .
  • the NC machining program reading unit 101 reads the NC machining program 10 and stores it in the NC machining program storage unit 102.
  • the NC machining program 10 is created by, for example, commercially available CAM (Computer Aided Manufacturing) software and is defined by a format format (hereinafter referred to as “EIA format”, for example, EIA (Electronic Industries Alliance) Defined in accordance with a format defined by ISO (International Standard Organization) (hereinafter referred to as “ISO format format”), for example, a program described in a character string of a G code and a macro sentence.
  • ISO International Standard Organization
  • the NC command data generation unit 105 generates NC command data from the NC machining program stored in the NC machining program storage unit 102 and stores it in the NC command data storage unit 106.
  • the NC command data means an NC command position for each preset control cycle or a collection of the NC command positions.
  • the numerical controller 100 sends the NC command data stored in the NC command data storage unit 106 to the machine tool 200.
  • the machine tool 200 drives the drive X axis 204, the drive Y axis 205, the drive Z axis 206, the drive B axis 207, and the drive C axis 208 in accordance with the NC command data.
  • the NC command data described above is generated for each drive shaft.
  • the machine tool 200 controls the position and posture of at least one of the tool and the workpiece by a plurality of drive shafts.
  • the FB position data detector 209 of the machine tool 200 detects position data of the drive X axis 204, the drive Y axis 205, the drive Z axis 206, the drive B axis 207, and the drive C axis 208.
  • the FB position data that is the data detected by the FB position data detector 209 is sent to the numerical controller 100.
  • the FB position data acquisition unit 109 of the numerical controller 100 acquires the FB position data detected by the FB position data detector 209 and stores it in the FB position data storage unit 110.
  • the NC machining program analysis unit 104 analyzes the NC machining program stored in the NC machining program storage unit 102, adds the analyzed result to the NC machining program, and returns the result to the NC machining program storage unit 102.
  • the NC command data analysis unit 108 analyzes the NC command data stored in the NC command data storage unit 106, adds the analysis result to the NC command data, and returns the result to the NC command data storage unit 106.
  • the FB position data analysis unit 112 analyzes the FB position data stored in the FB position data storage unit 110, adds the analysis result to the FB position data, and returns the result to the FB position data storage unit 110.
  • the NC machining program display processing unit 103 generates display data from the NC machining program added with the analysis result stored in the NC machining program storage unit 102.
  • the generated display data is sent to the machine tool 200 and displayed on the display unit 202 of the machine tool 200.
  • the NC command data display processing unit 107 generates display data from the NC command data added with the analysis result stored in the NC command data storage unit 106.
  • the generated display data is sent to the machine tool 200 and displayed on the display unit 202 of the machine tool 200.
  • the FB position data display processing unit 111 generates display data from the FB position command data added with the analysis result stored in the FB position data storage unit 110.
  • the generated FB position command data is sent to the machine tool 200 and displayed on the display unit 202 of the machine tool 200.
  • the CAD data reading unit 113 reads the CAD data 20 and stores it in the CAD data storage unit 114.
  • the CAD data display processing unit 115 generates display data obtained by moving, rotating, enlarging, and reducing the CAD data stored in the CAD data storage unit 114, for example.
  • the generated display data is sent to the machine tool 200 and displayed on the display unit 202 of the machine tool 200.
  • the dialogue operation processing unit 201 is an interface processing unit between the operator and the machine tool 200 and between the numerical control device 100 and the machine tool 200.
  • the dialogue operation processing unit 201 can receive an operation process from the numerical control device 100 and display it on the display unit 202. Further, the dialogue operation processing unit 201 can send the instruction information input by the operator via the instruction input unit 203 to the numerical control device 100.
  • the NC machining program selection unit 121 analyzes the NC machining program stored in the NC machining program storage unit 102 and stores the offset data included in the NC machining program in the offset data storage unit 122.
  • the offset data is a code for setting the coordinate system of the movement command or a block number including the code.
  • workpiece coordinate system selection commands such as G54 and G55 are examples.
  • the block number is an example of a line number, a sequence number, or a program number indicating the position of the program.
  • FIG. 2 is a flowchart showing a processing flow in the numerical controller 100 according to the present embodiment.
  • the flow shown in FIG. 2 includes processing from step ST1001 to step ST1011. However, the flow can be divided into the following four subflows.
  • NC command data generation flow (steps ST1001-ST1003)
  • FB position data generation flow (steps ST1004-ST1005)
  • NC program, NC command data and FB position data analysis flow (steps ST1006-ST1008)
  • NC program, NC command data and FB position data display flow (steps ST1009 to ST1011)
  • NC command data generation flow The NC machining program reading unit 101 reads the NC machining program 10 and stores it in the NC machining program storage unit 102. Moreover, the NC machining program selection unit 121 analyzes the NC machining program stored in the NC machining program storage unit 102, and stores the offset data included in the analytically symmetric NC machining program in the offset data storage unit 122 (step ST1001). .
  • the NC machining program stored in the NC machining program storage unit 102 is displayed on the display unit 202 in response to an instruction input to the instruction input unit 203, and the operator designates a selection range of the NC machining program (step ST1002).
  • the NC command data generation unit 105 interprets the NC machining program stored in the NC machining program storage unit 102, the offset data stored in the offset data storage unit 122, and the range selected by the worker, and the range selected by the worker.
  • the program command position included in the NC machining program is calculated. Further, the NC command data generation unit 105 generates NC command coordinates based on the calculated program command position and the configuration information of the machine tool 200 (hereinafter referred to as “machine configuration”), and each drive shaft based on the machine configuration.
  • NC command data for commanding the position coordinates is generated (step ST1003).
  • the NC command data is generated every interpolation time of the machine tool 200.
  • the generated NC command data is stored in the NC command data storage unit 106.
  • the NC command data generated by the NC command data generation unit 105 is sent to the machine tool 200, and drives the drive X axis 204, drive Y axis 205, drive Z axis 206, drive B axis 207, and drive C axis 208 of the machine tool 200.
  • the FB position data acquisition unit 109 is based on the actual positions on the drive X axis 204, the drive Y axis 205, the drive Z axis 206, the drive B axis 207, and the drive C axis 208 detected by the FB position data detector 209.
  • the FB position data is calculated, and the calculated FB position data is stored in the FB position data storage unit 110 (step ST1005).
  • the NC machining program analysis unit 104 analyzes the NC machining program stored in the NC machining program storage unit 102, adds the analysis result to the NC machining program, and stores it in the NC machining program storage unit 102 (step ST1006).
  • NC command data analysis unit 108 analyzes the NC command data stored in NC command data storage unit 106, adds the analysis result to the NC command data, and stores the result in NC command data storage unit 106 (step ST1007).
  • the FB position data analysis unit 112 analyzes the FB position data stored in the FB position data storage unit 110, adds the analysis result to the FB position data, and stores it in the FB position data storage unit 110 (step ST1008).
  • NC program NC command data and FB position data analysis flow
  • the NC machining program display processing unit 103 interprets the NC machining program stored in the NC machining program storage unit 102, calculates the program command position included in the NC machining program, and displays the analysis result added to the NC machining program. Along with the reflected information, a program path which is a path based on the NC machining program is displayed on the display unit 202 of the machine tool 200 (step ST1009).
  • the NC command data display processing unit 107 interprets the NC command data stored in the NC command data storage unit 106, calculates the position coordinates of the NC command data, and together with the analysis result added to the NC command position data, the NC command data
  • the NC command data path which is a path according to, is displayed on the display unit 202 of the machine tool 200 (step ST1010).
  • the FB position data display processing unit 111 interprets the FB position data stored in the FB position data storage unit 110, calculates the position coordinates of the FB position data, and uses the FB position data along with the analysis result added to the FB position data.
  • the FB position data path as the path is displayed on the display unit 202 of the machine tool 200 (step ST1011).
  • FIG. 3 is a flowchart for explaining in detail an example of the process of step ST1003 shown in FIG. 2, and shows the process of calculating the command position of the NC program designated in the range.
  • NC command data generation unit 105 refers to offset data storage unit 122 and searches for offset data including a movement command for the block number based on the block number of the NC machining program selection range designated by the operator (step ST1121). ) According to the offset data searched in step ST1121, it is translated or rotated in the coordinate system of the movement command, and the program command position in the NC command machining program is calculated (step ST1122).
  • FIG. 4 is a diagram showing an example of a program path, NC command data, and FB position data.
  • a dotted line indicates a program path by the NC machining program
  • a broken line indicates NC command data
  • a solid line indicates FB position data.
  • FIG. 5 is a flowchart for explaining NC command data generation processing when a ball end mill tool is used. For example, when a ball end mill tool is used, whether the NC command data generation position is the center of the tool edge of the ball end mill tool or the center of the tool edge R is selected (step ST1131). Command data is calculated (step ST1132). Note that the selection process in step ST1131 is executed by information input via the instruction input unit 203 by, for example, an operator.
  • FIG. 6 shows an example in which NC command data for the ball end mill tool is generated at the center of the tool edge R.
  • the length of the cutting edge R radius is decomposed into the X-axis direction, the Y-axis direction, and the Z-axis direction according to the tool direction vector, and is subtracted from the NC command data at the tool cutting edge center.
  • the NC command data at the center of the cutting edge R can be calculated.
  • FIG. 7 shows an example when NC command data for a ball end mill tool is generated at the center of the tool edge.
  • the tool edge length in the machine position data is decomposed into the X axis direction, the Y axis direction, and the Z axis direction according to the tool direction vector, and added to the machine position data.
  • NC command data at the center of the blade edge can be calculated.
  • FIG. 8 is a flowchart for explaining the process of step ST1007 shown in FIG. 2 in more detail, and shows a process of displaying NC command data with color information corresponding to speed and acceleration.
  • the NC command data analysis unit 108 receives information on an axis designated by the operator (hereinafter referred to as “designated axis” as necessary) through the interactive operation processing unit 201 of the machine tool 200, and receives NC information related to the designated axis.
  • Command data is acquired from the NC command data storage unit 106 (step ST1201).
  • NC command data analysis unit 108 calculates the speed on the designated axis from the NC command data on the designated axis (step ST1202).
  • the speed is obtained by the following formula.
  • V
  • the velocity V is obtained by dividing the absolute value of the difference between the current NC command data and the next NC command data by the interpolation time of the NC command data.
  • the speed V obtained here is added to the NC command data and stored in the NC command data storage unit 106.
  • Not only the speed V but also acceleration described later and color information set according to the speed and acceleration are added to the NC command data and stored in the NC command data storage unit 106.
  • the NC command data analysis unit 108 calculates the acceleration on the designated axis (step ST1203).
  • the acceleration is obtained by the following formula.
  • the acceleration A is obtained by dividing the difference between the speed of the current NC command data and the speed of the next NC command data by the interpolation time of the NC command data.
  • the NC command data analysis unit 108 adds color information corresponding to the speed to the NC data (step ST1204).
  • An example of setting color information for representing the velocity distribution is shown below.
  • RGB 0 ⁇ V ⁇ 300.0: RGB (0, 0, 255) 300.0 ⁇ V ⁇ 400.0: RGB (32, 32, 255) 400.0 ⁇ V ⁇ 450.0: RGB (64, 64, 255) 475.0 ⁇ V ⁇ 490.0: RGB (96, 96, 255) 490.0 ⁇ V ⁇ 500.0: RGB (128, 128, 255) 500.0 ⁇ V ⁇ 510.0: RGB (160, 160, 255) 510.0 ⁇ V: RGB (192, 192, 255) ... (3)
  • V represents speed, and the unit of speed is, for example, [mm / min].
  • the numerical value in parentheses following RGB represents the gradation of RGB, for example, RGB (0, 0, 0) represents black, RGB (255, 255, 255) represents white, and RGB (255, 0,0) represents red, RGB (0,255,0) represents green, and RGB (0,0,255) represents blue.
  • RGB gradation of RGB
  • RGB (0, 0, 0) represents black
  • RGB (255, 255, 255) represents white
  • RGB (255, 0,0) represents red
  • RGB (0,255,0) represents green
  • RGB (0,0,255) represents blue.
  • the shade of the color tone based on blue is changed so that the change in speed can be recognized by the operator. ing.
  • the NC command data analysis unit 108 adds color information corresponding to the acceleration to the NC data (step ST1205).
  • An example of setting color information for representing the acceleration distribution will be shown below.
  • A represents acceleration
  • the unit of acceleration is, for example, [m / s 2 ].
  • the numerical value in parentheses following RGB represents the gradation of RGB, and in addition to the annotation in the above equation (3), for example, RGB (255, 0, 255) represents magenta.
  • the acceleration values when the acceleration value is negative, the acceleration values are 1.0 [m / s 2 ], 0.5 [m / s 2 ], 0.4 [m / s 2 ] Or 0.1 [m / s 2 ], the color tone is set to change from blue to white, and when the acceleration value is positive, the acceleration value is 0.
  • the color tone changes from white to magenta. It is set so that the change in acceleration can be seen by the operator.
  • NC command data display processing unit 107 displays NC command data added with color information stored in NC command data storage unit 106 on display unit 202 of machine tool 200 (step ST1206).
  • FIG. 9 is a diagram showing an example of an acceleration distribution to which color information is added. Since color display is not possible in the drawing referred to in the specification, the display color on the display screen is represented by RGB gradations in FIG. In FIG. 9, at the corner R1 on the NC command data path, the RGB gradation is, for example, RGB (192, 192, 255) ⁇ RGB (255, 255, 255) ⁇ RGB (255, 192, 255). The changing situation is shown, and the operator can know the change in the acceleration of a specific axis by checking the color change.
  • FIG. 10 is a flowchart for explaining in detail an example of the process of step ST1008 shown in FIG. 2, and shows the process of adding and displaying color information corresponding to the speed and acceleration to the FB position data.
  • the FB position data analysis unit 112 receives information on the designated axis through the dialogue operation processing unit 201 of the machine tool 200, and acquires the FB position data related to the designated axis from the FB position data storage unit 110 (step ST1301).
  • the FB position data analysis unit 112 calculates the speed on the designated axis from the FB position data on the designated axis (step ST1302).
  • the speed is obtained by the following formula.
  • VFB ((FBD (t + ⁇ t) ⁇ FBD (t)) / ⁇ t (5)
  • the speed VFB of the FB position data is obtained by dividing the difference value between the current FB position data and the next FB position data by the sampling time of the FB position data. It is done.
  • the velocity VFB of the FB position data obtained here is added to the NC command data and stored in the NC command data storage unit 106. Not only the speed VFB of the FB position data but also the later-described acceleration and color information set according to the speed and acceleration are added to the FB position data and stored in the FB position data storage unit 110.
  • the FB position data analysis unit 112 calculates the acceleration on the designated axis (step ST1303).
  • the acceleration is obtained by the following formula.
  • AFB ((VFB (t + ⁇ t) ⁇ VFB (t)) / ⁇ t (6)
  • AFB acceleration of FB position data
  • VFB (t + ⁇ t) speed of FB position data after one
  • VFB (t) speed of current FB position data
  • ⁇ t sampling time of FB position data
  • the acceleration AFB of the FB position data Is required.
  • the FB position data analysis unit 112 adds color information corresponding to the speed to the FB position data (step ST1304). Further, the FB position data analysis unit 112 adds color information corresponding to the acceleration to the FB position data (step ST1305).
  • the FB position data display processing unit 111 displays the FB position data with the color information stored in the FB position data storage unit 110 on the display unit 202 of the machine tool 200 (step ST1306).
  • FIG. 11 is a flowchart showing a process different from that of FIG. 8 in the process of step ST1007, and shows a process of adding color information to the inverted part of the NC command data.
  • the NC command data analysis unit 108 acquires the NC command data of the axis designated by the operator from the NC command data stored in the NC command data storage unit 106 via the dialogue operation processing unit 201 of the machine tool 200 ( Step ST1401).
  • the NC command data analysis unit 108 searches for a location where the NC command data acquired in step ST1401 is inverted, adds color information for each designated axis to the location where the NC command data is inverted, and stores it in the NC command data storage unit 106. Store (step ST1402).
  • NC command data 1 (1.0, 0.0, 0.0) NC command data 2: (2.0, 1.0, 1.0) NC command data 3: (3.0, 2.0, 0.0) NC command data 4: (2.0, 3.0, 0.0) NC command data 5: (1.0, 4.0, 0.0) NC command data 6: (0.0, 3.0, 1.0)
  • NC command data 3 (1.0, 0.0, 0.0) NC command data 3 where the increase / decrease in the NC command data value is switched.
  • the Y axis reversal point is NC command data 5
  • the Z axis reversal point is NC command data 2 and NC command data 5.
  • NC command data display processing unit 107 displays NC command data with color information stored in NC command data storage unit 106 on display unit 202 of machine tool 200 (step ST1403).
  • FIG. 12 is a flowchart showing a process different from that of FIG. 10 in the process of step ST1008, and shows a process of adding color information to the inverted part of the FB position data and displaying it.
  • the FB position data analysis unit 112 acquires the FB position data of the axis designated by the operator from the FB position data stored in the FB position data storage unit 110 via the interactive operation processing unit 201 of the machine tool 200 ( Step ST1501).
  • the FB position data analysis unit 112 searches for a place where the FB position data acquired in step ST1501 is reversed, adds color information for each designated axis of the place where the FB position data is reversed, and stores it in the FB position data storage unit 110 (step). ST1502).
  • the inverted part of the FB position data is a part where the increase / decrease of the FB position data value in each axis is switched and can be searched in the same manner as the NC command data.
  • the FB position data display processing unit 111 displays the FB position data added with color information stored in the FB position data storage unit 110 on the display unit 202 of the machine tool 200 (step ST1503).
  • FIG. 13 is a flowchart showing a process different from that of FIG. 8 and FIG. 11 in the process of step ST1007, and shows a process of adding color information to the NC command data in accordance with the change amount of the tool vector.
  • the NC command data analysis unit 108 acquires the NC command data of the axis designated by the operator from the NC command data stored in the NC command data storage unit 106 via the dialogue operation processing unit 201 of the machine tool 200 ( Step ST1601).
  • NC command data analysis unit 108 calculates a tool direction vector from the NC command data acquired in step ST1601 (step ST1602). For example, in the case of a compound lathe that performs machining by combining milling machining of the drive axes of the X axis, Y axis, and Z axis, rotation control of the tool axis with the B axis, and turning of the workpiece with the C axis, B
  • the tool direction vector can be calculated from the NC command data of the axis and the NC command data of the C axis by the following formula.
  • Tool direction vector (cos (c_rad), sin (c_rad), ⁇ (cos (b_rad)) (7)
  • NC command data analysis unit 108 calculates the change amount of the tool vector calculated in step ST1602 (step ST1603).
  • the amount of change of the tool vector can be calculated using the following equation.
  • FIG. 14 is a diagram illustrating an example of a difference vector representing a change amount of the tool vector. As shown in the above equation (8) and FIG. 14, the square value of the magnitude of the difference vector between the focused tool vector and the previous tool vector can be used as the change amount of the tool vector.
  • NC command data analysis unit 108 adds color information designated by the operator in accordance with the change amount of the tool vector calculated in step ST1603 (step ST1604).
  • NC command data display processing unit 107 displays NC command data with color information stored in NC command data storage unit 106 on display unit 202 of machine tool 200 (step ST1605).
  • FIG. 15 is a diagram showing an example of NC command data displayed in different colors according to the amount of change in the tool vector. Since color display is not possible in the drawing referred to in the specification, the display color of the arrow representing the tool vector is represented by RGB gradations in FIG. In FIG. 15, in NC command data # 2, since the magnitude of the difference vector is smaller than a predetermined determination value, the previous tool vector and the current tool vector have the same RGB gradation, for example, RGB (0 , 0, 0).
  • the previous tool vector and the current tool vector are different in RGB gradation, for example, The previous tool vector is displayed in RGB (0, 0, 0), and the current tool vector is displayed in RGB (0, 0, 255). By displaying in this way, the operator can know the sudden change location of the tool vector by confirming the color change.
  • FIG. 16 is a flowchart showing a process different from that of FIGS. 10 and 12 in the process of step ST1008, and shows a process of adding color information to the FB position data in accordance with the change amount of the tool vector.
  • the FB position data analysis unit 112 acquires the FB position data of the axis designated by the operator from the FB position data stored in the FB position data storage unit 110 via the interactive operation processing unit 201 of the machine tool 200 ( Step ST1701).
  • the FB position data analysis unit 112 calculates a tool direction vector from the FB position data acquired in step ST1701 (step ST1702).
  • the tool direction vector in the FB position data can be calculated in the same manner as in the NC command data.
  • the FB position data analysis unit 112 calculates the change amount of the tool vector calculated in step ST1702 (step ST1703).
  • the change amount of the tool vector in the FB position data can be calculated in the same manner as in the NC command data.
  • the FB position data analysis unit 112 adds color information designated by the operator according to the change amount of the tool vector calculated in step ST1703 (step ST1704).
  • the FB position data display processing unit 111 displays the FB position data added with color information stored in the FB position data storage unit 110 on the display unit 202 of the machine tool 200 (step ST1705).
  • FIG. 17 is a flowchart showing a process different from that of FIG. 3 in the process of step ST1003, and shows a process of adding and storing a machining program block number related to NC command data.
  • NC command data is generated from a machining program
  • G code command for generating NC command data by referring to a plurality of machining program blocks.
  • a plurality of related code codes are generated from the generated NC command data.
  • the machining program block number corresponds to the line number in the EIA format that constitutes the NC machining program.
  • the NC command data generation unit 105 acquires information on a machining program block number corresponding to the NC machining program to be received, which is received through the dialogue operation processing unit 201 of the machine tool 200 (In step ST1801, the machining program block number is added to the generated NC command data and stored in the NC command data storage unit 106 (step ST1802).
  • FIG. 18 is a flowchart showing the display processing flow of the NC machining program related to the NC command data designated by the operator.
  • the NC command data display processing unit 107 receives information on the NC command data designated by the operator through the dialogue operation processing unit 201 of the machine tool 200, and acquires the designated NC command data from the NC command data storage unit 106. (Step ST1901).
  • NC command data display processing unit 107 acquires the related machining program block number added to the designated NC command data (step ST1902). Further, NC command data display processing unit 107 displays the NC command data on display unit 202 of machine tool 200 (step ST1903). Further, the NC command data display processing unit 107 acquires a related NC machining program part from the NC machining program storage unit 102, and displays the acquired NC machining program part and the related machining program block number on the display unit 202. It is displayed (step ST1904).
  • NC command data to which the following related machining program block numbers are added is stored in the NC command data storage unit 106.
  • NC command data 1 Related machining program block number [1, 2, 3, 4, 5]
  • NC command data 2 Related machining program block number [2, 3, 4, 5]
  • NC command data 3 Related machining program block number [4, 5]
  • NC command data 4 Related machining program block number [4, 5, 6]
  • NC command data 5 Related machining program block number [4, 5, 6, 7]
  • NC command data 6 Related machining program block number [5, 6, 7, 8]
  • the program path including the machining program block number 4, the machining program block number 5, and the machining program block number 6 can be highlighted, for example.
  • FIG. 19 is a flowchart showing a display processing flow of NC command data related to the machining program block number of the NC machining program designated by the operator.
  • the NC machining program display processing unit 103 acquires the machining program block number of the NC machining program designated by the operator from the NC machining program storage unit 102 (step ST2001).
  • NC processing program display processing unit 103 acquires, from the NC command data storage unit 106, related NC command data, which is NC command data with the processing program block number added as the related processing program block number (step ST2002).
  • the NC machining program display processing unit 103 displays the NC machining program designated by the operator on the display unit 202 of the machine tool 200 (step ST2003). Further, NC machining program display processing unit 103 displays related NC command data on display unit 202 of machine tool 200 (step ST2004).
  • NC command data is stored in the NC command data storage unit 106.
  • NC command data 1 Related machining program block number [1, 2, 3, 4, 5]
  • NC command data 2 Related machining program block number [2, 3, 4, 5]
  • NC command data 3 Related machining program block number [4, 5]
  • NC command data 4 Related machining program block number [4, 5, 6]
  • NC command data 5 Related machining program block number [4, 5, 6, 7]
  • NC command data 6 Related machining program block number [5, 6, 7, 8]
  • NC command data 1 and NC command data 2 can be highlighted, for example.
  • FIG. 20 is a flowchart for explaining in detail an example of the process of step ST1009 shown in FIG. 2, and shows the process of searching for the G0 command and displaying the program path of the NC machining program.
  • the NC machining program analysis unit 104 acquires the NC machining program from the NC machining program storage unit 102, analyzes the NC machining program one block at a time, and determines whether it is a G0 command (step ST2101).
  • the G0 command is one of the commands defined in the G code, and means a fast-forward command for positioning.
  • the NC machining program analysis unit 104 determines whether the block of the G0 command is an approach (machining approach path) or a retract (machining escape path) (step ST2102). Specifically, when the command of the block immediately before the G0 block is a cutting feed command such as G1, G2, G3, it is determined to be retract. On the other hand, when the command of the block immediately after the G0 block is a cutting feed command such as G1, G2, and G3, it is determined as an approach. When the G0 command block is approach or retract, the color information designated by the operator is added to the G0 command block and stored in the NC machining program storage unit 102.
  • the NC machining program analysis unit 104 determines whether or not the NC machining program is final (step ST2103). If it is not final (step ST2103, No), it returns to step ST2101 and continues searching for the G0 command. If there is any (step ST2103, Yes), the process proceeds to step ST2104.
  • the NC machining program display processing unit 103 reflects the added color information and displays the program path of the NC machining program on the display unit 202 (step ST2104).
  • FIG. 21 is a diagram showing an example when a program path including an approach (approach) G0 command and a retract (retreat) G0 command is displayed. Since color display is not possible in the drawings referred to in the specification, in FIG. 21, the display color on the display screen is represented by RGB gradations, the approach in the G0 command is displayed in red, and the retract in the G0 command is displayed. Is displayed in blue. By confirming the color, the operator can visually recognize only the G0 command of interest.
  • FIG. 22 is a flowchart showing the processing contents of NC minute line segment capability limit location analysis in the numerical control apparatus of the present embodiment.
  • the NC command data analysis unit 108 acquires the NC command data from the NC command data storage unit 106 and the related machining program block number in the NC command data, and based on the acquired related machining program block number, the NC machining program storage unit A related machining program block is acquired from 102 (step ST2201).
  • the NC command data analysis unit 108 calculates the NC minute line segment capability limit speed from the block length of the related machining program block (hereinafter referred to as “machining program block length” or “block length” as necessary) (step ST2202).
  • the NC minute line segment capability limit speed is the maximum feed speed when the NC machining program is executed.
  • the NC fine line segment limit speed can be calculated by the following equation.
  • NC command data analysis unit 108 calculates the speed of the NC command data by the same process as step ST1202 (step ST2203).
  • the NC command data analysis unit 108 compares and determines the speed of the NC command data calculated in step ST2203 and the NC minute line segment capability limit speed calculated in step ST2202 (step ST2204).
  • the following formula can be used as a judgment formula for judging that the machining program block is the NC minute line segment capability limit portion.
  • NC command data analysis unit 108 determines whether or not the NC command data is final (step ST2205), and when it is not final (step ST2205, No), repeats the processing from step ST2201 to step ST2204. On the other hand, when it determines with NC command data being the last (step ST2205, Yes), it transfers to step ST2206.
  • the NC command data display processing unit 107 obtains an NC machining program including a machining program block to which color information of a minute line segment capability limit point is added from the NC machining program storage unit 102, and the related NC machining program is obtained from the machine tool 200. Are displayed on the display unit 202 (step ST2206).
  • FIG. 23 is a flowchart showing processing at the time of periodicity analysis of FB position data in the numerical controller according to the present embodiment.
  • the FB position data analysis unit 112 acquires the FB position data of the axis designated by the operator from the FB position data storage unit 110 (step ST2301). Also, the FB position data analysis unit 112 divides the acquired FB position data by the period length designated by the operator (step ST2302). Further, the FB position data analysis unit 112 adds the color information specified by the operator to the FB position data according to the value of the fractional part of the quotient, and stores it in the FB position data storage unit 110 (step ST2303). ).
  • color information is shown below. For example, the following color is set according to the value of the fractional part of the divided quotient.
  • the FB position data analysis unit 112 determines whether the FB position data is final (step ST2304). If the FB position data is not final (step ST2304, No), the process returns to step ST2301 to acquire the FB position data. When the FB position data is final (step ST2304, Yes), the process proceeds to step ST2305.
  • the FB position data display processing unit 111 acquires the FB position data to which the color information of periodicity analysis is added from the FB position data storage unit 110, and displays the FB position data on the display unit 202 (step ST2305).
  • FIG. 24 is a diagram illustrating an example of a result of periodic analysis of the FB position data by inputting a specific period length with respect to the FB position data of the specific axis.
  • this pattern it is possible to virtually display the cogging of the motor. If this pattern matches the workpiece machining surface properties after actual machining, it is judged as the machining surface properties by motor cogging. If this pattern does not match the workpiece machining surface properties after actual machining, the machining surface by the NC machining program It is judged as a property.
  • FIG. 25 is a flowchart showing CAD data display processing in the numerical controller according to the present embodiment.
  • the CAD data reading unit 113 reads the CAD data 20 and stores it in the CAD data storage unit 114 (step ST2401).
  • the CAD data 20 for example, a method of inputting a three-dimensional model defined by commercially available CAD software to the numerical control device 100, or geometrically inputting the shape and dimensions of the three-dimensional model on the numerical control device 100. There is a technique to do.
  • the CAD data display processing unit 115 enlarges or reduces the CAD data 20 according to the display unit and the display scale, performs, for example, rotational movement or parallel movement according to the coordinate system of the NC machining program, and moves to the position of the NC machining program.
  • CAD data is arranged, that is, aligned (step ST2402). Further, the CAD data display processing unit 115 displays the aligned CAD data on the display unit 202 together with the target specified by the operator among the NC machining program, NC command data, or FB position data (step ST2403).
  • FIG. 26 is a diagram showing an example when CAD data is read and displayed together with FB position data.
  • the problem location can be easily identified by displaying the CAD data and the FB position data in an overlapping manner.
  • FIGS. 3, 5, 8, 10 to 13, 16 to 20, 22, 22, 23, and 25. 1 is based on the configuration shown in FIG. 1, and as shown in FIGS. 27 to 33, the NC command data analysis unit 108, the FB position data analysis unit 112, the NC command data storage unit 106, the NC machining program A detailed processing unit may be provided inside each of the display processing unit 103, the NC command data display processing unit 107, the FB position data display processing unit 111, and the CAD data display processing unit 115.
  • the NC command data analysis unit 108 includes an NC command data speed calculation unit 108a, an NC command data acceleration calculation unit 108b, a tool vector calculation unit 108c, a tool vector analysis unit 108d, and a related machining program block acquisition unit 108e.
  • the NC command data acceleration calculation unit 108b may include the function of the NC command data speed calculation unit 108a.
  • the FB position data analysis unit 112 includes an FB position data velocity calculation unit 112a, an FB position data acceleration calculation unit 112b, a tool vector calculation unit 112c, a tool vector analysis unit 112d, and an FB position data periodicity analysis unit 112e. You may comprise as follows.
  • the FB position data acceleration calculation unit 112b may have the function of the FB position data speed calculation unit 112a.
  • a machining program block storage unit 106 a is provided in the NC command data storage unit 106
  • a color-coded display unit 103 a is provided in the NC machining program display processing unit 103
  • a color-coded display unit is provided in the NC command data display processing unit 107.
  • 107a may be provided
  • the color-coded display unit 111a may be provided inside the FB position data display processing unit 111.
  • a CAD data arrangement unit 115a may be provided inside the CAD data display processing unit 115.
  • a CAD data scaling unit 115b may be provided inside the CAD data display processing unit 115.
  • a color-coded display unit 115c may be provided inside the CAD data display processing unit 115.
  • the NC machining program is read from the read NC machining program for each control cycle.
  • NC command data that is the NC command position is generated, and the speed or acceleration for each of the plurality of drive axes is calculated using the generated NC command data for each of the plurality of drive axes.
  • the speed and acceleration of the NC command data can be analyzed, and the operator can grasp changes in speed and acceleration for each single axis.
  • the operator does not need to analyze a huge amount of NC command data. As a result, there is an effect of facilitating the search for the cause of occurrence of the machining trace generated on the machining surface of the workpiece.
  • a feedback position data detector is provided that is attached to each of the plurality of drive shafts and detects the position of each of the plurality of drive shafts for each control cycle. After the NC machining program of the arbitrary range selected by the operator is read, the feedback position detection value for each of the plurality of drive axes detected for each control cycle by the feedback position data detector provided in the machine tool is fed back to the feedback position. Since it was decided to calculate the speed or acceleration for each of a plurality of drive axes using the acquired feedback position data, it is possible to analyze the speed or acceleration of the feedback position data for each specified drive axis. The operator can grasp changes in speed and acceleration for each single axis.
  • the NC command data generated by the NC command data generation unit determines where the NC command data is inverted for each drive axis, and for each drive axis specified by the operator, Since the inversion location of the NC command data can be displayed, the operator can easily grasp the location where the NC command data is inverted. As a result, there is an effect of facilitating the search for the cause of occurrence of the machining trace generated on the machining surface of the workpiece.
  • the feedback position data acquired by the feedback position data acquisition unit determines where the feedback position data is inverted for each drive axis, and for each drive axis specified by the operator, Since the inverted position of the feedback position data can be displayed, the operator can easily grasp the position where the feedback position data is inverted. As a result, there is an effect of facilitating the search for the cause of occurrence of the machining trace generated on the machining surface of the workpiece.
  • the tool vector is calculated from the NC command data for each of the plurality of drive axes calculated by the NC command generation unit, and the change amount of the calculated tool vector is analyzed and displayed. Therefore, the operator can easily grasp the sudden change point of the tool vector. As a result, there is an effect of facilitating the search for the cause of occurrence of the machining trace generated on the machining surface of the workpiece.
  • the tool vector is calculated from the feedback position data for each of the plurality of drive axes detected by the feedback position data detector, and the calculated change amount of the tool vector is analyzed. Since it can be displayed, the operator can easily grasp the sudden change point of the tool vector. As a result, there is an effect of facilitating the search for the cause of occurrence of the machining trace generated on the machining surface of the workpiece.
  • the machining program block that affects the generation of the NC command is stored,
  • the machining program block that affects the generation of the specified NC command data is acquired from the machining program block storage unit, so that it is related to the NC command data specified by the operator. There is an effect that the location of the machining program block to be easily understood.
  • the numerical control processing program is a machining program block that affects the NC command generation.
  • the designated machining program block acquires NC command data that affects the generation of NC command data.
  • the approach and the retract are determined from the G0 fast-forward command of the machining program, and the approach G0 command and the retract G0 command are set with a predetermined set color according to the determination result. Is displayed, so that the operator can easily understand the approach and the retract.
  • the limit speed calculated from the machining program block is compared with the NC command speed calculated by the NC command data speed calculation unit, and the speed of the numerical control command is the limit speed. Since the numerical control minute line segment capacity limit location is determined when the judgment value set on the basis of is exceeded, the operator cannot reach the command speed of the NC machining program because the block length is short. There is an effect that the minute line segment capacity limit portion can be easily understood.
  • a value less than the decimal number obtained by dividing the feedback position data of the specified axis by the control cycle length is calculated. Since the comparison is made with the workpiece machining surface, it is possible to easily analyze whether the workpiece machining surface property by cogging of the motor of the designated axis or the workpiece machining surface property by the NC machining program.
  • the read CAD data is arranged at an arbitrary position, and the shape of the read CAD data is enlarged or reduced to an arbitrary magnification so that the program path, the numerical control Since the CAD data is displayed together with at least one of the command data and the feedback position data, there is an effect that the operator can easily identify the problem location.
  • NC machining program 10 NC machining program, 20 CAD data, 100 numerical control device, 101 NC machining program reading unit, 102 NC machining program storage unit, 103 NC machining program display processing unit, 103a, 107a, 111a, 115c Color-coded display unit, 104 NC machining Program analysis unit, 105 NC command data generation unit, 106 NC command data storage unit, 106a Machining program block storage unit, 107 NC command data display processing unit, 108 NC command data analysis unit, 108a NC command data speed calculation unit, 108b NC Command data acceleration calculation unit, 108c, tool vector calculation unit, 108d, tool vector analysis unit, 108e, related machining program block acquisition unit, 108f, related NC data acquisition unit, 108g, approach and withdrawal determination unit 108h Limit speed calculation unit, 108i NC command data acquisition unit, 108j NC command speed calculation unit, 108k NC minute line segment capacity limit point analysis unit, 109 FB position data acquisition unit, 110 FB position data storage unit, 111 FB position data display

Landscapes

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

Abstract

 NC加工プログラムを読み込むNC加工プログラム読み込み部(101)と、NC加工プログラム格納するNC加工プログラム格納部(102)と、作業者が選択した任意範囲のNC加工プログラムを読み込んだ後に、読み込んだNC加工プログラムから複数の駆動軸に対する制御周期ごとのNC指令位置であるNC指令データを生成するNC指令データ生成部(105)と、NC指令データを分析するNC指令データ分析部(108)と、分析した結果をNC加工プログラムに付加して格納するNC指令データ格納部(106)と、を備える構成とし、駆動軸ごとに分析できるようにした。

Description

数値制御装置
 本発明は、工作機械を数値制御するための数値制御装置に関する。
 従来、一般的な数値制御装置で加工を行うためには、加工物または加工工具を予め設定された経路に移動させるための移動指令が記述される数値制御加工プログラム(以下「NC(Numerical Control)加工プログラム」と称する)が用いられる。NC加工プログラムは、例えば市販のCAM(Computer Aided Manufacturing)ソフトウェアにより作成され、例えばEIA(Electronic Industries Alliance)で定められたフォーマット形式(以下「EIAフォーマット形式」と称する)、または、ISO(International Standard Organization)で定められたフォーマット形式(以下「ISOフォーマット形式」と称する)に従って定義される、例えばGコードおよびマクロ文の文字列で記述される。ここで、Gコードとは、例えば位置決め、直線補間、円弧補間、平面指定を行う際に、NC加工プログラムにおいて記述される指令コードである。
 作成されたNC加工プログラムは、実際に動作させる前に、事前に確認を行う必要があるが、NC加工プログラムのみを見て、NC加工プログラムの確認作業を行うことは困難である。このため、NC加工プログラムの確認を行う場合には、例えばNC加工プログラムに記述されている移動指令を工具経路に変換し、変換された工具経路の軌跡を、例えばCRT(Cathode Ray Tube)装置または液晶モニタのディスプレイといった表示装置に表示させることが行われている。
 また、NC加工プログラムを動作させた場合、NC加工プログラムに記述されている移動指令、その他加工条件および機械構成に基づいて補間処理が実行されて補間処理後の指令軌跡が算出される。さらに、算出されたNC指令データに沿って、実機を動作させ、工具先端点の軌跡である実軌跡が検出装置によって検出される。これらNC指令データおよび実軌跡は、メモリなどの記憶装置に保存され、必要なときに呼び出され、例えば加工処理評価のために、工具軌跡表示装置で表示され、視覚的分析に利用されている。
 なお、上記した用語の中で、「変換された工具経路」、「補間処理後の指令軌跡」および「工具先端点の実軌跡」については、当業者において、それぞれ「プログラム経路」、「NC指令データ」および「フィードバック(Feed Back:FB)位置データ」と称されることが多々あり、以下必要に応じて、これらの用語を使用した説明とする。
 このような背景技術の下、下記特許文献1には、工具経路および指令軌跡、もしくは、実軌跡を表示することが開示されている。
 また、下記特許文献2には、プログラム経路、指令軌跡および実軌跡のうち、少なくとも2つの軌跡を対比可能に表示する表示部を備え、指令軌跡または実軌跡に対応する工具姿勢を表す工具ベクトルを互いに対比可能に表示することが開示されている。
 さらに、下記特許文献3には、プログラム経路、指令軌跡および実軌跡のうち、少なくとも2つの軌跡を対比可能に表示する表示部を備え、指令軌跡および実軌跡における加速度を算出し、加速度の向きと大きさとに応じて、工具の先端点の軌跡を色分けする色表示と、加速度を加速度ベクトルとして工具の先端点の軌跡上に表示するベクトル表示と、隣接する加速度ベクトルの終点を互いに接続する結線を表示する結線表示とのうちの少なくとも一つを行うことが開示されている。
特許第5444412号公報 特許第5374616号公報 特許第5192574号公報
 工作機械には複数の駆動軸が存在し、一つの駆動軸の動きの誤差が生じただけでもワークの加工面に加工痕を付ける場合があるという性質があった。したがって、駆動軸毎の誤差が生じる原因を分析するためには、駆動軸毎の加速度等の情報がさらに必要になる。特に、X軸、Y軸およびZ軸が駆動軸のミーリング加工を行い、B軸が工具軸を回転制御し、C軸がワークを回転させた旋削加工を行う場合に、これらの各軸の制御を適宜組み合わせて加工を行う複合旋盤の場合、ミーリング加工軸であるX軸、Y軸およびZ軸と、工具軸であるB軸と、ワークの回転軸であるC軸と、を区別して加工面に生じる加工痕の原因を分析する必要があった。
 しかしながら、上記特許文献1および特許文献2の手法では、速度および加速度という情報を表示させるという技術思想が存在しておらず、また、上記特許文献3の手法では、駆動軸毎に速度や加速度を分析するという技術思想がなく、ミル加工軸とその他の回転軸である工具軸およびワーク回転軸とを区別して分析することができなかった。
 また、特許文献3では、NC加工プログラムの選択範囲のみを分析するという技術思想がないため、NC加工プログラムの分析は、読み込んだNC加工プログラム全部に対して行う必要があり、効率的な分析を行うことができなかった。
 本発明は、上記に鑑みてなされたものであって、ワークの加工面に生じ得る加工痕の発生を低減するための分析を効率的かつ的確に行うことができる数値制御装置を提供することを目的とする。
 上述した課題を解決し、目的を達成するために、本発明は、複数の駆動軸によって工具および被加工物のうちの少なくとも一方の位置および姿勢を制御する工作機械の数値制御装置において、数値制御加工プログラムを読み込む数値制御加工プログラム読み込み部と、作業者が前記数値制御加工プログラムの任意範囲を選択するための数値制御加工プログラム選択部と、前記読み込んだ数値制御加工プログラムから前記複数の駆動軸に対する制御周期ごとの数値制御指令位置である数値制御指令データを生成する数値制御指令データ生成部と、前記数値制御指令データ生成部により生成された前記複数の駆動軸ごとの数値制御指令データを取得する数値制御指令データ取得部と、前記数値制御指令データを用いて、前記複数の駆動軸ごとの速度または加速度を算出する数値制御指令データ加速度算出部と、を備えたことを特徴とする。
 この発明によれば、ワークの加工面に生じ得る加工痕の発生を低減するための分析を効率的かつ的確に行うことができる、という効果を奏する。
本実施の形態に係る数値制御装置を用いて工作機械を制御する場合の一構成例を示す図 本実施の形態の数値制御装置における処理フローを示すフローチャート 範囲指定されたNCプログラムの指令位置を算出する処理を示すフローチャート プログラム経路、NC指令データおよびFB位置データの一例を示す図 ボールエンドミル工具を使用する場合でのNC指令データの生成処理を説明するフローチャート 工具刃先R中心で、ボールエンドミル工具のNC指令データを生成した場合の一例を示す図 工具刃先中心で、ボールエンドミル工具のNC指令データを生成した場合の一例を示す図 NC指令データに速度および加速度に応じた色情報を付加して表示する処理を示すフローチャート 色情報を付加した加速度分布の一例を示す図 FB位置データに速度および加速度に応じた色情報を付加して表示する処理を示すフローチャート NC指令データの反転箇所に色情報を付加して表示する処理を示すフローチャート FB位置データの反転箇所に色情報を付加して表示する処理を示すフローチャート 工具ベクトルの変化量に応じてNC指令データに色情報を付加する処理を示すフローチャート 工具ベクトルの変化量を表す差分ベクトルの一例を示す図 工具ベクトルの変化量に応じて色分け表示したNC指令データの一例を示す図 工具ベクトルの変化量に応じてFB位置データに色情報を付加する処理を示すフローチャート NC指令データに関連加工プログラムブロック番号を付加して格納する処理を示すフローチャート 作業者が指定したNC指令データに関連するNC加工プログラムの表示処理フローを示すフローチャート 作業者が指定したNC加工プログラムの加工プログラムブロック番号に関連するNC指令データの表示処理フローを示すフローチャート G0指令を探索してNC加工プログラムのプログラム経路を表示する処理を示すフローチャート アプローチ(接近)のG0指令とリトラクト(退避)のG0指令とを含むプログラム経路を表示した場合の一例を示す図 本実施の形態の数値制御装置におけるNC微小線分能力限界箇所分析の処理内容を示すフローチャート 本実施の形態の数値制御装置におけるFB位置データの周期性分析時の処理を示すフローチャート 特定軸のFB位置データに対して特定の周期長を入力してFB位置データの周期性分析した結果の一例を示す図 本実施の形態の数値制御装置におけるCADデータの表示処理を示すフローチャート CADデータを読み込んでFB位置データとともに表示した場合の一例を示す図 NC指令データ分析部の一構成例を示す図 FB位置データ分析部の一構成例を示す図 NC指令データ格納部の一構成例を示す図 NC加工プログラム表示処理部の一構成例を示す図 NC指令データ表示処理部の一構成例を示す図 FB位置データ表示処理部の一構成例を示す図 CADデータ表示処理部の一構成例を示す図
 以下に添付図面を参照し、本発明の実施の形態に係る数値制御装置について説明する。なお、以下に示す実施の形態により本発明が限定されるものではない。
 図1は、本発明の実施の形態に係る数値制御装置を用いて工作機械を制御する場合の一構成例を示す機能ブロック図である。本実施の形態に係る数値制御装置100は、図1に示すように、NC加工プログラム読み込み部101、NC加工プログラム格納部102、NC加工プログラム表示処理部103、NC加工プログラム分析部104、NC指令データ生成部105、NC指令データ格納部106、NC指令データ表示処理部107、NC指令データ分析部108、FB位置データ取得部109、FB位置データ格納部110、FB位置データ表示処理部111、FB位置データ分析部112、CADデータ読み込み部113、CADデータ格納部114、CADデータ表示処理部115、NC加工プログラム選択部121およびオフセットデータ格納部122を備えて構成され、本実施の形態に係る工作機械200は、対話操作処理部201、表示部202、指示入力部203、駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207、駆動C軸208およびFB位置データ検出器209を備えて構成されている。なお、工作機械200における駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208には、各駆動軸における変位信号を出力可能なセンサもしくは処理部を含むものである。
 つぎに、本実施の形態の数値制御装置100における動作を、図1に示した各構成部に関連づけて説明する。
 NC加工プログラム読み込み部101は、NC加工プログラム10を読み込んでNC加工プログラム格納部102に格納する。ここで、NC加工プログラム10は、背景技術の項でも説明したが、例えば市販のCAM(Computer Aided Manufacturing)ソフトウェアにより作成され、例えばEIA(Electronic Industries Alliance)で定められたフォーマット形式(以下「EIAフォーマット形式」と称する)、または、ISO(International Standard Organization)で定められたフォーマット形式(以下「ISOフォーマット形式」と称する)に従って定義される、例えばGコードおよびマクロ文の文字列で記述されたプログラムであり、例えば加工物または加工工具を予め設定された経路に移動させるための移動指令、工作機械に対する補助動作指令および、加工条件の設定値が記述されている。NC指令データ生成部105は、NC加工プログラム格納部102に格納されたNC加工プログラムからNC指令データを生成しNC指令データ格納部106に格納する。ここで、NC指令データとは、予め設定された制御周期ごとのNC指令位置もしくは、当該NC指令位置の集合体を意味する。
 数値制御装置100は、NC指令データ格納部106に格納されたNC指令データを工作機械200に送り込む。工作機械200は、NC指令データに応じて駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208を駆動させる。なお、本実施の形態の数値制御装置では、上述したNC指令データは、各駆動軸ごとに生成される。
 工作機械200は、複数の駆動軸によって工具および被加工物のうちの少なくとも一方の位置および姿勢を制御する。工作機械200の動作中、工作機械200のFB位置データ検出器209は、駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208の位置データを検出する。FB位置データ検出器209が検出したデータであるFB位置データは、数値制御装置100に送られる。数値制御装置100のFB位置データ取得部109は、FB位置データ検出器209が検出したFB位置データを取得してFB位置データ格納部110に格納する。
 NC加工プログラム分析部104は、NC加工プログラム格納部102に格納されたNC加工プログラムを分析し、分析した結果をNC加工プログラムに付加して、NC加工プログラム格納部102に戻す。
 NC指令データ分析部108は、NC指令データ格納部106に格納されたNC指令データを分析し、分析した結果をNC指令データに付加して、NC指令データ格納部106に戻す。
 FB位置データ分析部112は、FB位置データ格納部110に格納されたFB位置データを分析し、分析した結果をFB位置データに付加して、FB位置データ格納部110に戻す。
 NC加工プログラム表示処理部103は、NC加工プログラム格納部102に格納されている、分析結果を付加されたNC加工プログラムから表示データを生成する。生成された表示データは工作機械200に送られ、工作機械200の表示部202において表示される。
 同様に、NC指令データ表示処理部107は、NC指令データ格納部106に格納されている、分析結果を付加されたNC指令データから表示データを生成する。生成された表示データは工作機械200に送られ、工作機械200の表示部202において表示される。
 同様に、FB位置データ表示処理部111は、FB位置データ格納部110に格納されている、分析結果を付加されたFB位置指令データから表示データを生成する。生成されたFB位置指令データは工作機械200に送られ、工作機械200の表示部202において表示される。
 CADデータ読み込み部113は、CADデータ20を読み込んでCADデータ格納部114に格納する。CADデータ表示処理部115は、CADデータ格納部114に格納されたCADデータを、例えば移動、回転、拡大および縮小した表示データを生成する。生成された表示データは工作機械200に送られ、工作機械200の表示部202において表示される。
 対話操作処理部201は、作業者と工作機械200との間および数値制御装置100と工作機械200との間のインタフェース処理部である。例えば、対話操作処理部201は、数値制御装置100からの操作処理を受け付けて、表示部202に表示することができる。また、対話操作処理部201は、作業者が指示入力部203を介して入力した指示情報を数値制御装置100に送ることができる。
 NC加工プログラム選択部121は、NC加工プログラム格納部102に格納されたNC加工プログラムを解析し、NC加工プログラムに含まれるオフセットデータをオフセットデータ格納部122に格納する。なお、オフセットデータとは、移動指令の座標系を設定するコード、または、当該コードが含まれるブロック番号であり、Gコードであれば、G54、G55などのワーク座標系選択指令が一例である。また、ブロック番号は、プログラムの位置を表す行番号、シーケンス番号、または、プログラム番号が一例である。
 図2は、本実施の形態に係る数値制御装置100における処理フローを示すフローチャートである。図2に示すフローは、ステップST1001からステップST1011までの処理からなるが、以下に示す4つのサブフローに区分することができる。
 (1)NC指令データの生成フロー(ステップST1001-ST1003)
 (2)FB位置データの生成フロー(ステップST1004-ST1005)
 (3)NCプログラム、NC指令データおよびFB位置データの分析フロー(ステップST1006-ST1008)
 (4)NCプログラム、NC指令データおよびFB位置データの表示フロー(ステップST1009-ST1011)
 以下、これら(1)から(4)の処理フローについて、図1に示した機能ブッロクに対応づけて説明する。
(NC指令データの生成フロー)
 NC加工プログラム読み込み部101は、NC加工プログラム10を読み込み、NC加工プログラム格納部102に格納する。また、NC加工プログラム選択部121は、NC加工プログラム格納部102に格納したNC加工プログラムを解析し、解析対称のNC加工プログラムに含まれるオフセットデータをオフセットデータ格納部122に格納する(ステップST1001)。
 NC加工プログラム格納部102に格納されたNC加工プログラムは、指示入力部203に入力された指示に応じて、表示部202に表示され、作業者は、NC加工プログラムの選択範囲を指定する(ステップST1002)。
 NC指令データ生成部105は、NC加工プログラム格納部102に格納したNC加工プログラム、オフセットデータ格納部122に格納されたオフセットデータおよび、作業者が選択した範囲を解釈し、作業者が選択した範囲のNC加工プログラムに含まれているプログラム指令位置を算出する。また、NC指令データ生成部105は、算出したプログラム指令位置および工作機械200の構成情報(以下「機械構成」と称する)に基づいて、NC指令座標を生成し、機械構成に基づいて各駆動軸の位置座標を指令するNC指令データを生成する(ステップST1003)。なお、NC指令データは、工作機械200の補間時間毎に生成される。また、生成したNC指令データは、NC指令データ格納部106に格納される。
(FB位置データの生成フロー)
 NC指令データ生成部105が生成したNC指令データは工作機械200に送られ、工作機械200の駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208を駆動させる(ステップST1004)。このとき、FB位置データ取得部109は、FB位置データ検出器209が検出した駆動X軸204、駆動Y軸205、駆動Z軸206、駆動B軸207および駆動C軸208における実位置に基づいて、FB位置データを算出し、算出したFB位置データをFB位置データ格納部110に格納する(ステップST1005)。
 NC加工プログラム分析部104は、NC加工プログラム格納部102に格納したNC加工プログラムを分析し、分析結果をNC加工プログラムに付加してNC加工プログラム格納部102に格納する(ステップST1006)。
 NC指令データ分析部108は、NC指令データ格納部106に格納したNC指令データを分析し、分析結果をNC指令データに付加してNC指令データ格納部106に格納する(ステップST1007)。
 FB位置データ分析部112は、FB位置データ格納部110に格納したFB位置データを分析し、分析結果をFB位置データに付加してFB位置データ格納部110に格納する(ステップST1008)。
(NCプログラム、NC指令データおよびFB位置データの分析フロー)
 NC加工プログラム表示処理部103は、NC加工プログラム格納部102に格納したNC加工プログラムを解釈し、NC加工プログラムに含まれているプログラム指令位置を算出し、NC加工プログラムに付加された分析結果を反映した情報とともに、NC加工プログラムによる経路であるプログラム経路を工作機械200の表示部202に表示する(ステップST1009)。
 NC指令データ表示処理部107は、NC指令データ格納部106に格納したNC指令データを解釈し、NC指令データの位置座標を算出し、NC指令位置データに付加された分析結果とともに、NC指令データによる経路であるNC指令データ経路を工作機械200の表示部202に表示する(ステップST1010)。
 FB位置データ表示処理部111は、FB位置データ格納部110に格納したFB位置データを解釈し、FB位置データの位置座標を算出し、FB位置データに付加された分析結果とともに、FB位置データによる経路であるFB位置データ経路を工作機械200の表示部202に表示する(ステップST1011)。
 図3は、図2に示したステップST1003の処理の一例を詳細に説明するフローチャートであり、範囲指定されたNCプログラムの指令位置を算出する処理を示している。
 NC指令データ生成部105は、オフセットデータ格納部122を参照し、作業者が指定したNC加工プログラム選択範囲のブロック番号に基づいて、当該ブロック番号の移動指令を含むオフセットデータを探索し(ステップST1121)、ステップST1121で探索したオフセットデータに合わせて、当該移動指令の座標系にて平行移動または回転し、NC指令加工プログラムでのプログラム指令位置を算出する(ステップST1122)。
 図4は、プログラム経路、NC指令データおよびFB位置データの一例を示す図である。図4において、点線はNC加工プログラムによるプログラム経路を示し、破線はNC指令データを示し、実線はFB位置データを示している。
 図5は、ボールエンドミル工具を使用する場合でのNC指令データの生成処理を説明するフローチャートである。例えば、ボールエンドミル工具を使用した場合では、NC指令データの生成位置がボールエンドミル工具の工具刃先中心か、工具刃先R中心かが選択され(ステップST1131)、ステップST1131の選択処理に応じて、NC指令データが算出される(ステップST1132)。なお、ステップST1131での選択処理は、例えば作業者により、指示入力部203を介して入力された情報によって実行される。
 図6は、工具刃先R中心で、ボールエンドミル工具のNC指令データを生成した場合の一例である。作業者が工具刃先R中心を指示した場合、刃先R半径の長さを工具方向ベクトルに応じて、X軸方向、Y軸方向およびZ軸方向に分解し、工具刃先中心のNC指令データから引くことで刃先R中心のNC指令データを算出することができる。
 図7は、工具刃先中心で、ボールエンドミル工具のNC指令データを生成した場合の一例である。作業者が位置工具刃先中心を指示した場合、機械位置データに工具刃先長さを工具方向ベクトルに応じて、X軸方向、Y軸方向およびZ軸方向に分解し、機械位置データに足すことで、刃先中心のNC指令データを算出することができる。
 なお、図5から図7では、NC指令データの生成処理について説明したが、FB位置データの生成処理についても、同様な処理内容で実行すればよい。
 図8は、図2に示したステップST1007の処理を更に詳細に説明するフローチャートであり、NC指令データに速度および加速度に応じた色情報を付加して表示する処理を示している。
 NC指令データ分析部108は、作業者が指定した軸(以下、必要に応じて「指定軸」と称する)の情報を、工作機械200の対話操作処理部201を通じて受領し、当該指定軸に関するNC指令データをNC指令データ格納部106から取得する(ステップST1201)。
 NC指令データ分析部108は、指定軸のNC指令データから、指定軸における速度を算出する(ステップST1202)。速度は、以下の式で求められる。
 V=|NDD(t+Δt)-NDD(t)|/Δt  …(1)
 上記(1)式における記号の意味は以下の通りである。
 V:NC指令データの速度
 NDD(t+Δt):1つ後のNC指令データ
 NDD(t):現在のNC指令データ
 Δt:NC指令データの補間時間
 上記(1)式に示されるように、現在のNC指令データと、1つ後のNC指令データとの差分の絶対値をNC指令データの補間時間で割り算することにより、速度Vが求められる。ここで求めた速度Vは、NC指令データに付加されてNC指令データ格納部106に格納される。なお、速度Vだけでなく、後述する加速度ならびに、速度および加速度に応じて設定される色情報も、NC指令データに付加されてNC指令データ格納部106に格納される。
 また、NC指令データ分析部108は、指定軸における加速度を算出する(ステップST1203)。加速度は、以下の式で求められる。
 A=|V(t+Δt)-V(t)|/Δt  …(2)
 上記(2)式における記号の意味は以下の通りである。
 A:NC指令データの加速度
 V(t+Δt):1つ後のNC指令データの速度
 V(t):現在のNC指令データの速度
 Δt:NC指令データの補間時間
 上記(2)式に示されるように、現在のNC指令データの速度と1つ後のNC指令データの速度との差分をNC指令データの補間時間で割り算することにより、加速度Aが求められる。
 さらに、NC指令データ分析部108は、速度に応じた色情報をNCデータに付加する(ステップST1204)。以下に、速度分布を表すための色情報の設定例を示す。
 0≦V<300.0    :RGB(0,0,255)
 300.0≦V<400.0:RGB(32,32,255)
 400.0≦V<450.0:RGB(64,64,255)
 475.0≦V<490.0:RGB(96,96,255)
 490.0≦V<500.0:RGB(128,128,255)
 500.0≦V<510.0:RGB(160,160,255)
 510.0≦V      :RGB(192,192,255)
                              …(3)
 上記(3)式において、Vは速度を表しており、速度の単位は、例えば[mm/min]である。RGBの後に続く括弧内の数値は、RGBの階調を表しており、例えばRGB(0,0,0)は黒を表し、RGB(255,255,255)は白を表し、RGB(255,0,0)は赤を表し、RGB(0,255,0)は緑を表し、RGB(0,0,255)は青を表している。また、(3)式の例では、速度の値が100[mm/min]ごとに、青色をベースとする色調の濃淡を変更して、速度の変化が作業者の目に分かるように設定されている。
 同様に、NC指令データ分析部108は、加速度に応じた色情報をNCデータに付加する(ステップST1205)。以下に、加速度分布を表すための色情報の設定例を示す。
 A<―2.0     :RGB(0,0,255)
 ―2.0≦A<-1.0:RGB(64,64,255)
 ―1.0≦A<-0.5:RGB(128,128,255)
 ―0.5≦A<-0.1:RGB(192,192,255)
 ―0.1≦A<0.1 :RGB(255,255,255)
 0.1≦A<0.5  :RGB(255,192,255)
 0.5≦A<1.0  :RGB(255,128,255)
 1.0≦A<2.0  :RGB(255,64,255)
 2.0≦A      :RGB(255,0,255)
                             …(4)
 上記(4)式において、Aは加速度を表しており、加速度の単位は、例えば[m/s2]である。RGBの後に続く括弧内の数値は、RGBの階調を表しており、上記(3)式での注釈に加え、例えばRGB(255,0,255)はマゼンタを表している。(4)式の例では、加速度の値が負の場合には、加速度の値が1.0[m/s2]、0.5[m/s2]、0.4[m/s2]もしくは0.1[m/s2]ごと増加するに従って、色調の濃淡が青から白に向けて変わるように設定され、また、加速度の値が正の場合には、加速度の値が0.1[m/s2]、0.4[m/s2]、0.5[m/s2]もしくは1.0[m/s2]ごと増加するに従って、色調の濃淡が白からマゼンタに向けて変わるように設定されており、加速度の変化が作業者の目に分かるように設定されている。
 NC指令データ表示処理部107は、NC指令データ格納部106に格納されている色情報を付加されたNC指令データを工作機械200の表示部202に表示する(ステップST1206)。
 図9は、色情報を付加した加速度分布の一例を示す図である。明細書が参照する図面では色表示ができないため、図9では表示画面での表示色をRGBの階調で表している。図9において、NC指令データの経路上における角部R1において、RGBの階調が、例えばRGB(192,192,255)→RGB(255,255,255)→RGB(255,192,255)と変化する状況が示されており、作業者は色の変化を確認することで、特定の軸の加速度変化を知ることができる。
 図10は、図2に示したステップST1008の処理の一例を詳細に説明するフローチャートであり、FB位置データに速度および加速度に応じた色情報を付加して表示する処理を示している。
 FB位置データ分析部112は、指定軸の情報を、工作機械200の対話操作処理部201を通じて受領し、当該指定軸に関するFB位置データをFB位置データ格納部110から取得する(ステップST1301)。
 FB位置データ分析部112は、指定軸のFB位置データから、指定軸における速度を算出する(ステップST1302)。速度は、以下の式で求められる。
 VFB=((FBD(t+Δt)-FBD(t))/Δt  …(5)
 上記(5)式における記号の意味は以下の通りである。
 VFB:FB位置データの速度
 FBD(t+Δt):1つ後のFB位置データ
 FBD(t):現在のFB位置データ
 Δt:FB位置データのサンプリング時間
 上記(5)式に示されるように、現在のFB位置データと、1つ後のFB位置データとの差分値をFB位置データのサンプリング時間で割り算することにより、FB位置データの速度VFBが求められる。ここで求めたFB位置データの速度VFBは、NC指令データに付加されてNC指令データ格納部106に格納される。なお、FB位置データの速度VFBだけでなく、後述する加速度ならびに、速度および加速度に応じて設定される色情報も、FB位置データに付加されてFB位置データ格納部110に格納される。
 また、FB位置データ分析部112は、指定軸における加速度を算出する(ステップST1303)。加速度は、以下の式で求められる。
 AFB=((VFB(t+Δt)-VFB(t))/Δt  …(6)
 上記(6)式における記号の意味は以下の通りである。
 AFB:FB位置データの加速度
 VFB(t+Δt):1つ後のFB位置データの速度
 VFB(t):現在のFB位置データの速度
 Δt:FB位置データのサンプリング時間
 上記(6)式に示されるように、現在のFB位置データの速度と1つ後のFB位置データの速度との差分をFB位置データのサンプリング時間で割り算することにより、FB位置データの加速度AFBが求められる。
 FB位置データ分析部112は、速度に応じた色情報をFB位置データに付加する(ステップST1304)。また、FB位置データ分析部112は、加速度に応じた色情報をFB位置データに付加する(ステップST1305)。
 FB位置データ表示処理部111は、FB位置データ格納部110に格納された、色情報を付加されたFB位置データを工作機械200の表示部202に表示する(ステップST1306)。
 図11は、ステップST1007の処理の図8とは異なる処理を示すフローチャートであり、NC指令データの反転箇所に色情報を付加してする処理を示している。
 NC指令データ分析部108は、工作機械200の対話操作処理部201を介して、作業者が指定した軸のNC指令データを、NC指令データ格納部106に格納されたNC指令データから取得する(ステップST1401)。
 NC指令データ分析部108は、ステップST1401において取得したNC指令データが反転する箇所を探し、NC指令データが反転する箇所に、指定軸ごとの色情報を付加して、NC指令データ格納部106に格納する(ステップST1402)。
 ここで、反転する箇所というのは、例えば、NC指令データを括弧書きで、(X軸指令データ値、Y軸指令データ値、Z軸指令データ値)と表すときの一例として、
 NC指令データ1:(1.0,0.0,0.0)
 NC指令データ2:(2.0,1.0,1.0)
 NC指令データ3:(3.0,2.0,0.0)
 NC指令データ4:(2.0,3.0,0.0)
 NC指令データ5:(1.0,4.0,0.0)
 NC指令データ6:(0.0,3.0,1.0)
 である場合に、
 X軸の反転箇所はNC指令データ値の増減が入れ替わる箇所であるNC指令データ3となる。以下同様に、Y軸の反転箇所はNC指令データ5であり、Z軸の反転箇所はNC指令データ2およびNC指令データ5である。
 NC指令データ表示処理部107は、NC指令データ格納部106に格納された、色情報が付加されたNC指令データを工作機械200の表示部202に表示する(ステップST1403)。
 図12は、ステップST1008の処理の図10とは異なる処理を示すフローチャートであり、FB位置データの反転箇所に色情報を付加して表示する処理を示している。
 FB位置データ分析部112は、工作機械200の対話操作処理部201を介して、作業者が指定した軸のFB位置データを、FB位置データ格納部110に格納されたFB位置データから取得する(ステップST1501)。
 FB位置データ分析部112は、ステップST1501において取得したFB位置データが反転する箇所を探し、反転する箇所の、指定軸ごとの色情報を付加して、FB位置データ格納部110に格納する(ステップST1502)。
 ここで、FB位置データの反転箇所は、各軸におけるFB位置データ値の増減が入れ替わる箇所であり、NC指令データと同様に探すことができる。
 FB位置データ表示処理部111は、FB位置データ格納部110に格納された、色情報が付加されたFB位置データを工作機械200の表示部202に表示する(ステップST1503)。
 図13は、ステップST1007の処理の図8および図11とは異なる処理を示すフローチャートであり、工具ベクトルの変化量に応じてNC指令データに色情報を付加する処理を示している。
 NC指令データ分析部108は、工作機械200の対話操作処理部201を介して、作業者が指定した軸のNC指令データを、NC指令データ格納部106に格納されたNC指令データから取得する(ステップST1601)。
 NC指令データ分析部108は、ステップST1601において取得したNC指令データから工具方向ベクトルを算出する(ステップST1602)。例えば、X軸、Y軸、Z軸の駆動軸のミーリング加工と、B軸で工具軸を回転制御し、C軸でワークを回転させて旋削加工を組み合わせて加工を行う複合旋盤の場合、B軸のNC指令データとC軸のNC指令データから次式により、工具方向ベクトルを算出することができる。
 工具方向ベクトル
 =(cos(c_rad),sin(c_rad),-(cos(b_rad)) …(7)
 上記(7)式において、「b_rad」はB軸のNC指令データであり、「c_rad」はC軸のNC指令データである。
 NC指令データ分析部108は、ステップST1602で算出した工具ベクトルの変化量を算出する(ステップST1603)。
 例えば、1つのNC指令データにおける2つの工具ベクトルのそれぞれを、tdir1,tdir2とすると、工具ベクトルの変化量は次式を用いて算出することができる。
 工具ベクトルの変化量=|tdir1-tdir2|2   …(8)
 図14は、工具ベクトルの変化量を表す差分ベクトルの一例を示す図である。上記(8)式および図14にも示されるように、着目する工具ベクトルと1つ前の工具ベクトルとの差分ベクトルの大きさの2乗値を、工具ベクトルの変化量とすることができる。
 NC指令データ分析部108は、ステップST1603において算出した工具ベクトルの変化量に応じて、作業者が指定した色情報を付加する(ステップST1604)。
 NC指令データ表示処理部107は、NC指令データ格納部106に格納された、色情報が付加されたNC指令データを工作機械200の表示部202に表示する(ステップST1605)。
 図15は、工具ベクトルの変化量に応じて色分け表示したNC指令データの一例を示す図である。明細書が参照する図面では色表示ができないため、図15では工具ベクトルを表す矢印の表示色をRGBの階調で表している。図15において、NC指令データ#2では、差分ベクトルの大きさが予め設定された判定値よりも小さいため、1つ前の工具ベクトルと現在の工具ベクトルを同じRGBの階調、例えばRGB(0,0,0)で表示している。一方、NC指令データ#5では、差分ベクトルの大きさが予め設定された判定値よりも大きいと判定しているため、1つ前の工具ベクトルと現在の工具ベクトルを異なるRGBの階調、例えば1つ前の工具ベクトルをRGB(0,0,0)で表示し、現在の工具ベクトルをRGB(0,0,255)で表示している。このように表示することで、作業者は色の変化を確認することで、工具ベクトルの急変箇所を知ることができる。
 図16は、ステップST1008の処理の図10および図12とは異なる処理を示すフローチャートであり、工具ベクトルの変化量に応じてFB位置データに色情報を付加する処理を示している。
 FB位置データ分析部112は、工作機械200の対話操作処理部201を介して、作業者が指定した軸のFB位置データを、FB位置データ格納部110に格納されたFB位置データから取得する(ステップST1701)。
 FB位置データ分析部112は、ステップST1701において取得したFB位置データから工具方向ベクトルを算出する(ステップST1702)。なお、FB位置データにおける工具方向ベクトルは、NC指令データの場合と同様に算出することができる。
 FB位置データ分析部112は、ステップST1702で算出した工具ベクトルの変化量を算出する(ステップST1703)。FB位置データにおける工具ベクトルの変化量は、NC指令データの場合と同様に算出することができる。
 FB位置データ分析部112は、ステップST1703において算出した工具ベクトルの変化量に応じて、作業者が指定した色情報を付加する(ステップST1704)。
 FB位置データ表示処理部111は、FB位置データ格納部110に格納された、色情報を付加されたFB位置データを工作機械200の表示部202に表示する(ステップST1705)。
 図17は、ステップST1003の処理の図3とは異なる処理を示すフローチャートであり、NC指令データに関連する加工プログラムブロック番号を付加して格納する処理を示している。
 加工プログラムからNC指令データを生成する際に、複数の加工プログラムブロックを参照して、NC指令データを生成するGコード指令があり、図17のフローチャートでは、生成したNC指令データから関連する複数の加工プログラムブロックを参照するための準備を行う。なお、加工プログラムブロック番号は、NC加工プログラムを構成するEIAフォーマットにおける行番号に相当する。
 NC指令データ生成部105は、加工プログラムからNC指令データを生成する際、工作機械200の対話操作処理部201を通じて受領した、参照するNC加工プログラムの対応する加工プログラムブロック番号の情報を取得し(ステップST1801)、生成したNC指令データに加工プログラムブロック番号を付加してNC指令データ格納部106に格納する(ステップST1802)。
 図18は、作業者が指定したNC指令データに関連するNC加工プログラムの表示処理フローを示すフローチャートである。NC指令データ表示処理部107は、作業者が指定するNC指令データの情報を、工作機械200の対話操作処理部201を通じて受領し、指定されたNC指令データをNC指令データ格納部106から取得する(ステップST1901)。
 NC指令データ表示処理部107は、指定されたNC指令データに付加されている関連する加工プログラムブロック番号を取得する(ステップST1902)。また、NC指令データ表示処理部107は、当該NC指令データを工作機械200の表示部202に表示する(ステップST1903)。さらに、NC指令データ表示処理部107は、NC加工プログラム格納部102から、関連するNC加工プログラム部位を取得し、取得したNC加工プログラム部位と、関連する加工プログラムブロック番号とを、表示部202に表示する(ステップST1904)。
 上記の処理を具体的に説明する。例えば、NC指令データ格納部106に、以下の関連する加工プログラムブロック番号が付加されたNC指令データが格納されているとする。
 NC指令データ1:関連加工プログラムブロック番号[1,2,3,4,5]
 NC指令データ2:関連加工プログラムブロック番号[2,3,4,5]
 NC指令データ3:関連加工プログラムブロック番号[4,5]
 NC指令データ4:関連加工プログラムブロック番号[4,5,6]
 NC指令データ5:関連加工プログラムブロック番号[4,5,6,7]
 NC指令データ6:関連加工プログラムブロック番号[5,6,7,8]
 作業者がNC指令データ4を指定した場合、加工プログラムブロック番号4、加工プログラムブロック番号5および加工プログラムブロック番号6を含むプログラム経路を、例えばハイライト表示することができる。
 図19は、作業者が指定したNC加工プログラムの加工プログラムブロック番号に関連するNC指令データの表示処理フローを示すフローチャートである。NC加工プログラム表示処理部103は、作業者が指定したNC加工プログラムの加工プログラムブロック番号をNC加工プログラム格納部102から取得する(ステップST2001)。
 NC加工プログラム表示処理部103は、加工プログラムブロック番号が、関連加工プログラムブロック番号として付加されているNC指令データである関連NC指令データをNC指令データ格納部106から取得する(ステップST2002)。また、NC加工プログラム表示処理部103は、作業者が指定したNC加工プログラムを工作機械200の表示部202に表示する(ステップST2003)。さらに、NC加工プログラム表示処理部103は、関連NC指令データを工作機械200の表示部202に表示する(ステップST2004)。
 上記の処理を具体的に説明する。例えば、NC指令データ格納部106に、以下のNC指令データが格納されているとする。
 NC指令データ1:関連加工プログラムブロック番号[1,2,3,4,5]
 NC指令データ2:関連加工プログラムブロック番号[2,3,4,5]
 NC指令データ3:関連加工プログラムブロック番号[4,5]
 NC指令データ4:関連加工プログラムブロック番号[4,5,6]
 NC指令データ5:関連加工プログラムブロック番号[4,5,6,7]
 NC指令データ6:関連加工プログラムブロック番号[5,6,7,8]
 作業者が加工プログラムブロックの加工プログラムブロック番号3を指定した場合、NC指令データ1、NC指令データ2のNC指令データを、例えばハイライト表示することができる。
 図20は、図2に示したステップST1009の処理の一例を詳細に説明するフローチャートであり、G0指令を探索してNC加工プログラムのプログラム経路を表示する処理を示している。
 NC加工プログラム分析部104は、NC加工プログラム格納部102からNC加工プログラムを取得し、NC加工プログラムを1ブロックずつ分析し、G0指令であるか否かを判定する(ステップST2101)。ここで、G0指令とは、Gコードにおいて定義された指令の一つであり、位置決めのための早送り指令を意味する。
 NC加工プログラム分析部104は、G0指令のブロックがアプローチ(加工進入経路)か、リトラクト(加工逃げ経路)かを判定する(ステップST2102)。具体的には、G0ブロックの直前のブロックの指令が、G1,G2,G3など切削送りの指令の場合、リトラクトと判定する。一方、G0ブロックの直後のブロックの指令が、G1,G2,G3など切削送りの指令の場合、アプローチと判定する。G0指令のブロックがアプローチまたはリトラクトの場合、作業者が指定した色情報がG0指令のブロックに付加されてNC加工プログラム格納部102に格納される。
 NC加工プログラム分析部104は、NC加工プログラムが最終かどうか判定し(ステップST2103)、最終ではない場合には(ステップST2103,No)、ステップST2101に戻ってG0指令の探索を継続し、最終である場合には(ステップST2103,Yes)、ステップST2104に移行する。
 NC加工プログラム表示処理部103は、付加した色情報が反映されNC加工プログラムのプログラム経路を表示部202に表示する(ステップST2104)。
 図21は、アプローチ(接近)のG0指令とリトラクト(退避)のG0指令とを含むプログラム経路を表示した場合の一例を示す図である。明細書が参照する図面では色表示ができないため、図21では表示画面での表示色をRGBの階調で表しており、G0指令のうちのアプローチを赤で表示し、G0指令のうちのリトラクトを青で表示する例である。作業者は色を確認することで、着目するG0指令のみを視認することが可能となる。
 図22は、本実施の形態の数値制御装置におけるNC微小線分能力限界箇所分析の処理内容を示すフローチャートである。
 NC指令データ分析部108は、NC指令データ格納部106からNC指令データと、当該NC指令データに関連加工プログラムブロック番号を取得し、取得した関連加工プログラムブロック番号に基づいて、NC加工プログラム格納部102から、関連する加工プログラムブロックを取得する(ステップST2201)。
 NC指令データ分析部108は、関連加工プログラムブロックのブロック長(以下、必要に応じて「加工プログラムブロック長」もしくは「ブロック長」と称する)からNC微小線分能力限界速度を算出する(ステップST2202)。ここで、NC微小線分能力限界速度とは、NC加工プログラムを実行する場合の最大送り速度である。
 例えば、1mmピッチのNC微小線分速度を135[m/分]とすると、NC微小線分限界速度は、次式で計算できる。
 135×(ブロック長[mm]/1.0)
 したがって、ブロック長が0.1mmの場合、NC微小線分限界速度VNCは、VNC=135×(0.1/1.0)=13.5[m/分]となる。
 また、ブロック長が10mmの場合、NC微小線分限界速度VNCは、VNC=135×(10.0/1.0)=1350[m/分]となる。
 NC指令データ分析部108は、ステップST1202と同様な処理により、NC指令データの速度を算出する(ステップST2203)。NC指令データ分析部108は、ステップST2203で算出したNC指令データの速度と、ステップST2202で算出したNC微小線分能力限界速度とを比較し判定する(ステップST2204)。
 ここで、加工プログラムブロックがNC微小線分能力限界箇所であると判定するための判定式として、例えば次式を用いることができる。
 NC指令データの速度≧加工プログラムブロックのNC微小線分能力限界速度×0.95
 なお、NC微小線分能力限界箇所と判定した加工プログラムブロックには、作業者が指定した色情報が付加されてNC加工プログラム格納部102に格納される。
 NC指令データ分析部108は、NC指令データが最終かどうか判定し(ステップST2205)、最終ではない場合(ステップST2205,No)、ステップST2201からステップST2204までの処理を繰り返す。一方、NC指令データが最終であると判定した場合(ステップST2205,Yes)、ステップST2206に移行する。
 NC指令データ表示処理部107は、微小線分能力限界箇所の色情報が付加された加工プログラムブロックを含むNC加工プログラムをNC加工プログラム格納部102から取得し、関連するNC加工プログラムを工作機械200の表示部202に表示する(ステップST2206)。
 図23は、本実施の形態の数値制御装置におけるFB位置データの周期性分析時の処理を示すフローチャートである。
 FB位置データ分析部112は、作業者が指定した軸のFB位置データをFB位置データ格納部110から取得する(ステップST2301)。また、FB位置データ分析部112は、取得したFB位置データを作業者が指定した周期長で割り算する(ステップST2302)。さらに、FB位置データ分析部112は、割り算した商の小数部の値に応じて、作業者が指定した色情報をFB位置データに付加して、FB位置データ格納部110に格納する(ステップST2303)。
 以下に、色情報の設定例を示す。割り算した商の小数部の値に応じて、例えば以下の色に設定する。
 0.0以上、0.2未満の場合:青色
 0.2以上、0.4未満の場合:水色
 0.4以上、0.6未満の場合:緑色
 0.6以上、0.8未満の場合:黄色
 0.8以上、1.0未満の場合:赤色
 FB位置データ分析部112は、FB位置データの最終かどうか判定し(ステップST2304)、FB位置データの最終ではない場合には(ステップST2304,No)、ステップST2301に戻ってFB位置データを取得し、FB位置データの最終である場合には(ステップST2304,Yes)、ステップST2305に移行する。
 FB位置データ表示処理部111は、周期性分析の色情報が付加されたFB位置データをFB位置データ格納部110から取得し、FB位置データを表示部202に表示する(ステップST2305)。
 図24は、特定軸のFB位置データに対して、特定の周期長を入力して、FB位置データの周期性分析した結果の一例を示す図である。本模様により、仮想的にモータのコギングを表示することができる。本模様と実加工後のワーク加工面性状が一致する場合は、モータコギングによる加工面性状と判断され、本模様と実加工後のワーク加工面性状が一致しない場合は、NC加工プログラムによる加工面性状と判断される。
 図25は、本実施の形態の数値制御装置におけるCADデータの表示処理を示すフローチャートである。CADデータ読み込み部113は、CADデータ20を読み込んでCADデータ格納部114に格納する(ステップST2401)。ここで、CADデータ20は、例えば市販のCADソフトウェアで定義した三次元モデルを数値制御装置100に入力する手法、または、数値制御装置100上で幾何学的に三次元モデルの形状および寸法を入力する手法がある。
 CADデータ表示処理部115は、CADデータ20を表示単位および表示スケールに応じて拡大もしくは縮小し、NC加工プログラムの座標系に応じて、例えば回転移動または平行移動を行い、NC加工プログラムの位置にCADデータを配置、すなわち位置合わせをする(ステップST2402)。また、CADデータ表示処理部115は、位置合わせしたCADデータを、NC加工プログラム、NC指令データ、もしくはFB位置データのうち、作業者が指定した対象とともに、表示部202に表示する(ステップST2403)。
 図26は、CADデータを読み込んでFB位置データとともに表示した場合の一例を示す図である。加工痕が発生した場合、CADデータとFB位置データを重ねて表示することにより、容易に問題箇所を特定できる。
 以上、本実施の形態に係る数値制御装置の構成および動作について説明してきたが、図3、図5、図8、図10から図13、図16から図20、図22、図23および図25に示すフローチャートについては、図1に示す構成を基本としつつ、図27から図33に示すように、NC指令データ分析部108、FB位置データ分析部112、NC指令データ格納部106、NC加工プログラム表示処理部103、NC指令データ表示処理部107、FB位置データ表示処理部111およびCADデータ表示処理部115の各内部に、細部の処理部を設けるように構成してもよい。
 具体的には、NC指令データ分析部108の内部に、NC指令データ速度算出部108a、NC指令データ加速度算出部108b、工具ベクトル算出部108c、工具ベクトル分析部108d、関連加工プログラムブロック取得部108e、関連NCデータ取得部108f、接近退避判定部108g、限界速度算出部108h、NC指令データ取得部108i、NC指令速度算出部108jおよびNC微小線分能力限界箇所分析部108kを設けるように構成してもよい。なお、NC指令データ速度算出部108aの機能をNC指令データ加速度算出部108bが備えていてもよい。
 また、FB位置データ分析部112の内部に、FB位置データ速度算出部112a、FB位置データ加速度算出部112b、工具ベクトル算出部112c、工具ベクトル分析部112dおよびFB位置データ周期性分析部112eを設けるように構成してもよい。なお、FB位置データ速度算出部112aの機能をFB位置データ加速度算出部112bが備えていてもよい。
 また、NC指令データ格納部106の内部に加工プログラムブロック記憶部106aを設け、NC加工プログラム表示処理部103の内部に色分け表示部103aを設け、NC指令データ表示処理部107の内部に色分け表示部107aを設け、FB位置データ表示処理部111の内部に色分け表示部111aを設けるようにしてもよい。
 また、CADデータ表示処理部115の内部に、CADデータ配置部115a、CADデータスケーリング部115bおよび色分け表示部115cを設けるようにしてもよい。
 以上説明したように、本実施の形態に係る数値制御装置によれば、作業者が選択した任意範囲のNC加工プログラムを読み込んだ後に、読み込んだNC加工プログラムから複数の駆動軸に対する制御周期ごとのNC指令位置であるNC指令データを生成し、生成された複数の駆動軸ごとのNC指令データを用いて、複数の駆動軸ごとの速度または加速度を算出することとしたので、指定した駆動軸に対するNC指令データの速度、加速度を分析することができ、作業者は単軸ごとに速度、加速度の変化を把握することができる。また、プログラムの任意範囲を選択することにより、作業者は膨大な量のNC指令データを分析する必要がなくなる。その結果、ワークの加工面に発生する加工痕の発生原因箇所探索を容易にする効果を奏する。
 また、本実施の形態に係る数値制御装置によれば、複数の駆動軸のそれぞれに取付けられていて複数の駆動軸のそれぞれの位置を制御周期ごとに検出するフィードバック位置データ検出器が設けられており、作業者が選択した任意範囲のNC加工プログラムを読み込んだ後に、工作機械に設けられたフィードバック位置データ検出器により制御周期ごとに検出された複数の駆動軸ごとのフィードバック位置検出値をフィードバック位置データとして取得し、取得したフィードバック位置データを用いて、複数の駆動軸ごとの速度または加速度を算出することとしたので、指定した駆動軸ごとに、フィードバック位置データの速度または加速度を分析することができ、作業者は単軸ごとに速度、加速度の変化を把握することができる。また、プログラムの任意範囲を選択することにより、作業者は膨大な量のフィードバック位置データを分析する必要がなくなる。その結果、ワークの加工面に発生する加工痕の発生原因箇所探索を容易にする効果を奏する。
 また、本実施の形態に係る数値制御装置によれば、NC指令データ生成部が生成したNC指令データが駆動軸ごとに反転する箇所を判定するとともに、作業者によって指定された駆動軸ごとに、NC指令データの反転箇所を表示することができるので、作業者は、容易にNC指令データが反転する箇所を把握することができる。その結果、ワークの加工面に発生する加工痕の発生原因箇所探索を容易にする効果を奏する。
 また、本実施の形態に係る数値制御装置によれば、フィードバック位置データ取得部が取得したフィードバック位置データが駆動軸ごとに反転する箇所を判定するとともに、作業者によって指定された駆動軸ごとに、フィードバック位置データの反転箇所を表示することができるので、作業者は、容易にフィードバック位置データが反転する箇所を把握することができる。その結果、ワークの加工面に発生する加工痕の発生原因箇所探索を容易にする効果を奏する。
 また、本実施の形態に係る数値制御装置によれば、NC指令生成部が算出した複数の駆動軸ごとのNC指令データから工具ベクトルを算出し、算出した工具ベクトルの変化量を分析して表示することができるので、作業者は、容易に工具ベクトルの急変箇所を把握することができる。その結果、ワークの加工面に発生する加工痕の発生原因箇所探索を容易にする効果を奏する。
 また、本実施の形態に係る数値制御装置によれば、フィードバック位置データ検出器が検出した複数の駆動軸ごとのフィードバック位置データから工具ベクトルを算出し、算出した工具ベクトルの変化量を分析して表示することができるので、作業者は、容易に工具ベクトルの急変箇所を把握することができる。その結果、ワークの加工面に発生する加工痕の発生原因箇所探索を容易にする効果を奏する。
 また、本実施の形態に係る数値制御装置によれば、NC指令データ生成部が、制御周期ごとのNC指令位置を生成するときに、NC指令の生成に影響する加工プログラムブロックを記憶するとともに、NC指令データのうち、1つのデータを指定すると、指定したNC指令データの生成に影響する加工プログラムブロックを加工プログラムブロック記憶部から取得することとしたので、作業者が指定したNC指令データに関連する加工プログラムブロックの箇所が容易にわかるという効果を奏する。
 また、本実施の形態に係る数値制御装置によれば、NC指令データ生成部が制御周期ごとのNC指令位置座標を生成するときに、数値制御加工プログラムで、NC指令生成に影響する加工プログラムブロックを記憶するとともに、数値制御加工プログラムのうち、1つの加工プログラムブロックを指定すると、指定した加工プログラムブロックがNC指令データの生成に影響するNC指令データを取得することとしたので、作業者が指定した加工プログラムブロックに関連するNC指令データ箇所が容易にわかるという効果を奏する。
 また、本実施の形態に係る数値制御装置によれば、加工プログラムのG0早送り指令のうち、アプローチおよびリトラクトを判別し、判別結果に応じて、予め定めた設定色でアプローチG0指令とリトラクトG0指令を表示することとしたので、作業者は、アプローチとリトラクトが容易にわかるという効果を奏する。
 また、本実施の形態に係る数値制御装置によれば、加工プログラムブロックから算出した限界速度と、NC指令データ速度算出部が算出したNC指令速度とを比較し、数値制御指令の速度が限界速度に基づいて設定される判定値を超えているときに数値制御微小線分能力限界箇所とすることとしたので、作業者は、ブロック長が短いために、NC加工プログラムの指令速度に達しないNC微小線分能力限界箇所が容易にわかるという効果を奏する。
 また、本実施の形態に係る数値制御装置によれば、フィードバック位置データ取得部が取得したフィードバック位置データのうち、指定軸のフィードバック位置データを制御周期長で割り算した小数以下の値を算出して、ワーク加工面と比較することとしたので、指定した軸のモータのコギングによるワーク加工面性状か、NC加工プログラムによるワーク加工面性状かを容易に分析できる効果を奏する。
 また、本実施の形態に係る数値制御装置によれば、読み込んだCADデータを任意の位置に配置させるとともに、読み込んだCADデータの形状を任意の倍率に拡大または縮小させ、プログラム経路、前記数値制御指令データおよび前記フィードバック位置データのうちの少なくとも1つとともに当該CADデータ表示することとしたので、作業者が容易に問題箇所の特定を容易にできる効果を奏する。
 なお、以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。
 10 NC加工プログラム、20 CADデータ、100 数値制御装置、101 NC加工プログラム読み込み部、102 NC加工プログラム格納部、103 NC加工プログラム表示処理部、103a,107a,111a,115c 色分け表示部、104 NC加工プログラム分析部、105 NC指令データ生成部、106 NC指令データ格納部、106a 加工プログラムブロック記憶部、107 NC指令データ表示処理部、108 NC指令データ分析部、108a NC指令データ速度算出部、108b NC指令データ加速度算出部、108c 工具ベクトル算出部、108d 工具ベクトル分析部、108e 関連加工プログラムブロック取得部、108f 関連NCデータ取得部、108g 接近退避判定部、108h 限界速度算出部、108i NC指令データ取得部、108j NC指令速度算出部、108k NC微小線分能力限界箇所分析部、109 FB位置データ取得部、110 FB位置データ格納部、111 FB位置データ表示処理部、112 FB位置データ分析部、112a FB位置データ速度算出部、112b FB位置データ加速度算出部、112c 工具ベクトル算出部、112d 工具ベクトル分析部、112e FB位置データ周期性分析部、113 CADデータ読み込み部、114 CADデータ格納部、115 CADデータ表示処理部、115a CADデータ配置部、115b CADデータスケーリング部、121 NC加工プログラム選択部、122 オフセットデータ格納部、200 工作機械、201 対話操作処理部、202 表示部、203 指示入力部、204 駆動X軸、205 駆動Y軸、206 駆動Z軸、207 駆動B軸、208 駆動C軸、209 FB位置データ検出器。

Claims (14)

  1.  複数の駆動軸によって工具および被加工物のうちの少なくとも一方の位置および姿勢を制御する工作機械の数値制御装置において、
     数値制御加工プログラムを読み込む数値制御加工プログラム読み込み部と、
     作業者が前記数値制御加工プログラムの任意範囲を選択するための数値制御加工プログラム選択部と、
     前記読み込んだ数値制御加工プログラムから前記複数の駆動軸に対する制御周期ごとの数値制御指令位置である数値制御指令データを生成する数値制御指令データ生成部と、
     前記数値制御指令データ生成部により生成された前記複数の駆動軸ごとの数値制御指令データを取得する数値制御指令データ取得部と、
     前記数値制御指令データを用いて、前記複数の駆動軸ごとの速度または加速度を算出する数値制御指令データ加速度算出部と、
     を備えたことを特徴とする数値制御装置。
  2.  複数の駆動軸によって工具および被加工物のうちの少なくとも一方の位置および姿勢を制御する工作機械の数値制御装置において、
     前記工作機械には、前記複数の駆動軸の夫々に取付けられていて前記複数の駆動軸の夫々の位置を前記制御周期ごとに検出するフィードバック位置データ検出器が設けられており、
     前記数値制御装置は、
     作業者が数値制御加工プログラムの任意範囲を選択するための数値制御加工プログラム選択部と、
     前記フィードバック位置データ検出器により前記制御周期ごとに検出された前記複数の駆動軸ごとのフィードバック位置検出値をフィードバック位置データとして取得するフィードバック位置データ取得部と、
     前記フィードバック位置データを用いて、前記複数の駆動軸ごとの速度または加速度を算出するフィードバック位置データ加速度算出部と、
     を備えたことを特徴とする数値制御装置。
  3.  前記数値制御装置は、
     前記数値制御指令データ生成部が生成した前記数値制御指令データが駆動軸ごとに反転する箇所を判定する数値制御指令データ分析部と、
     前記作業者によって指定された駆動軸ごとに、前記数値制御指令データの反転箇所を表示処理する数値制御指令データ表示処理部と、
     を備えたことを特徴とする請求項1に記載の数値制御装置。
  4.  前記数値制御装置は、
     前記フィードバック位置データ取得部が取得したフィードバック位置データが駆動軸ごとに反転する箇所を判定するフィードバック位置データ分析部と、
     前記作業者によって指定された駆動軸ごとに、前記フィードバック位置データの反転箇所を表示処理するフィードバック位置データ表示処理部と、
     を備えたことを特徴とする請求項2に記載の数値制御装置。
  5.  前記数値制御装置は、
     前記数値制御指令データ生成部が算出した前記複数の駆動軸ごとの数値制御指令データから工具ベクトルを算出する工具ベクトル算出部と、
     時系列に生成される工具ベクトルの変化量を分析する工具ベクトル分析部と、
     を備えたことを特徴とする請求項1に記載の数値制御装置。
  6.  前記数値制御装置は、
     前記フィードバック位置データ検出器が検出した前記複数の駆動軸ごとのフィードバック位置データから工具ベクトルを算出する工具ベクトル算出部と、
     時系列に生成される工具ベクトルの変化量を分析する工具ベクトル分析部と、
     を備えたことを特徴とする請求項2に記載の数値制御装置。
  7.  前記数値制御装置は、
     前記数値制御指令データ生成部が、前記制御周期ごとの数値制御指令位置を生成するときに、前記数値制御指令データの生成に影響する、数値制御加工プログラム中の加工プログラムブロックを記憶する加工プログラムブロック記憶部を備え、
     前記数値制御指令データのうち、1つのデータを指定すると、指定した数値制御指令データの生成に影響する加工プログラムブロックを前記加工プログラムブロック記憶部から取得する関連加工プログラムブロック取得部と、
     を備えたことを特徴とする請求項1に記載の数値制御装置。
  8.  前記数値制御装置は、前記数値制御指令データ生成部が前記制御周期ごとの数値制御指令位置座標を生成するときに、前記数値制御指令データの生成に影響する、数値制御加工プログラム中の加工プログラムブロックを記憶する加工プログラムブロック記憶部を備え、
     前記数値制御加工プログラムのうち、1つの加工プログラムブロックを指定すると、指定した加工プログラムブロックが数値制御指令データの生成に影響する数値制御指令データを取得する関連数値制御データ取得部と、
     を備えたことを特徴とする請求項1に記載の数値制御装置。
  9.  前記数値制御装置は、加工プログラムの早送り指令のうち、接近および退避を判別する接近退避判別部を備え、
     前記接近退避判別部が判別した結果に応じて、接近の早送り指令および退避の早送り指令を色分け表示する色分け表示部と、
     を備えたことを特徴とする請求項1または請求項2に記載の数値制御装置。
  10.  前記数値制御装置は、前記加工プログラムブロック記憶部から加工プログラムブロックに関連数値制御指令データを取得する数値制御指令データ取得部と、
     前記加工プログラムブロックから限界速度を算出する限界速度算出部と、
     前記数値制御指令データ取得部が取得した関連する数値制御指令データの速度を算出する数値制御指令速度算出部と、
     前記限界速度算出部が算出した限界速度と数値制御指令データ速度算出部が算出した数値制御指令速度とを比較し、数値制御指令の速度が前記限界速度に基づいて設定される判定値を超えているときに数値制御微小線分能力限界箇所とする数値制御微小線分能力限界箇所分析部と、
     を備えたことを特徴とする請求項1に記載の数値制御装置。
  11.  前記数値制御装置は、
     前記フィードバック位置データ取得部が取得したフィードバック位置データのうち、指定した軸のフィードバック位置データを制御周期長で割り算した小数以下の値に応じて分析するフィードバック位置データ周期性分析部と、
     を備えたことを特徴とする請求項2に記載の数値制御装置。
  12.  前記数値制御装置は、
     CADデータを読み込むCADデータ読み込み部と、
     前記読み込んだCADデータを任意の位置に配置させるCADデータ配置部と、
     前記読み込んだCADデータの形状を任意の倍率に拡大または縮小させるCADデータスケーリング部と、
     読み込んだCADデータと、プログラム経路および前記数値制御指令データのうちの少なくとも1つとともに表示することを特徴とする請求項1に記載の数値制御装置。
  13.  前記数値制御装置は、
     CADデータを読み込むCADデータ読み込み部と、
     前記読み込んだCADデータを任意の位置に配置させるCADデータ配置部と、
     前記読み込んだCADデータの形状を任意の倍率に拡大または縮小させるCADデータスケーリング部と、
     読み込んだCADデータと、プログラム経路および前記フィードバック位置データのうちの少なくとも1つとともに表示することを特徴とする請求項2に記載の数値制御装置。
  14.  前記数値制御装置は、分析結果に応じて色分け表示する色分け表示部を備えたことを特徴とする請求項1または請求項2に記載の数値制御装置。
PCT/JP2014/071939 2014-08-21 2014-08-21 数値制御装置 WO2016027355A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/JP2014/071939 WO2016027355A1 (ja) 2014-08-21 2014-08-21 数値制御装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2014/071939 WO2016027355A1 (ja) 2014-08-21 2014-08-21 数値制御装置

Publications (1)

Publication Number Publication Date
WO2016027355A1 true WO2016027355A1 (ja) 2016-02-25

Family

ID=55350332

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2014/071939 WO2016027355A1 (ja) 2014-08-21 2014-08-21 数値制御装置

Country Status (1)

Country Link
WO (1) WO2016027355A1 (ja)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180107192A1 (en) 2016-10-18 2018-04-19 Fanuc Corporation Information processing device
JP2020098523A (ja) * 2018-12-19 2020-06-25 ファナック株式会社 数値制御装置、数値制御機械システム、加工シミュレーション装置、及び加工シミュレーション方法
WO2023067706A1 (ja) * 2021-10-19 2023-04-27 ファナック株式会社 加工形状モデル比較装置及び数値制御機械システム
WO2023067699A1 (ja) * 2021-10-19 2023-04-27 ファナック株式会社 加工面推定装置およびコンピュータ読み取り可能な記憶媒体

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5971515A (ja) * 1982-10-16 1984-04-23 Fanuc Ltd グラフィックディスプレイ装置
JPS62224435A (ja) * 1986-03-25 1987-10-02 Anritsu Corp 加工プログラム検査装置
JPH01162904A (ja) * 1987-05-27 1989-06-27 Mitsubishi Electric Corp 自動プログラミング装置
JPH01166205A (ja) * 1987-12-23 1989-06-30 Fanuc Ltd 輪郭プログラム修正方法
JPH02309405A (ja) * 1989-05-24 1990-12-25 Hitachi Seiki Co Ltd 数値制御装置および数値制御装置の画面表示方法
JPH10124124A (ja) * 1996-10-23 1998-05-15 Hitachi Seiki Co Ltd 数値制御装置における加工プログラムの描画方法及び描画機能を備えた数値制御装置
JPH10254526A (ja) * 1997-03-13 1998-09-25 Toshiba Mach Co Ltd 数値制御装置
JPH10333732A (ja) * 1997-06-03 1998-12-18 Yaskawa Electric Corp 数値制御装置の送り速度制御方法
JPH1165625A (ja) * 1997-08-26 1999-03-09 Toyoda Mach Works Ltd 数値制御送り装置の送り位置誤差補正方法と数値制御送り装置
JP2011165066A (ja) * 2010-02-12 2011-08-25 Jtekt Corp 工作機械の誤差表示装置
JP2014078102A (ja) * 2012-10-10 2014-05-01 Fanuc Ltd サーボ軸の反転位置の表示機能を備えた数値制御装置

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5971515A (ja) * 1982-10-16 1984-04-23 Fanuc Ltd グラフィックディスプレイ装置
JPS62224435A (ja) * 1986-03-25 1987-10-02 Anritsu Corp 加工プログラム検査装置
JPH01162904A (ja) * 1987-05-27 1989-06-27 Mitsubishi Electric Corp 自動プログラミング装置
JPH01166205A (ja) * 1987-12-23 1989-06-30 Fanuc Ltd 輪郭プログラム修正方法
JPH02309405A (ja) * 1989-05-24 1990-12-25 Hitachi Seiki Co Ltd 数値制御装置および数値制御装置の画面表示方法
JPH10124124A (ja) * 1996-10-23 1998-05-15 Hitachi Seiki Co Ltd 数値制御装置における加工プログラムの描画方法及び描画機能を備えた数値制御装置
JPH10254526A (ja) * 1997-03-13 1998-09-25 Toshiba Mach Co Ltd 数値制御装置
JPH10333732A (ja) * 1997-06-03 1998-12-18 Yaskawa Electric Corp 数値制御装置の送り速度制御方法
JPH1165625A (ja) * 1997-08-26 1999-03-09 Toyoda Mach Works Ltd 数値制御送り装置の送り位置誤差補正方法と数値制御送り装置
JP2011165066A (ja) * 2010-02-12 2011-08-25 Jtekt Corp 工作機械の誤差表示装置
JP2014078102A (ja) * 2012-10-10 2014-05-01 Fanuc Ltd サーボ軸の反転位置の表示機能を備えた数値制御装置

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180107192A1 (en) 2016-10-18 2018-04-19 Fanuc Corporation Information processing device
JP2018067109A (ja) * 2016-10-18 2018-04-26 ファナック株式会社 情報処理装置
US10539947B2 (en) 2016-10-18 2020-01-21 Fanuc Corporation Information processing device
JP2020098523A (ja) * 2018-12-19 2020-06-25 ファナック株式会社 数値制御装置、数値制御機械システム、加工シミュレーション装置、及び加工シミュレーション方法
JP7000303B2 (ja) 2018-12-19 2022-01-19 ファナック株式会社 数値制御装置、数値制御機械システム、加工シミュレーション装置、及び加工シミュレーション方法
WO2023067706A1 (ja) * 2021-10-19 2023-04-27 ファナック株式会社 加工形状モデル比較装置及び数値制御機械システム
WO2023067699A1 (ja) * 2021-10-19 2023-04-27 ファナック株式会社 加工面推定装置およびコンピュータ読み取り可能な記憶媒体

Similar Documents

Publication Publication Date Title
US8988032B2 (en) Numerical controller having display function for trajectory of tool
JP5192574B2 (ja) 工具先端点の加速度または加加速度の表示部を備えた工具軌跡表示装置
US9454144B2 (en) Machine tool path display apparatus displaying relative tool vector angle
US9423785B2 (en) Tool trajectory display device having function for displaying inversion position of servo axis
US9477216B2 (en) Numerical control device including display part for displaying information for evaluation of machining process
WO2016027355A1 (ja) 数値制御装置
JP6316513B1 (ja) 加工プログラム分析装置
US10088824B2 (en) Toolpath evaluation method, toolpath generation method, and toolpath generation device
JP5715215B2 (ja) 軌跡データの表示部を備えた工具軌跡表示装置
JP2009098982A (ja) 加工シミュレーション装置およびそのプログラム
JP5985087B1 (ja) 数値制御装置
CN108717288B (zh) 工具轨迹显示装置
JP2019117477A (ja) リンク情報生成装置、リンク情報生成方法及びリンク情報生成プログラム
JP5289601B1 (ja) 多軸加工機用切削距離演算装置
JP2008009637A (ja) Ncプログラムの表示方法
US10599128B2 (en) Control device for a machine tool
JPH11224116A (ja) 工作機械における加工情報表示方法および装置
JP6554695B2 (ja) 画像測定装置
JP5020579B2 (ja) 数値制御装置
US6658317B2 (en) Method for setting a moving position in a machine tool
JP7131454B2 (ja) 数値制御装置、工作機械、制御プログラム、及び記憶媒体
WO2023067699A1 (ja) 加工面推定装置およびコンピュータ読み取り可能な記憶媒体
US11994835B2 (en) Apparatus, controller, and method for generating image data of movement path of industrial machine
JP5321712B2 (ja) 数値制御装置
KR100478241B1 (ko) 머시닝센터의 공구 계측 및 보정 방법

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: 14900103

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

NENP Non-entry into the national phase

Ref country code: JP

122 Ep: pct application non-entry in european phase

Ref document number: 14900103

Country of ref document: EP

Kind code of ref document: A1