Side milling machining method and device for electrode, electronic equipment and machine tool
By using the fixture to determine the electrode height value and establish the workpiece coordinate system during electrode side milling, the problem of low efficiency in manually establishing the coordinate system is solved, automatic coordinate system establishment is achieved, and the electrode processing efficiency is improved.
Patent Information
- Application Number
- CN202410851124.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-08
AI Technical Summary
In existing electrode side milling processing, manually establishing the workpiece coordinate system is inefficient and the origin is not fixed, resulting in a complex processing process and low efficiency.
By determining the height value of the electrode blank when it is clamped by the fixture, establishing a workpiece coordinate system with the fixture as a reference, and generating compensation coordinate information and compensating it to the processing coordinate system, automatic coordinate system establishment is achieved and processing efficiency is improved.
The automatic coordinate system establishment for electrode processing is realized, the processing efficiency is improved, and the processing process is simplified.
Smart Images

Figure CN118744248A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to electrode processing technology, and more specifically, to a side milling processing method, device, electronic equipment and machine tool for an electrode. Background Art
[0002] Electrospark machining is an important type of machining. Electrodes, as the medium of discharge machining, can more easily produce complex shapes of various products with higher machining accuracy.
[0003] In the prior art, when processing electrodes, forward milling is usually used for processing and shaping. For processing areas that are difficult to achieve using forward milling, side milling can be used for processing. When side milling the electrode, for each electrode that needs side milling, it is necessary to manually establish a workpiece coordinate system based on the electrode itself. The relevant information of the electrode obtained in this coordinate system is used for subsequent side milling. On the one hand, this manual method of establishing a coordinate system affects the processing efficiency. On the other hand, since the origin of the workpiece coordinate system established each time is not a fixed origin, the origin will change based on different electrodes, which makes the entire processing process more complicated and the processing efficiency is low. Summary of the invention
[0004] An object of the present invention is to provide a new technical solution for a side milling method of an electrode.
[0005] According to a first aspect of the present invention, there is provided a side milling method of an electrode, comprising:
[0006] When the electrode blank is clamped in the fixture, determining the height of the electrode blank, wherein the height of the electrode blank is a dimension value along a direction perpendicular to the fixture end face starting from the center of the fixture end face, and the fixture end face is perpendicular to the machine tool;
[0007] A first workpiece coordinate system is established with the center of the fixture end face as the origin, a direction perpendicular to the fixture end face as the x-axis, and two directions perpendicular to each other on the plane where the fixture end face is located as the y-axis and the z-axis;
[0008] Generate compensation coordinate information in the first workpiece coordinate system based on the coordinate value of the x-axis corresponding to the height value, the coordinate value of 0 corresponding to the y-axis, and the coordinate value of 0 corresponding to the z-axis;
[0009] Compensating the compensation coordinate information in the first workpiece coordinate system to the processing coordinate information in the processing coordinate system to obtain compensated first processing coordinate information;
[0010] The electrode blank is subjected to side milling according to the compensated first machining coordinate information.
[0011] Optionally, compensating the compensated coordinate information in the first workpiece coordinate system to the coordinate information in the processing coordinate system to obtain the compensated processing coordinate information in the processing coordinate system includes:
[0012] The x-axis coordinate value in the compensation coordinate information in the first workpiece coordinate system is added to the x-axis coordinate value in the processing coordinate system to obtain the x-axis coordinate value in the processing coordinate system after compensation.
[0013] The y-axis coordinate value in the compensation coordinate information in the first workpiece coordinate system is added to the y-axis coordinate value in the processing coordinate system to obtain the y-axis coordinate value in the processing coordinate system after compensation.
[0014] And the z-axis coordinate value in the compensation coordinate information in the first workpiece coordinate system is added to the z-axis coordinate value in the processing coordinate system to obtain the compensated z-axis coordinate value in the processing coordinate system.
[0015] Optionally, before establishing the first workpiece coordinate system, the method further includes:
[0016] Determining a milling process type corresponding to the electrode blank, wherein the milling process type is one of forward milling and side milling;
[0017] The operation of establishing the first workpiece coordinate system is performed only when the milling processing type corresponding to the electrode blank is side milling.
[0018] Optionally, determining the milling processing type corresponding to the electrode blank includes:
[0019] Obtaining the identity information of the electrode blank, and a correspondence table between the identity information of the electrode blank and the milling processing type;
[0020] The milling processing type corresponding to the electrode blank is determined according to the identity information of the electrode blank and a correspondence table between the identity information of the electrode blank and the milling type.
[0021] Optionally, the method further includes:
[0022] In the case where the milling type corresponding to the electrode blank is forward milling, a second workpiece coordinate system is established with the center of the fixture end face as the origin, two directions perpendicular to each other on the plane where the fixture end face is located as the x-axis and the y-axis, and a direction perpendicular to the fixture end face as the z-axis, and the fixture end face is parallel to the machine tool;
[0023] Generate compensation coordinate information in the second workpiece coordinate system based on the coordinate value of the z-axis corresponding to the height value, the coordinate value of 0 corresponding to the x-axis, and the coordinate value of 0 corresponding to the y-axis;
[0024] Compensating the compensation coordinate information in the second workpiece coordinate system to the processing coordinate information in the processing coordinate system to obtain compensated second processing coordinate information;
[0025] According to the compensated second processing coordinate information, forward milling is performed on the electrode blank.
[0026] Optionally, determining the height value of the electrode blank includes:
[0027] A sensor is used to determine the height value of the electrode blank.
[0028] According to a second aspect of the present invention, there is provided a side milling processing device for an electrode, comprising:
[0029] A height value determination module is used to determine the height value of the electrode blank when the electrode blank is clamped in the fixture, wherein the height value of the electrode blank is a dimension value along a direction perpendicular to the fixture end face starting from the center of the fixture end face, and the fixture end face is perpendicular to the machine tool;
[0030] A workpiece coordinate system establishment module, used to establish a first workpiece coordinate system with the center of the fixture end face as the origin, a direction perpendicular to the fixture end face as the x-axis, and two directions perpendicular to each other on the plane where the fixture end face is located as the y-axis and the z-axis;
[0031] a compensation coordinate information generating module, for generating compensation coordinate information in the first workpiece coordinate system based on the coordinate value of the x-axis corresponding to the height value, the coordinate value of 0 corresponding to the y-axis, and the coordinate value of 0 corresponding to the z-axis;
[0032] a processing coordinate information determination module, used for compensating the compensation coordinate information in the first workpiece coordinate system to the processing coordinate information in the processing coordinate system, so as to obtain compensated first processing coordinate information;
[0033] A processing module is used to perform side milling on the electrode blank according to the compensated first processing coordinate information.
[0034] According to a third aspect of the present invention, there is provided an electronic device comprising a memory and a processor, wherein the memory stores a computer program for controlling the processor to operate to execute the side milling method of an electrode according to any one of the first aspect of the present invention.
[0035] According to a fourth aspect of the present invention, there is provided a machine tool comprising the electrode side milling processing device as described in the second aspect of the present invention or the electronic device as described in the third aspect.
[0036] The side milling processing method of the electrode provided by the present invention establishes a workpiece coordinate system using the fixture as a reference object, which can realize the automation of coordinate system establishment and further improve the electrode processing efficiency.
[0037] Features and advantages of the embodiments of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the specification and, together with the description, serve to explain the principles of the embodiments of the specification.
[0039] Figure 1 Detailed description is a process flow chart of a method for controlling lateral travel of a vehicle according to an embodiment of the present invention.
[0040] Figure 2 is a three-dimensional schematic diagram of a first workpiece coordinate system established according to an embodiment of the present invention.
[0041] Figure 3 is based on Figure 2 A top view of the first workpiece coordinate system is shown.
[0042] Figure 4 is based on Figure 2 A left view of the first workpiece coordinate system is shown.
[0043] Figure 5 It is a principle block diagram of a side milling processing device for an electrode according to an embodiment of the present invention.
[0044] Figure 6 FIG. 4 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] Various exemplary embodiments of the present specification will now be described in detail with reference to the accompanying drawings.
[0046] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the embodiments of the present specification and its application or uses.
[0047] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0048] In one embodiment of the present invention, a side milling method of an electrode is provided.
[0049] according to Figure 1As shown, a side milling method of an electrode in this embodiment may include the following steps S110 to S150.
[0050] Step S110, when the electrode blank is clamped in the fixture, determine the height value of the electrode blank, wherein the height value of the electrode blank is a dimension value along a direction perpendicular to the fixture end face with the center of the fixture end face as the starting point, and the fixture end face is perpendicular to the machine tool.
[0051] The fixture may be a chuck in which the electrode blank is clamped.
[0052] In some embodiments, a sensor is used to determine the height value of the electrode blank.
[0053] Step S120, establishing a first workpiece coordinate system with the center of the fixture end face as the origin, the direction perpendicular to the fixture end face as the x-axis, and two directions perpendicular to each other on the plane where the fixture end face is located as the y-axis and the z-axis.
[0054] The first workpiece coordinate system is the coordinate system used during programming, also known as the programming coordinate system. The origin of the first workpiece coordinate system is the set program zero point, for example, G54.
[0055] Figure 2 is a three-dimensional schematic diagram of a first workpiece coordinate system established according to an embodiment of the present invention. Figure 3 is based on Figure 2 A top view of the first workpiece coordinate system is shown. Figure 4 is based on Figure 2 A left view of the first workpiece coordinate system is shown.
[0056] See also Figure 2-4 The first workpiece coordinate system is established with the center of the fixture end face as the origin, the direction perpendicular to the fixture end face as the x-axis, and the two directions perpendicular to each other on the plane where the fixture end face is located as the y-axis and z-axis. It should be noted that Figure 2-4 The clamp is not shown.
[0057] Step S130 , based on the x-axis coordinate value corresponding to the height value, the y-axis coordinate value of 0, and the z-axis coordinate value of 0, generate compensation coordinate information in the first workpiece coordinate system.
[0058] Taking G54 corresponding to the side milling process as an example, the determination of the compensation coordinate information in the first workpiece coordinate system is specifically described. Add the coordinate value corresponding to the x-axis of G54 to the coordinate value of the x-axis corresponding to the height value to obtain the x-axis coordinate value in the compensation coordinate information in the first workpiece coordinate system. Add the coordinate value corresponding to the y-axis in G54 to the coordinate value corresponding to the y-axis of 0 to obtain the y-axis coordinate value in the compensation coordinate information in the first workpiece coordinate system. Add the coordinate value corresponding to the z-axis in G54 to the coordinate value corresponding to the z-axis of 0 to obtain the y-axis coordinate value in the compensation coordinate information in the first workpiece coordinate system.
[0059] Taking the determined height value of the electrode blank as 88.767 as an example, the compensation coordinate information generated in the first workpiece coordinate system is (88.767, 0, 0).
[0060] Step S140 , compensating the compensation coordinate information in the first workpiece coordinate system to the processing coordinate information in the processing coordinate system to obtain compensated first processing coordinate information.
[0061] In some embodiments, step S140 specifically includes: adding the x-axis coordinate value in the compensation coordinate information under the first workpiece coordinate system and the x-axis coordinate value in the processing coordinate system to obtain the compensated x-axis coordinate value in the processing coordinate system, adding the y-axis coordinate value in the compensation coordinate information under the first workpiece coordinate system and the y-axis coordinate value in the processing coordinate system to obtain the compensated y-axis coordinate value in the processing coordinate system, and adding the z-axis coordinate value in the compensation coordinate information under the first workpiece coordinate system and the z-axis coordinate value in the processing coordinate system to obtain the compensated z-axis coordinate value in the processing coordinate system.
[0062] It should be noted that the electrode processing is performed using the coordinate information in the processing coordinate system. Step S150: performing side milling processing on the electrode blank according to the compensated first processing coordinate information.
[0063] In the side milling processing method of an electrode provided by an embodiment of the present invention, a workpiece coordinate system is established with a fixture as a reference object, so that the establishment of the coordinate system can be automated, thereby improving the electrode processing efficiency.
[0064] In some embodiments, before establishing the first workpiece coordinate system, the method also includes: determining a milling processing type corresponding to the electrode blank, wherein the milling processing type is one of forward milling and side milling; and only when the milling processing type corresponding to the electrode blank is side milling, the operation of establishing the first workpiece coordinate system is performed.
[0065] In some embodiments, determining the milling processing type corresponding to the electrode blank specifically includes: obtaining the identity information of the electrode blank, and a correspondence table between the identity information of the electrode blank and the milling processing type; and determining the milling processing type corresponding to the electrode blank according to the identity information of the electrode blank, and the correspondence table between the identity information of the electrode blank and the milling processing type.
[0066] The correspondence table between the identity information of the electrode blank and the milling processing type is a pre-stored table and can be directly obtained.
[0067] In some embodiments, the method further includes the following steps S160 to S190.
[0068] Step S160, when the milling processing type corresponding to the electrode blank is forward milling, a second workpiece coordinate system is established with the center of the fixture end face as the origin, two directions perpendicular to each other on the plane where the fixture end face is located as the x-axis and y-axis, and the direction perpendicular to the fixture end face as the z-axis, and the fixture end face is parallel to the machine tool.
[0069] Step S170 , based on the coordinate value of the z-axis corresponding to the height value, the coordinate value of 0 corresponding to the x-axis, and the coordinate value of 0 corresponding to the y-axis, generate compensation coordinate information in the second workpiece coordinate system.
[0070] Taking G54 corresponding to the forward milling process as an example, the determination of the compensation coordinate information in the second workpiece coordinate system is specifically described. Add the coordinate value corresponding to the x-axis of G54 to the coordinate value corresponding to the x-axis which is 0, and obtain the x-axis coordinate value in the compensation coordinate information in the second workpiece coordinate system. Add the coordinate value corresponding to the y-axis in G54 to the coordinate value corresponding to the y-axis which is 0, and obtain the y-axis coordinate value in the compensation coordinate information in the second workpiece coordinate system. Add the coordinate value corresponding to the z-axis in G54 to the coordinate value corresponding to the z-axis of the height value, and obtain the z-axis coordinate value in the compensation coordinate information in the second workpiece coordinate system.
[0071] Taking the determined height value of the electrode blank as 88.767 as an example, the generated compensation coordinate information in the second workpiece coordinate system is (0, 0, 88.767).
[0072] Step S180 , compensating the compensation coordinate information in the second workpiece coordinate system to the processing coordinate information in the processing coordinate system to obtain compensated second processing coordinate information.
[0073] In some embodiments, step S180 specifically includes: adding the x-axis coordinate value in the compensation coordinate information in the second workpiece coordinate system and the x-axis coordinate value in the processing coordinate system to obtain the compensated x-axis coordinate value in the processing coordinate system, adding the y-axis coordinate value in the compensation coordinate information in the second workpiece coordinate system and the y-axis coordinate value in the processing coordinate system to obtain the compensated y-axis coordinate value in the processing coordinate system, and adding the z-axis coordinate value in the compensation coordinate information in the second workpiece coordinate system and the z-axis coordinate value in the processing coordinate system to obtain the compensated z-axis coordinate value in the processing coordinate system.
[0074] Step S190: performing forward milling on the electrode blank according to the compensated second processing coordinate information.
[0075] One embodiment of the present invention provides a side milling processing device for an electrode, such as Figure 5 The electrode side milling processing device 500 includes a height value determination module 510 , a first workpiece coordinate system establishment module 520 , a compensation coordinate information generation module 530 , a processing coordinate information determination module 540 and a processing module 550 .
[0076] The height value determination module 510 is used to determine the height value of the electrode blank when the electrode blank is clamped in the fixture, wherein the height value of the electrode blank is the dimension value along the direction perpendicular to the fixture end face starting from the center of the fixture end face, and the fixture end face is perpendicular to the machine tool.
[0077] The workpiece coordinate system establishment module 520 is used to establish a first workpiece coordinate system with the center of the fixture end face as the origin, the direction perpendicular to the fixture end face as the x-axis, and two directions perpendicular to each other on the plane where the fixture end face is located as the y-axis and the z-axis.
[0078] The compensation coordinate information generating module 530 is used to generate compensation coordinate information in the first workpiece coordinate system based on the coordinate value of the x-axis corresponding to the height value, the coordinate value of 0 corresponding to the y-axis and the coordinate value of 0 corresponding to the z-axis.
[0079] The processing coordinate information determining module 540 is used to compensate the compensation coordinate information in the first workpiece coordinate system to the processing coordinate information in the processing coordinate system to obtain compensated first processing coordinate information.
[0080] The processing module 550 is used to perform side milling processing on the electrode blank according to the compensated first processing coordinate information.
[0081] In some embodiments, the processing coordinate information determination module 540 is also used to add the x-axis coordinate value in the compensation coordinate information in the first workpiece coordinate system and the x-axis coordinate value in the processing coordinate system to obtain the compensated x-axis coordinate value in the processing coordinate system, add the y-axis coordinate value in the compensation coordinate information in the first workpiece coordinate system and the y-axis coordinate value in the processing coordinate system to obtain the compensated y-axis coordinate value in the processing coordinate system, and add the z-axis coordinate value in the compensation coordinate information in the first workpiece coordinate system and the z-axis coordinate value in the processing coordinate system to obtain the compensated z-axis coordinate value in the processing coordinate system.
[0082] In some embodiments, the electrode side milling processing device further includes a milling processing type determination module.
[0083] The milling type determination module is used to determine the milling type corresponding to the electrode blank, wherein the milling type is one of forward milling and side milling. When the milling type corresponding to the electrode blank is side milling, the workpiece coordinate system establishment module 520 performs the operation of establishing the first workpiece coordinate system.
[0084] In some embodiments, the milling processing type determination module is also used to obtain the identity information of the electrode blank, and the correspondence table between the identity information of the electrode blank and the milling processing type; and determine the milling processing type corresponding to the electrode blank according to the identity information of the electrode blank, and the correspondence table between the identity information of the electrode blank and the milling processing type.
[0085] In some embodiments, when the milling processing type corresponding to the electrode blank is forward milling, the workpiece coordinate system establishment module 520 is also used to establish a second workpiece coordinate system with the center of the fixture end face as the origin, two directions perpendicular to each other on the plane where the fixture end face is located as the x-axis and y-axis, and the z-axis as the direction perpendicular to the fixture end face, when the milling processing type corresponding to the electrode blank is forward milling, and the fixture end face is parallel to the machine tool; based on the coordinate value of the z-axis corresponding to the height value, the coordinate value of 0 corresponding to the x-axis, and the coordinate value of 0 corresponding to the y-axis, compensated coordinate information in the second workpiece coordinate system is generated; the compensated coordinate information in the second workpiece coordinate system is compensated to the processing coordinate information in the processing coordinate system to obtain the compensated processing coordinate information in the processing coordinate system; according to the compensated processing coordinate information in the processing coordinate system, forward milling processing is performed on the electrode blank.
[0086] In some embodiments, the height value determination module 510 is configured to determine the height value of the electrode blank using a sensor.
[0087] An embodiment of the present invention provides an electronic device, such as Figure 6The electronic device 600 includes a memory 620 and a processor 610. The memory 620 stores a computer program, and the computer program is used to control the processor 610 to operate so as to execute the electrode side milling processing method in any of the above embodiments.
[0088] One embodiment of the present invention provides a machine tool, comprising the electrode side milling processing device or electronic device as described in the above embodiment.
[0089] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. For the device embodiment, its related parts can be referred to the partial description of the method embodiment.
[0090] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0091] The embodiments of the present specification may be systems, methods and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer instructions for causing a processor to implement various aspects of the embodiments of the present specification.
[0092] A computer-readable storage medium may be a tangible device that can hold and store computer instructions used by a computer instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which computer instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0093] The computer instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device through a network layer, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network layer may include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network layer adapter card or network layer interface in each computing / processing device receives the computer instructions from the network layer and forwards the computer instructions for storage in a computer-readable storage medium in each computing / processing device.
[0094] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to the multiple embodiments of this specification. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a computer instruction, and a part of a module, a program segment or a computer instruction contains one or more executable computer instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0095] The embodiments of the present specification have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations are obvious to those of ordinary skill in the art without departing from the scope of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A side milling method of an electrode, characterized in that: include: When the electrode blank is clamped in the fixture, determining the height of the electrode blank, wherein the height of the electrode blank is a dimension value along a direction perpendicular to the fixture end face starting from the center of the fixture end face, and the fixture end face is perpendicular to the machine tool; A first workpiece coordinate system is established with the center of the fixture end face as the origin, a direction perpendicular to the fixture end face as the x-axis, and two directions perpendicular to each other on the plane where the fixture end face is located as the y-axis and the z-axis; Generate compensation coordinate information in the first workpiece coordinate system based on the coordinate value of the x-axis corresponding to the height value, the coordinate value of 0 corresponding to the y-axis, and the coordinate value of 0 corresponding to the z-axis; Compensating the compensation coordinate information in the first workpiece coordinate system to the processing coordinate information in the processing coordinate system to obtain compensated first processing coordinate information; The electrode blank is subjected to side milling according to the compensated first machining coordinate information.
2. The method according to claim 1, characterized in that The step of compensating the compensated coordinate information in the first workpiece coordinate system to the coordinate information in the processing coordinate system to obtain the compensated first processing coordinate information includes: The x-axis coordinate value in the compensation coordinate information in the first workpiece coordinate system is added to the x-axis coordinate value in the processing coordinate system to obtain the x-axis coordinate value in the processing coordinate system after compensation. The y-axis coordinate value in the compensation coordinate information in the first workpiece coordinate system is added to the y-axis coordinate value in the processing coordinate system to obtain the y-axis coordinate value in the processing coordinate system after compensation. And the z-axis coordinate value in the compensation coordinate information in the first workpiece coordinate system is added to the z-axis coordinate value in the processing coordinate system to obtain the compensated z-axis coordinate value in the processing coordinate system.
3. The method according to claim 1, characterized in that Before establishing the first workpiece coordinate system, the method further includes: Determining a milling process type corresponding to the electrode blank, wherein the milling process type is one of forward milling and side milling; The operation of establishing the first workpiece coordinate system is performed only when the milling processing type corresponding to the electrode blank is side milling.
4. The method according to claim 3, characterized in that Determining the milling type corresponding to the electrode blank includes: Obtaining the identity information of the electrode blank, and a correspondence table between the identity information of the electrode blank and the milling processing type; The milling processing type corresponding to the electrode blank is determined according to the identity information of the electrode blank and a correspondence table between the identity information of the electrode blank and the milling type.
5. The method according to claim 3, characterized in that: The method further comprises: In the case where the milling type corresponding to the electrode blank is forward milling, a second workpiece coordinate system is established with the center of the fixture end face as the origin, two directions perpendicular to each other on the plane where the fixture end face is located as the x-axis and the y-axis, and a direction perpendicular to the fixture end face as the z-axis, and the fixture end face is parallel to the machine tool; Generate compensation coordinate information in the second workpiece coordinate system based on the coordinate value of the z-axis corresponding to the height value, the coordinate value of 0 corresponding to the x-axis, and the coordinate value of 0 corresponding to the y-axis; Compensating the compensation coordinate information in the second workpiece coordinate system to the processing coordinate information in the processing coordinate system to obtain compensated second processing coordinate information; According to the compensated second processing coordinate information, forward milling is performed on the electrode blank.
6. The method according to any one of claims 1 to 5, characterized in that: Determining the height value of the electrode blank comprises: A sensor is used to determine the height value of the electrode blank.
7. A side milling processing device for an electrode, characterized in that: include: A height value determination module is used to determine the height value of the electrode blank when the electrode blank is clamped in the fixture, wherein the height value of the electrode blank is a dimension value along a direction perpendicular to the fixture end face starting from the center of the fixture end face, and the fixture end face is perpendicular to the machine tool; A workpiece coordinate system establishment module, used to establish a first workpiece coordinate system with the center of the fixture end face as the origin, a direction perpendicular to the fixture end face as the x-axis, and two directions perpendicular to each other on the plane where the fixture end face is located as the y-axis and the z-axis; a compensation coordinate information generating module, for generating compensation coordinate information in the first workpiece coordinate system based on the coordinate value of the x-axis corresponding to the height value, the coordinate value of 0 corresponding to the y-axis, and the coordinate value of 0 corresponding to the z-axis; a processing coordinate information determination module, used for compensating the compensation coordinate information in the first workpiece coordinate system to the processing coordinate information in the processing coordinate system, so as to obtain the compensated processing coordinate information in the processing coordinate system; A processing module is used to perform side milling processing on the electrode blank according to the compensated processing coordinate information in the processing coordinate system.
8. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program, and the computer program is used to control the processor to operate so as to execute the side milling processing method of the electrode according to any one of claims 1 to 6.
9. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the side milling processing method of the electrode described in any one of claims 1 to 6 is implemented.
10. A machine tool, characterized in that: A side milling processing device comprising the electrode according to claim 7 or an electronic device according to claim 8.
