Method, system and readable storage medium for recording offset value of electrode center

文档序号:1658278 发布日期:2019-12-27 浏览:19次 中文

阅读说明:本技术 记录电极分中偏移数值的方法、系统及可读存储介质 (Method, system and readable storage medium for recording offset value of electrode center ) 是由 成亚飞 郭小川 郑胜松 于 2019-08-20 设计创作,主要内容包括:本发明公开了一种记录电极分中偏移数值的方法、系统及计算机可读存储介质,其中,该记录电极分中偏移数值的方法包括:S1、获取电极外形数据;S2、根据电极外形数据选择基准球与电极分中点;S3对基准球与电极分中点进行碰撞仿真,得到基准球逼近退回距离;S4、记录分中点碰撞数据,所述碰撞数据包括记录所述基准球的尺寸、所述电极分中点的位空间三维数据以及所述基准球的逼近退回距离。通过本发明的实施,只需极少的人工操作,即可应用机器自动记录电极分中这一过程的三维偏移数值,效率高、安全性高、精确性高、步骤少、难度低、花费时间短,降低人工成本,增加现场产出。(The invention discloses a method, a system and a computer readable storage medium for recording offset values in electrode divisions, wherein the method for recording the offset values in the electrode divisions comprises the following steps: s1, acquiring electrode shape data; s2, selecting a reference sphere and an electrode midpoint according to the electrode shape data; s3, performing collision simulation on the reference sphere and the electrode midpoint to obtain an approximate withdrawal distance of the reference sphere; and S4, recording midpoint collision data, wherein the collision data comprises the size of the reference sphere, the three-dimensional data of the electrode midpoint position space and the approaching retreating distance of the reference sphere. By implementing the method, the three-dimensional offset value of the electrode centering process can be automatically recorded by a machine only by few manual operations, the efficiency is high, the safety is high, the accuracy is high, the steps are few, the difficulty is low, the time spent is short, the labor cost is reduced, and the field output is increased.)

1. A method of recording a deflection value in an electrode, comprising the steps of:

acquiring electrode shape data;

selecting a reference sphere and an electrode midpoint according to the electrode shape data;

performing collision simulation on the reference ball and the electrode midpoint to obtain an approximate withdrawal distance of the reference ball;

recording midpoint collision data, the collision data including recording the electrode midpoint space three-dimensional data, the reference sphere size, and the reference sphere approach retreat distance.

2. The method of recording offset values in electrode segments as recited in claim 1, further comprising, after recording segment midpoint impact data:

generating an electrode split-center program according to the split-center collision data;

and calculating the electrode offset according to the electrode equation, and writing the electrode offset value.

3. The method for recording electrode centering offset values according to claim 2, further comprising a real-time error-proofing step after writing the electrode offset values, specifically comprising:

the actual value of each position of the electrode in the centering is obtained,

comparing the actual value of each position with the electrode offset value, and if the electrode is inclined and/or uneven, outputting prompt information;

if the operation is normally carried out, no prompt information is output.

4. The method of recording an offset value in an electrode according to claim 1, wherein: the electrode outline data comprises the outline dimension of the electrode and the height of the electrode.

5. A system for recording a fractional deviation value of an electrode, comprising: the system comprises a basic data setting module, a simulation module and a midpoint dividing data recording module;

the basic data acquisition module is used for acquiring electrode shape data,

the simulation module selects the midpoint between the reference ball and the electrode according to the electrode shape data and performs collision simulation;

the midpoint dividing data recording module is used for recording midpoint dividing collision data, and the collision data comprises the size of a reference sphere, midpoint dividing three-dimensional data and an approaching retreat distance.

6. The system for recording offset values in an electrode according to claim 5, wherein: the electrode distribution program processing module is used for generating and uploading an electrode distribution program according to collision data, automatically uploading the electrode distribution program to a superior system, executing the distribution program to find the offset of the electrode, and writing the offset into the electrode offset parameter of the superior system.

7. The system for recording offset values in an electrode according to claim 6, wherein: the electrode centering device also comprises an error prevention module which is used for acquiring the actual numerical value of each position when the electrodes are centered, and if the electrodes are inclined and/or uneven, prompting information is output; if the operation is normally carried out, no prompt information is output.

8. The system for recording offset values in an electrode according to claim 5, wherein: the electrode outline data comprises the outline size of the electrode and the height of the electrode.

9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 4 when executing the computer program.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.

Technical Field

The present invention relates to the field of offset data recording, and more particularly, to a method, system and computer-readable storage medium for recording offset values in an electrode centering.

Background

The electric discharge machining is a method of machining a workpiece in a certain medium by an electroerosion action of pulse discharge between a tool electrode and the workpiece.

