Coordinate system conversion method of right-angle milling head, machine tool device, electronic equipment and medium
Through the coordinate system conversion method, the problem of complex processing program control and limited angle of the right-angle milling head is solved, processing at non-fixed angles is realized, and processing efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202410945441.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-01
AI Technical Summary
The existing right-angle milling head is complicated in processing program control, especially when controlled by macro program, it can only process at a fixed angle, which limits its application, makes it difficult to achieve bevel processing, and increases the difficulty of operation and processing time.
By rotating the initial coordinate system 90 degrees clockwise around the first axis, and then rotating it counterclockwise around the third axis by a specific rotation angle, the transformation coordinate system is obtained, realizing the coordinate system transformation of the right-angle milling head, simplifying the processing control process, and converting the angle Stored in system parameters.
It reduces the control difficulty of bevel processing, improves processing accuracy and efficiency, and allows right-angle milling heads to process at non-fixed angles to meet a wider range of machining needs.
Smart Images

Figure CN118720848A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of numerical control machine tool control, and in particular to a coordinate system conversion method of a right-angle milling head, a machine tool device, an electronic device and a medium. Background Art
[0002] In the field of mechanical processing, right-angle milling heads are an important machine tool accessory and are widely used in equipment such as machining centers and boring and milling machines. The main function of this accessory is to allow the tool rotation centerline of the machine tool to form a specific angle with the spindle rotation centerline, thereby achieving multi-angle processing of the workpiece. This feature makes the right-angle milling head play a pivotal role in the mechanical processing fields with high precision and high complexity requirements such as aviation, automobiles, and molds.
[0003] The introduction of right-angle milling heads not only significantly expands the processing range of machine tools without changing the basic structure of the machine tools, improves their processing adaptability, but also makes some processing processes that are difficult to achieve with traditional methods possible. In addition, by reducing the number of repeated clamping of workpieces, right-angle milling heads further improve processing accuracy and work efficiency, bringing significant technological innovation and benefit improvement to the mechanical processing industry.
[0004] However, in the existing right-angle milling head applications, despite its significant advantages, there are still challenges in the control of the machining program. Especially when combined with advanced technologies such as macro program control, the CNC machining center needs to control more complex machining programs after installing the right-angle milling head. The traditional practice is to still use the original machine tool coordinate system to control the machining program after the right-angle milling head is installed on the machine tool, which results in the right-angle milling head usually only being able to process at four fixed angles of 0°, 90°, 180°, and 270°. When bevel processing is required, the operator must recalculate the coordinate values, which not only increases the difficulty of control, but also reduces machining efficiency. Summary of the invention
[0005] As a key accessory of machine tools, right-angle milling heads are widely used in high-precision processing fields such as aviation, automobiles, and molds. It achieves multi-angle processing of workpieces by adjusting the angle between the tool and the spindle, significantly improving the processing range and adaptability of machine tools. However, in the current application of right-angle milling heads, the control program is complicated, especially when it comes to macro program control, and it can only process at fixed angles, which limits its application. Therefore, in view of the problems of complex processing control programs and limited processing angles in the existing right-angle milling head processing process, it is necessary to make technical improvements and innovations to simplify the processing control process, improve processing accuracy and efficiency, and meet a wider range of mechanical processing needs.
[0006] In view of this, the embodiments of the present disclosure provide a coordinate system conversion method of a right-angle milling head, a machine tool device, an electronic device and a medium, which at least partially solve the problems existing in the prior art.
[0007] In a first aspect, an embodiment of the present disclosure provides a coordinate system conversion method of a right-angle milling head, which includes:
[0008] The initial coordinate system is rotated 90° clockwise around the first axis of the initial coordinate system to obtain an intermediate coordinate system; the intermediate coordinate system is rotated counterclockwise around the third axis of the initial coordinate system by a specific rotation angle to obtain a transformed coordinate system; wherein, the first axis of the initial coordinate system is the moving direction of the workbench before the coordinate system is transformed; and the third axis of the initial coordinate system is the moving direction of the slide before the coordinate system is transformed.
[0009] According to a specific implementation of the embodiment of the present disclosure, the specific rotation angle is the angle of the right-angle milling head in the intermediate coordinate system minus 90 degrees.
[0010] According to a specific implementation method of an embodiment of the present disclosure, the method for executing the coordinate system conversion of the right-angle milling head includes the following steps: setting system-related parameters; completing the rotation program of the right-angle milling head; completing the coordinate system conversion program of the right-angle milling head; executing the rotation program of the right-angle milling head and the coordinate system conversion program of the right-angle milling head, completing the rotation of the right-angle milling head and the coordinate system conversion of the right-angle milling head; constructing and executing the machining program under the new coordinate system.
[0011] According to a specific implementation of the embodiment of the present disclosure, the setting of system related parameters includes:
[0012] Set system parameters according to the mechanical structure of the machine tool.
[0013] According to a specific implementation method of the embodiment of the present disclosure, the completion of the right-angle milling head rotation program includes: setting a right-angle milling head rotation program calling code; and writing the right-angle milling head rotation program.
[0014] According to a specific implementation method of the embodiment of the present disclosure, the coordinate system conversion program of the right-angle milling head is completed, including: setting a right-angle milling head coordinate conversion program calling code; and writing a right-angle milling head coordinate conversion program.
[0015] According to a specific implementation method of an embodiment of the present disclosure, the execution of the rotation program of the right-angle milling head and the coordinate system conversion program of the right-angle milling head completes the rotation of the right-angle milling head and the coordinate system conversion of the right-angle milling head, including: storing the angle value of the right-angle milling head after the rotation is completed into the system's macro program; saving the specific rotation angle into the system parameters.
[0016] In a second aspect, an embodiment of the present disclosure provides a machine tool device, comprising:
[0017] A ram, a slide, a right-angle milling head and a worktable; before the coordinate system conversion, the moving direction of the worktable is the first axis, the moving direction of the slide is the second axis, the moving direction of the ram is the third axis, and the indexing rotation axis of the right-angle milling head is the fourth axis; the coordinate system of the machine tool device is converted using the coordinate system conversion method of the right-angle milling head described in any one of the first aspects; after the coordinate system conversion, the third axis is the axis direction of the main shaft of the right-angle milling head, the second axis is the moving direction of the ram, and the first axis is perpendicular to the third axis.
[0018] In a third aspect, an embodiment of the present disclosure provides an electronic device, the electronic device comprising:
[0019] at least one processor; and,
[0020] a memory communicatively connected to the at least one processor; wherein,
[0021] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned coordinate system conversion method of the right-angle milling head.
[0022] In a fourth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium, which stores computer instructions for causing the computer to execute the above-mentioned coordinate system conversion method of the right-angle milling head.
[0023] In summary, compared with the prior art, this embodiment has the following advantages: low cost, convenient programming, good stability, and high accuracy. The coordinate system can be automatically converted according to the current angle of the right-angle milling head. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific implementation methods and drawings. Here, the exemplary implementation methods of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0025] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0026] Figure 1 A schematic diagram of a machine tool device provided in an embodiment of the present application;
[0027] Figure 2 A flow chart of a coordinate conversion method for a right-angle milling head of a machine tool provided in an embodiment of the present application;
[0028] Figure 3 A schematic diagram of a right-angle milling head indexing program for a machine tool provided in an embodiment of the present application;
[0029] Figure 4 A schematic diagram of a coordinate conversion process of a right-angle milling head of a machine tool provided in an embodiment of the present application;
[0030] Figure 5 A schematic diagram of a coordinate system rotation program for a right-angle milling head of a machine tool provided in an embodiment of the present application;
[0031] Figure 6 A schematic diagram of a simulation program of a right-angle milling head for a machine tool provided in an embodiment of the present application;
[0032] Figure 7 An exemplary structural diagram of a device capable of implementing the method according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0033] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0034] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0035] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.
[0036] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0037] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.
[0038] First, the right-angle milling head control method in the related art is introduced. In some related technical embodiments, a workpiece bevel processing device is provided, which includes a rotatable worktable, and a fixture is provided on the worktable for clamping the workpiece. During the processing, when it is necessary to process the bevel of the workpiece, the worktable can be rotated by operating the control device, thereby driving the workpiece to rotate to the required angle. Then, the processing operation is performed on the workpiece by the right-angle milling head of the machine tool (such as a tool, a grinder, etc.). During the processing, the attachment head always remains at a position of 0 degrees, 90 degrees, 180 degrees or 270 degrees to ensure processing accuracy and efficiency.
[0039] The worktable is designed to be round or square, with a rotating mechanism at the bottom, which can be rotated by motor or manual operation. The fixture is designed to be adjustable to accommodate workpieces of different sizes and shapes. The control device includes a rotation control button and a display screen. The operator can control the rotation angle of the worktable through the button and view the angle value in real time on the display screen. The right-angle milling head can be replaced according to processing requirements, such as cutting tools, grinding tools, etc. However, in order to realize the rotary processing function of the machine tool, an independent turntable mechanism and its matching electrical control system need to be introduced. The design of the turntable mechanism needs to ensure compatibility and stability with the existing machine tools. However, the installation of the turntable is not free of cost. First, additional cost investment is required to purchase the turntable mechanism and its control system; second, since the turntable occupies a part of the working space of the machine tool, the installation will directly affect the original processing range of the machine tool, which means that when processing workpieces of different sizes, it may be necessary to frequently disassemble and reinstall the turntable mechanism to adapt to different processing requirements.
[0040] In some other embodiments of the related art, a method for processing the inclined surface of a workpiece based on the calculation of spatial coordinate values is provided. The method calculates the spatial coordinate values of the workpiece and writes a control program to achieve precise processing of the inclined surface of the workpiece. Specifically, first, the basic processing parameters are determined according to the inclined surface processing size of the workpiece and the required inclination angle. According to trigonometric functions (such as sine, cosine, tangent, etc.), the amount that the machine tool needs to move on the X-axis (first axis) and the Y-axis (second axis) is calculated. These coordinate values reflect the specific position of the inclined surface of the workpiece in three-dimensional space. According to the calculated X-axis and Y-axis coordinate values, a control program is written. The control program will guide the machine tool to move accurately to the specified coordinate position during the processing process.
[0041] Then place the workpiece on the worktable of the machine tool and start the processing program. The machine tool will move to the corresponding position according to the coordinate values in the program and use a cutter or other processing tools to bevel the workpiece.
[0042] However, this method usually requires calculating the precise coordinate values of the workpiece in three-dimensional space based on the machining angle to determine the exact distance the machine tool needs to move on the X and Y coordinate axes. This calculation process relies on the application of trigonometric functions to ensure machining precision and accuracy. However, when the machining shape becomes complex, the amount of trigonometric calculations involved will increase significantly, which increases the difficulty and workload of writing control programs.
[0043] In particular, when the right-angle milling head of the machine tool is at a non-standard angle (i.e., not 0°, 90°, 180°, 270°), the traditional processing methods will be severely limited because the processing plane cannot be directly defined. In this case, arc processing and boring and tapping processing functions are almost impossible to achieve, because these processing operations require the machine tool to move accurately along a predetermined trajectory, and the introduction of complex angles will break the continuity and accuracy of this trajectory.
[0044] To sum up, the existing right-angle milling head processing process has problems such as complex processing control procedures and limited processing angles. It is necessary to make technical improvements and innovations to simplify the processing control process, improve processing accuracy and efficiency, and meet a wider range of mechanical processing needs.
[0045] See also Figure 1 , Figure 1 A schematic diagram of a machine tool device provided in an embodiment of the present application. Figure 1 The machine tool device shown includes: a ram 101, a slide 102, a right-angle milling head 103 and a workbench 104. Among them, the ram 101 is an important component in the mechanical device, which is used in conjunction with the guide rail to achieve high-precision linear motion. The ram plays the role of providing a stable and accurate linear displacement trajectory in the mechanical device. Through precise cooperation with the guide rail, the ram can ensure that the parts maintain a high degree of stability and accuracy during movement, which is crucial for high-precision machining and assembly processes. The slide 102, also known as the slide plate, is a platform for supporting and moving working parts in the mechanical device. The slide plays the role of carrying and transmitting working parts in the mechanical device. It can ensure the stability and accuracy of the working parts during movement, so that tasks such as processing, assembly or inspection can be completed efficiently and accurately. In addition, the slide can also be adjusted quickly and stably according to needs to meet the needs of different work scenarios. The right-angle milling head 103 is a key component in the mechanical device for changing the direction of movement. The right-angle milling head is used to achieve the conversion of working parts in the horizontal and vertical directions. Through precise design and manufacturing, the right-angle milling head can ensure the accuracy and stability of the motion trajectory during the conversion process, so that the working parts can be operated efficiently and accurately in different directions. This is of great significance for mechanical devices that require complex motion control. The workbench 104 is a platform for placing and fixing the working parts in the mechanical device. The workbench is an indispensable component of the mechanical device, which provides a stable and reliable working environment. By placing the working parts on the workbench, it can be ensured that the working parts can maintain a fixed position and posture during tasks such as processing, assembly or testing, thereby improving work efficiency and processing quality. In addition, the workbench can also be adjusted and positioned as needed to adapt to working parts of different sizes and shapes.
[0046] It should be noted that the accessory head in the machine tool device can be other types of accessory heads. The embodiment of the present application uses a right-angle milling head as an example for schematic illustration, but the embodiment of the present application does not specifically limit the type of accessory head.
[0047] The following is an introduction to the coordinate conversion method of the right-angle milling head of a machine tool provided in the embodiment of the present application. Figure 2 , Figure 2 A flow chart of a coordinate conversion method for a right-angle milling head of a machine tool provided in an embodiment of the present application can be executed by an electronic device, in particular, by one or more processors in the electronic device to implement the following steps:
[0048] S201, setting system related parameters.
[0049] Specifically, according to the mechanical structure of the machine tool, the relevant parameters of the system are set according to Table (1). Table (1) is the system parameter setting table:
[0050] Table (1)
[0051]
[0052] It should be noted that the setting values in Table (1) are set based on the mechanical structure of the machine tool and actual needs to ensure that the machine tool can perform efficient and accurate processing operations according to the predetermined trajectory and angle during operation. However, the present application embodiment does not impose any specific restrictions on the setting values.
[0053] S202, complete the rotation procedure of the right-angle milling head.
[0054] Specifically, the rotation of the right-angle milling head can be controlled by a program. First, set the right-angle milling head rotation program call code. For example, set the parameter 6081 value to 71, and define the right-angle milling head rotation program O9021 call code as M71. You can define and write a program to call the right-angle milling head rotation program when needed. This program can be used as a trigger mechanism to ensure that the rotation process is started at the right time and under the right conditions. Next, you need to write a detailed rotation control program for the right-angle milling head. The program should contain the necessary logic and instructions to ensure that the milling head can accurately rotate from the current position to the specified angle. After the rotation program is completed, in order to ensure that the system knows the current angle of the right-angle milling head, this angle value needs to be stored in the system's macro program. In this way, the system can reference this value in subsequent operations for more precise control or judgment. See Figure 3 , Figure 3 A schematic diagram of a right-angle milling head indexing program for a machine tool provided in an embodiment of the present application. Figure 3 As shown, the procedure can be as follows:
[0055] The O9021 procedure is as follows:
[0056] G28C0 (C axis returns to 0)
[0057] G04X1.(Wait for 1 second)
[0058] G53G90C[#984] (C axis rotates to the previous command input angle)
[0059] G04X1.(Wait for 1 second)
[0060] M80 (Release the right-angle milling head locking mechanism)
[0061] G53G90C[#3] (C axis rotates to the command input angle)
[0062] G04X1.(Wait for 1 second)
[0063] M81 (right angle milling head locking)
[0064] #984=#3 (store the command input angle into system variable #984)
[0065] M99 (Exit macro program).
[0066] Finally, configure the call instruction of the right-angle milling head rotation program, and set a specific code or instruction to trigger the right-angle milling head rotation program when needed. For example, set the value of parameter 6082 to 72: In the parameter setting of the system or controller, find the parameter item numbered 6082 and set its value to 72. Define the call code of the right-angle milling head rotation program O9022 as M72. Assign a call code M72 to the right-angle milling head rotation program (numbered O9022). In other words, when the M72 code is encountered in the program, the system will execute the right-angle milling head rotation program numbered O9022.
[0067] S203, completing the coordinate system conversion program of the right-angle milling head.
[0068] Specifically, in the CNC system, when it is necessary to process an inclined surface, the system first detects the current right-angle milling head angle a. Then, according to a preset coordinate conversion algorithm, the system rotates the initial coordinate system twice to obtain a processing coordinate system that matches the current right-angle milling head angle. It should be noted that the embodiment of the present application uses the FANUC CNC system as an example for schematic illustration, but the embodiment of the present application does not specifically limit the CNC system used.
[0069] See also Figure 4 , Figure 4 A schematic diagram of a coordinate conversion process of a right-angle milling head of a machine tool provided in an embodiment of the present application. Figure 4As shown, in the first rotation, the system controls the machine tool to rotate the initial coordinate system 90 degrees clockwise around the X axis to obtain an intermediate coordinate system. In the second rotation, the system calculates the rotation angle (specific rotation angle) as a-90 degrees based on the current right-angle milling head angle a, and controls the machine tool to rotate the intermediate coordinate system a-90 degrees counterclockwise around the Z axis of the initial coordinate system to obtain the final conversion coordinate system.
[0070] It should be noted that in the conversion coordinate system, the Z axis is the axis direction of the right-angle milling head spindle, the Y axis is the direction of the ram movement, and the X axis is perpendicular to the Z axis. In this way, the system can automatically convert the initial coordinate system into a machining coordinate system that matches the current right-angle milling head angle, thereby greatly reducing the control difficulty during inclined surface machining and improving production efficiency.
[0071] The coordinate system rotation of the right-angle milling head can be controlled by the program. First, set the calling mechanism of the right-angle milling head coordinate system rotation program, and set a specific calling code or instruction to trigger the right-angle milling head coordinate system rotation program. This calling code will serve as the starting point for executing the coordinate system rotation operation. Then write the right-angle milling head coordinate system rotation program. The core function of this program is to automatically calculate the required rotation angle of the original coordinate system based on the current angle information, and store this calculation result in the corresponding parameters of the system. The program may first read the current right-angle milling head angle value or the data of the relevant sensor, and then perform mathematical operations based on these data to obtain the required rotation angle. Then, the program writes the calculated angle value into the parameters specified by the system, which may be used to control the rotation or transformation of the coordinate system. Therefore, it can be ensured that during the rotation of the right-angle milling head, the transformation of the coordinate system can be accurately followed, thereby ensuring processing accuracy and efficiency. See Figure 5 , Figure 5 A schematic diagram of a machine tool right-angle milling head coordinate system rotation program provided in an embodiment of the present application. Figure 5 As shown, write the right-angle milling head indexing program O9022. The main purpose of this program is to calculate and set system parameters according to the current C-axis angle to achieve the coordinate conversion of the right-angle milling head and update the coordinate system. The program can be as follows:
[0072] The O9022 program is written as follows:
[0073] #550 = [#984-90.] (define variable #550, the value is the current C-axis angle - 90 degrees)
[0074] #551=[#550]*1000 (define variable #551, value is #550*1000)
[0075] G10L52 (Open system parameter writing)
[0076] N19685R[#551] (Write the value in variable #551 into system parameter 19685)
[0077] G11 (Close system parameter writing)
[0078] G68.2P1X0Y0Z0I90.J0.K[#550] (perform three-dimensional coordinate conversion, the first time rotate 90 degrees around the X axis, the second time rotate around the Z axis #984-90 degrees)
[0079] G53.1 (tool axial control)
[0080] M99 (Exit macro program).
[0081] S204, executing the rotation program of the right-angle milling head and the coordinate system conversion program of the right-angle milling head to complete the rotation of the right-angle milling head and the coordinate system conversion of the right-angle milling head.
[0082] Specifically, the right-angle milling head indexing and right-angle milling head coordinate system rotation program is called to complete the right-angle milling head indexing and right-angle milling head coordinate system rotation. For example, execute a specific right-angle milling head indexing code M71C135, which will trigger the C-axis rotation mechanism to accurately rotate it to a position of 135 degrees. After the indexing is completed, the position of the right-angle milling head should be the same as Figure 1 The preset position of the right-angle milling head in the embodiment is matched to ensure the accuracy of subsequent processing or measurement. Next, the right-angle milling head indexing code M72 is executed. This code will start an automatic coordinate system rotation program, which will automatically adjust the coordinate system of the machine tool according to the current position and angle of the right-angle milling head. After the conversion is completed, the word "TWP" will be displayed in the lower right corner of the machine tool operation interface as a confirmation mark for the successful coordinate system conversion.
[0083] It should be noted that after the indexing program is completed, in order to ensure that the system can know the current angle of the right-angle milling head, this angle value needs to be stored in the system's macro program. When executing the right-angle milling head coordinate system rotation program, the core function of the program is to automatically calculate the required rotation angle (specific rotation angle) of the original coordinate system based on the current angle information, and store this calculation result in the corresponding system parameters.
[0084] It should also be noted that before the coordinate conversion, the moving direction of the worktable is the X-axis (first axis), the moving direction of the slide is the Y-axis (second axis), and the moving direction of the ram is the Z-axis (third axis). The indexing rotation axis of the right-angle milling head is the C-axis (fourth axis). After the conversion, the Z-axis is the axis direction of the right-angle milling head spindle, the Y-axis is the moving direction of the ram, and the X-axis is perpendicular to the Z-axis. The coordinate system directions before and after the conversion are as follows: Figure 1 The right-angle milling head coordinate conversion method provided in the embodiment of the present application greatly reduces the programming difficulty during inclined surface processing and improves production efficiency.
[0085] S205, constructing and executing a machining program in a new coordinate system.
[0086] Specifically, in order to perform machining operations in the new coordinate system, you first need to write a machining program based on the definition of the new coordinate system. This process includes determining the origin, direction, and any necessary offsets or rotations of the new coordinate system. Once the new coordinate system is determined, the next step is to write the corresponding machining program in the CNC programming software or machine tool control system. The program will include but is not limited to the tool path, cutting parameters, feed speed, and other necessary machining instructions in the new coordinate system. After the machining program is written, it can be loaded into the machine tool control system and prepared to perform the machining operation. During the machining process, the machine tool will accurately move the tool in the new coordinate system according to the instructions in the program to complete the predetermined machining task. See Figure 6 , Figure 6 A schematic diagram of a simulation program for a right-angle milling head of a machine tool provided in an embodiment of the present application. For example, by executing the G90 G01 Z200.F500 command, the machine tool moves the Z axis to the specified position 200.000 in the absolute new coordinate system. At the same time, the X and Y coordinates of the current mechanical coordinate system are 141.421 and -141.421, respectively, which indicates a successful conversion of the coordinate system. The machine tool has moved precisely according to the new coordinate system parameters.
[0087] In summary, compared with the prior art, the embodiment of the present application can automatically convert the initial coordinate system of the CNC machining center according to the current right-angle milling head angle. Before the conversion, the moving direction of the workbench is the X-axis, the moving direction of the slide is the Y-axis, and the moving direction of the ram is the Z-axis. The indexing rotation axis of the right-angle milling head is the C-axis. After the conversion, the Z-axis is the spindle axis direction of the right-angle milling head, the Y-axis is the moving direction of the ram, and the X-axis is perpendicular to the Z-axis, which can greatly reduce the programming difficulty during inclined surface processing and improve production efficiency.
[0088] An embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0089] at least one processor; and,
[0090] a memory communicatively connected to the at least one processor; wherein,
[0091] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the coordinate system conversion method of the right-angle milling head of any of the aforementioned embodiments.
[0092] The fourth embodiment of the present invention further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the coordinate system conversion method of the right-angle milling head described in any of the aforementioned embodiments.
[0093] The fifth embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the coordinate system conversion method of the right-angle milling head of any of the aforementioned embodiments.
[0094] The sixth embodiment of the present invention further provides a computer program, which includes program instructions. When the program instructions are executed by a computer, the computer executes the coordinate system conversion method of the right-angle milling head of any of the aforementioned embodiments.
[0095] Figure 7 A schematic diagram of a method or device 1000 that can implement an embodiment of the present invention is shown, which may include more or fewer devices than shown in the figure in some embodiments. In some embodiments, it can be implemented using a single or multiple devices. In some embodiments, it can be implemented using cloud or distributed devices.
[0096] like Figure 7 As shown, the device 1000 includes a processor 1001, which can perform various appropriate operations and processes according to the program and / or data stored in the read-only memory (ROM) 1002 or the program and / or data loaded from the storage part 1008 to the random access memory (RAM) 1003. Processor 1001 can be a multi-core processor or can include multiple processors. In some embodiments, processor 1001 can include a general main processor and one or more special coprocessors, such as a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), a digital signal processor (DSP), etc. In RAM 1003, various programs and data required for the operation of device 1000 are also stored. Processor 1001, ROM 1002 and RAM 1003 are connected to each other via bus 1004. Input / output (I / O) interface 1005 is also connected to bus 1004.
[0097] The processor and the memory are used together to execute the program stored in the memory. When the program is executed by the computer, the methods, steps or functions described in the above embodiments can be implemented.
[0098] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, a touch screen, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed. Figure 7 Only some components are schematically shown in the figure, which does not mean that the device 1000 only includes Figure 7 Components shown.
[0099] The systems, devices, modules or units described in the above embodiments may be implemented by a computer or its associated components. The computer may be, for example, a mobile terminal, a smart phone, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a personal digital assistant, a media player, a navigation device, a game console, a tablet computer, a wearable device, a smart TV, an Internet of Things system, a smart home, an industrial computer, a server or a combination thereof.
[0100] Although not shown, in an embodiment of the present invention, a computer-readable storage medium is provided, on which a computer program / instruction is stored, and when the computer program / instruction is executed by a processor, the coordinate system conversion method of the right-angle milling head described in Example 2 is implemented.
[0101] Storage media in embodiments of the present invention include permanent and non-permanent, removable and non-removable items that can be used to store information by any method or technology. Examples of storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0102] Although not shown, an embodiment of the present invention further provides a computer program product, including: a computer program / instruction, which implements the coordinate system conversion method of the right-angle milling head described in Example 2 when executed by a processor.
[0103] The methods, programs, systems, devices, etc. of the embodiments of the present invention may be executed or implemented in a single or multiple networked computers, or may be practiced in a distributed computing environment. In the embodiments of this specification, in these distributed computing environments, tasks may be performed by remote processing devices connected via a communication network.
[0104] Those skilled in the art should understand that the embodiments of the present specification may be provided as methods, systems or computer program products. Therefore, those skilled in the art may imagine that the functional modules / units or controllers and related method steps described in the above embodiments may be implemented in software, hardware or a combination of software / hardware.
[0105] Unless explicitly stated, the actions or steps of the methods, programs, and embodiments of the present invention do not have to be performed in a specific order and can still achieve the desired results. In some implementations, multitasking and parallel processing are also possible or may be advantageous.
[0106] In this article, multiple embodiments of the present invention are described, but for the sake of brevity, the description of each embodiment is not exhaustive, and the same or similar features or parts between the embodiments may be omitted. In this article, "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" are meant to be applicable to at least one embodiment or example according to the present invention, but not all embodiments. The above terms do not necessarily mean to refer to the same embodiment or example. In the absence of contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples.
[0107] The exemplary systems and methods of the present invention have been specifically shown and described with reference to the above embodiments, which are merely examples of the best modes for implementing the present systems and methods. It will be appreciated by those skilled in the art that various changes may be made to the embodiments of the systems and methods described herein when implementing the present systems and / or methods without departing from the spirit and scope of the present invention as defined in the appended claims.
Claims
1. A coordinate system conversion method for a right-angle milling head, characterized in that: include: Rotate the initial coordinate system 90° clockwise around the first axis of the initial coordinate system to obtain an intermediate coordinate system; The intermediate coordinate system is rotated counterclockwise around the third axis of the initial coordinate system by a specific rotation angle to obtain a transformed coordinate system; Wherein, the first axis of the initial coordinate system is the moving direction of the worktable before the coordinate system conversion; The third axis of the initial coordinate system is the moving direction of the ram before the coordinate system is transformed.
2. The coordinate system conversion method of a right-angle milling head according to claim 1, characterized in that: The specific rotation angle is the angle of the right-angle milling head in the intermediate coordinate system minus 90 degrees.
3. The coordinate system conversion method of a right-angle milling head according to claim 1, characterized in that: The coordinate system conversion method for executing the right-angle milling head comprises the following steps: Set system related parameters; Complete the indexing procedure of the right-angle milling head; Complete the coordinate system conversion program of the right-angle milling head; Executing the rotation program of the right-angle milling head and the coordinate system conversion program of the right-angle milling head to complete the rotation of the right-angle milling head and the coordinate system conversion of the right-angle milling head; Construct and execute the machining program in the new coordinate system.
4. The coordinate system conversion method of a right-angle milling head according to claim 2, characterized in that: The setting of system related parameters includes: Set system parameters according to the mechanical structure of the machine tool.
5. The coordinate system conversion method of a right-angle milling head according to claim 2, characterized in that: The method of completing the right-angle milling head transfer program includes: setting a right-angle milling head transfer program calling code; Write a right-angle milling head indexing program.
6. The coordinate system conversion method of a right-angle milling head according to claim 2, characterized in that: The coordinate system conversion program of the right-angle milling head is completed, including: setting a right-angle milling head coordinate conversion program calling code; Write a right-angle milling head coordinate conversion program.
7. The coordinate system conversion method of a right-angle milling head according to claim 2, characterized in that: The execution of the rotation program of the right-angle milling head and the coordinate system conversion program of the right-angle milling head completes the rotation of the right-angle milling head and the coordinate system conversion of the right-angle milling head, including: storing the angle value of the right-angle milling head after the rotation is completed into the system macro program; saving the specific rotation angle into the system parameters.
8. A machine tool device, characterized in that: include: Ram, slide, right angle milling head and work table; Before the coordinate system conversion, the moving direction of the workbench is the first axis, and the moving direction of the slide is the second axis. The moving direction of the ram is the third axis, and the indexing rotation axis of the right-angle milling head is the fourth axis; Using the coordinate system conversion method of a right-angle milling head according to any one of claims 1 to 7 to convert the coordinate system of the machine tool device; After the coordinate system is converted, the third axis is the direction of the main axis of the right-angle milling head, the second axis is the movement direction of the slide, and the first axis is perpendicular to the third axis.
9. An electronic device, characterized in that: The electronic device includes: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the coordinate system conversion method of the right-angle milling head described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the coordinate system conversion method of the right-angle milling head as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Universal workpiece coordinate system conversion method for rotating table of numerically-controlled machine tool
CN104741935A
Inclined hole machining method
CN112276571A
Method for machining coal cutter rocker arm inclined holes through coordinate system space rotation
CN112475403A
Pentahedron large-scale processing center
CN2644077Y
Machine tool and workpiece flattening method
US20180079009A1
Cited By
Error detection method, device and equipment of machine tool and storage medium
CN119407606A
