Intelligent debugging method and system based on handshake protocol

文档序号:189542 发布日期:2021-11-02 浏览:55次 中文

阅读说明:本技术 基于握手协议的智能调机方法及系统 (Intelligent debugging method and system based on handshake protocol ) 是由 潘磊 邢璐 田野 于 2021-09-30 设计创作,主要内容包括:本发明公开了一种基于握手协议的智能调机方法及系统,用于对至少一台数控机台进行智能调机,该方法包括以下步骤:S1:获取所述数控机台的测量模型参数,并接收所述数控机台采集的加工零件的实际测量数据,其中通过与数控机台建立基于系统宏变量的握手协议来接收数控机台采集的加工零件的实际测量数据;S2:根据所述测量模型参数将所述数控机台采集到的加工零件的实际测量数据转换为标准格式的测量数据;S3:根据标准格式的测量数据和测量模型参数求解所述数控机台的优化补偿值;S4:将所述优化补偿值回传给所述数控机台,以使得所述数控机台根据所述优化补偿值进行调机。本发明解决了现有技术中的“调机”问题。(The invention discloses an intelligent debugging method and system based on a handshake protocol, which are used for intelligently debugging at least one numerical control machine, and the method comprises the following steps: s1: acquiring measurement model parameters of the numerical control machine, and receiving actual measurement data of the machined part acquired by the numerical control machine, wherein the actual measurement data of the machined part acquired by the numerical control machine is received by establishing a handshake protocol based on system macro variables with the numerical control machine; s2: converting actual measurement data of the machined part collected by the numerical control machine into measurement data in a standard format according to the measurement model parameters; s3: solving the optimized compensation value of the numerical control machine according to the measurement data and the measurement model parameters in the standard format; s4: and returning the optimized compensation value to the numerical control machine, so that the numerical control machine conducts debugging according to the optimized compensation value. The invention solves the problem of 'machine adjustment' in the prior art.)

1. An intelligent debugging method based on a handshake protocol is used for intelligently debugging at least one numerical control machine, and is characterized by comprising the following steps:

s1: acquiring measurement model parameters of the numerical control machine, and receiving actual measurement data of the machined part acquired by the numerical control machine, wherein the actual measurement data of the machined part acquired by the numerical control machine is received by establishing a handshake protocol based on system macro variables with the numerical control machine;

s2: converting actual measurement data of the machined part collected by the numerical control machine into measurement data in a standard format according to the measurement model parameters;

s3: solving the optimized compensation value of the numerical control machine according to the measurement data and the measurement model parameters in the standard format;

s4: and returning the optimized compensation value to the numerical control machine, so that the numerical control machine conducts debugging according to the optimized compensation value.

2. The intelligent machine debugging method of claim 1, wherein the measurement model parameters obtained in step S1 include types, standard values and tolerance standards of each to-be-measured dimension of a machined part of the numerical control machine, and a tool compensation coefficient of the numerical control machine.

3. The intelligent dispatching method according to claim 1, wherein step S1 further comprises: and correcting the actual measurement data of the processing part collected by the numerical control machine table by adopting the point position deformation of the standard block.

4. The intelligent debugging method of claim 3, wherein the step of correcting the actual measurement data acquired by the numerical control machine by using the point location deformation of the standard block specifically comprises the steps of: providing a standard block corresponding to each to-be-measured size of a to-be-measured machined part, wherein each standard block is provided with a plurality of calibration points, and acquiring a reference value of each calibration point of the standard block corresponding to each to-be-measured size; and when receiving the actual measurement data of the machined part collected by the numerical control machine, receiving the calibration value of each calibration point of the standard block corresponding to each size to be measured, and correcting the actual measurement data of the machined part collected by the numerical control machine according to the reference value and the calibration value of each calibration point of the standard block corresponding to each size to be measured.

5. The intelligent dispatching method according to claim 1, wherein there are two system macro variables in step S1, where "one macro variable includes a lock and a program name", and "one double-word variable stores three coordinate values of x, y, and z".

6. The intelligent dispatching method of claim 1, wherein the number of the system macro variables in step S1 is less than the number of the variables of the numerical control machine through variable compression, wherein a variable with a word length can indicate three interaction variables, namely the state of a lock variable, the measurement state of the numerical control machine, and the position of the current measurement point.

7. The intelligent debugging method of claim 1, wherein receiving actual measurement data of the machined part collected by the numerical control machine by establishing a handshake protocol with the numerical control machine specifically comprises:

a1: establishing a long link with the numerical control machine to inform the numerical control machine to enter an acquisition state when data receiving starts, and introducing an independent lock variable in an acquisition process;

a2: receiving a feature number transmitted by the numerical control machine in a macro variable form and correspondingly acquired point location measurement data, and simultaneously checking the lock variable;

a3: and resetting macro variables, judging whether the numerical control machine station finishes collecting all point locations, if so, finishing receiving, otherwise, informing the numerical control machine station to enter the measurement and report of the next point location, and returning to the step A2.

8. The intelligent dispatching method according to claim 1, wherein step S2 further comprises: and judging whether the obtained measurement data in the standard format reach the standard or not according to the measurement model parameters, and if not, sending an alarm signal to the numerical control machine to enable the numerical control machine to suspend processing of parts.

9. The intelligent dispatching method according to any one of claims 1 to 8, wherein step S3 specifically comprises: the confidence domain-based weighted optimization problem model built from the measurement data and measurement model parameters in the standard format is represented as follows:

solving the optimization problem model by adopting a confidence domain reflection method to obtain an optimization compensation value of the numerical control machine;

wherein the content of the first and second substances,is the measurement data in a standard format,for measuring machining zeros contained in model parametersThe standard value of each dimension of the piece to be measured,in order to measure the cutter compensation coefficient of the numerical control machine included in the model parameters,for the tolerance of the numerical control machine to be solved,for the compensation value of the numerical control machine to be solved,is a matrix of the units,in order to be the weight, the weight is,are respectively unknown quantitiesUpper and lower limits of (d).

10. The intelligent tuning method of claim 9, wherein solving the optimization problem model by using a confidence domain reflectometry to obtain the optimized compensation value of the numerical control machine specifically comprises:

constructing functionsf(x) And by trial stepMinimization over trusted domain Nf(x) Is calculated to obtainAndwherein the trust domain N is a functionf(x) At the point ofOf the neighborhood of (c).

11. The intelligent tuning method of claim 10, wherein the steps are performed by heuristic stepsMinimization over trusted domain Nf(x) The method specifically comprises the following steps:

b1: constructing a two-dimensional trust domain sub-problem:wherein, in the step (A),is a function offAt the current pointThe gradient of (D), H is the Hessian matrix, D is the diagonal scaling matrix, s is the probe step,is the trust domain radius;

