Zero setting abnormity macro alarm program processing method of numerical control system

By automatically comparing the zero offset value of the workpiece coordinate system with the preset threshold in the CNC system, it determines the zero point setting or clamping error, and outputs a macro alarm prompt, which solves the problem of zero point drift and clamping error in CNC machine tool processing, and significantly reduces the Quality risks are eliminated and the reliability of high-precision processing is achieved.

CN118567296APending Publication Date: 2024-08-30HENAN DIESEL ENGINE IND
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410610454.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

During CNC machine tool processing, zero-point drift and part clamping errors often lead to processing quality accidents, which are difficult to detect and correct in time with existing technology.

Method used

Provides a macro alarm program processing method for zero point setting exceptions in a CNC system. By automatically comparing the zero offset value of the workpiece coordinate system with the preset threshold, it determines whether the zero point setting or clamping is correct, and when an abnormality is found, a macro alarm prompt is output and Interrupt processing to ensure operators correct errors promptly.

Benefits of technology

It effectively reduces processing quality risks, ensures the quality of processing high-precision parts in small and medium batches, and reduces the occurrence of quality accidents without adding additional costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567296A
    Figure CN118567296A
Patent Text Reader

Abstract

The invention discloses a zero setting abnormity macro alarm program processing method of a numerical control system, which comprises the following steps: S1, after a first part of a part is processed to be qualified, writing the program into a cnc processing program, placing the program at a program head, and ensuring that the program is executed preferentially before running the processing program; s2, inputting settable zero offset values of system parameters in a corresponding workpiece coordinate system into the program; s3, according to different positioning modes and machining precision requirements, setting an appropriate triggering alarm threshold value; s4, the program automatically calls a settable zero offset system variable parameter value under the same workpiece coordinate system, calculates the settable zero offset system variable parameter value and compares the calculated settable zero offset system variable parameter value with a trigger alarm threshold value so as to judge whether zero setting or part clamping is correct or not; according to the zero setting abnormity macro alarm program processing method of the numerical control system, errors possibly occurring in the process of setting the zero point of the workpiece coordinate system or part clamping errors can be timely and accurately found, and the processing quality risk is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of numerical control machining, and in particular to a method for processing a zero point setting abnormality macro alarm program of a numerical control system. Background Art

[0002] When CNC machine tools process diesel engine bodies, combined with production practices and based on technical requirements, most processes require single-piece alignment and setting of the workpiece coordinate system zero point before processing. For example, in the process of precision boring of cylinder holes, although there are special fixtures and mandrels for positioning, due to the high requirements for part processing accuracy and the widespread zero point drift in large CNC machine tools, the workpiece coordinate system zero point still needs to be reset before actual processing to accurately determine the zero point position of each axis.

[0003] If an error occurs during zero point setting (including automatic tool setting using a probe), or if the part is not clamped in place, it is usually difficult for the operator to detect it in time, which can cause serious quality accidents once processing begins. Summary of the invention

[0004] The technical problem to be solved by the present invention is to overcome the existing defects and provide a method for processing the zero point setting abnormal macro alarm program of a numerical control system, which can timely and accurately detect errors that may occur in the process of setting the zero point of the workpiece coordinate system, or parts clamping errors, greatly reducing the processing quality risk and effectively solving the problems in the background technology.

[0005] To achieve the above object, the present invention provides the following technical solution: a method for processing a zero point setting abnormality macro alarm program of a numerical control system, comprising the following steps:

[0006] S1: After the first part of the component is processed and qualified, the program is written into the CNC processing program and placed in the program header to ensure that it is executed first before running the processing program;

[0007] S2: Inputting the settable zero offset value of the system parameter corresponding to the workpiece coordinate system into the program;

[0008] S3: According to different positioning methods and processing accuracy requirements, set the appropriate trigger alarm threshold;

[0009] S4: The program automatically retrieves the zero offset system variable parameter value that can be set in the same workpiece coordinate system, and compares it with the trigger alarm threshold after calculation, so as to determine whether the zero point setting or part clamping is correct;

[0010] S5: If it is correct, jump to the processing program segment to continue processing; if it is incorrect, output a prompt message and interrupt processing;

[0011] S6: If there is an abnormality, reset the zero point after troubleshooting and run the program until no prompt message appears and the processing can be carried out normally.

[0012] As a preferred technical solution of the present invention, the program in step S1 can also be called as an independent subroutine before executing the machining program, and priority execution is ensured, which is suitable for CNC machine tools with relatively fixed processes.

[0013] As a preferred technical solution of the present invention, the content of the macro alarm prompt information output by the program in step S5 can be changed according to actual production.

