WO2022075142A9 - プログラム作成装置、および工作機械 - Google Patents

プログラム作成装置、および工作機械 Download PDF

Info

Publication number
WO2022075142A9
WO2022075142A9 PCT/JP2021/035830 JP2021035830W WO2022075142A9 WO 2022075142 A9 WO2022075142 A9 WO 2022075142A9 JP 2021035830 W JP2021035830 W JP 2021035830W WO 2022075142 A9 WO2022075142 A9 WO 2022075142A9
Authority
WO
WIPO (PCT)
Prior art keywords
coordinate
tool
information
coordinate system
program
Prior art date
Application number
PCT/JP2021/035830
Other languages
English (en)
French (fr)
Other versions
WO2022075142A1 (ja
Inventor
俊大 渡邉
Original Assignee
ファナック株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ファナック株式会社 filed Critical ファナック株式会社
Priority to US18/245,718 priority Critical patent/US20230359166A1/en
Priority to CN202180066741.8A priority patent/CN116261695A/zh
Priority to JP2022555396A priority patent/JP7522215B2/ja
Priority to DE112021005250.0T priority patent/DE112021005250T5/de
Publication of WO2022075142A1 publication Critical patent/WO2022075142A1/ja
Publication of WO2022075142A9 publication Critical patent/WO2022075142A9/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
    • G05B19/408Numerical 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 data handling or data format, e.g. reading, buffering or conversion of data
    • G05B19/4086Coordinate conversions; Other special calculations
    • 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/402Numerical 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 control arrangements for positioning, e.g. centring a tool relative to a hole in the workpiece, additional detection means to correct position
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/33Director till display
    • G05B2219/33258Common coordinate conversion for multiple heads, spindles
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/33Director till display
    • G05B2219/33263Conversion, transformation of coordinates, cartesian or polar
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present disclosure relates to programming devices and machine tools.
  • machining programs are created in numerical control devices with coordinate conversion functions.
  • a numerical controller having a coordinate conversion function for example, a machining program is created that instructs a tool movement path using coordinate values in a coordinate system obtained by rotating a reference coordinate system by a predetermined angle around a predetermined axis. .
  • the coordinate values for commanding the movement path are coordinate-transformed into coordinate values in a reference coordinate system, and the movement of the tool is controlled based on the coordinate-transformed coordinate values.
  • An object of the present disclosure is to provide a programming device and a machine tool that can improve the readability of machining programs and reduce machining errors.
  • a program creation device stores in an information storage unit for storing coordinate transformation information for transforming coordinate values in a rotating coordinate system into coordinate values in a reference coordinate system in association with identification information assigned to a tool, and storing in the information storage unit.
  • an execution command generation unit that generates a coordinate transformation execution command based on the obtained coordinate transformation information; and a program creation unit that creates a coordinate transformation program including the execution command generated by the execution command generation unit.
  • FIG. 3 is a block diagram showing an example of functions of a program creation device; FIG. It is a figure explaining the relationship between a reference coordinate system and a rotation coordinate system. It is a figure which shows an example of the information which the information storage part in 1st Embodiment memorize
  • FIG. 10 is a diagram showing another example of a coordinate conversion program;
  • FIG. 10 is a diagram showing another example of a machining program;
  • FIG. 1 is a diagram showing an example of the hardware configuration of a program creation device.
  • the program creation device 1 is, for example, a device that creates a coordinate conversion program that performs coordinate conversion of coordinate values instructed in a machining program.
  • the program creation device 1 is implemented in, for example, a PC (Personal Computer) or a numerical control device that controls a machine tool.
  • PC Personal Computer
  • FIG. 1 an example in which the program creation device 1 is implemented in a PC will be described.
  • the program creation device 1 includes a CPU (Central Processing Unit) 2, a bus 3, a ROM (Read Only Memory) 4, a RAM (Random Access Memory) 5, and a non-volatile memory 6.
  • a CPU Central Processing Unit
  • ROM Read Only Memory
  • RAM Random Access Memory
  • the CPU 2 is a processor that controls the entire programming device 1 according to the system program.
  • the CPU 2 reads the system program etc. stored in the ROM 4 via the bus 3 .
  • the bus 3 is a communication path that connects each piece of hardware within the program creation device 1 to each other. Each piece of hardware in the program creation device 1 exchanges data via the bus 3 .
  • the ROM 4 is a storage device that stores system programs and the like for controlling the entire programming device 1 .
  • the RAM 5 is a storage device that temporarily stores various data.
  • the RAM 5 temporarily stores display data, externally input data, and the like.
  • the RAM 5 functions as a working area for the CPU 2 to process various data.
  • the nonvolatile memory 6 is a storage device that retains data even when the power of the program creation device 1 is turned off and no power is supplied to the program creation device 1 .
  • the nonvolatile memory 6 is composed of, for example, an SSD (Solid State Drive).
  • the nonvolatile memory 6 stores, for example, a coordinate conversion program created by the program creation device 1 and various information input from the input device 10 .
  • the program creation device 1 further comprises a first interface 7 and a second interface 8.
  • the first interface 7 is an interface that connects the bus 3 and the display device 9 .
  • the first interface 7 sends various data processed by the CPU 2 to the display device 9, for example.
  • the display device 9 is a device that receives various data via the first interface 7 and displays various data.
  • the display device 9 displays, for example, a coordinate transformation program stored in the nonvolatile memory 6 .
  • the display device 9 is a display such as an LCD (Liquid Crystal Display).
  • the second interface 8 is an interface that connects the bus 3 and the input device 10 .
  • the second interface 8 sends data input from the input device 10 to the CPU 2 via the bus 3, for example.
  • the input device 10 is a device for inputting various data.
  • the input device 10 receives, for example, input of coordinate transformation information for each tool, and sends the information to the nonvolatile memory 6 via the second interface 8 .
  • the coordinate conversion information will be explained later in detail.
  • Input device 10 is, for example, a keyboard and a mouse. Note that the input device 10 and the display device 9 may be configured as one device like a touch panel, for example.
  • FIG. 2 is a block diagram showing an example of the functions of the program creation device 1.
  • the program creation device 1 includes, for example, an information storage unit 11, an execution command generation unit 12, a program creation unit 13, and an output unit .
  • the information storage unit 11 is realized by storing the data input from the input device 10 or the like or the calculation result of the calculation processing by the CPU 2 in the RAM 5 or the nonvolatile memory 6 .
  • the execution command generation unit 12, the program creation unit 13, and the output unit 14 are implemented by, for example, the CPU 2 performing arithmetic processing using the system program stored in the ROM 4 and various data.
  • the CPU 2 executes arithmetic processing using the RAM 5 as a work area.
  • the information storage unit 11 stores coordinate conversion information for converting coordinate values in the rotating coordinate system into coordinate values in the reference coordinate system.
  • a coordinate system is a general term for the origin, coordinate axes, etc. that serve as a reference for representing positions on machine tools.
  • the coordinate system is, for example, a three-axis orthogonal coordinate system composed of mutually orthogonal X-, Y-, and Z-axes.
  • a machine tool processes a workpiece based on coordinate values in a reference coordinate system that serves as a reference for controlling each axis.
  • the reference coordinate system is set such that, for example, the Z axis and the main axis are parallel, and the X and Y axes are respectively parallel to the moving direction of the table.
  • the reference coordinate system is set such that, for example, the Z-axis and the spindle are parallel, and the X-axis and Y-axis are each parallel to the moving direction of the tool post. be done.
  • a rotating coordinate system is a coordinate system that is set according to the direction of the tool or the cutting direction of the tool, and is a coordinate system obtained by rotating the reference coordinate system by a predetermined angle around a predetermined axis.
  • the rotating coordinate system may also be a coordinate system translated in a predetermined axial direction as required.
  • FIG. 3 is a diagram explaining the relationship between the reference coordinate system and the rotating coordinate system.
  • the Z-axis of the reference coordinate system Cc is parallel to the longitudinal direction of the main axis S, and the X-axis and Y-axis are parallel to the moving direction of the table TB.
  • the Z-axis of the rotating coordinate system Cr is parallel to the longitudinal direction of the tool T.
  • the rotating coordinate system Cr is a coordinate system obtained by rotating the reference coordinate system Cc about the X-axis by an angle ⁇ .
  • the origin of the reference coordinate system Cc and the origin of the rotating coordinate system Cr do not necessarily have to match.
  • the origin of the rotating coordinate system Cr may be a point translated from the origin of the reference coordinate system Cc by ⁇ X, ⁇ Y, and ⁇ Z in the X-axis, Y-axis, and Z-axis directions, respectively.
  • the coordinate conversion information is information for converting coordinate values in the rotating coordinate system Cr into coordinate values in the reference coordinate system Cc.
  • the coordinate transformation information is, for example, coordinate difference information indicating the difference between the reference coordinate system Cc and the rotating coordinate system Cr.
  • the coordinate difference information includes information indicating the rotation center of the rotating coordinate system Cr and information indicating the rotation angle. However, the coordinate difference information does not include the translation amounts ⁇ X, ⁇ Y, and ⁇ Z from the origin of the reference coordinate system Cc to the origin of the rotating coordinate system Cr.
  • the coordinate transformation information is set according to the mounting direction of the tool T with respect to the spindle S.
  • the tool T is attached to an angle head AH for tilting the main axis S about the X axis by an angle ⁇ .
  • the coordinate transformation information includes information indicating the X-axis, which is the center of rotation of the rotating coordinate system Cr, and the angle ⁇ .
  • the information storage unit 11 stores the coordinate conversion information in association with the unique identification information assigned to each tool T.
  • the unique identification information assigned to the tools T is the tool number of each tool T, for example.
  • the information storage unit 11 may store information indicating the tool type in association with identification information unique to each tool T. FIG.
  • FIG. 4 is a diagram showing an example of information stored in the information storage unit 11. As shown in FIG.
  • the information storage unit 11 stores information indicating the tool type and coordinate conversion information in association with the tool number.
  • tool number 11 is stored in association with "drill” as the tool type and "X: 45" as coordinate transformation information.
  • "X: 45” indicates that the rotating coordinate system Cr is rotated by 45° around the X axis of the reference coordinate system Cc. In other words, it indicates that the tool T is attached in an orientation rotated by 45° around the X-axis with respect to the longitudinal direction of the spindle S.
  • the coordinate transformation information is input from the input device 10 by the user and stored in the information storage unit 11 .
  • tool number 13 is stored in association with coordinate transformation information "Null”. Therefore, the execution command generation unit 12 generates an execution command "DO NOTHING" that does not convert the coordinate values for instructing the movement path of the end mill with the tool number 13.
  • the program creation unit 13 creates a coordinate transformation program including the coordinate transformation execution command generated by the execution command generation unit 12 .
  • FIG. 5 is a diagram showing an example of a coordinate transformation program created by the program creation unit 13.
  • FIG. The coordinate conversion program shown in FIG. 5 is a coordinate conversion program generated when the information shown in FIG.
  • the SWITCH statement defines an execution command to be executed corresponding to the identification information.
  • a coordinate conversion execution command is defined to rotate the coordinate values by 45° around the X axis.
  • a command to execute coordinate transformation is specified to rotate the coordinate values by 45° around the X axis.
  • an execution command is defined that does not convert the coordinate values.
  • the output unit 14 outputs the coordinate conversion program generated by the program creation unit 13.
  • the output unit 14 outputs, for example, the coordinate conversion program to the numerical control device 22 of the machine tool 21 connected to the program creation device 1 via the Internet line 20 .
  • the numerical control device 22 is a device that controls each axis of the machine tool 21 according to a machining program to cut a workpiece.
  • FIG. 6 is a diagram showing an example of a machining program executed by the numerical controller 22.
  • FIG. 6 is a diagram showing an example of a machining program executed by the numerical controller 22.
  • the command "M6 T11" on the first line is a tool change command to tool T with tool number 11.
  • the commands "G90” and "G00 X0.0 Y0.0 Z10.0" on the second line are the absolute command and the tool T positioning command, respectively. These commands are commands for positioning the tool T at the position (0.0, 0.0, 10.0) in the reference coordinate system Cc.
  • Commands "G68.1” and "X0.0 Y-20.0 Z-20.0" on the third line are coordinate conversion commands and from the origin of the reference coordinate system Cc to the origin of the rotating coordinate system Cr, respectively. shows the amount of parallel movement of This translation amount is designated by coordinate values in the reference coordinate system Cc. Also, when only "G68.1” is commanded, it is assumed that there is no translation amount. That is, the origin of the reference coordinate system Cc and the origin of the rotating coordinate system Cr coincide.
  • the coordinate conversion command is a command to coordinate-convert the coordinate values until the coordinate conversion is canceled into the coordinate values in the reference coordinate system Cc. That is, the coordinate values written between the coordinate transformation command and the coordinate transformation cancellation command are the coordinate values in the rotating coordinate system Cr, and are coordinate-transformed into the coordinate values in the reference coordinate system Cc by the coordinate transformation execution command. be.
  • the command "G00 X10.0 Y-20.0 Z5.0" on the 4th line is a positioning command.
  • the coordinate values in this positioning command are coordinate values in the rotating coordinate system Cr.
  • the command "M3 S1000" on the 5th line is the spindle forward rotation command.
  • the spindle forward rotation command is a command to rotate the spindle S forward at a rotation speed of 1,000 [rpm].
  • the command "G01 Z-20.0 F0.1" on the 6th line is a linear interpolation command.
  • This linear interpolation command is a command to move the tool T to a position of Z: -20.0 at a feed rate of 0.1 [mm/rev].
  • the command "G69" on the ninth line is a coordinate conversion cancel command. This command cancels coordinate conversion.
  • the numerical controller 22 acquires these machining command information from the machining program.
  • the numerical controller 22 generates a coordinate transformation matrix for coordinate transformation of the coordinate values in the rotating coordinate system Cr to the coordinate values in the reference coordinate system Cc, for example, based on the execution command included in the coordinate transformation program.
  • the numerical controller 22 processes the coordinate transformation matrix R x ( ⁇ ) represented by the following Equation 1. Multiply the coordinates specified by the program. Thereby, the coordinate values in the rotating coordinate system Cr obtained from the machining program can be converted into the coordinate values in the reference coordinate system Cc.
  • the numerical controller 22 controls each axis based on the coordinate values in the reference coordinate system Cc.
  • the numerical controller 22 controls the movement of the tool T based on the coordinate values after the coordinate conversion.
  • FIG. 7 is a flow chart showing the processing executed by the program creation device 1 when the coordinate conversion program is created.
  • the execution command generation unit 12 acquires coordinate transformation information stored in the information storage unit 11 (step SA01).
  • the execution command generation unit 12 generates a coordinate transformation execution command for each piece of identification information based on the acquired coordinate transformation information (step SA02).
  • the program creation unit 13 creates a coordinate transformation program based on the coordinate transformation execution command for each identification information generated by the execution command generation unit 12 (step SA03).
  • the output unit 14 outputs the coordinate conversion program created by the program creation unit 13. (Step SA04).
  • the program creation device 1 of the first embodiment associates the coordinate transformation information for transforming the coordinate values in the rotating coordinate system into the coordinate values in the reference coordinate system with the identification information assigned to the tool.
  • an execution command generation unit 12 for generating a coordinate transformation execution command based on the coordinate transformation information stored in the information storage unit 11; and an execution command generated by the execution command generation unit 12 and a program creation unit 13 that creates a coordinate conversion program including.
  • the coordinate transformation information includes coordinate difference information indicating the difference between the rotating coordinate system and the reference coordinate system, and the execution command generation unit 12 generates Generate execution directives. Therefore, information to be stored in the information storage unit 11 can be simplified.
  • the program creation device 1 includes, for example, an information storage unit 11, an execution command generation unit 12, a program creation unit 13, and an output unit 14, as shown in FIG.
  • the information storage unit 11 stores coordinate conversion information for converting coordinate values in the rotating coordinate system Cr into coordinate values in the reference coordinate system Cc.
  • the coordinate conversion information includes reference direction information and cutting direction information.
  • the reference direction information is information indicating the reference machining direction determined according to the tool type. For example, if the tool T is a turning tool such as a turning tool, the reference machining direction is the -X direction in the reference coordinate system Cc.
  • the cutting direction information is information indicating the cutting direction of the tool T.
  • the cutting direction of the turning tool is the -X direction.
  • the reference machining direction and the cutting direction of the tool T match.
  • the cutting direction of the turning tool is the -Y direction.
  • the cutting direction of the tool is a direction obtained by rotating the reference machining direction by 90° around the Z-axis.
  • FIG. 8 is a diagram for explaining the reference machining direction and cutting direction.
  • a turning tool Tt is attached to the tool holder TH.
  • the reference machining direction is the -X direction in the reference coordinate system Cc.
  • the turning tool Tt is mounted substantially parallel to the YZ plane in the reference coordinate system Cc, and cuts in the -Y direction during machining of the workpiece. Therefore, the cutting direction of the turning tool Tt is obtained by rotating the reference machining direction by 90° around the Z-axis.
  • FIG. 9 is a diagram showing an example of information stored in the information storage unit 11. As shown in FIG.
  • the information storage unit 11 stores information indicating the tool type, reference direction information, and cutting direction information in association with the tool number.
  • the tool number 121 is stored in association with "turning" as the tool type, "-X" as the reference direction information, and "Null” as the cutting direction information.
  • the cutting direction of the tool T is the -X direction, which is the same as the reference machining direction.
  • the tool number 122 stores "turning" as the tool type, "-X” as the reference direction information, and "-Y” as the cutting direction information in association with each other.
  • the tool T is mounted substantially parallel to the YZ plane in the reference coordinate system Cc, and cuts in the -Y direction.
  • the execution command generation unit 12 (see FIG. 2) generates a coordinate transformation execution command based on the difference between the direction indicated by the reference direction information stored in the information storage unit 11 and the direction indicated by the cutting direction information.
  • a coordinate transformation execution command is generated.
  • the difference between the cutting direction of the turning tool Tt with the tool number 122 and the reference machining direction is 90° around the Z axis.
  • the execution command generation unit 12 generates a coordinate transformation execution command for transforming the coordinate values in the rotated coordinate system Cr obtained by rotating the reference coordinate system Cc by 90° around the Z axis into the coordinate values in the reference coordinate system Cc. do.
  • the execution command generation unit 12 outputs the turning tool Tt with the tool number 121 and the threading tool with the tool number 123. Generates an execution command "DO NOTHING" that does not convert the coordinate values that command the movement path of .
  • the program creation unit 13 creates a program including the coordinate transformation execution command generated by the execution command generation unit 12 for each piece of identification information.
  • the output unit 14 outputs the coordinate conversion program generated by the program creation unit 13.
  • the output unit 14 outputs the coordinate conversion program to, for example, a numerical control device 22 connected to the program creation device 1 via an Internet line.
  • the coordinate transformation information includes reference direction information indicating the machining direction that is the reference of the tool T, which is set for each identification information, and the cutting direction of the tool T.
  • the execution command generation unit 12 generates an execution command based on the difference between the direction indicated by the reference direction information and the direction indicated by the cutting direction information.
  • the program creation device 1 includes, for example, an information storage unit 11, an execution command generation unit 12, a program creation unit 13, and an output unit 14, as shown in FIG.
  • the information storage unit 11 stores coordinate conversion information for converting coordinate values in the rotating coordinate system Cr into coordinate values in the reference coordinate system Cc.
  • the coordinate conversion information includes coordinate difference information indicating the difference between the reference coordinate system Cc and the rotating coordinate system Cr.
  • the coordinate difference information includes, for example, information indicating the rotation center of the rotating coordinate system Cr and information indicating the rotation angle. Further, the coordinate difference information can be determined by associating information indicating the center of rotation of the rotating coordinate system Cr and information indicating the angle of rotation with position information indicating the position of the tool T at the start of cutting.
  • the coordinate difference information is Z:90.
  • the position information is Y>0.0, for example, as shown in FIG. 10, the turning tool Tt is positioned on the +Y side of the YZ plane of the reference coordinate system Cc at the start of cutting. In this case, the cutting direction of the tool T is the -Y direction.
  • the position information indicating the position of the turning tool is Y ⁇ 0.0
  • the coordinate difference information is Z:270.
  • the position information is Y ⁇ 0.0, for example, as shown in FIG. 11, the turning tool Tt is positioned on the -Y side of the YZ plane of the reference coordinate system Cc at the start of cutting. In this case, the cutting direction of the tool T is the +Y direction.
  • FIG. 12 is a diagram showing an example of information stored in the information storage unit 11. As shown in FIG. Information indicating the tool type and coordinate difference information are stored in the information storage unit 11 in association with the tool number.
  • the tool number 131 is stored in association with "turning" as the tool type and "Null" as the coordinate difference information. In this case, coordinate conversion of the coordinate values for instructing the movement path of the tool T with the tool number 131 is not performed.
  • the tool number 132 stores "turning" as the tool type and "IF Y > 0.0", "THEN Z: 90", and "ELSE Z: 270" as the tool difference information in association with each other. That is, when the positional information of the tool T is Y>0.0, the rotating coordinate system Cr is set at 90° around the Z-axis with respect to the reference coordinate system Cc. If the tool position information is Y ⁇ 0.0, a rotating coordinate system Cr that is 270° around the Z-axis with respect to the reference coordinate system Cc is set.
  • the execution command generation unit 12 (see FIG. 2) generates a coordinate transformation execution command for each piece of identification information based on the coordinate transformation information stored in the information storage unit 11 . For example, when the information shown in FIG. 12 is stored in the information storage unit 11, the execution command generation unit 12 issues an execution command "DO NOTHING" that does not convert the coordinate values instructing the movement path of the turning tool with the tool number 131. to generate
  • execution command generation unit 12 generates an execution command "DO NOTHING" that does not convert the coordinate values that command the movement path for thread cutting of the tool number 133.
  • the program creation unit 13 creates a program including the coordinate transformation execution command generated by the execution command generation unit 12 for each piece of identification information.
  • FIG. 13 is a diagram showing an example of a coordinate conversion program generated by the program creation unit 13.
  • the coordinate conversion program shown in FIG. 13 is a coordinate conversion program generated when the information shown in FIG. In this coordinate conversion program, execution commands to be executed corresponding to identification information are defined by SWITCH statements.
  • the coordinate values are rotated about the Z axis by 90° so that the tool moves to the -Y position in the reference coordinate system Cc. If positioned on the side, it is specified that the coordinate values should be rotated -270° around the Z axis.
  • the output unit 14 outputs the coordinate conversion program generated by the program creation unit 13.
  • the output unit 14 outputs the coordinate conversion program to, for example, a numerical control device 22 connected to the program creation device 1 via an Internet line.
  • the numerical controller 22 performs coordinate conversion of the coordinate values in the positioning command and the linear interpolation command based on the position information indicating the position of the tool T.
  • the numerical controller 22 rotates the coordinate values indicating the movement path of the tool with the tool number 132 by 90° around the Z-axis, thereby converting these coordinate values from the coordinate values in the rotating coordinate system Cr to the coordinate values in the reference coordinate system Cc. Convert coordinates to coordinate values.
  • the coordinate conversion information includes coordinate difference information indicating the difference between the rotating coordinate system and the reference coordinate system, and the coordinate difference information indicates the position of the tool. It is determined for each location information to be shown.
  • program creation device 2 CPU 3 bus 4 ROM 5 RAM 6 nonvolatile memory 7 first interface 8 second interface 9 display device 10 input device 11 information storage unit 12 execution command generation unit 13 program creation unit 14 output unit 20 internet line 21 machine tool 22 numerical controller AH angle head Cc Reference coordinate system Cr Rotating coordinate system S Spindle TB Table T Tool Tt Turning tool TH Tool holder

Landscapes

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

Abstract

プログラム作成装置が、回転座標系における座標値を基準座標系における座標値に座標変換するための座標変換情報を工具に割り当てられた識別情報に関連付けて記憶する情報記憶部と、識別情報に関連付けて記憶された座標変換情報に基づいて、座標変換の実行指令を生成する実行指令生成部と、実行指令生成部によって生成された座標変換の実行指令を含む座標変換プログラムを作成するプログラム作成部と、を備える。

Description

プログラム作成装置、および工作機械
 本開示は、プログラム作成装置、および工作機械に関する。
 従来、座標変換機能を有する数値制御装置において加工プログラムを作成することが行われている。座標変換機能を有する数値制御装置では、例えば、基準となる座標系を所定の軸回りに所定角度だけ回転させた座標系における座標値を用いて工具の移動経路を指令する加工プログラムが作成される。この場合、移動経路を指令する座標値は、基準となる座標系における座標値に座標変換され、座標変換された座標値に基づいて工具の移動が制御される。
特開平3-269604号公報
 しかし、従来の数値制御装置において座標変換を指令する加工プログラムを作成する場合、座標系の回転中心、回転方向、および回転量などの情報を加工プログラムに書き込む必要がある。そのため、加工プログラムが複雑化し、加工プログラムの可読性が低下するおそれがある。また、加工プログラムの可読性が低下すると、ワークの加工ミスにつながるおそれがある。
 本開示は、加工プログラムの可読性を高め、加工ミスを低減することが可能なプログラム作成装置、および工作機械を提供することを目的とする。
 プログラム作成装置が、回転座標系における座標値を基準座標系における座標値に座標変換するための座標変換情報を工具に割り当てられた識別情報に関連付けて記憶する情報記憶部と、情報記憶部に記憶された座標変換情報に基づいて、座標変換の実行指令を生成する実行指令生成部と、実行指令生成部によって生成された実行指令を含む座標変換プログラムを作成するプログラム作成部と、を備える。
 本開示により、加工プログラムの可読性を高め、加工ミスを低減することが可能となる。
プログラム作成装置のハードウェア構成の一例を示す図である。 プログラム作成装置の機能の一例を示すブロック図である。 基準座標系と回転座標系との関係を説明する図である。 第1の実施形態における情報記憶部が記憶する情報の一例を示す図である。 座標変換プログラムの一例を示す図である。 加工プログラムの一例を示す図である。 ワークの加工時に実行される処理の一例を示すフローチャートである。 基準となる加工方向と切り込み方向とを説明する図である。 第2の実施形態における情報記憶部が記憶する情報の一例を示す図である。 工具の位置決めについて説明する図である。 工具の位置決めについて説明する図である。 第3の実施形態における情報記憶部が記憶する情報の一例を示す図である。 座標変換プログラムの別の例を示す図である。 加工プログラムの他の例を示す図である。
[第1の実施形態]
 以下、第1の実施形態について図面を用いて説明する。
[規則91に基づく訂正 05.12.2022] 
 図1は、プログラム作成装置のハードウェア構成の一例を示す図である。プログラム作成装置1は、例えば、加工プログラムにおいて指令される座標値の座標変換を行う座標変換プログラムを作成する装置である。プログラム作成装置1は、例えば、PC(Personal Computer)、工作機械を制御する数値制御装置に実装される。ここでは、プログラム作成装置1がPCに実装された例について説明する。
 プログラム作成装置1は、CPU(Central Processing Unit)2と、バス3と、ROM(Read Only Memory)4と、RAM(Random Access Memory)5と、不揮発性メモリ6とを備えている。
 CPU2は、システムプログラムに従ってプログラム作成装置1の全体を制御するプロセッサである。CPU2は、バス3を介してROM4に格納されたシステムプログラムなどを読み出す。
 バス3は、プログラム作成装置1内の各ハードウェアを互いに接続する通信路である。プログラム作成装置1内の各ハードウェアはバス3を介してデータをやり取りする。
 ROM4は、プログラム作成装置1全体を制御するためのシステムプログラムなどを記憶する記憶装置である。
 RAM5は、各種データを一時的に格納する記憶装置である。RAM5は、表示用のデータ、外部から入力されるデータなどを一時的に記憶する。RAM5は、CPU2が各種データを処理するための作業領域として機能する。
 不揮発性メモリ6は、プログラム作成装置1の電源が切られ、プログラム作成装置1に電源が供給されていない状態でもデータを保持する記憶装置である。不揮発性メモリ6は、例えば、SSD(Solid State Drive)で構成される。不揮発性メモリ6は、例えば、プログラム作成装置1が作成した座標変換プログラム、入力装置10から入力された各種情報を記憶する。
 プログラム作成装置1は、さらに、第1のインタフェース7と、第2のインタフェース8とを備えている。
 第1のインタフェース7は、バス3と表示装置9とを接続するインタフェースである。第1のインタフェース7は、例えば、CPU2が処理した各種データを表示装置9に送る。
 表示装置9は、第1のインタフェース7を介して各種データを受け、各種データを表示する装置である。表示装置9は、例えば、不揮発性メモリ6に記憶された座標変換プログラムなどを表示する。表示装置9は、LCD(Liquid Crystal Display)などのディスプレイである。
 第2のインタフェース8は、バス3と入力装置10とを接続するインタフェースである。第2のインタフェース8は、例えば、入力装置10から入力されたデータをバス3を介してCPU2に送る。
 入力装置10は、各種データを入力するための装置である。入力装置10は、例えば、各工具の座標変換情報の入力を受け、第2のインタフェース8を介して不揮発性メモリ6に送る。座標変換情報については後に詳しく説明する。入力装置10は、例えば、キーボード、およびマウスである。なお、入力装置10と表示装置9とは、例えば、タッチパネルのように1つの装置として構成されてもよい。
 次に、プログラム作成装置1の各部の機能について説明する。
 図2は、プログラム作成装置1の機能の一例を示すブロック図である。プログラム作成装置1は、例えば、情報記憶部11と、実行指令生成部12と、プログラム作成部13と、出力部14とを備えている。
 情報記憶部11は、入力装置10などから入力されたデータ、またはCPU2による演算処理の演算結果がRAM5、または不揮発性メモリ6に記憶されることにより実現される。また、実行指令生成部12、プログラム作成部13、および出力部14は、例えば、CPU2がROM4に記憶されているシステムプログラム、および各種データを用いて演算処理することにより実現される。CPU2は、作業領域としてRAM5を用いて演算処理を実行する。
 情報記憶部11は、回転座標系における座標値を基準座標系における座標値に変換するための座標変換情報を記憶する。
 座標系とは工作機械上における位置を表すための基準となる原点、座標軸などの総称である。座標系は、例えば、互いに直交するX軸、Y軸およびZ軸からなる3軸直交座標系である。
 ここで、工作機械について説明する。工作機械は、各軸の制御の基準となる基準座標系における座標値に基づいてワークの加工を行う。工作機械がマシニングセンタである場合、基準座標系は、例えば、Z軸と主軸とが平行であり、かつ、X軸とY軸とがそれぞれ、テーブルの移動方向に平行になるように設定される。また、工作機械が旋盤である場合、基準座標系は、例えば、Z軸と主軸とが平行であり、かつ、X軸とY軸とがそれぞれ、刃物台の移動方向に平行になるように設定される。
 回転座標系とは、工具の向き、または工具の切り込み方向に合わせて設定される座標系であり、基準座標系を所定の軸回りに所定の角度回転させた座標系である。回転座標系は、さらに、必要に応じて所定の軸方向に平行移動させた座標系であってもよい。
 図3は、基準座標系と回転座標系との関係を説明する図である。基準座標系CcのZ軸は主軸Sの長手方向に平行であり、X軸およびY軸は、テーブルTBの移動方向にそれぞれ平行である。回転座標系CrのZ軸は、工具Tの長手方向に平行である。回転座標系Crは、基準座標系CcをX軸回りに角度θだけ回転させた座標系である。基準座標系Ccの原点と回転座標系Crの原点は必ずしも一致している必要はない。回転座標系Crの原点は、基準座標系Ccの原点をX軸、Y軸、Z軸方向にそれぞれΔX、ΔY、ΔZだけ平行移動した点であってもよい。
 座標変換情報は、回転座標系Crにおける座標値を基準座標系Ccにおける座標値に変換するための情報である。座標変換情報は、例えば、基準座標系Ccと回転座標系Crとの差分を示す座標差分情報である。座標差分情報は、回転座標系Crの回転中心を示す情報、および回転角度を示す情報を含む。ただし、座標差分情報には基準座標系Ccの原点から回転座標系Crの原点への平行移動量ΔX、ΔY、ΔZは含まれない。
 座標変換情報は、主軸Sに対する工具Tの取り付け方向に応じて設定される。図3に示す例では、工具Tは、主軸Sに対してX軸周りに角度θだけ傾けるためのアングルヘッドAHに取り付けられている。この場合、座標変換情報は、回転座標系Crの回転中心であるX軸、および角度θを示す情報を含む。
 また、情報記憶部11は、座標変換情報を各工具Tに割り当てられた固有の識別情報に関連付けて記憶する。工具Tに割り当てられた固有の識別情報とは、例えば、各工具Tの工具番号である。情報記憶部11は、各工具Tに固有の識別情報に関連付けて工具種類を示す情報を記憶してもよい。
 図4は、情報記憶部11が記憶する情報の一例を示す図である。情報記憶部11は、工具番号に関連付けて、工具種類を示す情報および座標変換情報を記憶する。
 具体的に、工具番号11には、工具種類として「ドリル」、座標変換情報として「X:45」が関連付けて記憶されている。「X:45」は、回転座標系Crが基準座標系CcのX軸回りに45°回転したものであることを示す。換言すれば、工具Tが主軸Sの長手方向に対してX軸回りに45°回転した向きに取り付けられていることを示す。
 工具番号12には、工具種類として「タップ」、座標変換情報として「X:45」が関連付けて記憶されている。
 工具番号13には、工具種類として「エンドミル」、座標変換情報として「Null」が関連付けて記憶されている。「Null」は、回転座標系Crと基準座標系Ccとの間に差がなく、工具Tの長手方向が主軸Sの長手方向と平行に取り付けられていることを示す。
 座標変換情報は、例えば、ユーザにより、入力装置10から入力されて情報記憶部11に記憶される。
 ここで、図2の説明に戻る。
 実行指令生成部12は、情報記憶部11に記憶された座標変換情報に基づいて、識別情報ごとの座標変換の実行指令を生成する。例えば、情報記憶部11に図4に示す情報が記憶されている場合、実行指令生成部12は、工具番号11のドリルの移動経路を指令する座標値を、X軸回りに45°回転させる座標変換の実行指令「ROTX DEG=45.0」を生成する。言い換えれば、実行指令生成部12は、基準座標系Ccに対してX軸周りに45°回転した回転座標系Crにおける座標値を基準座標系Ccにおける座標値に変換する座標変換の実行指令を生成する。
 また、実行指令生成部12は、工具番号12のタップの移動経路を指令する座標値を、X軸回りに45°回転させる座標変換の実行指令「ROTX DEG=45.0」を生成する。
 一方、工具番号13には、座標変換情報「Null」が関連付けて記憶されている。そのため、実行指令生成部12は、工具番号13のエンドミルの移動経路を指令する座標値を、座標変換しない実行指令「DO NOTHING」を生成する。
 ここで、図2の説明に戻る。
 プログラム作成部13は、実行指令生成部12によって生成された座標変換の実行指令を含む座標変換プログラムを作成する。
 図5は、プログラム作成部13によって作成される座標変換プログラムの一例を示す図である。図5に示す座標変換プログラムは、図4に示す情報が情報記憶部11に記憶されている場合に生成される座標変換プログラムである。
 この座標変換プログラムでは、SWITCH文によって、識別情報に対応して実行される実行指令が規定されている。
 具体的に、工具番号11の工具に対しては、座標値をX軸回りに45°回転させる座標変換の実行指令が規定されている。工具番号12の工具に対しては、座標値をX軸回りに45°回転させる座標変換の実行指令が規定されている。工具番号13の工具に対しては、座標値の座標変換を行わない実行指令が規定されている。
 出力部14は、プログラム作成部13によって生成された座標変換プログラムを出力する。出力部14は、例えば、プログラム作成装置1にインターネット回線20を介して接続された工作機械21の数値制御装置22に座標変換プログラムを出力する。
 ここで、数値制御装置22について説明する。数値制御装置22は、加工プログラムに従って工作機械21の各軸を制御し、ワークの切削加工を行う装置である。
 図6は、数値制御装置22において実行される加工プログラムの一例を示す図である。
 第1行目の指令「M6 T11」は、工具番号11の工具Tへの工具交換指令である。
 第2行目の指令「G90」、および「G00 X0.0 Y0.0 Z10.0」はそれぞれ、アブソリュート指令、および工具Tの位置決め指令である。これらの指令は、基準座標系Ccにおける位置(0.0,0.0,10.0)に工具Tを位置決めする指令である。
 第3行目の指令「G68.1」、および「X0.0 Y-20.0 Z-20.0」はそれぞれ、座標変換指令、および基準座標系Ccの原点から回転座標系Crの原点への平行移動量を示している。この平行移動量は基準座標系Ccでの座標値で指定される。また、「G68.1」のみを指令した場合、平行移動量はないものとみなされる。すなわち、基準座標系Ccの原点と回転座標系Crの原点は一致する。座標変換指令は、座標変換がキャンセルされるまでの座標値を、基準座標系Ccにおける座標値に座標変換する指令である。つまり、座標変換指令と座標変換のキャンセル指令との間に書かれている座標値は、回転座標系Crにおける座標値であり、座標変換の実行指令によって基準座標系Ccにおける座標値に座標変換される。
 第4行目の指令「G00 X10.0 Y-20.0 Z5.0」は、位置決め指令である。この位置決め指令における座標値は、回転座標系Crにおける座標値である。
 第5行目の指令「M3 S1000」は主軸正転指令である。主軸正転指令は、主軸Sを回転数1,000[rpm]で正転させる指令である。
 第6行目の指令「G01 Z-20.0 F0.1」は、直線補間指令である。この直線補間指令は、Z:-20.0の位置まで0.1[mm/rev]の送り速度で工具Tを移動させる指令である。
 第9行目の指令「G69」は座標変換キャンセル指令である。この指令により座標変換がキャンセルされる。
 数値制御装置22は、加工プログラムからこれらの加工指令情報を取得する。
 次に、数値制御装置22がプログラム作成装置1からの座標変換プログラムを読み込み、さらに、加工プログラムが実行されたときの処理について説明する。
 例えば、数値制御装置22において図5に示す座標変換プログラムが読み込まれ、図6に示す加工プログラムが実行された場合、数値制御装置22は、工具番号11の工具Tの移動経路を示す座標値を座標変換プログラムに基づいて座標変換する。
 具体的に、数値制御装置22は、座標変換指令「G68.1」が読み込まれると、工具番号11の工具Tの位置決め指令における座標値(10.0,-20.0,5.0)、および直線補間指令における座標値(10.0,-20.0,-20.0)を実行指令「ROTX DEG=45.0」および基準座標系Ccの原点からの平行移動量「X0.0 Y-20.0 Z-20.0」に基づいて座標変換する。すなわち、数値制御装置22は、座標値(10.0,-20.0,5.0)、および座標値(10.0,-20.0,-20.0)をX軸回りに45°回転させ、かつ、X軸、Y軸、Z軸方向にそれぞれ0.0、-20.0、-20.0だけ平行移動させることによって、これらの座標値を回転座標系Crにおける座標値から基準座標系Ccにおける座標値に座標変換する。
 数値制御装置22は、例えば、座標変換プログラムに含まれる実行指令に基づいて、回転座標系Crにおける座標値を基準座標系Ccにおける座標値に座標変換するための座標変換行列を生成する。回転座標系Crが基準座標系Ccに対してX軸回りに角度θだけ回転した座標系である場合、数値制御装置22は、以下の数1式で示す座標変換行列R(θ)を加工プログラムで規定された座標値に乗算する。これにより、加工プログラムから取得された回転座標系Crにおける座標値を基準座標系Ccにおける座標値に変換することができる。
Figure JPOXMLDOC01-appb-M000001
 数値制御装置22は、基準座標系Ccにおける座標値に基づいて各軸の制御を行う。加工プログラムにおいて座標変換指令が規定されている場合、数値制御装置22は、座標変換された座標値に基づいて工具Tの移動を制御する。
 次に、座標変換プログラムが作成される際にプログラム作成装置1において実行される処理について説明する。
 図7は、座標変換プログラムが作成される際にプログラム作成装置1において実行される処理を示すフローチャートである。
 まず、実行指令生成部12は、情報記憶部11に記憶された座標変換情報を取得する(ステップSA01)。
 次に、実行指令生成部12は、取得した座標変換情報に基づいて識別情報ごとの座標変換の実行指令を生成する(ステップSA02)。
 次に、プログラム作成部13は、実行指令生成部12によって生成された識別情報ごとの座標変換の実行指令に基づいて座標変換プログラムを作成する(ステップSA03)。
 最後に、出力部14は、プログラム作成部13によって作成された座標変換プログラムを出力する。(ステップSA04)。
 以上説明したように、第1の実施形態のプログラム作成装置1は、回転座標系における座標値を基準座標系における座標値に座標変換するための座標変換情報を工具に割り当てられた識別情報に関連付けて記憶する情報記憶部11と、情報記憶部11に記憶された座標変換情報に基づいて、座標変換の実行指令を生成する実行指令生成部12と、実行指令生成部12によって生成された実行指令を含む座標変換プログラムを作成するプログラム作成部13と、を備える。
 したがって、加工プログラムに座標変換のための座標系の回転中心、回転方向、および回転量などの情報を書き込む必要がない。その結果、加工プログラムの可読性を高め、加工ミスを低減することができる。
 また、第1の実施形態のプログラム作成装置1では、座標変換情報は、回転座標系と基準座標系との差分を示す座標差分情報を含み、実行指令生成部12は、座標差分情報に基づいて実行指令を生成する。そのため、情報記憶部11に記憶させる情報を簡略化することができる。
[第2の実施形態]
 次に、第2の実施形態について図面を用いて説明する。なお、第1の実施形態と同じ構成については、説明を省略する。
 プログラム作成装置1は、図2に示すとおり、例えば、情報記憶部11と、実行指令生成部12と、プログラム作成部13と、出力部14とを備えている。
 情報記憶部11は、回転座標系Crにおける座標値を基準座標系Ccにおける座標値に変換するための座標変換情報を記憶する。座標変換情報は、基準方向情報と、切込方向情報とを含む。
 基準方向情報は、工具種類に応じて定められた基準となる加工方向を示す情報である。例えば、工具Tがバイトなどの旋削工具である場合、基準となる加工方向は、基準座標系Ccにおける-X方向である。
 切込方向情報は、工具Tの切り込み方向を示す情報である。例えば、旋削工具が基準座標系CcにおけるX-Z平面に略平行に取り付けられ、-X方向に向けて切り込みが行われる場合、旋削工具の切り込み方向は-X方向である。この場合、基準となる加工方向と工具Tの切り込み方向とは一致する。
 一方、旋削工具が基準座標系CcにおけるY-Z平面に略平行に取り付けられ、-Y方向に向けて切り込みが行われる場合、旋削工具の切り込み方向は-Y方向である。この場合、工具の切り込み方向は、基準となる加工方向をZ軸回りに90°回転させた方向となる。
 図8は、基準となる加工方向と切り込み方向を説明する図である。図8において、工具ホルダTHには旋削工具Ttが取り付けられている。この場合、基準となる加工方向は、基準座標系Ccにおける-X方向である。また、旋削工具Ttは基準座標系CcにおけるY-Z平面に対して略平行に取り付けられており、ワークの加工時に旋削工具Ttは-Y方向に向けて切り込む。したがって、旋削工具Ttの切り込み方向は、基準となる加工方向をZ軸回りに90°回転させた向きとなる。
 図9は、情報記憶部11が記憶する情報の一例を示す図である。情報記憶部11には、工具番号に関連付けて、工具種類を示す情報、基準方向情報、および切込方向情報が記憶されている。
 具体的に、工具番号121には、工具種類として「旋削」、基準方向情報として「-X」、切込方向情報として「Null」が関連付けて記憶されている。この場合、工具Tの切込方向は、基準となる加工方向と同じ-X方向である。
 工具番号122には、工具種類として「旋削」、基準方向情報として「-X」、切込方向情報として「-Y」が関連付けて記憶されている。この場合、工具Tは、基準座標系CcにおけるY-Z平面に略平行に取り付けられ、かつ、-Y方向に向けて切り込みが行われる。
 工具番号123には、工具種類として「ねじ切り」、基準方向情報として「-X」、切込方向情報として「Null」が関連付けて記憶されている。この場合、ねじ切り工具の切り込み方向は、基準となる加工方向に一致する。
 実行指令生成部12(図2参照)は、情報記憶部11に記憶された基準方向情報が示す方向と、切込方向情報が示す方向との差に基づいて座標変換の実行指令を生成する。
 例えば、情報記憶部11に図9に示す情報が記憶されている場合、実行指令生成部12は、工具番号122に関連付けられた基準方向情報「-X」および切込方向情報「-Y」に基づいて座標変換の実行指令を生成する。ここで、工具番号122の旋削工具Ttの切り込み方向と、基準となる加工方向との差は、Z軸回りにおいて90°である。この場合、回転座標系Crは基準座標系CcをZ軸回りに90°回転させた座標系である。したがって、実行指令生成部12は、工具番号122の旋削工具Ttの移動経路を指令する座標値を、Z軸回りに90°回転させる座標変換の実行指令「ROTZ DEG=90.0」を生成する。言い換えれば、実行指令生成部12は、基準座標系Ccに対してZ軸周りに90°回転した回転座標系Crにおける座標値を基準座標系Ccにおける座標値に変換する座標変換の実行指令を生成する。
 また、工具番号121の旋削工具Ttおよび工具番号123のねじ切り工具の切込方向情報は「Null」であるため、実行指令生成部12は、工具番号121の旋削工具Ttおよび工具番号123のねじ切り工具の移動経路を指令する座標値を座標変換しない実行指令「DO NOTHING」を生成する。
 プログラム作成部13は、実行指令生成部12によって識別情報ごとに生成された座標変換の実行指令を含むプログラムを生成する。
 出力部14は、プログラム作成部13によって生成された座標変換プログラムを出力する。出力部14は、例えば、プログラム作成装置1にインターネット回線を介して接続された数値制御装置22に座標変換プログラムを出力する。
 以上説明したように、第2の実施形態のプログラム作成装置1では、座標変換情報は、識別情報ごとに設定される工具Tの基準となる加工方向を示す基準方向情報と、工具Tの切り込み方向を示す切込方向情報とを含み、実行指令生成部12は、基準方向情報が示す方向と、切込方向情報が示す方向との差に基づいて実行指令を生成する。
 したがって、加工プログラムに座標変換のための座標系の回転中心、回転方向、および回転量などの情報を書き込む必要がない。その結果、加工プログラムの可読性を高め、加工ミスを低減することができる。
[第3の実施形態]
 次に、第3の実施形態について図面を用いて説明する。なお、第1の実施形態と同じ構成については、説明を省略する。
 プログラム作成装置1は、図2に示すとおり、例えば、情報記憶部11と、実行指令生成部12と、プログラム作成部13と、出力部14とを備えている。
 情報記憶部11は、回転座標系Crにおける座標値を基準座標系Ccにおける座標値に変換するための座標変換情報を記憶する。座標変換情報は、基準座標系Ccと回転座標系Crとの差分を示す座標差分情報を含む。
 座標差分情報は、例えば、回転座標系Crの回転中心を示す情報、および回転角度を示す情報を含む。また、座標差分情報は、回転座標系Crの回転中心を示す情報、および回転角度を示す情報を工具Tの切削開始時の位置を示す位置情報に対応させて定めることができる。
 例えば、旋削工具の位置を示す位置情報がY>0.0である場合、座標差分情報はZ:90である。位置情報がY>0.0である場合とは、例えば図10に示すように、旋削工具Ttが切削開始時に基準座標系CcのY-Z平面における+Y側に位置決めされた場合である。この場合、工具Tの切り込み方向は-Y方向となる。
 一方、旋削工具の位置を示す位置情報がY<0.0である場合、座標差分情報はZ:270である。位置情報がY<0.0である場合とは、例えば図11に示すように、旋削工具Ttが切削開始時に基準座標系CcのY-Z平面における-Y側に位置決めされた場合である。この場合、工具Tの切り込み方向は+Y方向となる。
 図12は、情報記憶部11が記憶する情報の一例を示す図である。情報記憶部11には、工具番号に関連付けて、工具種類を示す情報、および座標差分情報が記憶される。
 具体的には、工具番号131には、工具種類として「旋削」、座標差分情報として「Null」が関連付けて記憶されている。この場合、工具番号131の工具Tの移動経路を指令する座標値の座標変換は行われない。
 工具番号132には、工具種類として「旋削」、工具差分情報として「IF Y> 0.0」、「THEN Z:90」、「ELSE Z:270」が関連付けて記憶されている。つまり、工具Tの位置情報がY>0.0である場合は、基準座標系Ccに対してZ軸回りに90°した回転座標系Crが設定される。また、工具の位置情報がY<0.0である場合は、基準座標系Ccに対してZ軸回りに270°した回転座標系Crが設定される。
 工具番号133には、工具種類として「ねじ切り」、工具変換情報として「Null」が関連付けて記憶されている。
 実行指令生成部12(図2参照)は、情報記憶部11に記憶された座標変換情報に基づいて、識別情報ごとの座標変換の実行指令を生成する。例えば、情報記憶部11に図12に示す情報が記憶されている場合、実行指令生成部12は、工具番号131の旋削工具の移動経路を指令する座標値を座標変換しない実行指令「DO NOTHING」を生成する。
 また、実行指令生成部12は、工具番号132の旋削の移動経路を指令する座標値を、工具が位置決めされる位置に応じて、Z軸回りに90°回転させる実行指令「ROTZ DEG=90.0」またはZ軸回りに270°回転させる実行指令「ROTZ DEG=270.0」を生成する。
 また、実行指令生成部12は、工具番号133のねじ切りの移動経路を指令する座標値を座標変換しない実行指令「DO NOTHING」を生成する。
 プログラム作成部13は、実行指令生成部12によって識別情報ごとに生成された座標変換の実行指令を含むプログラムを生成する。
 図13は、プログラム作成部13によって生成される座標変換プログラムの一例を示す図である。図13に示す座標変換プログラムは、図12に示す情報が情報記憶部11に記憶されている場合に生成される座標変換プログラムである。この座標変換プログラムでは、SWITCH文によって、識別情報に対応して実行される実行指令が規定されている。
 具体的に、工具番号131の工具の移動経路を指令する座標値に対しては座標変換を行わないことが規定されている。
 また、工具番号132の工具に対しては、工具Tが基準座標系Ccにおける+Y側に位置決めされる場合は、座標値をZ軸回りに90°回転させ、工具が基準座標系Ccにおける-Y側に位置決めされる場合は、座標値をZ軸回りに-270°回転させることが規定されている。
 また、工具番号132の工具の移動経路を指令する座標値に対しては、座標変換を行わないことが規定されている。
 出力部14は、プログラム作成部13によって生成された座標変換プログラムを出力する。出力部14は、例えば、プログラム作成装置1にインターネット回線を介して接続された数値制御装置22に座標変換プログラムを出力する。
 例えば、数値制御装置22において図13に示す座標変換プログラムが読み込まれ、図14に示す加工プログラムが実行された場合、数値制御装置22は、工具番号132の工具Tの移動経路を示す座標値を座標変換プログラムに基づいて座標変換する。
 具体的に、数値制御装置22は、座標変換指令「G68.1」が読み込まれると、工具Tの位置を示す位置情報に基づいて、位置決め指令および直線補間指令における座標値の座標変換を行う。ここで、座標変換指令が読み込まれたとき、工具Tは+Y側に位置決めされている。つまり、位置情報は、Y>0.0である。そのため、数値制御装置22は、実行指令「ROTZ DEG=90.0」に基づいて、工具番号132の工具の移動経路を示す座標値の座標変換を行う。すなわち、数値制御装置22は、工具番号132の工具の移動経路を示す座標値をZ軸回りに90°回転させることによって、これらの座標値を回転座標系Crにおける座標値から基準座標系Ccにおける座標値に座標変換する。
[規則91に基づく訂正 05.12.2022] 
 以上説明したように、第3の実施形態のプログラム作成装置1では、座標変換情報は、回転座標系と基準座標系との差分を示す座標差分情報を含み、座標差分情報は、工具の位置を示す位置情報ごとに定められている。
 したがって、加工プログラムに座標変換のための座標系に係る情報を書き込む必要がない。その結果、加工プログラムの可読性を高め、加工ミスを低減することができる。
 なお、上述した第1~3の実施形態では、プログラム作成装置1がPCに実装された例について説明したが、プログラム作成装置1は、工作機械21の数値制御装置22に実装されてもよい。また、上述した第1~3の実施形態における各構成は、適宜、組み合わせてもよい。
  1        プログラム作成装置
  2        CPU
  3        バス
  4        ROM
  5        RAM
  6        不揮発性メモリ
  7        第1のインタフェース
  8        第2のインタフェース
  9        表示装置
  10       入力装置
  11       情報記憶部
  12       実行指令生成部
  13       プログラム作成部
  14       出力部
  20       インターネット回線
  21       工作機械
  22       数値制御装置
  AH       アングルヘッド
  Cc       基準座標系
  Cr       回転座標系
  S        主軸
  TB       テーブル
  T        工具
  Tt       旋削工具
  TH       工具ホルダ

Claims (5)

  1.  回転座標系における座標値を基準座標系における座標値に座標変換するための座標変換情報を工具に割り当てられた識別情報に関連付けて記憶する情報記憶部と、
     前記識別情報に関連付けて記憶された前記座標変換情報に基づいて、前記座標変換の実行指令を生成する実行指令生成部と、
     前記実行指令生成部によって生成された前記実行指令を含む座標変換プログラムを作成するプログラム作成部と、
    を備えるプログラム作成装置。
  2.  前記座標変換情報は、前記回転座標系と前記基準座標系との差分を示す座標差分情報を含む請求項1に記載のプログラム作成装置。
  3.  前記座標変換情報は、前記識別情報ごとに設定される前記工具の基準となる加工方向を示す基準方向情報と、前記工具の切り込み方向を示す切込方向情報とを含む請求項1に記載のプログラム作成装置。
  4.  前記座標変換情報は、前記回転座標系と前記基準座標系との差分を示す座標差分情報を含み、前記座標差分情報は、前記工具の位置を示す位置情報ごとに定められている請求項1に記載のプログラム作成装置。
  5.  請求項1~4のいずれか1項に記載されたプログラム作成装置を備える工作機械。
PCT/JP2021/035830 2020-10-05 2021-09-29 プログラム作成装置、および工作機械 WO2022075142A1 (ja)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US18/245,718 US20230359166A1 (en) 2020-10-05 2021-09-29 Programming device and machine tool
CN202180066741.8A CN116261695A (zh) 2020-10-05 2021-09-29 程序生成装置以及机床
JP2022555396A JP7522215B2 (ja) 2020-10-05 2021-09-29 プログラム作成装置、および工作機械
DE112021005250.0T DE112021005250T5 (de) 2020-10-05 2021-09-29 Programmiervorrichtung und Werkzeugmaschine

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2020-168586 2020-10-05
JP2020168586 2020-10-05

Publications (2)

Publication Number Publication Date
WO2022075142A1 WO2022075142A1 (ja) 2022-04-14
WO2022075142A9 true WO2022075142A9 (ja) 2023-03-16

Family

ID=81125824

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2021/035830 WO2022075142A1 (ja) 2020-10-05 2021-09-29 プログラム作成装置、および工作機械

Country Status (5)

Country Link
US (1) US20230359166A1 (ja)
JP (1) JP7522215B2 (ja)
CN (1) CN116261695A (ja)
DE (1) DE112021005250T5 (ja)
WO (1) WO2022075142A1 (ja)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0736526A (ja) * 1993-07-19 1995-02-07 Nachi Fujikoshi Corp 数値制御装置
JP3269604B2 (ja) 1996-12-05 2002-03-25 鹿島建設株式会社 鉄筋の配筋構造、中間帯鉄筋の配筋方法
JP4503659B2 (ja) * 2008-06-11 2010-07-14 ファナック株式会社 座標変換工具位相制御用数値制御装置
JP6150903B2 (ja) 2013-12-27 2017-06-21 株式会社牧野フライス製作所 加工情報管理装置および工具経路生成装置

Also Published As

Publication number Publication date
CN116261695A (zh) 2023-06-13
JPWO2022075142A1 (ja) 2022-04-14
US20230359166A1 (en) 2023-11-09
JP7522215B2 (ja) 2024-07-24
WO2022075142A1 (ja) 2022-04-14
DE112021005250T5 (de) 2023-08-03

Similar Documents

Publication Publication Date Title
CN113260931B (zh) 数控装置及数控方法
US9459616B2 (en) Universal conversational programming for machine tool systems
CN102681483B (zh) 一种自动补偿温度形变和刀具形偏的坐标系系统
JP5220183B2 (ja) 数値制御装置および当該数値制御装置の制御方法
US20190271965A1 (en) Numerical controller and numerical control method
US10684609B2 (en) Program code generating method for tilted plane machining by multi-axis machine tool and device thereof
JP7022260B1 (ja) 数値制御システム
WO2022075142A9 (ja) プログラム作成装置、および工作機械
JP2002187003A (ja) 切削工機の制御装置及びその表示方法
US4737919A (en) Numerical control sequential translator
TWI684841B (zh) 加工傾斜平面的多軸工具機的程式碼產生方法及其裝置
JP4531297B2 (ja) 6軸制御ncプログラム生成方法及び生成装置、並びに6軸制御ncプログラム生成プログラム及びこのプログラムを記憶したコンピュータ読み取り可能な記録媒体
WO2022075141A1 (ja) 数値制御装置、および工作機械
JP2000141164A (ja) 数値制御方法および装置
JP7218459B1 (ja) 情報処理装置、工作機械および情報処理プログラム
WO2022102578A1 (ja) 数値制御装置、及び数値制御システム
JP2016038674A (ja) 工作機械の補正値演算方法及び補正値演算プログラム
CN101893874B (zh) 四轴加工机用数值控制装置
JP7114209B1 (ja) 情報処理装置および情報処理プログラム
WO2022004651A1 (ja) 数値制御システム
WO2024047698A1 (ja) 処理装置、プログラム及び処理方法
WO2022004647A1 (ja) 数値制御システム
JP6641543B1 (ja) 数値制御装置
WO2022215476A1 (ja) 情報処理装置および情報処理プログラム
JP3568173B2 (ja) 数値制御工作機械における座標データ指定形式の切換方法

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

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022555396

Country of ref document: JP

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 21877443

Country of ref document: EP

Kind code of ref document: A1