b2: solving two-dimensional trust domain sub-problems to determine heuristic steps

B3: judgment off(x+s) Whether or not less thanf(x) If so, then causex=x+sAnd returning to step B1; if not, the current point is kept unchanged, and the radius of the confidence domain is reducedAnd returning to step B1;

b4: repeating the steps B1-B3 until the sub-problem of the two-dimensional trust domain is converged to obtain an optimization problemf(x) The solution of (1).

12. The intelligent tuning method of claim 11, wherein in the step B2, when solving the two-dimensional confidence domain sub-problem, the two-dimensional confidence domain sub-problem is limited to the two-dimensional subspace K for solving, and the two-dimensional subspace K is determined according to the following preconditioned conjugate gradient method: defining a two-dimensional subspace K as defined by K1And k2A determined linear space of k1Is a gradientDirection of (a), k2Satisfy the requirement ofOrThe conditions of (1).

13. The intelligent tuning method of claim 9, wherein after solving the optimization problem model by using a confidence domain reflectometry to obtain the optimized compensation value of the numerical control machine, the method further comprises: and correcting the optimized compensation value of the numerical control machine according to the optimized compensation value of the numerical control machine obtained by solving the optimized problem model and the measurement model parameters.

14. The intelligent debugging method according to claim 1, wherein before returning the optimized compensation value to the numerical control machine in step S4, it is determined whether the optimized compensation value exceeds a preset threshold, and if so, an intervention signal is sent to the numerical control machine to suspend the numerical control machine from processing the part; and if not, returning the optimized compensation value to the numerical control machine.

15. The intelligent debugging method according to claim 1, wherein before the optimized compensation value is returned to the numerical control machine in step S4, it is determined whether the optimized compensation value exceeds a preset threshold, and if so, the actual measurement data of the machined part collected by the numerical control machine is corrected again by using a standard block; if the corrected value still exceeds the threshold value, an intervention signal is sent to the numerical control machine, so that the numerical control machine suspends the processing of the part; and if the optimal compensation value does not exceed the preset threshold value, returning the optimal compensation value to the numerical control machine.

16. An intelligent tuning system based on handshake protocol, which is used for carrying out intelligent tuning on at least one numerical control machine, and is characterized by comprising: a processor and a storage medium having a computer program stored therein, the processor being arranged to execute the computer program to perform the smart call method of any one of claims 1 to 15.

Technical Field

The invention relates to the technical field of numerical control machining, in particular to an intelligent debugging method and system based on a handshake protocol.

Background

In the CNC metal processing industry, the process of finally processing and forming a part according to a design drawing needs to be decomposed into a plurality of stages: design drawing-DFM process disassembly-NPI processing verification-mass production. The DFM technology disassembly comprises the steps of disassembling a part into a plurality of machining processes, wherein the machining description, the equipment requirement, the process drawing, the tool clamp information, the SIP inspection standard and the program summary of each process are included; when the NPI processing verification stage is entered, a machine table, a fixture and a cutter are selected for production verification. The 'machine adjustment' is used as a core link of production verification, and all sizes are enabled to reach the quality standard by adjusting a cutter compensation value and a coordinate system compensation value used in part processing. The success of "tuning" is influenced by the action of the conditions of the upstream and downstream, including: the reasonability of process disassembly, the practicability of quality control, the performance stability of equipment used for production, the assembly standardization of a clamping jig, the superiority and inferiority of a method for selecting a cutter and a cutting program and the like, and the combination of all the conditions influences the debugging result. Therefore, the 'tuning' is the fundamental determining factor for the completion speed of the whole production verification stage, and the result verification of each relevant work process is reflected by the 'tuning' result. The faster the "tune away" passes, the faster the enterprise can receive volume production orders and the faster the product delivery can be completed.

In the existing CNC metal processing field, the basic process of "machine debugging" is as follows: when each machine produces and processes the first sheet material, the production technical personnel can rely on the visual observation, the work experience, and the cutter compensation and the coordinate system compensation value that the manual adjustment processing used, output finished product part send the part off-line equipment inspection measurement again, see whether can all size up to standard. And if the standard is reached, the machine is adjusted to pass. If the finished product does not reach the standard, the finished product is changed, processed, adjusted and inspected again until all sizes of the finished product are qualified. Generally, the product size reaches the standard, repeated machine adjustment is needed for many times, because all sizes have relevance, a knife or a coordinate system can participate in processing of multiple sizes, if compensation of headache treatment and foot pain treatment is carried out, the problem size at one position can reach the standard after adjustment, and the related size at the other position has a problem. Therefore, in the existing "tuning" process, the necessary condition is that the production technicians are "qualified and technically experienced". Only if the condition is ensured, the production verification stage can be completed in due course, and the technical verification can be passed in due course, so that the mass production order can be smoothly obtained. However, it is now difficult for production technicians to recruit workers, and the corresponding labor cost is also increasing, which becomes a pain point for manufacturing enterprises.

If the enterprise can ensure that production technicians are in place, the machine adjustment verification is normally carried out, and the difficulty of efficiency resistance is faced next. The time consumed by the process of machine adjustment is not only the time for adjusting the cutter compensation and compensating the coordinate system for re-processing once, but also appears in the detection process of the product after the production of machine adjustment is finished every time. At present, the detection of the switching result by a factory is mostly carried out outside the machine, namely, after a part is produced, a laboratory is taken out, professional detection equipment is used, and a detection report is output. And the proportion difference between the detection equipment and the production equipment is extremely large, and reaches 1.5: 100. thus, a significant amount of queue waiting time is naturally incurred, and a sheet may need to wait for hours or even longer. As a result, it may take several days for one CNC processing device to complete the machine change of hundreds of devices, and it also takes two months to complete the machine change. The time consumed by the 'machine adjustment' is also the loss of the available time of the factory equipment, the 'machine adjustment' efficiency is improved, the production verification stage is accelerated to the maximum extent, the available time of the equipment can be released to the maximum extent, and the production capacity is further converted.

Besides the problems of personnel and efficiency, the down-regulation machine also has the problem of material waste. Parts produced by machine adjustment failure often cannot be subjected to secondary processing, and a piece of waste is formed. The higher the one-time achievement rate of the machine, the less the material loss. The better the yield data will be. Meanwhile, in addition to the above-mentioned need of machine adjustment at the production capacity verification stage, machine adjustment is also required in the process of mass production. For example, every day, every machine when being first sheet stock, when having updated built-in clamp tool, after the tool changing, all need carry out the machine regulation to the material of production thereupon and detect, the yields of guarantee volume production. Therefore, the 'machine adjusting' scene penetrates through each link of CNC metal machining, and the problem of 'machine adjusting' is solved to bring huge improvement of production capacity.