[0014] As a preferred technical solution of the present invention, the datum 1 is set as the workpiece coordinate system Y, the datum 2 is set as the working coordinate system X, and the surface of the cylinder surface after fine machining is set as the working coordinate system Z. In the step S6, if the X-axis triggers an alarm due to the misalignment between the datum 2 and the limit block 1 during clamping of the component, but the Y-axis is clamped correctly, it is only necessary to confirm that the X-axis zero point is set correctly, and processing can continue without re-clamping.

[0015] As a preferred technical solution of the present invention, when the components are clamped, the mandrel 1 and the mandrel 2 are not well fitted with the limit blocks 2 and the limit blocks 3, resulting in the Y-axis triggering an alarm, and re-clamping and positioning are required.

[0016] Compared with the prior art, the beneficial effects of the present invention are as follows: the zero point setting abnormality macro alarm program processing method of the CNC system automatically determines whether the workpiece coordinate system is in the zero point state by comparing the zero bias value set by the system, accurately discovers possible errors in the process of setting the zero point of the workpiece coordinate system, and outputs macro alarm prompt information and forces processing to be interrupted in the event of an abnormality. It is suitable for small and medium-sized batch high-precision parts processing to reduce quality risks. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a schematic diagram of the X-axis and Y-axis positioning of the fixture during the processing of the present invention;

[0018] Figure 2 It is a schematic diagram of the Z-axis positioning of the tooling fixture during the processing of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] The procedure of the present invention is as follows:

[0021] N10T0

[0022] N20M6

[0023] N30R81=33.341; Assign the settable zero offset of the first piece to the local variable

[0024] N40R82=-560.216

[0025] N50R83=-414.72

[0026] N60R94=0.07; assign the maximum error value to the local variable

[0027] N70R95=0.065

[0028] N80R96=0.11

[0029] N90STOPRE

[0030] N100R80=20; specify the workpiece coordinate system G520

[0031] N110R86=$P_UIFR[(R80),X,TR]; after reading the X-axis setting under G520, the zero offset reference can be set and assigned to the local variable

[0032] N120R87=$P_UIFR[(R80),Y,TR]

[0033] N130R88=$P_UIFR[(R80),Z,TR]

[0034] N140R91 = ABS (R81-R86); calculate the difference

[0035] N150R92=ABS(R82-R87)

[0036] N160R93=ABS(R83-R88)

[0037] N170IF R91>=R94GOTOF XXXX; perform logical judgment on the actual difference and threshold of each axis respectively

[0038] N180IF R92>=R95GOTOF YYYY

[0039] N190IF R93>=R96GOTOF ZZZZ

[0040] N200IF(R91 <R94)AND(R92<R95)AND(R93<R96)GOTOF CDEF

[0041] N210END IF

[0042] N220XXXX:

[0043] N230MSG ("X-axis zero position is abnormal, please stop machining and check! X-axis zero position is abnormal, please stop machining and check!"); Output macro alarm prompt information

[0044] N240M0

[0045] N250YYYY:

[0046] N260MSG ("Y-axis zero position is abnormal, please stop machining and check! Y-axis zero position is abnormal, please stop machining and check!")

[0047] N270M0

[0048] N280ZZZZ:

[0049] N290MSG ("Z-axis zero position is abnormal, please stop machining and check! Z-axis zero position is abnormal, please stop machining and check!")

[0050] N300M0

[0051] N310CDEF:

[0052] N320······

[0053] like Figure 1-2 , a method for processing a zero point setting abnormal macro alarm program of a numerical control system, comprising the following steps:

[0054] S1: After the first part of the component is processed and qualified, the program is written into the CNC processing program and placed in the program header to ensure that it is executed first before running the processing program;

[0055] S2: Write the actual value of the settable zero offset of the workpiece coordinate system used in the current process into the program and assign it to local variables R81, R82, and R83 as calibration values ​​(program segments N30-N50). R81, R82, and R83 correspond to the X-axis, Y-axis, and Z-axis respectively.

[0056] S3: Preset different thresholds according to different positioning methods and assign them to local variables (program segments N60-N80). Take the process of fine boring cylinder holes of diesel engine 620L6 as an example:

[0057] The X-axis datum 2 fits with the limit block 1 to limit the X-axis position, the clamping positioning error is 0-0.02mm, the machine tool zero offset value is 0-0.05mm, and the maximum comprehensive error is 0.07mm, that is, the variable R94=0.07 is set as the Y-axis trigger alarm threshold;

[0058] In the Y-axis direction, spindle 1 and spindle 2 pass through the spindle hole and fit the limit block for positioning. The center line of the spindle is the zero point of the Y-axis. After clamping, ensure that the center lines of the two spindles are on the same horizontal line. The clearance between the spindle and the spindle hole is matched. The positioning error is 0.005-0.015mm, the machine tool zero point offset value is 0-0.05mm, and the maximum value of the comprehensive error is 0.065mm, that is, set the variable R95=0.065 as the Y-axis trigger alarm threshold;