The electrode is divided into a plurality of parts, the deviation value is recorded and written into a machine tool, the part is a step which must be passed before discharge machining, when the electrode is clamped on the machine tool, certain deviation exists between XY and main shaft of the machine tool, certain distance exists between Z shaft and main shaft, the deviation values need to be obtained, the deviation values are written into the machine tool, the machine tool is automatically corrected in a reverse direction, and thus the machining position of the electrode can correspond to a workpiece.

At present, electrode centering of a numerical control electric discharge machine (hereinafter, abbreviated as an EDM machine) is manually performed by an EDM operator. The specific operation is as follows: an operator firstly manually moves an electrode on an equipment main shaft to the upper part of a reference ball through a manual control box of an EDM machine tool, firstly writes a measuring program for measuring the XY central offset of the electrode on the EDM machine tool, manually executes the program to measure the XY central offset of the electrode, and writes the XY central offset of the electrode into the machine tool. Then, a measuring program for measuring the Z-direction offset of the electrode is written on the EDM machine tool, the Z-direction offset of the electrode is measured by manually executing the program, and the Z-direction offset of the electrode is written into the machine tool. The method has low efficiency, great difficulty and long time consumption, and seriously influences the field output.

Disclosure of Invention

To solve at least one of the above technical problems, embodiments of the present application provide a method, a system, and a computer-readable storage medium for recording an offset value in an electrode separation.

A first aspect of the embodiments of the present application provides a method for recording an offset value in an electrode separation, which is characterized by including the following steps:

obtaining electrode shape data;

selecting a reference sphere and an electrode midpoint according to the electrode shape data;

performing collision simulation on the reference ball and the electrode midpoint to obtain an approximate withdrawal distance of the reference ball;

recording midpoint collision data, the collision data including recording the electrode midpoint space three-dimensional data, the reference sphere size, and the reference sphere approach retreat distance.

A second aspect of the embodiments of the present application provides a basic block diagram of a system for recording offset values in electrode divisions, which is as follows:

a basic data acquisition module for acquiring electrode shape data,

the simulation module is used for selecting the midpoint between the reference ball and the electrode and performing collision simulation;

and the midpoint dividing data recording module is used for recording midpoint dividing collision data, and the collision data comprises the size of the reference sphere, midpoint dividing three-dimensional data and an approaching retreat distance.

A third aspect of embodiments of the present application provides an electronic apparatus, including: the device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the method for recording the offset value in the electrode score provided by the first aspect of the embodiment of the present application.

A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the method for recording the offset values in the electrode score provided in the first aspect of the embodiments of the present application.

From the above description, the beneficial effects of the present invention are: the three-dimensional offset numerical value of the process of electrode centering can be automatically recorded by a machine only by few manual operations, the efficiency is high, the safety is high, the accuracy is high, the steps are few, the difficulty is low, the time spent is short, the labor cost is reduced, and the field output is increased.

Drawings

The specific structure of the invention is detailed below with reference to the accompanying drawings:

FIG. 1 is a basic flowchart of a method for recording a deflection value in a recording electrode according to a first embodiment of the present invention

FIG. 2 is a flowchart of a method for recording offset values in a plurality of electrodes according to a second embodiment of the present invention;

FIG. 3 is a basic block diagram of a system for centering offset values of a recording electrode according to a third embodiment of the present invention;

FIG. 4 is a block diagram of an offset value system for a recording electrode according to a fourth embodiment of the present application;

fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application.

Detailed Description

In order to explain technical contents, structural features, and objects and effects of the present invention in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.

Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.

Referring to fig. 1, a first embodiment of the present application provides a method for recording an offset value in an electrode division, for example, fig. 1 is a basic flowchart of the method for recording an offset value in an electrode division provided in this embodiment, and the method for recording an offset value in an electrode division includes the following steps:

step S1, obtaining electrode shape data;

step S2, selecting a reference sphere and an electrode midpoint according to the electrode shape data;

step S3, performing collision simulation to obtain the approaching retreat distance of the reference ball;

and step S4, recording midpoint collision data, wherein the collision data comprises the size of the reference sphere, the space three-dimensional data of the electrode midpoint and the approaching retreat distance of the reference sphere.

From the above description, the beneficial effects of the present invention are: the three-dimensional offset numerical value of the process of electrode centering can be automatically recorded by a machine only by few manual operations, the efficiency is high, the safety is high, the accuracy is high, the steps are few, the difficulty is low, the time spent is short, the labor cost is reduced, and the field output is increased.

Specifically, please refer to fig. 2, which includes step S5, generating and transmitting an electrode centering program according to the midpoint collision data, executing the electrode centering program, finding the electrode offset, and writing the electrode offset parameter.