The above background disclosure is only for the purpose of assisting understanding of the concept and technical solution of the present invention and does not necessarily belong to the prior art of the present patent application, and should not be used for evaluating the novelty and inventive step of the present application in the case that there is no clear evidence that the above content is disclosed at the filing date of the present patent application.

Disclosure of Invention

In order to solve the problem caused by possible relevance among sizes during the 'tuning', the invention provides an intelligent tuning method and system based on a handshake protocol.

In order to achieve the purpose, the invention adopts the following technical scheme:

one embodiment of the invention discloses an intelligent dispatching method based on a handshake protocol, which is used for intelligently dispatching at least one numerical control machine and comprises the following steps:

s1: acquiring measurement model parameters of the numerical control machine, and receiving actual measurement data of the machined part acquired by the numerical control machine, wherein the actual measurement data of the machined part acquired by the numerical control machine is received by establishing a handshake protocol based on system macro variables with the numerical control machine;

s2: converting actual measurement data of the machined part collected by the numerical control machine into measurement data in a standard format according to the measurement model parameters;

s3: solving the optimized compensation value of the numerical control machine according to the measurement data and the measurement model parameters in the standard format;

s4: and returning the optimized compensation value to the numerical control machine, so that the numerical control machine conducts debugging according to the optimized compensation value.

Preferably, the measurement model parameters obtained in step S1 include types, standard values, and tolerance standards of each to-be-measured dimension of the machined part of the numerical control machine, and a tool compensation coefficient of the numerical control machine.

Preferably, step S1 further includes: and correcting the actual measurement data of the processing part collected by the numerical control machine table by adopting the point position deformation of the standard block.

Preferably, the correcting the actual measurement data acquired by the numerical control machine by using the standard block point position deformation specifically includes: providing a standard block corresponding to each to-be-measured size of a to-be-measured machined part, wherein each standard block is provided with a plurality of calibration points, and acquiring a reference value of each calibration point of the standard block corresponding to each to-be-measured size; and when receiving the actual measurement data of the machined part collected by the numerical control machine, receiving the calibration value of each calibration point of the standard block corresponding to each size to be measured, and correcting the actual measurement data of the machined part collected by the numerical control machine according to the reference value and the calibration value of each calibration point of the standard block corresponding to each size to be measured.

Preferably, in step S1, there are two system macro variables, respectively, "one macro variable includes a lock and a program name," and "one double-word variable stores three coordinate values of x, y, and z.

Preferably, the number of the system macro variables in the step S1 is less than the number of the variables of the numerical control machine station through variable compression, wherein a variable with a word length can indicate three interaction variables of the state of the lock variable, the measurement state of the numerical control machine station and the position of the current measurement point.

Preferably, the receiving, by establishing a handshake protocol with the numerical control machine, actual measurement data of the machined part collected by the numerical control machine specifically includes:

a1: establishing a long link with the numerical control machine to inform the numerical control machine to enter an acquisition state when data receiving starts, and introducing an independent lock variable in an acquisition process;

a2: receiving a feature number transmitted by the numerical control machine in a macro variable form and correspondingly acquired point location measurement data, and simultaneously checking the lock variable;

a3: and resetting macro variables, judging whether the numerical control machine station finishes collecting all point locations, if so, finishing receiving, otherwise, informing the numerical control machine station to enter the measurement and report of the next point location, and returning to the step A2.

Preferably, step S2 further includes: and judging whether the obtained measurement data in the standard format reach the standard or not according to the measurement model parameters, and if not, sending an alarm signal to the numerical control machine to enable the numerical control machine to suspend processing of parts.

Preferably, step S3 specifically includes: the confidence domain-based weighted optimization problem model built from the measurement data and measurement model parameters in the standard format is represented as follows:

solving the optimization problem model by adopting a confidence domain reflection method to obtain an optimization compensation value of the numerical control machine;

wherein the content of the first and second substances,is the measurement data in a standard format,in order to measure the standard value of each dimension to be measured of the machined part included in the model parameters,in order to measure the cutter compensation coefficient of the numerical control machine included in the model parameters,for numerical control machines to be solvedThe tolerances of the table are such that,for the compensation value of the numerical control machine to be solved,is a matrix of the units,in order to be the weight, the weight is,are respectively unknown quantitiesUpper and lower limits of (d).

Preferably, solving the optimization problem model by using a confidence domain reflection method to obtain the optimized compensation value of the numerical control machine specifically includes:

constructing functionsf(x) And minimized in the trust domain N by a heuristic step sf(x) Is calculated to obtainAndwherein the trust domain N is a functionf(x) At the point ofOf the neighborhood of (c).

Preferably, minimization over trust domain N by a heuristic step sf(x) The method specifically comprises the following steps:

b1: constructing a two-dimensional trust domain sub-problem:wherein, in the step (A),is a letterNumber offAt the current pointH is the Hessian matrix, D is the diagonal scaling matrix,is a step of trial-and-error,is the trust domain radius;

b2: solving two-dimensional trust domain sub-problems to determine heuristic steps

B3: judgment off(x+s) Whether or not less thanf(x) If so, then causex=x+sAnd returning to step B1; if not, the current point is kept unchanged, and the radius of the confidence domain is reducedAnd returning to step B1;

b4: repeating the steps B1-B3 until the sub-problem of the two-dimensional trust domain is converged to obtain an optimization problemf(x) The solution of (1).

Preferably, in the step B2, when solving the two-dimensional confidence domain sub-problem, the two-dimensional confidence domain sub-problem is limited to the two-dimensional subspace K for solving, and the two-dimensional subspace K is determined according to the following preconditioned conjugate gradient method: defining a two-dimensional subspace K as defined by K1And k2A determined linear space of k1Is a gradientDirection of (a), k2Satisfy the requirement ofOrStrip ofAnd (3) a component.

Preferably, after solving the optimization problem model by using a confidence domain reflection method to obtain an optimized compensation value of the numerical control machine, the method further includes: and correcting the optimized compensation value of the numerical control machine according to the optimized compensation value of the numerical control machine obtained by solving the optimized problem model and the measurement model parameters.

Preferably, before the optimized compensation value is returned to the numerical control machine in step S4, it is determined whether the optimized compensation value exceeds a preset threshold, and if so, an intervention signal is sent to the numerical control machine, so that the numerical control machine suspends processing the part; and if not, returning the optimized compensation value to the numerical control machine.

Preferably, before the optimized compensation value is returned to the numerical control machine in step S4, it is determined whether the optimized compensation value exceeds a preset threshold, and if so, the actual measurement data of the machined part collected by the numerical control machine is corrected again by using the standard block; if the corrected value still exceeds the threshold value, an intervention signal is sent to the numerical control machine, so that the numerical control machine suspends the processing of the part; and if the optimal compensation value does not exceed the preset threshold value, returning the optimal compensation value to the numerical control machine.