[0059] The Z axis is positioned by fitting the oil pan joint surface to the fixture support block, the clamping positioning error is 0-0.02mm, the machine tool zero offset value is 0-0.05mm, the trial cutting tool length error is 0-0.03mm, the measurement error is 0-0.01mm, the dimension A tolerance requirement is ±0.05mm, and the maximum value of the comprehensive error is 0.16mm. Considering all factors, the variable R96=0.11 is set as the Z axis trigger alarm threshold;

[0060] S4: After the second and subsequent parts are aligned, the program is run. The program automatically retrieves the actual values ​​of the settable zero offset system variables of each axis in the same workpiece coordinate system from the system background and assigns them to local variables R86, R87, and R88 (program segments N110-N130). Local variables R86, R87, and R88 are compared with local variables (R81, R82, and R83) to generate output deviation values ​​and assign them to local variables R91, R92, and R93. Local variables R91, R92, and R93 correspond to the actual values ​​of the X-axis, Y-axis, and Z-axis deviations, respectively (program segments N140-N160).

[0061] S5: If the deviation value (R91, R92, R93) is greater than the threshold value (R94, R95, R96), the program will automatically jump to the macro alarm display program segment and then scroll the prompt information in the information prompt bar of the operation panel, and interrupt the operation (program segment N220-N300). If the deviation value (R91, R92, R93) is less than the threshold value (R94, R95, R96), the program will jump to the processing program to continue processing (program segment N200);

[0062] S6: The operator interrupts the processing and investigates the cause, checks whether there is an error in the zero point setting process or whether the part is not clamped in place, corrects the error, resets the zero offset and re-runs the program until there is no macro alarm prompt, and then the processing can be carried out directly.

[0063] Furthermore, if the reference 2 and the fixture limit block 1 are not aligned when the parts are clamped, causing the X-axis to trigger an alarm, but the Y-axis is clamped correctly, you only need to confirm that the X-axis zero point is set correctly, and you can continue processing without re-clamping;

[0064] If the mandrel 1 and mandrel 2 do not fit well with the fixture limit block 2 and limit block 3 when the parts are clamped, the Y axis will trigger an alarm and need to be re-clamped and positioned.

[0065] The program framework in this method is not limited to these three axes, and the axis types that need to be judged can also be changed, increased, or reduced, such as: V axis, W axis, B axis, etc.

[0066] The present invention can accurately remind the operator of errors that occur during setting the zero point of the workpiece coordinate system or during clamping at the first time, and can significantly reduce the quality risk of single-piece alignment processing in batch processing, which is of great significance for reducing quality losses without any additional cost.

[0067] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for processing a zero point setting abnormality macro alarm program of a numerical control system, characterized in that: The following steps are involved: S1: After the first part is processed and qualified, the program is written into the CNC processing program and placed in the program header to ensure that it is executed first before running the processing program; S2: Inputting the settable zero offset value of the system parameter corresponding to the workpiece coordinate system into the program; S3: According to different positioning methods and processing accuracy requirements, set the appropriate trigger alarm threshold; S4: The program automatically retrieves the zero offset system variable parameter value that can be set in the same workpiece coordinate system, and compares it with the trigger alarm threshold after calculation, so as to determine whether the zero point setting or part clamping is correct; S5: If it is correct, jump to the processing program segment to continue processing; if it is incorrect, output a prompt message and interrupt processing; S6: If there is an abnormality, reset the zero point after troubleshooting and run the program until no prompt message appears and the processing can proceed normally.

2. The method for processing a zero point setting abnormality macro alarm program of a numerical control system according to claim 1, characterized in that: The program in step S1 can also be called as an independent subroutine before executing the machining program, and ensure priority execution, which is suitable for CNC machine tools with relatively fixed processes.

3. The method for processing a zero point setting abnormality macro alarm program of a numerical control system according to claim 1, characterized in that: The content of the macro alarm prompt information output by the program in step S5 can be changed according to actual production.

4. The method for processing a zero point setting abnormality macro alarm program of a numerical control system according to claim 1, characterized in that: Datum 1 is set as workpiece coordinate system Y, datum 2 is set as working coordinate system X, and the surface of the cylinder after fine machining is set as working coordinate system Z. In step S6, if the X-axis triggers an alarm due to the misalignment between datum 2 and limit block 1 during clamping of the component, but the Y-axis is clamped correctly, it is only necessary to confirm that the X-axis zero point is set correctly, and processing can continue without re-clamping.

5. The method for processing a zero point setting abnormality macro alarm program of a numerical control system according to claim 4, characterized in that: When the components are clamped, the mandrel 1 and the mandrel 2 are not well fitted with the limit blocks 2 and the limit blocks 3, causing the Y axis to trigger an alarm, and re-clamping and positioning are required.