Electrode program design method and device, electronic equipment and storage medium
By loading the target model file and generating electrode subprograms, the problem of cumbersome manually input parameters in electric spark processing is solved, the processing accuracy is improved and the cost is reduced, the electrode programming is realized outside the machine tool, and the workpiece processing quality is improved .
Patent Information
- Application Number
- CN202411394609.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-01-10
AI Technical Summary
In electric spark processing technology, the existing manual input of processing parameters is complicated and error-prone, resulting in low product processing quality and increasing production costs.
By loading the target model file, determining the parameter information of the target workpiece, dividing the processing area, determining the electrode shape and motion trajectory based on the shape and structural parameters, generating electrode subprograms, reducing manual operation steps and improving processing accuracy.
The electrode program is designed outside the machining machine tool, which reduces the operating steps of the operator on the machine tool, improves the accuracy and quality of workpiece processing, and reduces production costs.
Smart Images

Figure CN119292571A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of mechanical manufacturing technology, and in particular to an electrode programming method, device, electronic device and storage medium. Background Art
[0002] In the field of electrical discharge machining (EDM) technology, the method of processing products by a processing machine tool is generally as follows: an operator manually inputs processing parameters of the product in the operating system panel of the processing machine tool according to the production requirements of the customer for the product, and after each parameter is input in sequence, the operating system of the processing machine tool generates a processing program, so as to realize the processing of the product through the processing program.
[0003] Among them, in the process of setting the processing program, the essence is to set the electrode parameters in the processing machine tool to control the processing electrode to move the workpiece according to the processing program. However, the existing method of manually inputting processing parameters in the operating system of the processing machine tool has cumbersome operating steps and the risk of incorrect parameter input. Once the parameter input is wrong, it will affect the processing quality of the product and lead to higher production costs. Summary of the invention
[0004] The present application provides an electrode program design method, device, electronic device and storage medium, which can program the electrode program outside the machine, reduce the operator's operating steps on the processing machine tool, and improve the workpiece processing accuracy.
[0005] In a first aspect, the present application provides an electrode programming method, comprising:
[0006] Load a target model file, determine parameter information of a target workpiece from the target model file, the parameter information including at least shape parameters, structural parameters, size parameters and process parameters; determine the number of electrodes of a machining electrode, divide the target workpiece into at least one machining area according to the number of electrodes, and one machining area corresponds to one machining electrode; for any machining electrode, determine the electrode shape according to the shape parameters and structural parameters corresponding to the machining area, and determine the electrode subroutine according to the size parameters and process parameters corresponding to the machining area; generate an electrode machining file according to the electrode subroutine corresponding to each machining electrode, so that a machining machine tool can control the machining electrode set to a corresponding electrode shape through the electrode machining file, so as to obtain the target workpiece after the operation of the machining machine tool ends.
[0007] Optionally, determining the number of electrodes for the processing electrodes includes: determining constraints based on processing cost and processing time, and constructing an objective function based on processing efficiency and processing accuracy; solving the objective function under the constraints, and when the objective function reaches a maximum value, determining the number of electrodes based on the processing cost.
[0008] Optionally, dividing the target workpiece into at least one processing area according to the number of electrodes includes: determining a processing allowance according to precision information of the target workpiece; and dividing the target workpiece according to shape parameters, structural parameters and the number of electrodes of the target workpiece while satisfying the requirement of the processing allowance to obtain at least one processing area.
[0009] Optionally, determining the electrode shape according to shape parameters and structural parameters corresponding to the processing area includes: determining an initial electrode shape according to shape parameters corresponding to the processing area; and correcting the initial electrode shape according to structural parameters corresponding to the processing area to obtain the electrode shape corresponding to the processing area.
[0010] Optionally, determining the electrode subroutine according to the size parameters and process parameters corresponding to the processing area includes: determining the electrode material according to the workpiece material of the target workpiece; determining the electrode parameters according to the process parameters corresponding to the processing area and the electrode material; determining the electrode motion trajectory according to the size parameters and process parameters corresponding to the processing area; generating the electrode subroutine according to the electrode parameters and the electrode motion trajectory corresponding to the processing electrode.
[0011] Optionally, after determining the electrode shape according to the shape parameters and structural parameters corresponding to the processing area, the method further includes: determining a shaking mode of each processing electrode according to the electrode shape;
[0012] Correspondingly, generating the electrode subroutine according to the electrode parameters and the electrode motion trajectory corresponding to the machining electrode includes: generating the electrode subroutine according to the electrode parameters, the electrode motion trajectory and the shaking mode corresponding to each machining electrode.
[0013] Optionally, the processing machine tool processes the target workpiece in the following manner: parsing the electrode processing file, obtaining a processing program from the electrode processing file, the processing program including a plurality of electrode subprograms, each of the electrode subprograms including an electrode identifier corresponding to each processing electrode; controlling each processing electrode to load a corresponding electrode subprogram according to the electrode identifier, so as to control each processing electrode to run according to the corresponding electrode subprogram when receiving a preset instruction, and obtaining the target workpiece after each electrode subprogram runs.
[0014] In a second aspect, the present application provides an electrode programming device, the device comprising:
[0015] A parameter determination module, used for loading a target model file, and determining parameter information of a target workpiece from the target model file, wherein the parameter information includes at least shape parameters, structural parameters, size parameters and process parameters;
[0016] A quantity determination module, used to determine the number of electrodes of the processing electrodes, and divide the target workpiece into at least one processing area according to the number of electrodes, wherein one processing area corresponds to one processing electrode;
[0017] An electrode determination module, for determining the electrode shape according to the shape parameters and structural parameters corresponding to the processing area for any processing electrode, and determining the electrode subroutine according to the size parameters and process parameters corresponding to the processing area;
[0018] The electrode control module is used to generate an electrode processing file according to the electrode subroutine corresponding to each processing electrode, so that the processing machine tool can control the processing electrode set to the corresponding electrode shape through the electrode processing file to obtain the target workpiece after the processing machine tool ends its operation.
[0019] In a third aspect, the present application further provides an electronic device, the electronic device comprising:
[0020] at least one processor; and
[0021] a memory communicatively connected to the at least one processor; wherein,
[0022] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the electrode program design method described in any embodiment of the present application.
[0023] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the electrode programming method described in any embodiment of the present application when executed by a processor.
[0024] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the electrode programming method described in any embodiment of the present application.
[0025] The electrode program design scheme provided in the embodiment of the present application first loads the parameter information of the target workpiece according to the target model file; then divides the target workpiece into at least one processing area according to the determined number of electrodes; and finally generates the corresponding electrode subroutine according to the size parameters and process parameters in each processing area. When the electrode subroutine provided in this embodiment controls the operation of the processing electrode, the processing accuracy of the target workpiece can be improved. Before controlling the processing machine tool for processing, the present embodiment also pre-determines the electrode shape according to the shape parameters and structural parameters corresponding to each processing area, so that the target workpiece is produced according to the electrode shape determined in this embodiment, which helps to improve the processing accuracy and quality requirements of the target workpiece in the subsequent processing process. The electrode program design scheme provided in this embodiment is implemented on an electronic device other than the processing machine tool. In actual application, it is only necessary to load the corresponding electrode processing file through the processing machine tool, which reduces the operator's operating steps on the processing machine tool and improves the processing accuracy of the workpiece.
[0026] It should be noted that the above-mentioned computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the electrode programming device, or may be packaged separately from the processor of the electrode programming device, which is not limited in this application.
[0027] The description of the second, third and fourth aspects in this application can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third and fourth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.
[0028] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description.
[0029] It is understandable that before using the technical solutions disclosed in the embodiments of this application, the type, scope of use, and usage scenarios of the personal information involved in this application should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1It is a flow chart of the electrode programming method provided in the embodiment of the present application;
[0032] Figure 2 It is a structural schematic diagram of an electrode programming device provided in an embodiment of the present application;
[0033] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the present application will be clearly and completely described below in conjunction with the drawings in the present embodiment. Obviously, the described embodiment is only a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application.
[0035] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0036] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.
[0037] Figure 1 A flow chart of the electrode program design method provided in the embodiment of the present application is provided. The present embodiment is applicable to the case where the electrode program is designed before machine tool processing. The method can be executed by an electrode program design device, which can be implemented in the form of hardware and / or software and integrated in an electronic device that executes the method. Preferably, the electronic device in the embodiment of the present application can be a server, or a computer device, etc.
[0038] refer to Figure 1The electrode programming method of this embodiment includes but is not limited to the following steps:
[0039] S110 , loading a target model file, and determining parameter information of a target workpiece from the target model file.
[0040] The target model file is an electronic file related to the production target workpiece. The current electronic file may record a three-dimensional structure diagram or a two-dimensional structure diagram of the target workpiece, and the parameter information required for the production of the target workpiece is marked in the three-dimensional structure diagram or the two-dimensional structure diagram. Optionally, the target model file may also include a front view, a top view, and a side view of the target workpiece, so as to facilitate the analysis of the structure of the target workpiece from different angles, which is helpful to improve the production accuracy of the target workpiece in subsequent production.
[0041] The application scenario of this solution can be that after executing the solution provided by this embodiment on the client side to generate the electrode processing file of the target workpiece in the subsequent step S140, the electrode processing file can be packaged and sent to the manufacturer, and the manufacturer imports the electrode processing file into the operating system of the processing machine tool, so that the operating system automatically loads the electrode processing program in the electrode processing file to realize automated production. This process does not require the machine tool operator to manually set the processing parameters in the operating system of the processing machine tool, reduces the operator's operating steps, and improves the accuracy of workpiece production.
[0042] Generally, the file format of the target model file is related to the implementation software of the drawing model file. When designing an electrode program, it can be implemented on the application software of the client's electronic device. Then, the method of loading the target model file on the current application software can be to export the target model file into a format that the current application software can recognize, so that after loading the target model file on the current application software, the parameter information of the target workpiece can be obtained; or an application programming interface (Application Programming Interface, referred to as API) can be provided for the implementation software corresponding to the target model file in the current application software, so that the parameter information of the target workpiece can be obtained on the current application software through interface calls. The specific method of loading the target model file is not limited here.
[0043] In this embodiment, the parameter information includes at least shape parameters, structure parameters, size parameters and process parameters.
[0044] Among them, shape parameters are used to determine the composition structure of the target workpiece, such as round, square, spherical; complex structures such as curved surfaces, grooves or protrusions can also be determined; structural parameters are used to determine the components in the target workpiece, and the matching relationship, constraints, and assembly sequence between the components can be obtained through structural parameters. For example, the position, quantity and specifications of bolt connections, the size and shape of welding parts, etc., can also be used through the explosion view function to more clearly observe the structure of the assembly and determine the relative position and spatial relationship of each component; size parameters are used to determine the production specifications of the target workpiece, such as the length, width, height, diameter, radius, angle, dimensional tolerance and other parameters of the target workpiece; process parameters are used to determine the attribute information and precision information of the target workpiece, such as workpiece material, processing technology, surface treatment and roughness.
[0045] S120, determining the number of electrodes of the processing electrodes, and dividing the target workpiece into at least one processing area according to the number of electrodes.
[0046] Machining electrodes are tools used in machining machine tools to process workpieces. In actual production, due to the differences in specifications, complexity and production processes of various workpieces, the number of machining electrodes required to produce the target workpiece varies to a certain extent.
[0047] When determining the number of electrodes for machining, the complexity of the structure can be determined based on the shape parameters and structural parameters. For example, the workpiece can be analyzed to determine the number of electrodes based on the complexity of the structure, such as grooves of different depths, complex curved surfaces, small holes, etc., so that different parts can be machined separately using electrodes of different shapes to ensure machining accuracy and efficiency. The number of electrodes can also be determined based on the accuracy requirements, so that areas of different accuracy can be machined using the corresponding electrode processing methods, such as rough machining, semi-finishing and finishing.
[0048] A preferred embodiment, in order to improve the accuracy of the number of electrodes required for processing different workpieces, this embodiment determines the number of electrodes for processing electrodes through an algorithm optimization method, specifically: determining constraints based on processing cost and processing time, and constructing an objective function based on processing efficiency and processing accuracy; solving the objective function under the constraints, and when the objective function reaches the maximum value, determining the number of electrodes based on the processing cost.
[0049] In this embodiment, the increase in the number of electrodes will increase the processing cost and processing time, but it may also improve the processing efficiency and accuracy. This solution comprehensively considers multiple important factors such as processing cost, processing time, processing efficiency and processing accuracy, and can more comprehensively evaluate the rationality of the number of electrodes, while ensuring the processing quality, and minimize the number of electrodes. Then, under the condition of the lowest processing cost, the algorithm model further outputs the number of electrodes for the processing electrodes based on the shape parameters and structural parameters of the workpiece.
[0050] After determining the number of electrodes, the target workpiece needs to be further divided into at least one processing area according to the current number of electrodes to clarify which processing area of the workpiece corresponding to each electrode needs to be processed in subsequent production.
[0051] The method of dividing the target workpiece into at least one processing area according to the number of electrodes is to divide it according to production experience, or to divide it according to production complexity. The specific method of dividing at least one processing area according to the number of electrodes is not limited here.
[0052] In another preferred embodiment, the method of dividing the target workpiece into at least one processing area according to the number of electrodes in the present scheme is: the precision information of the target workpiece determines the processing allowance; while meeting the demand for processing allowance, the target workpiece is divided according to the shape parameters, structural parameters and number of electrodes of the target workpiece to obtain at least one processing area.
[0053] The precision information of the target workpiece can be understood as the tolerance requirement of the workpiece size in the target model file. The smaller the tolerance, the higher the dimensional accuracy requirement. For example, for some precision mold parts, the dimensional tolerance may be required to be within ±0.01mm.
[0054] Machining allowance refers to the thickness or volume of a part of the material that is left on the basis of the size of the part blank in order to ensure the size, shape, position accuracy and surface quality of the workpiece after machining. In this embodiment, the machining allowance is obtained by comprehensively determining various machining errors. Among them, various machining errors may include discharge machining error, electrode loss error and machine tool accuracy error. The machining allowance is set to be greater than the sum of various machining errors to ensure that the size of the workpiece after production is within the tolerance range.
[0055] Among them, the discharge machining error refers to the existence of a discharge gap in the machining process of the machining machine, which will cause a difference between the actual machining size and the electrode size. According to experience and machine tool parameters, the size of the discharge gap is estimated to be between a few microns and tens of microns; the electrode loss error refers to the gradual loss of the machining electrode during the machining process, especially when machining for a long time or machining materials with higher hardness, the electrode loss will affect the accuracy of the machining size, and a certain margin needs to be reserved to compensate for the electrode loss; the machine tool accuracy error refers to the accuracy of the machine tool itself. It will also affect the machining size. Understand the accuracy indicators of the machine tool, such as positioning accuracy, repeated positioning accuracy, etc.
[0056] Optionally, when determining the machining allowance based on the precision information of the target workpiece, on the basis of considering the influence of discharge machining error, electrode loss error and machine tool precision error on the machining allowance, the influence of machining time and number of machining times on the machining allowance can also be considered. Generally, the longer the machining time, the greater the electrode loss. If the machining time of the workpiece is long, more machining allowance needs to be reserved to compensate for the electrode loss. For workpieces that need to be processed multiple times, each machining will cause certain loss to the electrode. Taking into account the cumulative loss of multiple machinings, the allowance for each machining is reasonably set. The specific method of determining the machining allowance in this embodiment is not limited here.
[0057] Finally, when dividing the target workpiece, on the basis of reserving the machining allowances of each target workpiece, the shape diversity corresponding to the shape parameters of the target workpiece and the structural complexity corresponding to the structural parameters are analyzed, so as to divide the target workpiece according to the determined number of electrodes, thereby dividing the corresponding machining area for each machining electrode. The target workpiece division scheme provided in this embodiment can meet the machining accuracy requirements and machining costs.
[0058] S130. For any processing electrode, determine the electrode shape according to the shape parameters and structural parameters corresponding to the processing area, and determine the electrode subroutine according to the size parameters and process parameters corresponding to the processing area.
[0059] The electrode shape affects the final processing of the target workpiece. For example, when the electrode shape closely matches the shape of the workpiece, effective discharge processing can be performed in various parts to achieve higher processing accuracy. On the contrary, if the electrode shape does not match the workpiece, it may cause uneven processing allowances, affecting dimensional accuracy and surface quality. The electrode shape determines the size of the discharge area. For large-area planar processing, using a larger-sized planar electrode can quickly remove material and improve processing efficiency. The electrode shape affects the movement mode during the processing. Reasonable selection of electrode shape and movement mode can improve processing efficiency. For target workpieces with complex shapes, it may be necessary to use multiple small-sized electrodes for combined processing to improve processing efficiency.
[0060] Another preferred embodiment, in this embodiment, the method of determining the electrode shape according to the shape parameters and structural parameters corresponding to the processing area is as follows: determine the initial electrode shape according to the shape parameters corresponding to the processing area; correct the initial electrode shape according to the structural parameters corresponding to the processing area to obtain the electrode shape corresponding to the processing area.
[0061] The shape characteristics of the target workpiece are analyzed according to the shape parameters and structural parameters corresponding to the processing area, and the initial electrode shape is determined according to the shape characteristics: for example, for plane processing, a plane electrode can be selected; for circular holes, a cylindrical electrode can be selected; for complex curved surfaces, a spherical electrode or a special-shaped electrode customized according to the curved surface shape can be selected. The structural complexity (such as whether the structures contain nesting or complex connections, etc.) is further determined according to the structural parameters, so that the specific workpiece shape can be customized based on the initial electrode shape, and complex workpiece contours can be accurately processed.
[0062] The purpose of determining the electrode subroutine in this embodiment is to control the machining electrode by loading the corresponding electrode subroutine for the machining electrode when the machining machine is actually working. That is, the process of setting the machining electrode parameters is implemented in the client electronic device, and there is no need for the machine tool operator to perform manual operation in the machining machine, thereby reducing the operating steps of the machine tool operator, avoiding the risk of incorrect parameter input, and improving the machining accuracy of the machine tool.
[0063] When determining the electrode subroutine of each machining electrode according to the size parameters and process parameters corresponding to the machining area, the size parameters affect the control trajectory of the machining electrode, and the process parameters affect the production accuracy of the machining electrode on the workpiece. Specifically, this embodiment can determine the electrode subroutine of each machining electrode through the following steps:
[0064] a) Determine the electrode material according to the workpiece material of the target workpiece.
[0065] Different workpiece materials have different conductivity, hardness and melting points, and different electrode materials will be selected when processing different workpiece materials. For example, for workpiece materials with good conductivity, such as copper, aluminum, etc., you can choose electrode materials with good conductivity, such as graphite, copper-tungsten alloy, etc.; while for workpiece materials with higher hardness, such as cemented carbide, stainless steel, etc., you may need to choose electrode materials with higher hardness, such as tungsten steel, molybdenum, etc. The melting point of the workpiece material will also affect the selection of electrode materials. If the melting point of the workpiece material is high, you need to choose an electrode material with a higher melting point to avoid the electrode material from melting too early during the processing and affecting the processing quality.
[0066] b) Determine electrode parameters according to process parameters and electrode materials corresponding to the processing area;
[0067] In this embodiment, the process parameters in this embodiment include at least surface roughness parameters, tolerance parameters and processing feature parameters, etc. Among them, the surface roughness parameters are used to indicate the smoothness of the surface of the target workpiece, which has an important impact on the appearance and performance of the product; the tolerance parameters include dimensional tolerance and form and position tolerance, dimensional tolerance is used to specify the allowable deviation range of the target workpiece size, and the size of the dimensional tolerance directly affects the processing accuracy and assembly performance of the target workpiece; form and position tolerance can include shape tolerance (such as flatness, roundness, etc.) and position tolerance (such as parallelism, verticality, etc.), and form and position tolerance is used to control the geometric shape and position accuracy of the product; processing feature parameters can include hole feature parameters (such as hole diameter, depth, position, etc.), groove feature parameters (such as groove width, depth, length, etc.), thread feature parameters (thread specifications (such as diameter, pitch, etc., precision grade, etc.) and surface feature parameters (for complex curved surface parts, it is necessary to provide the equation of the surface, control point coordinates, etc.).
[0068] The electrode parameters in this embodiment include discharge current, pulse width and pulse interval. When determining the electrode parameters according to the process parameters and electrode materials corresponding to the processing area, different electrode materials will affect the selection of discharge parameters of the electrode. For example, graphite electrodes are generally suitable for processing with larger currents and longer pulse widths; copper electrodes are suitable for processing with smaller currents and shorter pulse widths. Select parameters considering the requirements of the processing technology. For example, a larger discharge current and a longer pulse width can be selected during rough processing to improve processing efficiency; a smaller discharge current and a shorter pulse width should be selected during fine processing to improve processing accuracy and surface quality.
[0069] c) Determine the electrode movement trajectory according to the size parameters and process parameters corresponding to the processing area.
[0070] The size parameters (length, width, depth, etc.) of the processing area directly affect the movement path density and coverage of the processing electrode in the area. For example, for a small-sized groove processing area, the processing electrode may need to perform fine reciprocating motion in a narrow space to ensure sufficient removal of excess material.
[0071] Different surface quality requirements in further process parameters will affect the choice of electrode motion trajectory. For areas requiring high surface quality, the electrode movement should be smoother to avoid severe acceleration and impact. For example, when processing optical molds, the electrode can use slow curve movement to obtain a smooth and flawless surface.
[0072] d) Generate an electrode subroutine according to the electrode parameters and electrode motion trajectory corresponding to the machining electrode.
[0073] The current step may be implemented by writing the obtained electrode parameters corresponding to the machining electrode and the trajectory parameters corresponding to the electrode motion trajectory into a preset program framework, thereby generating an electrode subroutine for the current machining electrode.
[0074] Accordingly, the solution provided in this embodiment, after determining the electrode shape according to the shape parameters and structural parameters corresponding to the processing area, further includes: determining the shaking mode of each processing electrode according to the electrode shape. The electrode shape will affect the discharge uniformity, processing accuracy, and electrode strength and stability, so different electrode shapes need to select an appropriate shaking mode.
[0075] Generally speaking, for cylindrical electrodes, the common shaking methods are circular shaking and linear shaking; square electrodes usually use rectangular shaking or diagonal shaking; the shaking method of special-shaped electrodes needs to be determined according to their specific shapes. Generally speaking, the shaking of special-shaped electrodes needs to consider factors such as the contact area between the electrode and the workpiece, the distribution of the discharge points, and the processing accuracy requirements.
[0076] Then, the electrode subprogram is generated according to the electrode parameters and electrode motion trajectory corresponding to the processing electrode: the electrode subprogram is generated according to the electrode parameters, electrode motion trajectory and shaking mode corresponding to each processing electrode. The relevant information affecting the operation of the electrode is written into the corresponding electrode subprogram, reducing the manual operation of the subsequent operator on the processing machine tool.
[0077] Optionally, after the number of electrodes in the target workpiece, the divided processing areas, the electrode shape corresponding to each electrode, and the electrode subroutine corresponding to each electrode are designed, experimental simulation can be carried out in advance before actual processing to verify the rationality of the simulation of the electrode subroutine for processing the target workpiece based on the experimental model. If it is unreasonable, the optimal electrode parameters and electrode motion trajectory can be determined by adjusting parameters such as discharge current, pulse width, pulse interval, etc., and observing the processing effects such as processing speed, surface roughness, electrode loss, etc.
[0078] S140, generating an electrode processing file according to the electrode subroutine corresponding to each processing electrode, so that the processing machine tool can control the processing electrode set to the corresponding electrode shape through the electrode processing file, so as to obtain the target workpiece after the processing machine tool ends its operation.
[0079] In this embodiment, the electrode processing file includes not only the electrode subroutine corresponding to each processing electrode, but also the parameter file corresponding to each processing electrode, which helps the manufacturer to further verify the relevant parameters according to the electrode processing file.
[0080] Optionally, the electrode processing file may also include a program for the electrode shape corresponding to each processing electrode. The purpose of this is that, according to the actual processing technology, the electrode shape corresponding to each processing electrode needs to be processed in advance using a processing device (processing equipment, such as a CNC milling machine, an electric spark wire cutting machine, etc.), the electrode material is processed to produce the electrode shape, and then the electrode shape is installed on the processing machine, so that the processing operation of the component in the corresponding processing area is realized according to the corresponding electrode subroutine through the processing electrode set to the electrode shape.
[0081] The processing machine tool reads the transmitted electrode processing file, and each processing file may include a file identifier, so that when the processing machine tool parses the electrode processing file, it can verify whether it is an electrode processing file for the target workpiece. Furthermore, on the processing machine tool operation interface, you can select options such as loading files or importing programs to find and select the transmitted processing code file. The machine tool control system parses the processing code and extracts the parameter information to be processed. These parameter information include discharge current, pulse width, pulse interval, electrode motion trajectory, shaking mode, and may also include processing depth, feed speed, spindle speed, etc. Confirm the parameter information. After the machine tool reads the parameter information, the relevant parameter information will be displayed on the operation interface. Carefully check whether these parameters are correct, and if necessary, adjust and modify them.
[0082] Specifically, in this embodiment, the processing machine tool processes the target workpiece in the following manner:
[0083] Parse the electrode processing file and obtain the processing program from the electrode processing file, wherein the processing program includes multiple electrode subprograms, and each electrode subprogram includes an electrode identification corresponding to each processing electrode; control each processing electrode to load the corresponding electrode subprogram according to the electrode identification, so that when receiving a preset instruction, each processing electrode is controlled to run according to the corresponding electrode subprogram, and after each electrode subprogram runs, a target workpiece is obtained.
[0084] When the number of electrodes is 2 or more, different machining electrodes correspond to different electrode shapes and different corresponding electrode subroutines. Therefore, after parsing the electrode machining file to obtain the machining program, the corresponding electrode subroutine needs to be loaded according to the electrode identification corresponding to each machining electrode to prevent the electrode subroutine from being loaded onto the wrong electrode. Then, when installing the electrode shape on the machining machine, the electrode shape on the machining machine also needs to be marked so that the machining electrode set to the current electrode shape can be loaded into the corresponding electrode subroutine. After the electrode subroutine corresponding to each machining electrode is loaded, the workpiece can be machined through the start instruction, so that after the program runs, the target workpiece that meets the precision requirements can be obtained.
[0085] The electrode program design method provided in this embodiment first loads the parameter information of the target workpiece according to the target model file; then divides the target workpiece into at least one processing area according to the determined number of electrodes; and finally generates the corresponding electrode subroutine according to the size parameters and process parameters in each processing area. When the electrode subroutine provided in this embodiment controls the operation of the processing electrode, the processing accuracy of the target workpiece can be improved. Before controlling the processing machine tool for processing, this embodiment also pre-determines the electrode shape according to the shape parameters and structural parameters corresponding to each processing area, so that the target workpiece is produced according to the electrode shape determined in this embodiment, which helps to improve the processing accuracy and quality requirements of the target workpiece in the subsequent processing process. The electrode program design scheme provided in this embodiment is implemented on an electronic device other than the processing machine tool. In actual application, it is only necessary to load the corresponding electrode processing file through the processing machine tool, which has the beneficial effect of reducing the operating steps of the operator on the processing machine tool and improving the processing accuracy of the workpiece.
[0086] Figure 2 Schematic diagram of the structure of the electrode programming device provided in the embodiment of the present application, which is suitable for executing the electrode programming method provided in the embodiment of the present application. Figure 3 As shown, the device may specifically include: a parameter determination module 210, a quantity determination module 220, an electrode determination module 230 and an electrode control module 240, wherein:
[0087] A parameter determination module 210 is used to load a target model file and determine parameter information of a target workpiece from the target model file, wherein the parameter information includes at least shape parameters, structural parameters, size parameters and process parameters;
[0088] A quantity determination module 220, used to determine the number of electrodes of the machining electrodes, and divide the target workpiece into at least one machining area according to the number of electrodes, where one machining area corresponds to one machining electrode;
[0089] An electrode determination module 230, for determining, for any machining electrode, the electrode shape according to the shape parameters and structural parameters corresponding to the machining area, and determining the electrode subroutine according to the size parameters and process parameters corresponding to the machining area;
[0090] The electrode control module 240 is used to generate an electrode processing file according to the electrode subroutine corresponding to each of the processing electrodes, so that the processing machine tool can control the processing electrode set to the corresponding electrode shape through the electrode processing file to obtain the target workpiece after the processing machine tool ends its operation.
[0091] The electrode programming device provided in the embodiment of the present application first loads the parameter information of the target workpiece according to the target model file; then divides the target workpiece into at least one processing area according to the determined number of electrodes; and finally generates the corresponding electrode subroutine according to the size parameters and process parameters in each processing area. When the electrode subroutine provided in this embodiment controls the operation of the processing electrode, the processing accuracy of the target workpiece can be improved. Before controlling the processing machine tool for processing, the present embodiment also pre-determines the electrode shape according to the shape parameters and structural parameters corresponding to each processing area, so that the target workpiece is produced according to the electrode shape determined in this embodiment, which helps to improve the processing accuracy and quality requirements of the target workpiece in the subsequent processing process. The electrode programming scheme provided in this embodiment is implemented on an electronic device other than the processing machine tool. In actual application, it is only necessary to load the corresponding electrode processing file through the processing machine tool, which reduces the operating steps of the operator on the processing machine tool and improves the processing accuracy of the workpiece.
[0092] In one embodiment, the quantity determination module 220 is specifically used to determine the constraint conditions according to the processing cost and the processing time, and to construct the objective function according to the processing efficiency and the processing accuracy; to solve the objective function under the constraint conditions, and when the objective function reaches the maximum value, to determine the number of electrodes according to the processing cost.
[0093] In one embodiment, the quantity determination module 220 is further used to determine the machining allowance based on the precision information of the target workpiece; while meeting the requirements of the machining allowance, the target workpiece is divided according to the shape parameters, structural parameters and the number of electrodes of the target workpiece to obtain at least one of the machining areas.
[0094] In one embodiment, the electrode determination module 230 is specifically used to determine an initial electrode shape according to shape parameters corresponding to a processing area; and to modify the initial electrode shape according to structural parameters corresponding to the processing area to obtain an electrode shape corresponding to the processing area.
[0095] In one embodiment, the electrode determination module 230 is further specifically used to determine the electrode material according to the workpiece material of the target workpiece; determine the electrode parameters according to the process parameters corresponding to the processing area and the electrode material; determine the electrode motion trajectory according to the size parameters and process parameters corresponding to the processing area; and generate the electrode subroutine according to the electrode parameters and the electrode motion trajectory corresponding to each of the processing electrodes.
[0096] In one embodiment, the electrode determination module 230 is further used to determine the shaking mode of each of the processing electrodes according to the electrode shape; and to generate the electrode subroutine according to the electrode parameters, the electrode motion trajectory and the shaking mode corresponding to each of the processing electrodes.
[0097] In one embodiment, the electrode control module 240 is specifically used to parse the electrode processing file, obtain the processing program from the electrode processing file, and the processing program includes multiple electrode subprograms, each of which includes an electrode identifier corresponding to each processing electrode; control each processing electrode to load the corresponding electrode subprogram according to the electrode identifier, so that when a preset instruction is received, each processing electrode is controlled to run according to the corresponding electrode subprogram, and the target workpiece is obtained after each electrode subprogram runs.
[0098] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0099] An embodiment of the present application also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the electrode programming method described in any embodiment of the present application.
[0100] An embodiment of the present application further provides a computer-readable medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the electrode programming method described in any embodiment of the present application when executed.
[0101] Reference below Figure 3 , Figure 3 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and shows a schematic diagram of the structure of a computer system 500 suitable for implementing the electronic device in an embodiment of the present application. Figure 3 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0102] like Figure 3As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0103] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0104] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present application are executed.
[0105] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, etc., or any suitable combination of the above.
[0106] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that 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 boxes represented in succession 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 or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0107] The modules and / or units involved in the embodiments described in the present application may be implemented by software or by hardware. The modules and / or units described may also be arranged in a processor, for example, may be described as: a processor includes a parameter determination module, a quantity determination module, an electrode determination module and an electrode control module. The names of these modules do not, in some cases, constitute limitations on the modules themselves.
[0108] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: loading a target model file, determining parameter information of a target workpiece from the target model file, the parameter information at least including shape parameters, structural parameters, size parameters and process parameters; determining the number of electrodes of the machining electrode, dividing the target workpiece into at least one machining area according to the number of electrodes, and one machining area corresponds to one machining electrode; for any machining electrode, determining the electrode shape according to the shape parameters and structural parameters corresponding to the machining area, and determining the electrode subroutine according to the size parameters and process parameters corresponding to the machining area; generating an electrode machining file according to the electrode subroutine corresponding to each machining electrode, so that the machining machine tool can control the machining electrode set to the corresponding electrode shape through the electrode machining file, so as to obtain the target workpiece after the operation of the machining machine tool ends.
[0109] When the electrode subroutine provided in this embodiment controls the operation of the machining electrode, the machining accuracy of the target workpiece can be improved. Before controlling the machining machine to perform machining, this embodiment also pre-determines the electrode shape according to the shape parameters and structural parameters corresponding to each machining area, so that the target workpiece is produced according to the electrode shape determined in this embodiment, which helps to improve the machining accuracy and quality requirements of the target workpiece in the subsequent machining process. The electrode program design scheme provided in this embodiment is implemented on an electronic device other than the machining machine. In actual application, it is only necessary to load the corresponding electrode machining file through the machining machine, which reduces the operator's operating steps on the machining machine and improves the machining accuracy of the workpiece.
[0110] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. An electrode programming method, characterized in that: include: Loading a target model file, and determining parameter information of a target workpiece from the target model file, wherein the parameter information includes at least shape parameters, structural parameters, size parameters, and process parameters; Determine the number of electrodes of the machining electrode, and divide the target workpiece into at least one machining area according to the number of electrodes, wherein one machining area corresponds to one machining electrode; For any processing electrode, the electrode shape is determined according to the shape parameters and structural parameters corresponding to the processing area, and the electrode subroutine is determined according to the size parameters and process parameters corresponding to the processing area; An electrode processing file is generated according to the electrode subroutine corresponding to each of the processing electrodes, so that the processing machine tool can control the processing electrodes set to the corresponding electrode shapes through the electrode processing file, so as to obtain the target workpiece after the processing machine tool ends its operation.
2. The electrode programming method according to claim 1, characterized in that: Determining the number of electrodes of the processing electrode comprises: Determine the constraints based on the processing cost and processing time, and construct the objective function based on the processing efficiency and processing accuracy; The objective function is solved under the constraint conditions, and when the objective function reaches a maximum value, the number of electrodes is determined according to the processing cost.
3. The electrode programming method according to claim 1, characterized in that: The step of dividing the target workpiece into at least one processing area according to the number of electrodes comprises: Determine the machining allowance according to the precision information of the target workpiece; Under the condition that the requirement of the machining allowance is met, the target workpiece is divided according to the shape parameters, structural parameters and the number of electrodes of the target workpiece to obtain at least one machining area.
4. The electrode programming method according to claim 1, characterized in that: The step of determining the electrode shape according to the shape parameters and structural parameters corresponding to the processing area includes: Determine the initial electrode shape according to the shape parameters corresponding to the processing area; The initial electrode shape is modified according to the structural parameters corresponding to the processing area to obtain the electrode shape corresponding to the processing area.
5. The electrode programming method according to claim 1, characterized in that: The electrode subroutine is determined according to the size parameters and process parameters corresponding to the processing area, including: Determining the electrode material according to the workpiece material of the target workpiece; Determining electrode parameters according to process parameters corresponding to the processing area and the electrode material; Determining the electrode movement trajectory according to the size parameters and process parameters corresponding to the processing area; The electrode subroutine is generated according to the electrode parameters corresponding to the machining electrode and the electrode motion trajectory.
6. The electrode programming method according to claim 5, characterized in that: After determining the electrode shape according to the shape parameters and structural parameters corresponding to the processing area, the method further includes: Determining a shaking mode of each of the machining electrodes according to the electrode shape; Correspondingly, the electrode subroutine is generated according to the electrode parameters corresponding to the machining electrode and the electrode motion trajectory, including: The electrode subroutine is generated according to the electrode parameters corresponding to the machining electrode, the electrode motion trajectory and the shaking method.
7. The electrode programming method according to claim 1, characterized in that: The processing machine tool processes the target workpiece in the following manner: Parsing the electrode processing file, obtaining a processing program from the electrode processing file, wherein the processing program includes a plurality of electrode subprograms, and each of the electrode subprograms includes an electrode identifier corresponding to each processing electrode; Each machining electrode is controlled to load a corresponding electrode subprogram according to the electrode identifier, so that when a preset instruction is received, each machining electrode is controlled to run according to the corresponding electrode subprogram, and the target workpiece is obtained after each electrode subprogram runs.
8. An electrode programming device, characterized in that: include: A parameter determination module, used for loading a target model file, and determining parameter information of a target workpiece from the target model file, wherein the parameter information includes at least shape parameters, structural parameters, size parameters and process parameters; A quantity determination module, used to determine the number of electrodes of the processing electrodes, and divide the target workpiece into at least one processing area according to the number of electrodes, wherein one processing area corresponds to one processing electrode; An electrode determination module, for determining the electrode shape according to the shape parameters and structural parameters corresponding to the processing area for any processing electrode, and determining the electrode subroutine according to the size parameters and process parameters corresponding to the processing area; The electrode control module is used to generate an electrode processing file according to the electrode subroutine corresponding to each processing electrode, so that the processing machine tool can control the processing electrode set to the corresponding electrode shape through the electrode processing file to obtain the target workpiece after the processing machine tool ends its operation.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the electrode programming method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the electrode programming method as described in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Preparation method of vertical fuse and electronic equipment
CN119786316A
Electrode programming method and device, readable storage medium and computer program product
CN120257530A
Electrode programming method, server, readable storage medium and computer program product
CN120276711A
Tool path programming method and device, readable storage medium and computer program product
CN120276725A
Electrode machining program generation method and device, electronic equipment and storage medium
CN120669640A