Another embodiment of the present invention discloses an intelligent tuning system based on a handshake protocol, which is used for performing intelligent tuning on at least one numerical control machine, and is characterized by comprising: the intelligent calling system comprises a processor and a storage medium, wherein a computer program is stored in the storage medium, and the processor is configured to run the computer program to execute the intelligent calling method.

Compared with the prior art, the invention has the beneficial effects that: according to the intelligent debugging method and system based on the handshake protocol, the actual measurement data of the machined part collected by the numerical control machine is received by establishing the handshake protocol based on the system macro variable with the numerical control machine, so that measurement can be carried out in the machine, and debugging time is saved. By establishing the handshake protocol, normal processing of the numerical control machine can not be influenced, the handshake efficiency is high, the macro variables occupying the numerical control machine are few, the handshake times are few, but the data interaction can be guaranteed to be stable, and data loss or wrong acquisition and reception do not occur.

In a further embodiment, the optimized compensation value of the numerical control machine is solved by receiving actual measurement data and measurement model parameters of a machining part of the numerical control machine and adopting a weighted optimization problem model based on a trust domain to guide the numerical control machine to carry out tuning, so that tuning becomes a standardized flow. The compensation value of the cutter compensation or the coordinate can not be calculated only by experience any more, and the whole process of machine adjustment compensation can be carried out without the participation of professional workers and only by common operators for processing, loading, unloading and processing. Therefore, the problems of difficulty in technical and technical recruitment and high cost of a factory are thoroughly solved. In addition, the algorithm and the measuring method used in the intelligent tuning method enable the accuracy and the precision of the tuning compensation parameters to be optimal, and the tuning effect cannot be achieved by excellent skills. Meanwhile, the accuracy and precision can not be distinguished due to different equipment and environments, and the method is extremely stable. In addition, the intelligent machine adjusting system improves the machine adjusting efficiency by more than half; once machine-adjusting and material-making needs to be repeated for 6 times or more, and after the machine-adjusting method and the machine-adjusting system are used, one-time completion can be achieved. The conventional repeated machine debugging needs to go back and forth to a laboratory or an offline detection device for judgment under the manual participation, the time consumption cost comprises offline detection time, manual judgment time, repeated processing time and detection device waiting time (considering that the number of the detection devices is far less than that of the production devices and is about 1.5: 100, processed parts need to be subjected to offline detection and need to be queued for waiting for device idle time), and the machine debugging time is only twice material processing time and one time of machine measurement program running time. In the new product verification climbing stage, the intelligent machine adjusting method and the intelligent machine adjusting system can reduce the original machine adjusting time by half. Meanwhile, most of the measurement of the size is transferred into the numerical control machine, so that the problem is exposed and solved in the machine in advance, and the requirement pressure of the laboratory measuring instrument is greatly reduced.

In a further scheme, the machine adjusting result is detected in the machine by receiving actual measurement data and measurement model parameters of the machined parts of the numerical control machine, and the actual measurement data of the machined parts collected by the numerical control machine is corrected by using a standard block, so that the machine adjusting time is saved.

In a further scheme, a handshake protocol based on system macro variables is established with the numerical control machine to receive actual measurement data of the machined part collected by the numerical control machine, so that measurement can be carried out in the machine, and the machine debugging time is saved. By establishing the handshake protocol, normal processing of the numerical control machine can be unaffected, handshake efficiency is high, macro variables occupying the numerical control machine are few, handshake times are few, but data interaction can be guaranteed to be stable, and data loss or wrong acquisition and reception are avoided.

Drawings

FIG. 1 is a flow chart of a handshake protocol based intelligent call method according to a preferred embodiment of the present invention;

FIG. 2 is a diagram of a standard block according to an embodiment of the present invention;

FIG. 3 is a flow chart of a method of intelligent dispatch in accordance with an embodiment of the present invention;

FIG. 4 is a block diagram of an intelligent dispatch system in accordance with an embodiment of the present invention;

fig. 5 is a schematic diagram of correction of the result value of measurement of the workpiece.

Detailed Description

The invention will be further described with reference to the accompanying drawings and preferred embodiments.

The preferred embodiment of the invention discloses an intelligent dispatching method based on a handshake protocol, which is used for intelligently dispatching at least one numerical control machine, so that the dispatching process is smoother, the dispatching compensation data can reach the target at one time, and the target process is as follows: after the numerical control machine is machined, a probe is used for measuring the size point positions in the machine, a system collects measuring points in real time to calculate each size value of a part, a page of the system visually shows the size measuring result of the machined part, the optimal compensation values of all tool compensation and coordinate system compensation participating in machining are automatically calculated, the compensation values can be written back to the machine by one key of a compensation key, and products with the standard sizes can be produced by machining and measuring the numerical control machine again. The machine debugging process is not limited by a numerical control machine system and is suitable for all types of numerical control machines.

As shown in fig. 1, the intelligent tuning method specifically includes the following steps:

s1: acquiring measurement model parameters of a numerical control machine, and receiving actual measurement data of a machined part acquired by the numerical control machine, wherein the actual measurement data of the machined part acquired by the numerical control machine is received by establishing a handshake protocol based on a system macro variable with the numerical control machine;

the obtained measurement model parameters comprise types, standard values and tolerance standards of all sizes to be measured of the machining parts of the numerical control machine, cutter compensation coefficients of the numerical control machine and the like.

During the process of starting machining, verifying and debugging a part, each numerical control machine is required to pass through the debugging. That is, each numerical control machine is guaranteed to have the ability to produce parts meeting quality requirements, or machine adjustment and verification work is needed when the first material is produced every day. The basis of the machine debugging work is that a process and programming department determines the drawing version of a machined part, formulates a process method (such as procedure splitting, NC program machining, a machining tool, a machining clamp, performance requirements of machining equipment and the like), and determines quality detection requirements, such as the detected size and tolerance standard thereof. If the standard is 0.83cm for a length size, if the length size reaches the range of 0.09cm for an upper line and 0.05cm for a lower line, the standard reaches the standard, and the size produced is judged to be qualified when the length size is 0.78cm to 0.92 cm.

Specifically, before starting the tuning, the following data contents need to be stored: (1) a project of processing; (2) processing equipment assigned to the project; (3) parts under the project; (4) each drawing version of the part; (5) multiple processes under each drawing version; (6) each process comprises a series of detection sizes; (7) each dimension has a set of tolerance standards, a set of machining tool information, and a set of machining coordinate system information. The actual influencing information, such as tool length or tool radius, is contained in both the tool and coordinate system information, which influences the machining of the dimension, and the influencing factors, i.e. the relationship between the tool/coordinate system compensation and the dimension, are recorded. If the sizes are different, under different cutter cutting methods, the coefficient proportion is influenced by different cutter compensation. (7) There are multiple bit sizes for each size. I.e. the measured values differ from point to point. Such as thickness dimension, radius dimension, etc., there will be multi-point data to be presented.