Therefore, the higher-level system can directly obtain the three-dimensional electrode offset of the electrode offset and automatically and reversely correct the three-dimensional electrode offset, so that manual operation steps are reduced, the operation difficulty is weakened, the error possibility is reduced, the efficiency and the production are increased, and the marginal cost is reduced.

Specifically, the method further comprises a real-time error-proofing step, and specifically comprises the following steps:

step S6, acquiring the actual value of each position of the electrodes in the centering process,

if the electrode is inclined and/or the electrode is not flat and active, outputting prompt information;

if the operation is normally carried out, no prompt information is output.

Therefore, the position of the electrode can be detected in real time, on one hand, economic loss caused by operation errors in the previous steps is avoided, on the other hand, existing problems are found in time, operation is stopped quickly, and the possibility of economic loss is reduced.

In the above, the electrode profile data includes the profile of the electrode and the height of the electrode.

Therefore, basic data of the electrode are directly obtained, and calculation is convenient.

Referring to fig. 3, to solve the drawbacks of the related art, a second embodiment of the present application provides a system for recording an offset value in a split electrode, which includes a basic data setting module 201, a simulation module 202, and a split-midpoint data recording module 203; the system for recording the deviation value in the electrode division is as follows:

a basic data acquisition module 201 for acquiring electrode profile data,

the simulation module 202 selects the midpoint of the reference sphere and the electrode and performs collision simulation;

and the midpoint data recording module 203 is used for recording midpoint collision data, wherein the collision data comprises the size of the reference ball, the three-dimensional data of the midpoint and the approaching retreat distance of the reference ball.

From the above description, the beneficial effects of the present invention are: the operation of the module is few, each part in the system can operate by oneself, the manual operation time is reduced, the three-dimensional offset numerical value of the process of electrode centering is automatically recorded, the efficiency is high, the safety is high, the accuracy is high, the steps are few, the difficulty is low, the time spent is short, the labor cost is reduced, and the field output is increased.

Further, please refer to fig. 4, which includes an electrode distribution program operating module 204 for generating and uploading an electrode distribution program according to the collision data, automatically uploading the electrode distribution program to the upper level system, and executing the distribution program to find the offset of the electrode, and writing the offset into the electrode offset parameter of the upper level system.

In the embodiment, the numerical control electric spark machine tool is used as an upper layer system, after an electrode minute program is generated, the electrode minute program can be directly transmitted to the numerical control electric spark machine tool, the numerical control electric spark machine tool processes data of an X axis, a Y axis and a Z axis of the numerical control electric spark machine tool, and the position of each axis is automatically adjusted according to the data.

Further, the system also comprises an error prevention module 205, which is used for acquiring the actual numerical value of each position when the electrodes are centered, and outputting prompt information if the electrodes are inclined and/or uneven; if the operation is normally carried out, no prompt information is output.

When the electrode has the unconventional condition, in this implementation, the digit control machine tool can remind the operator through the suggestion modes such as the flashing of warning light, siren sound, avoid consequently the lathe to destroy.

In the above, the electrode profile data includes the profile of the electrode and the height of the electrode.

Therefore, an operator can conveniently and rapidly screen information, and the operator can conveniently acquire electrode data.

In conclusion, the system and the method for recording the offset value in the electrode centering can automatically record the three-dimensional offset value in the electrode centering process through the easily obtained data, and have the advantages of high efficiency, high safety, high accuracy, few steps, low difficulty and short time; and the error-proof steps and system are arranged, so that the device can be prevented from being damaged.

Referring to fig. 5, fig. 5 is an electronic device according to a third embodiment of the present application. The electronic device can be used to implement the method of recording the offset value in the electrode division in the foregoing embodiment. As shown in fig. 3, the electronic device mainly includes:

memory 301, processor 302, bus 303, and computer programs stored on memory 301 and executable on processor 302, memory 301 and processor 302 being connected via bus 303. The processor 302, when executing the computer program, implements the method of recording the offset values in the electrode score in the foregoing embodiments. Wherein the number of processors may be one or more.

The Memory 301 may be a Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a magnetic disk Memory. The memory 301 is for storing executable program code, and the processor 302 is coupled to the memory 301.

Further, an embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium may be provided in an electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 5.

The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method of recording the offset values in the electrode division in the foregoing embodiments.

Further, the computer-readable storage medium may be a Read-Only Memory (ROM) and a RAM, and includes various media capable of storing program codes, such as a usb disk, a removable hard disk, a magnetic disk, or an optical disk.

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.

Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.

In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.

The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a portable hard disk, a magnetic disk, or an optical disk in the ROM and the RAM.

It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种面向五轴线性插补的平动轴旋转轴协调运动规划控制方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类