The numerical control machine station uses probe hardware equipment and a measuring NC program to detect a plurality of rows of point values in the machined part; and acquiring the relation between the point positions and the sizes of the parts through a part drawing, and calculating all size values through the point position values. During the measurement process, there are often some error problems: errors due to thermal deformation, errors due to burrs, errors due to deformation, and the like. In this embodiment, after receiving the actual measurement data of the machined part collected by the numerical control machine, the actual measurement data of the machined part collected by the numerical control machine is corrected by using the standard block point location deformation to solve the error problem.

In a specific embodiment, the standard block is schematically shown in fig. 2, there are 1 standard block in each of the X and Y directions, and the size of the "calibration point" of the standard block is measured and calibrated by three coordinates in advance (the reference value is marked in the figure). After the standard block is installed, the standard block is measured by a built-in measuring head, and after an original point is found, coordinate values (namely calibration values) of all 'calibration points' in the standard block are measured in the built-in measuring machine. Thus, the error value of each calibration point in-machine detection value and three-coordinate detection value can be calculated, as shown in table 1. For example, taking the length of a1 to a2 point as a case, the theoretical diameter is | a2-a1| =24 mm. Point a1 has an on-line measurement coordinate of-118.0, and the closest "index point" on the standard block for this position is point 9 in table 1, which has a value of-117.0, with an error of 0.009. Therefore, the error value of the index point is taken to correct the point A1, and the corrected coordinate A1 is-118.0-0.009 = -118.009. And similarly, correcting the coordinates of the point A2 to be-142.0-0.011 = -142.011. After point a1 and point a2 are corrected, the diameter | a2-a1| =24.002mm of the circle. And when compensation calculation value is carried out subsequently, the coordinate value subjected to standard block compensation is taken for next calculation.

TABLE 1 reference value, calibration value and corresponding error for each calibration point of a standard block

The actual measurement data of the machined part collected by the receiving numerical control machine is specifically as follows: the method comprises the following steps of receiving actual measurement data of a machined part collected by a numerical control machine through a handshake protocol which is interactive with the numerical control machine, and further comprising the following steps:

a1: establishing a long link with a numerical control machine to inform the numerical control machine to enter an acquisition state when data receiving starts, and introducing an independent lock variable in an acquisition process;

a2: receiving a feature number transmitted by a numerical control machine in a macro variable form and correspondingly acquired point location measurement data, and simultaneously checking the variable of the lock; that is, every time the numerical control machine tool obtains a measured point location result, the point location result and the specified characteristic number are transmitted to the intelligent dispatching system in a macro variable form; the method comprises the steps of obtaining a system macro variable, and performing information interaction on the system macro variable, wherein the system macro variable totally adopts two system macro variables for information interaction, and the two system macro variables are respectively 'one macro variable comprises a lock and a program name' and 'one double-word variable stores three coordinate values of x, y and z'.

A3: and resetting the macro variable, judging whether the numerical control machine finishes collecting all point locations, if so, finishing receiving, informing the numerical control machine to enter the measurement and report of the next point location, and returning to the step A2. When all the measured point data are measured, the numerical control machine sends an end signal, the intelligent dispatching system acquires the end signal, one round of data receiving is ended, all the acquired point data are reported to a server of the intelligent dispatching system, and after the data are received, the server completes the subsequent size calculation, size judgment and compensation calculation.

The main objective of the handshake protocol is to ensure that result data of the built-in measurement can be correctly acquired by an acquisition program, and usually 5-6 macro variables are required to store measurement results and measurement state data, so as to ensure the cooperative implementation of the built-in measurement and acquisition. In the embodiment, the macro variables with continuous addresses are used for realizing the functions, because in many CNC machines, a group of continuous macro variables can be read by using the API, so that the interaction times of an acquisition program and the CNC machines are reduced, and the time for measuring in the machine is shortened; meanwhile, a variable compression technology can be used in some specific scenes, for example, values of 5-6 variables in a service are compressed into 2-3 macro variables of a machine, and the storage space of the machine is further saved.

The interaction variables of the current handshake are mainly divided into two categories: the first type is used for defining a measurement state and a control signal, which are respectively corresponding lock variables (lock state 0|1, lock holder 0| 1), machine measurement states (four states), and a current measurement point ID (a positive integer not exceeding 2000), in this embodiment, 2+2+12 are respectively used, and a total variable of one word length indicates the three states, thereby realizing compression of the control variables; the second type is used for defining measurement data, which are three values at present, and correspond to X, Y, Z coordinate values of the acquisition point location respectively, the value range of the coordinate values is usually a floating point number below 10 bits, and each variable needs a double-word length to be stored; in the embodiment, difference processing is performed on the acquired coordinate values and the reference values in the measurement program, and the difference is usually within a range of +0.1 to + -0.0001; therefore, the processing of 10000 times is further carried out, the final result is that all coordinate values become an integer with an absolute value less than 1000, then 12+12+12 is respectively used, three coordinate values can be stored in a double-word variable, and the use of the macro variable of the machine is further reduced.

In addition, the CNC machine program and the external acquisition program may access a set of macro variables of the CNC machine at the same time, which causes a practical problem of accessing the variables of the critical area, the conventional handshake protocol usually only considers the accuracy of guaranteeing the data access of the critical area through the acquisition time sequence, and there is an assumption that the variable reading and writing speed of the CNC machine is recorded in milliseconds, which is negligible with respect to the time measured in the one-time machine (approximately recorded in seconds). The assumption is used in the handshake protocol, which causes the situation that in some extreme cases (for example, the writing delay caused by the pressure of the machine station is large), the variable storing the result data measured in the machine in the critical area is covered. The handshake protocol in this embodiment introduces an individual variable of a lock, and the lock variable needs to be checked and locked when acquiring result data measured by a process or a CNC machine program in a reader-writer, and a spin mode is selected in the current lock waiting strategy, that is, when a write process finds that a lock is held by an opposite process, the write process waits for the lock through a short sleep time in a cycle, so that read-write protection of a shared macro variable in a multi-process environment is formed, read-write consistency of variables in a critical zone is realized, and the problem that the variable storing the result data measured in the reader-writer in the critical zone in the existing handshake protocol is covered is solved.

In conclusion, by establishing the above handshake protocol, normal processing of the numerical control machine is not affected, handshake efficiency is high, macro variables occupying the numerical control machine are few, handshake times are few, but data interaction can be guaranteed to be stable, and data loss or wrong acquisition and reception do not occur.

S2: converting actual measurement data of the machined part collected by the numerical control machine into measurement data in a standard format according to the measurement model parameters;

and finding the relation between the measuring point position and the detected size in the part drawing, and calculating the result value of the size through a geometric formula. The part of operation can be finished in the intelligent detection and debugging system or can be finished by depending on the connection of the existing detection systems in the market. If form and position size values such as roundness, coaxiality, parallelism, verticality and symmetry are calculated, the size to be measured can be marked on a drawing, and the system guides to select and calculate the required measuring point position. Thus, the detection program only needs to measure the (x, y, z) coordinates of the measurement points, and the system can automatically complete the calculation and display of the size result by using the established geometric calculation model.

After the actual measurement data are converted into the measurement data in the standard format, whether the obtained measurement data in the standard format reach the standard is judged according to the measurement model parameters, and if the measurement data do not reach the standard, an alarm signal is sent to the numerical control machine, so that the numerical control machine suspends the processing of parts.

Specifically, the system realizes real-time reception of the measured data point location through a custom handshake protocol. And after the point location conversion is calculated into the size of the part, comparing the part size with the size tolerance specified in the quality standard document in the system, and outputting a report that whether each size meets the standard or not. The report contains information including part measuring time, part piece codes, part processing detection machine serial numbers, standard values and tolerance of part sizes, actual values of the part sizes, judgment on whether the sizes reach the standard or not and size deviation values. And acquiring point location measurement values in real time according to the measurement program. And judging whether the measured dimension is qualified or not in real time.

Therefore, the system display result described above includes not only the finally calculated dimension result value but also the "standard determination" (OK or NG) including the deviation value. By checking the final acquisition result, the size of the whole part can be immediately known, whether the whole part passes through the final acquisition result or not, the size of the whole part does not reach the standard, the deviation of each size is what, and the size of the deviation exceeding a certain range is what. If the dimension does not reach the standard, the numerical control machine is informed except the display in the system detection result, so that the numerical control machine is stopped and an alarm is generated to inform field personnel that the processing measurement of the equipment does not pass and the compensation is needed. So as to avoid the occurrence of the next unqualified processed product.

S3: establishing a weighted optimization problem model based on a trust domain according to the measurement data and the measurement model parameters in the standard format, and solving the optimization problem to obtain an optimized compensation value of the numerical control machine;

under the condition that the dimension does not reach the standard, the system needs to calculate the compensation value of the cutter and the coordinate axis related to the machining of the dimension which does not reach the standard, so that in the next machining process of the machine table, after the cutter compensation and the coordinate system compensation are adopted, the part with the dimension reaching the standard is produced. In the calculation of the compensation value, there is a correlation between the sizes, and at the same time, one interpolation or one coordinate axis change may affect a plurality of sizes because the compensation value cannot be calculated simply by inequalities of a single size. In the embodiment, a group of underdetermined equations is initially formed by compensating coefficients of the size, the standard value, the tolerance, the compensating system, the unknown compensating variable and the compensating variable, a weighting solving method is added in consideration of different sizes reaching the importance of tolerance standard, and finally the equations are converted into a constraint optimization problem to be solved. With the help of the compensation value algorithm, the tuning machine can be helped to obtain an optimal scheme, and each size is made to have the best value, not only reach the standard. The specific compensation algorithm is explained in detail below.

S31: and (5) constructing a model.

In the cnc compensation, the actual measured value should be within the tolerance range of the standard value plus the compensation value (compensation value), so the actual measured value should be equal to the standard value plus the compensation factor times the compensation plus the floating tolerance. The compensation coefficient and the standard value are obtained in step S1 by the system setting, and the measured value is obtained by the field numerical control machine, and the compensation value and the tolerance are required to be obtained. In the compensation algorithm, the actual physical quantity of the known measurement is therefore recorded asCoefficient of compensationStandard value ofTolerance of unknown quantityAnd compensation value(where n, k are both positive integers, representing the dimension of the space, and R represents a real space, e.g.Representing an n-dimensional real number space). There is therefore a system of equations:

(1)

wherein the unknown quantity is a compensation valueAnd toleranceTherefore, the number of the unknowns is k + n, and the number of the equations is n, so that the number of the unknowns is larger than the number of the effective equation sets, and the problem is converted into the problem of solving the underdetermined equation sets.

Further, reducing the system of equations to a standard format order,because of the range requirements for compensation values and tolerances in practical situations, the present invention equates the original problem to solving an underdetermined system of equations with constraints:

(2)

whereinUpper and lower bounds for the unknown quantities, respectively.

If a feasible solution exists for equation set (2), the solution must be the optimal solution for the following constrained optimization problem:

(3)

in practice, there are often more requirements for a feasible solution, such as a minimum two-norm solution or a weighted solution. Therefore, in the present invention, the problem is modeled as an optimized problem solution with weights:

(4)

here, theIs the weight.

S32: solving the model: the quadratic programming problem can be solved by adopting an interior point method or a confidence domain reflection least square method, and the interior point method is very small in numerical value and error is often generated in the solution of the interior point method in the experiment, so that the confidence domain reflection least square method is adopted for solving.

S33: confidence domain reflection method:

taking into account the unconstrained minimization problem, minimizingf(x):. Suppose now that a point in n-dimensional space is locatedAnd a point with a smaller function value needs to be found. The basic idea is to approximate with a simpler function qfThe function should be able to sufficiently reflect the functionfAt the point ofThe behavior in neighborhood N. This neighborhood N is the trust domain. Step of probingBy being in a trusted domainIs calculated by performing a minimization (or approximate minimization) of the above. The trust domain sub-problem is as follows:

(5)

if it is notf (x +s)<f (x) The current point is updated tox+ s; otherwise, the current point remains unchanged, trust domainThe algorithm computes the trial step again, narrowing.

Method in defining specific trust domain to minimizef (x) In (2), the key question is how to select and compute the approximation q (at the current point)xDefined above), how to select and modify trust domain N, and how to accurately solve the trust domain sub-problem. In the standard confidence domain method, the quadratic approximation q is formed byfIn thatxThe first two definitions of the taylor approximation of (a); the neighborhood N is typically spherical or elliptical. Expressed in mathematical language, the trust domain sub-problem is usually written

(6)

Wherein the content of the first and second substances,is thatfAt the current pointThe gradient at, H is the Hessian matrix (symmetric matrix of second derivative), D is the diagonal scaling matrix,is the confidence domain radius, is a positive scalar quantity,is a 2-norm. Such 2-order algorithms (those involving Hessian matrix and inversion, which are time-consuming and labor-intensive in large-scale solution and computationally complex) typically involve computing all eigenvalues of H and applying newton's method to the following eigen equation

(7)

Equation (7) may provide an accurate solution to equation (6); the eigenvalues of H are typically computed using eigenvalue decomposition, and solving the optimized iterative format of equation (6) requires computing the eigenvalue decomposition of H, and applying these eigenvalues andthe iterative direction is calculated, which involves a theorem solving a quadratic programming problem with constraints:

is the global minimum solution of equation (6) and only ifIs feasible and existsSuch that:

from the above theorem, the iterative format can be knownIs aboutCan be optimized by calculatingFind the optimum

Setting H to have eigenvalue decompositionWhereinIs an orthogonal matrix in which the matrix is orthogonal,is a diagonal matrix of the angles,is the eigenvalue of H. For convenience, only consider the followingAnd isIs the case of a single-feature root, other cases may be similarly analyzed. It is clear that,with eigenvalue decomposition. To pairCan write out directlyExpression (c):

it is this thatOrthogonal decomposition of (2), which can be easily determined from orthogonality

According to the above formulaAnd isWhen the temperature of the water is higher than the set temperature,is aboutIs strictly decreasing function of, and has

According to the theorem of continuous function mesovalues, the complementary relaxation propertiesThe solution (equivalent to equation (7)) must exist and be unique, and thus can be obtained by computing the root of the unitary equation of equation (7) by newton's methodAnd then calculated to obtain

However, solving for the eigenvalues of H takes time proportional to several decompositions of H. Therefore, for the problem of the confidence domain, another method is adopted in the invention, the method is to limit the sub-problem of the confidence domain in the two-dimensional subspace K for approximate solution, once the two-dimensional subspace K is calculated, even if complete eigenvalue/eigenvector information is needed, the workload for solving the formula (6) is not large, so the main work is transferred to the determination of the subspace.

The two-dimensional subspace K is determined by means of the preconditioned conjugate gradient method described below. The solver defines K as being defined by K1And k2A determined linear space of k1Is a gradientDirection of (a), k2Is approximately Newton's direction (i.e. theSolution of) or direction of negative curvature). The idea of choosing K in this way is to force a global convergence (through the steepest descent direction or the negative curvature direction) and to achieve a fast local convergence (through newton's steps if it exists).

Based on the above analysis, a framework for unconstrained minimization based on trust domains can be presented:

b1: constructing a two-dimensional trust domain sub-problem.

B2: equation (6) is solved to determine the tentative step s.

B3: if it is notf(x+s)< f(x) Then, thenx=x+s

B4: adjusting trust domain radius

Radius of trust domainThe adjustment is made according to standard rules. Specifically, it may not be accepted at the probe step (i.e., it may not be accepted at the probe step) The time is decreased. The four steps of B1-B4 are repeated until the algorithm is converged, and the solution (compensation value) of the optimization problem f (x) is obtainedAnd tolerance)。

In the compensation algorithm, the known compensation value is determined by a dimension standard value, a tolerance interval, a compensation coefficient and a dimension relation, so that a group of linear equations is designed in a modeling mode, the unknown compensation value and the tolerance are used as variables, and the corresponding parameters are combined to form a group of underdetermined equations. And then, designing an optimal weighted solving algorithm according to the importance degree among the variables, and converting the solution of the underdetermined equation set into the solution of the constrained optimization problem. The above algorithm helps to solve for the optimal compensation difference, but this compensation difference is not the tool compensation value or coordinate system compensation value that is eventually written into the machine. Considering that the compensation can be completed in several times or considering that the machine already uses a certain compensation in the processing, the compensation value of the machine required for producing the parts with the standard size is obtained by obtaining the compensation values of the original tool compensation and the original coordinate system used in the acquisition and summing the compensation difference values calculated in the current time. Therefore, at the beginning of the process of receiving data by the handshake, the intelligent tuning system has already performed one acquisition of the corresponding tool compensation and coordinate system compensation according to the standard document of the part being machined. And stores the data in preparation for the compensation value to be written into the machine.

S4: and returning the optimized compensation value to the numerical control machine, so that the numerical control machine can be adjusted according to the optimized compensation value.

During measurement, an initial value of a tool compensation (including radial tool compensation abrasion and length tool compensation abrasion) of each tool position and an initial value of each coordinate axis are collected. And calculating a compensation difference value through an algorithm. And finally, writing back the compensation value by adding the compensation difference value to the initial value. And in the compensation write-back process, the system creatively carries out foolproof and mistake-proofing treatment, a threshold value interval is set, once the compensation value exceeds the threshold value, the compensation value cannot be supplemented back, and a prompt is given to inform that the compensation values with all sizes reaching the standard possibly generate machine processing danger, so that manual intervention is prompted to solve the problem. For example, the absolute value of the offset value is 0.1, and once it is determined that the calculated offset value is combined with the offset value collected by the original machine and accumulated to exceed the value, the write-back machine cannot be compensated directly by the system. The safety range can be set by self according to the scene requirements. If all the compensation values are in the safe range, the write-back is realized by one key, and the method is convenient and quick. The machine adjusting process is operated according to the process, only two times of processing and measurement are needed in total, the first measurement helps to calculate each compensation parameter of the equipment, and the second processing can finish the production of a part with all the standard sizes.

The preferred embodiment of the present invention further discloses an intelligent tuning system based on a handshake protocol, which is used for performing intelligent tuning on at least one numerical control machine, and comprises: the intelligent calling system comprises a processor and a storage medium, wherein a computer program is stored in the storage medium, and the processor is configured to run the computer program to execute the intelligent calling method.

In the compensation scheme, at present, besides the adjustment of the machine depending on the experience of technicians, some semi-automatic machine tool parameter adjustment schemes also appear in some large enterprises, and the basic processing flow is as follows: taking the measured workpiece to a measuring room, measuring by a measuring instrument such as a three-coordinate measuring instrument, and selecting a part of the measuring results to be manually recorded into an excel document or a system with an algorithm. In Excel documents or systems, experience-based "geometric formulas" are established, and the parameter adjusting results can be calculated relatively quickly and uniformly through the formulas. This calculation scheme solves the problem of standardization to some extent. But there is still much room for improvement in terms of "efficiency" and "accuracy". The machine adjusting scheme of the preferred embodiment of the invention is a set of scheme which integrates automation and intellectualization and has higher degree: firstly, the automatic and real-time reading of the measured data is realized by using 'built-in measurement'; in this process, the possibility of machine tooling rejects during laboratory measurements and waiting times is avoided. Secondly, a complete model is also built for the measured data and parameters, and the problem of geometric computation is transformed into an "optimization problem" which is solved using various optimization algorithms. The solution greatly improves the reliability on guaranteeing the precision of machine adjustment in all sizes.

In the machine production and processing flow, the product quality detection is carried out by adopting a precision detection device in the machine or outside the machine or simultaneously, and the detection result value of each dimension of each procedure of the product is obtained. The intelligent dispatching system can acquire various detection data in real time through interaction with the detection equipment. And calculating the detection data to judge whether each size reaches the standard or not. And if the sizes of the products all reach the standard, the products pass quality verification and can be delivered. If the dimension out-of-tolerance exists, the system calculates the optimal tool compensation or the optimal coordinate system compensation for the dimension machining through an optimization algorithm. Meanwhile, the intelligent dispatching system is directly communicated with the processing equipment, and the optimal dispatching data is written into the equipment to finish dispatching. Compared with the past manual work, the scheme of repeated debugging and repeated compensation through experience finally realizes the flow that all sizes meet the standard in quality inspection, the intelligent debugging system improves the debugging efficiency by 80 percent, the optimal result is calculated once, all sizes are guaranteed to pass the detection, the detection processing flow is optimized through the direct interaction mode of the system and the detection equipment as well as the processing equipment, and the manual misoperation is prevented. In addition, whether the product quality meets the standard or not is related to a standard process, and is also related to performance characteristics of processing equipment and experience depth of machine adjusting personnel, dependence on the equipment and the machine adjusting personnel disappears after the intelligent machine adjusting system is used for machine adjusting operation, efficiency is improved again, and machine adjusting cost is reduced.

The following describes the intelligent tuning method and system based on handshake protocol according to the embodiments.

As shown in fig. 3, it is a flowchart of an intelligent tuning method according to a specific embodiment of the present invention, which specifically includes the following steps:

c1: the Modus generates a measurement program. The module is a preposition work for the intelligent calling system to start working, and because the calling platform needs to collect measurement contents, a generation process of a measurement program is introduced firstly. Modus is a software system matched with a Renysha measuring probe, and the working content of the Modus is 'transmitting a part processing drawing, marking a measuring size, marking a measuring point position and generating a corresponding measuring program'. Therefore, the first step of work can be matched with Modus software, and NC program output of measuring point positions is carried out. The step is not intervened by a calling platform, but the process of measuring the running of the NC program in the machine needs to establish handshake with an acquisition program of the intelligent calling system.

C2: and importing the measurement model and the quality parameters into an IMIQ system, and importing basic data in an intelligent dispatching system for subsequent compensation calculation. Importing data content includes: items, parts, procedures, process methods and quality standards.

C3: this is followed by "receive", which includes "receive part measurement points" and "receive sensor or measurement block data". The part does not need manual intervention, a machine processing process can automatically start a measurement program, an acquisition program is resident in a service form and runs on edge acquisition hardware, and measurement data and measurement block data of corresponding time points are acquired through a specific protocol and stored and reported in the machine automatic measurement process.

C4: and performing first-step calculation conversion on all the collected data in the step to convert point position data into size data. Firstly, all point position data of the whole part are stored and then interface-transmitted with the Modus. And calculating the size by means of the existing point position and size relation of the Modus. Of course, when the original point value is collected, the intelligent dispatching system processes the original point by considering the point deformation of the standard block (calculating the coordinate offset of each measurement point by calculating the deformation coefficient of the measurement block), and then uses the coordinate offset for calculation.

C5: and the optimized machine parameter solving is obtained by the machine debugging platform algorithm.

C6: and finally, the compensation value write-back part. In order to prevent the fool and the mistake, the intelligent debugging system can be provided with a set of checking mechanism to filter out the compensation result larger than the safety threshold. Subsequently, the compensation needs to be confirmed manually and written back to the machine.

Fig. 4 is a block diagram of an intelligent dispatching system according to an embodiment of the present invention, which employs a hybrid computing architecture based on B/S. The user can complete all operations of the system based on the browser. The system calculation is completed by a central high-performance server cluster (which provides a high-availability mechanism and can be linearly expanded) and software and hardware of edge calculation.

At present, the equipment has two access modes:

1) lightweight access. The numerical control machine station accesses the equipment to a computing network through a network cable or a wireless router. The central server is responsible for communicating with all numerical control machines. And after the measurement data are collected, calculating parameters and feeding back the result to the numerical control machine.

2) A more intelligent access scheme. The method is suitable for scenes with more measurement points and higher measurement precision requirements. And a corresponding Edge (Edge controller) is deployed on the machine side and is directly connected with the machine. And the Edge is responsible for communicating with a measuring program of the numerical control machine and implementing acquisition of data of each group of sensors. All data are firstly summarized and simply calculated by Edge (mainly comprising logics of matching with meta data measured by parts, verifying, supplementing data and the like), and then are sent to a central server for subsequent processing.

As shown in fig. 4, the intelligent tuning system of the present embodiment includes a controlled numerical control machine 10 and a corresponding measuring head 11, a measurement CAM server (Modus) 20, an access switch 30, a client 40, an edge computing server 50, a wireless AP 60, and an intelligent terminal 70, and is specifically applied as follows:

1) and manually judging which sizes can be measured in the machine of the numerical control machine tool according to the measurement standard file and the measurement point location 2D graph, generating a file of the measurement point location in the machine and uploading the file to the system.

2) And opening the corresponding clamping position 3D graph by using Modus software, and marking the corresponding measuring point positions on the 3D graph according to the built-in measuring point position file to generate a measuring CNC program.

3) An external edge computing server box (comprising a processor, an IO module, a reserved sensor interface and the like) is directly connected with the machine tool. And receiving the measurement point data collected on the machine station at a high speed through a specific handshake protocol.

4) Thermal deformation caused by temperature has a large influence on the measurement result of the workpiece. In order to further improve the measurement accuracy. Corresponding standard blocks are placed in the numerical control machine tool, and measurement data of the standard blocks can be acquired while the workpiece is measured in the machine. And the resulting values of the workpiece measurements are corrected using the associated empirical formula, as shown in fig. 5.

5) After the data of all the workpiece measurement points are acquired, the data are processed into standard measurement data (supporting different standards) through a DMIS data service (the DMIS data service refers to a background service capable of supporting the size or tolerance calculation defined in the conventional < size measurement interface standard >), for example, modus service in raney and internal DMIS data service). Currently, internal standards are used for communication protocols. Because of the simplicity and better performance. But may also be converted to a standard common to the industry, such as QIF).

6) The result data of 3), 4) and 5) are assembled and normalized and then filled into a pre-established processing data model. And the specific algorithm formula of the optimal values of various dispatching parameters is calculated by various optimization algorithms and is detailed below.

7) The tuning parameters can be automatically written back to the CNC machine to influence the next processing. Write back is also fool proof and error proof (according to manually set rules).

8) The model of the off-line test with the laboratory three-coordinate measuring instrument can also be imported (manually, automatically) into the system of the invention and likewise give the optimum values of the tuning parameters with the optimization algorithm of the invention.

The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several equivalent substitutions or obvious modifications can be made without departing from the spirit of the invention, and all the properties or uses are considered to be within the scope of the invention.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种拉矫机参数集成控制系统与方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类