A spindle feeding control method, equipment and medium based on target phase difference
By acquiring and correcting the target phase difference in the spindle receiving control, the problems of phase difficulty in timely correction when the pressure is stable and unstable phase relationship after clamping are solved, thus realizing stable workpiece receiving and continuous processing.
Patent Information
- Application Number
- CN202611600999.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-16
- Publication Date
- 2026-11-17
AI Technical Summary
Existing spindle feeding technology makes it difficult to correct the feeding phase in a timely manner when the pressure is stable, and the phase relationship is difficult to continuously confirm after clamping, resulting in unstable workpiece processing.
By collecting the angle and speed of the base spindle and the receiving spindle, as well as the chuck status feedback, and reading information such as the phase difference of the receiving program, the target phase difference is determined. When the pressure is stable, the phase difference is predicted and corrected, and the movement of the receiving spindle and the clamping of the chuck are controlled to ensure the accuracy of the phase relationship.
It improves the accuracy of material receiving phase and the stability of workpiece receiving, and enhances the processing continuity and production cycle stability of dual-spindle CNC machine tools.
Smart Images

Figure CN123113697A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of spindle feeding control technology, and in particular to a spindle feeding control method, equipment and medium based on target phase difference. Background Technology
[0002] In CNC turning, mill-turning, and dual-spindle continuous machining, spindle receiving technology is used to smoothly transfer workpieces from the base spindle to the receiving spindle while the workpiece is rotating or under controlled synchronization. It is a crucial step in achieving continuous machining of both ends of the workpiece, reducing manual changeovers, and improving automation. Existing spindle receiving typically relies on the coordinated operation of a CNC controller, spindle encoder, servo feed mechanism, and hydraulic or pneumatic chuck. The spindle synchronization function coordinates the rotational speed and circumferential angle relationship between the two spindles. Based on the phase parameters set in the receiving program, the position of the receiving spindle, the chuck clamping status, and pressure feedback, the approach, clamping, and release actions are organized. For workpieces with flat edges, keyways, directional clamping surfaces, or other circumferential mating structures, the receiving position can also be controlled by combining spindle orientation, angle teaching, and mechanical clearance. This enables the base spindle and the receiving spindle to maintain coordinated operation under continuous rotation conditions, shortening process connection time, supporting subsequent end face machining, back face machining, and composite processes, and improving the machining continuity, production cycle stability, and unmanned operation capability of dual-spindle CNC machine tools.
[0003] Existing technologies typically determine the timing of material reception based on the synchronous results before clamping. However, they lack prior judgment on the phase changes generated during the movement of the material receiving shaft and the clamping of the chuck until the pressure stabilizes, making it difficult to correct the final material reception phase in a timely manner. The release of the basic spindle is mostly based on the instantaneous state at the moment of pressure stabilization, making it difficult to confirm whether the phase relationship remains stable within a complete spindle rotation cycle after clamping. Summary of the Invention
[0004] In view of the aforementioned existing problems, the present invention is proposed.
[0005] Therefore, the present invention provides a spindle receiving control method based on target phase difference to solve the problems of difficulty in timely correction of receiving phase when pressure is stable and difficulty in continuously confirming phase relationship after clamping.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: In a first aspect, the present invention provides a spindle feeding control method based on a target phase difference, comprising: The system collects the angles and speeds of the base spindle and receiving spindle, the position of the receiving spindle, and the status feedback of the base spindle chuck and receiving spindle chuck. It reads the phase difference of the receiving program, synchronization parameters, effective clamping records, and qualified receiving records. It determines the target phase difference, synchronization angle difference, actual phase difference, maximum synchronization angle difference of the spindle, receiving waiting position, clamping position, chuck response time, clamping angle record, allowable angle range for receiving, and initial receiving status, forming a receiving benchmark record.
[0007] Start the spindle synchronization based on the material receiving reference record, and determine the expected phase difference when the pressure is stable based on the actual angular velocity of the base spindle, the actual angular velocity of the receiving spindle, the synchronization angle difference, the currently used target phase difference, the target phase difference initially written in this material receiving program, the expected travel time of the receiving spindle, the chuck response time, the clamping and insertion angle record, and the initial material receiving status.
[0008] Based on the synchronous completion signal, synchronous angle difference, actual phase difference, maximum synchronous angle difference of the spindle, and the expected phase difference when the pressure is stable, the target phase difference currently in use is maintained or rewritten, and the receiving shaft is controlled to enter the clamping position, remain in the receiving waiting position, or return to the receiving waiting position, thus forming a chuck clamping preparation permission.
[0009] When the receiving spindle is in the clampable position and the chuck clamping preparation permission is valid, the receiving spindle chuck clamping is performed, and the basic spindle release permission is determined based on the actual phase difference after the pressure stabilizes, the synchronous angle difference, the synchronous completion signal, and the maximum synchronous angle difference of the spindle.
[0010] As a preferred embodiment of the spindle receiving control method based on target phase difference described in this invention, the determination of the currently used target phase difference, synchronous angle difference, actual phase difference, maximum synchronous angle difference of the spindle, receiving waiting position, clamping position, chuck response time, clamping angle recording, allowable receiving angle range, and initial receiving status includes: Read the phase difference parameters and synchronization reference difference initially written in this receiving program. Based on the phase difference parameters initially written in this receiving program, form the target phase difference initially written in this receiving program. Initialize it to the target phase difference currently in use before the first start of spindle synchronization. After each spindle synchronization is enabled, update the target phase difference currently in use with the phase difference parameters actually written by the spindle synchronization command.
[0011] The difference between the actual angle of the base spindle and the actual angle of the receiving spindle is then removed by removing the synchronous reference difference and the target phase difference currently in use, and processed to the positive and negative angle range within a complete rotation cycle to form the synchronous angle difference.
[0012] After the synchronous completion signal is generated, the maximum synchronous angle difference of the spindle is updated according to the control cycle using the maximum value of the absolute value of the synchronous angle difference.
[0013] The actual phase difference is formed by performing a full rotation cycle processing on the sum of the synchronous angle difference and the offset of the currently used target phase difference relative to the target phase difference initially written in this receiving program.
[0014] As a preferred embodiment of the spindle receiving control method based on target phase difference described in this invention, the method for determining the currently used target phase difference, synchronous angle difference, actual phase difference, maximum synchronous angle difference of the spindle, receiving waiting position, clamping position, chuck response time, clamping angle recording, allowable receiving angle range, and initial receiving status further includes: Read the effective entry width of the receiving spindle chuck orientation clamping groove and the workpiece orientation clamping part at the same clamping radius, the clamping radius of the workpiece orientation clamping part, and the minimum resolvable angle of the two spindle encoders. Take the larger value of the minimum resolvable angles of the two spindle encoders as the minimum resolvable angle of the spindle encoder, and take half of the sum of the minimum resolvable angles of the two spindle encoders as the maximum quantization error of the synchronous angle difference.
[0015] When the effective entry width of the directional clamping groove of the receiving spindle chuck is greater than the effective entry width of the workpiece directional clamping part, the ratio of half of the difference between the two effective entry widths to the clamping radius is taken as the workpiece entry angle. Then, the maximum quantization error of the synchronous angle difference is removed to obtain the positive boundary of the allowable angle range of receiving, and the positive and negative allowable range of actual phase difference centered at zero is formed.
[0016] The difference between the pressure stabilization feedback time in the effective clamping record and the time when the clamping command of the receiving spindle chuck is issued is taken as the chuck response time. When there is no effective clamping record, the no-load chuck response time is formed by no-load clamping calibration, and the sum of the no-load chuck response time and the load response correction time is taken as the chuck response time.
[0017] From the effective clamping records and qualified receiving records that are identical to the receiving program, base spindle, receiving spindle, spindle rotation direction, target phase difference initially written in the receiving program, workpiece material, workpiece clamping diameter, and clamping pressure, and whose base spindle actual speed, receiving spindle actual speed, and chuck response time are within the saved applicable range, we read the last complete spindle rotation cycle before the clamping command was issued, the first complete spindle rotation cycle after the pressure stabilization feedback was generated, and the actual angular velocities of the two spindles during the period from the issuance of the clamping command to the generation of the pressure stabilization feedback. We align the two complete spindle rotation cycles according to the cumulative rotation angle of the base spindle to form the clamping angle corresponding to the cumulative rotation angle of each base spindle.
[0018] When there are at least three valid matching records, and the maximum circumferential deviation of the clamping angle formed by each valid matching record at the same base spindle cumulative rotation angle is not greater than half of the positive boundary of the allowable angle range for receiving the material, the directed circumferential average angle of the clamping angle formed by each valid matching record is determined according to the same base spindle cumulative rotation angle, and a clamping angle record is formed. Otherwise, the clamping angle record formed by the standard workpiece clamping calibration is read and written into the initial receiving state. When there is no valid standard workpiece clamping calibration result, the pre-receiving termination process is executed.
[0019] As a preferred embodiment of the spindle receiving control method based on target phase difference described in this invention, the specific steps of starting spindle synchronization according to the receiving reference record are as follows: When the allowable angle range for receiving material is not empty, the feedback of the basic spindle chuck clamping in place is valid, the feedback of the basic spindle chuck loosening in place is invalid, the feedback of the receiving spindle chuck opening in place is valid, and the feedback of the receiving spindle chuck clamping in place and the pressure stabilization feedback are invalid, the receiving spindle will stop at the receiving waiting position.
[0020] Once it is confirmed that the synchronization status of the previous spindle has been deactivated, the synchronization completion signal is invalid, and the base spindle is in speed control mode, a spindle synchronization activation command with the currently used target phase difference is issued.
[0021] Read the phase difference parameters actually written by the spindle synchronization command, process them and update the currently used target phase difference. Establish the used target phase difference sequence in the target phase difference retention or rewriting result, and take the currently used target phase difference as the first record.
[0022] As a preferred embodiment of the spindle feeding control method based on target phase difference described in this invention, the specific steps for determining the expected phase difference when the pressure is stable are as follows: Based on the remaining travel from the current position of the receiving shaft to the clamping position, and the feed speed, acceleration process, and deceleration process of the interpolation motion, the estimated travel time of the receiving shaft is determined, and the sum of the estimated travel time of the receiving shaft and the chuck response time is taken as the estimated pressure stabilization time.
[0023] Using the actual angular velocity of the base spindle and the actual angular velocity of the receiving spindle as initial values, and based on the spindle synchronization speed correction command, acceleration process, and deceleration process in the synchronization parameters, the expected angular velocities of the base spindle and the receiving spindle are determined according to the control cycle within the expected pressure stabilization time, and the difference between the expected angular velocities of the two spindles is accumulated to form the expected phase change.
[0024] Based on the expected angular velocity of the base spindle during the expected travel time of the receiving shaft, determine the cumulative rotation angle of the base spindle when the expected clamping command is issued, and read the clamping angle that matches the cumulative rotation angle of the base spindle.
[0025] The expected phase difference at pressure stabilization is formed by processing the synchronous angle difference, the offset of the current target phase difference relative to the target phase difference initially written in this receiving program, the expected phase change formed by the difference between the expected angular velocities of the two spindles within the expected pressure stabilization time, and the sum of the clamping angle, through a complete rotation cycle.
[0026] The expected angular velocity of the base spindle, the expected angular velocity of the receiving spindle, the cumulative rotation angle of the base spindle when the clamping command is issued, and the expected phase difference when the pressure is stable are redefined for each control cycle, without being added to the expected phase difference when the pressure is stable formed in the previous control cycle.
[0027] As a preferred embodiment of the spindle feeding control method based on target phase difference described in this invention, the specific steps of maintaining or rewriting the currently used target phase difference are as follows: When the synchronization completion signal is valid, the absolute value of the synchronization angle difference and the maximum synchronization angle difference of the spindle are both not greater than the positive boundary of the allowable angle range for receiving materials, and the absolute value of the expected phase difference when the pressure is stable is greater than the positive boundary of the allowable angle range for receiving materials, the receiving shaft is kept in or retracted to the receiving waiting position.
[0028] When the expected phase difference when the pressure is stable is positive, remove an angle equal to the absolute value of the expected phase difference when the pressure is stable from the currently used target phase difference. When the expected phase difference when the pressure is stable is negative, add an angle equal to the absolute value of the expected phase difference when the pressure is stable to the currently used target phase difference. Perform a complete rotation cycle to form the target phase difference to be written.
[0029] The minimum write angle of the phase difference of the spindle synchronous command is used as the write interval. The write angle closest to the phase difference of the target to be written is selected to form the target phase difference after rewriting. When the distance is the same, the write angle deviating from the expected phase difference when the pressure is stable is selected.
[0030] When the target phase difference rewrite amount is less than the minimum resolvable angle of the spindle encoder, or when the target phase difference sequence already used has recorded the rewritten target phase difference, the spindle synchronization will not be restarted with the rewritten target phase difference.
[0031] In the remaining cases, spindle synchronization is deactivated, the maximum angle difference of spindle synchronization is cleared, spindle synchronization is restarted with the rewritten target phase difference, and when the actual value written by the spindle synchronization command is consistent with the rewritten target phase difference, the currently used target phase difference is updated and appended to the sequence of used target phase differences.
[0032] The larger of the minimum resolvable angle of the spindle encoder and the maximum quantization error of the synchronous angle difference is used as the minimum effective improvement amount of the expected phase difference when the pressure is stable. When the number of times the target phase difference is rewritten, the number of times the spindle is restarted synchronously, or the duration of the current material receiving control reaches the upper limit registered in the current material receiving program, the reduction of the absolute value of the expected phase difference when the pressure is stable after rewriting is less than the minimum effective improvement amount of the expected phase difference when the pressure is stable, or when the target phase difference sequence has recorded all writable target phase differences, the pre-receiving termination process is executed.
[0033] As a preferred embodiment of the spindle receiving control method based on target phase difference described in this invention, the steps of controlling the receiving shaft to enter a clamping position, remain in a receiving waiting position, or return to a receiving waiting position to form a chuck clamping preparation permission are as follows: After the spindle starts synchronously or restarts with the rewritten target phase difference, the synchronous angle difference, actual phase difference, maximum synchronous angle difference of the spindle, and expected phase difference when the pressure is stable are redefined.
[0034] When the synchronization completion signal is valid, and the absolute values of the synchronization angle difference, the actual phase difference, the maximum synchronization angle difference of the spindle, and the expected phase difference when the pressure is stable are all not greater than the positive boundary of the allowable angle range for receiving materials, the receiving shaft is controlled to move from the receiving waiting position to the clamping position.
[0035] When the absolute value of the expected phase difference when the pressure is stable decreases, and the decrease is not less than the minimum effective improvement of the expected phase difference when the pressure is stable, but is still greater than the positive boundary of the allowable angle range for receiving materials, the target phase difference currently in use continues to be rewritten. When the absolute value of the expected phase difference when the pressure is stable does not decrease or the decrease is less than the minimum effective improvement of the expected phase difference when the pressure is stable, the pre-receiving termination process is executed.
[0036] During the movement of the receiving shaft, the synchronous completion signal, synchronous angle difference, actual phase difference, maximum synchronous angle difference of the spindle, and expected phase difference when the pressure is stable are updated cycle by cycle. When the synchronous state or actual phase difference is abnormal, the movement stops and the receiving shaft returns to the receiving waiting position. When only the expected phase difference when the pressure is stable exceeds the limit, the receiving shaft returns to the receiving waiting position and a new judgment is made on whether to rewrite the currently used target phase difference.
[0037] When the receiving shaft stops in the clamping position and the interpolation motion ends, and the synchronous completion signal is valid, the absolute value of the synchronous angle difference, the absolute value of the actual phase difference, the maximum synchronous angle difference of the spindle, and the absolute value of the expected phase difference when the pressure is stable are all not greater than the positive boundary of the allowable angle range of receiving, the chuck clamping preparation permission is formed.
[0038] As a preferred embodiment of the spindle receiving control method based on target phase difference described in this invention, the following steps are taken: when the receiving spindle is in a clampable position and the chuck clamping preparation permission is valid, the receiving spindle chuck clamping is performed, and based on the actual phase difference after pressure stabilization, the synchronous angle difference, the synchronous completion signal, and the maximum synchronous angle difference of the spindle, it is determined whether to output the basic spindle release permission. After the chuck clamping preparation permission is valid, the last complete spindle rotation cycle before the material receiving spindle chuck clamping command is formed from the synchronous angle difference sample value after the synchronous completion signal is generated.
[0039] When the receiving spindle stops at the clamping position and the interpolation motion ends, the synchronization completion signal is valid, and the absolute values of the synchronization angle difference, the actual phase difference, the maximum synchronization angle difference of the spindle, and the expected phase difference when the pressure is stable are all not greater than the positive boundary of the allowable angle range for receiving, and when the feedback of the receiving spindle chuck clamping in place and the feedback of pressure stabilization are invalid, the receiving spindle chuck clamping command is output, and the target phase difference currently used when the chuck is clamped is locked.
[0040] After the timing of the material receiving spindle chuck clamping command, the timing of the material receiving spindle chuck clamping in place feedback, and the timing of pressure stabilization feedback occur sequentially, the actual phase difference after pressure stabilization is formed, and the first complete spindle rotation cycle after the pressure stabilization feedback is generated is formed.
[0041] During the first complete spindle rotation cycle after the pressure stabilization feedback is generated, when the receiving spindle chuck clamping feedback, pressure stabilization feedback and synchronous completion signal are continuously effective, the receiving spindle remains in the clampable position, and the absolute value of the synchronous angle difference, the absolute value of the actual phase difference after pressure stabilization and the maximum synchronous angle difference of the spindle are all not greater than the positive boundary of the allowable angle range for receiving, the basic spindle release permission is output.
[0042] After the basic spindle release permission is output and before the basic spindle chuck release feedback is generated, the receiving spindle chuck clamping feedback, pressure stabilization feedback, synchronous completion signal, synchronous angle difference, actual phase difference after pressure stabilization, maximum synchronous angle difference of the spindle, and receiving shaft position are read cycle by cycle. When the receiving spindle chuck clamping feedback, pressure stabilization feedback, and synchronous completion signal are continuously effective, the receiving shaft is kept in the clampable position, and the absolute value of the synchronous angle difference, the absolute value of the actual phase difference after pressure stabilization, and the maximum synchronous angle difference of the spindle are all not greater than the positive boundary of the allowable angle range for receiving, the basic spindle release permission is maintained; otherwise, the basic spindle release permission is revoked, causing the two spindles to decelerate synchronously to a stop, and the receiving record for this time is not saved as a qualified receiving record.
[0043] When the basic spindle chuck release command is issued earlier than the basic spindle chuck release position feedback time, and when the basic spindle chuck release position feedback is generated, the receiving spindle chuck clamping position feedback and pressure stabilization feedback are still effective, the receiving record is saved as a qualified receiving record.
[0044] In a second aspect, the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein when the computer program is executed by the processor, it implements any step of the spindle receiving control method based on target phase difference as described in the first aspect of the present invention.
[0045] Thirdly, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, it implements any step of the spindle feeding control method based on target phase difference as described in the first aspect of the present invention.
[0046] The beneficial effects of this invention are as follows: by determining the expected phase difference when the pressure is stable, and maintaining or rewriting the currently used target phase difference accordingly, the phase change during the movement of the receiving shaft and the clamping of the chuck is corrected in advance. By continuously verifying the synchronous angle difference, the actual phase difference after the pressure is stable, and the maximum synchronous angle difference of the spindle in the first complete spindle rotation cycle after the pressure stabilization feedback is generated, the basic spindle release permission is determined, which improves the accuracy of the receiving phase and the stability of the workpiece receiving. Attached Figure Description
[0047] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0048] Figure 1 This is a flowchart of a spindle feeding control method based on target phase difference.
[0049] Figure 2 Flowchart for determining the expected phase difference when the pressure is stable.
[0050] Figure 3 A flowchart is generated for rewriting the target phase difference currently in use and preparing the chuck clamping for permission.
[0051] Figure 4 Flowchart for determining the clamping of the receiving spindle chuck and the release of the base spindle.
[0052] Figure 5 This is a diagram illustrating the pressure-stabilized phase pre-correction process based on the target phase difference.
[0053] Figure 6 This is a diagram illustrating the verification process for the first complete spindle rotation cycle after the pressure stabilization feedback is generated. Detailed Implementation
[0054] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0055] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0056] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.
[0057] Reference Figures 1-6 As one embodiment of the present invention, this embodiment provides a spindle feeding control method based on target phase difference, comprising the following steps: S1. Collect the angle and speed of the base spindle and the receiving spindle, the position of the receiving shaft, and the status feedback of the base spindle chuck and the receiving spindle chuck. Read the phase difference of the receiving program, the synchronization parameters, the effective clamping record and the qualified receiving record. Determine the target phase difference, the synchronization angle difference, the actual phase difference, the maximum synchronization angle difference of the spindle, the receiving waiting position, the clamping position, the chuck response time, the clamping angle record, the allowable angle range for receiving, and the initial receiving status to form a receiving benchmark record.
[0058] After the spindle receiving program starts, the CNC controller reads the base spindle number, receiving spindle number, spindle rotation direction, the phase difference parameter and synchronization reference difference initially written in this receiving program, the workpiece material registered in this receiving program, the workpiece clamping diameter, clamping pressure, the feed speed of the receiving spindle interpolation motion, the acceleration and deceleration processes, the spindle synchronization speed correction command in the synchronization parameters, the spindle synchronization acceleration and deceleration processes, the maximum number of target phase difference rewrites, the maximum number of spindle synchronization restarts, and the maximum duration of this receiving control. Before starting spindle synchronization, it deactivates the previous spindle synchronization state, confirms that the synchronization completion signal is invalid, and initializes the maximum angle difference of spindle synchronization to zero. The phase difference parameter initially written in the receiving program forms the target phase difference initially written in this receiving program, and is initialized to the currently used target phase difference before the first start of spindle synchronization. The synchronization reference difference is taken from the angle difference without target phase difference saved by the synchronization angle teaching. The angle, speed and target phase difference of the base spindle and the receiving spindle are uniformly defined with the same positive rotation. The angle is in radians and processed to a complete rotation cycle centered at zero. When the two spindle encoders are in opposite directions, the positive and negative signs of the actual angle and actual speed of the receiving spindle are reversed. After each spindle synchronization is enabled, the phase difference parameter actually written in the spindle synchronization command is read, and the currently used target phase difference is updated with the processed actual written value.
[0059] Phase difference parameters refer to the instruction parameters used to write the target phase difference in the spindle synchronization command.
[0060] The CNC controller removes the synchronous reference difference and the currently used target phase difference from the difference between the actual angle of the base spindle and the actual angle of the receiving spindle, and processes it to the positive and negative angle range within a complete rotation cycle to form the synchronous angle difference. After the synchronous completion signal is generated, the maximum synchronous angle difference of the spindle is updated according to the control cycle with the maximum absolute value of the synchronous angle difference. Before generation, it is kept at zero. The sum of the offsets of the synchronous angle difference and the currently used target phase difference relative to the target phase difference initially written in this receiving program is processed for a complete rotation cycle to form the actual phase difference. The synchronous angle difference is used to determine whether the base spindle and the receiving spindle are synchronized with the target phase difference currently used. The actual phase difference is used to determine whether the current mechanical angle relationship falls within the orientation range allowed by the target phase difference initially written in this receiving program. The maximum synchronous angle difference of the spindle is used to retain the maximum instantaneous deviation after the synchronous completion signal is generated.
[0061] The CNC controller accumulates the positive angle increment of the basic spindle in adjacent control cycles according to the spindle rotation direction. When crossing the positive and negative half-cycle boundaries, a complete rotation cycle is added to form the cumulative rotation angle of the basic spindle. When the spindle rotation direction changes or the actual angle of the basic spindle becomes invalid, the formation of the current complete spindle rotation cycle is stopped. Half of the positive boundary of the allowable angle range for material receiving is taken as the maximum interval of the cumulative rotation angle of adjacent valid sampled values, and the minimum number of valid sampled points is determined. When the number of valid sampled points and the interval of adjacent cumulative rotation angles both meet the requirements, a valid result of the complete spindle rotation cycle is formed. Otherwise, the spindle speeds are reduced or the control cycle is shortened and the data is collected again. If the requirements are still not met, an insufficient evidence result for the complete spindle rotation cycle is written. This result is not used to determine the clamping angle or output the basic spindle release permission. Invalid sampled values are not interpolated across intervals.
[0062] The CNC controller reads the effective entry width of the receiving spindle chuck orientation clamping groove and the workpiece orientation clamping part at the same clamping radius, the clamping radius of the workpiece orientation clamping part, the minimum resolvable angle of the two spindle encoders, and the minimum write angle of the synchronous command phase difference of the spindles. The two effective entry widths are measured along the circumference of the same clamping radius by arc length. The actual angles of the base spindle and the receiving spindle are both taken from the nearest value of the minimum resolvable angle of their respective encoders. The maximum quantization error of a single channel is half of the corresponding minimum resolvable angle. The larger of the minimum resolvable angles of the two spindle encoders is taken as the minimum resolvable angle of the spindle encoder, and half of the sum of the minimum resolvable angles of the two spindle encoders is taken as the maximum quantization error of the synchronous angle difference. When the effective entry width of the directional clamping groove is greater than the effective entry width of the workpiece directional clamping part, the ratio of half of the width difference to the clamping radius is used as the workpiece entry angle. After removing the maximum quantization error of the synchronous angle difference, the positive boundary of the allowable angle range for receiving the material is formed, and the positive and negative allowable range of the actual phase difference centered on zero is formed. When the orientation parameter has no effective positive value, the width is insufficient, or the workpiece entry angle is not greater than the maximum quantization error of the synchronous angle difference, the allowable angle range for receiving the material is recorded as an empty range and the corresponding result is written. Whether the minimum written angle of the phase difference parameter of the synchronous command of the spindle is a valid positive value is used to form the valid result or invalid result of the target phase difference rewriting parameter respectively. When the allowable angle range for receiving the material is empty, the pre-receiving termination process is executed.
[0063] Before the receiving spindle chuck clamping command is issued, if the receiving operation is terminated due to invalid acquired data, inconsistent control status, out-of-bounds judgment result, invalid target phase difference rewriting, or control time exceeding the limit, the CNC controller cancels the receiving spindle movement permission and chuck clamping preparation permission, maintains the basic spindle workpiece clamping and the receiving spindle chuck open, and causes the receiving spindle to return to the receiving waiting position. If spindle synchronization has been enabled, spindle synchronization is deactivated and the synchronization completion signal is confirmed to be invalid. Then, the maximum angle difference of spindle synchronization is cleared, and the target phase difference initially written in this receiving program is rewritten into the spindle synchronization command. When the receiving spindle returns and the actual written value is consistent, the currently used target phase difference is updated, the used target phase difference sequence is cleared, the receiving failure result is written, and the process ends. Otherwise, the abnormal result of the pre-receiving termination process is written, and the process waits for machine tool processing.
[0064] The current position of the receiving spindle is obtained through position feedback. The clamping position is the mechanical coordinate when the center plane of the receiving spindle chuck coincides with the midpoint of the workpiece clamping section. It is determined based on the mechanical coordinate of the base spindle clamping end, the workpiece extension length, the start and end positions of the workpiece clamping section, and the axial distance between the center plane of the receiving spindle chuck and the end face of the receiving spindle. The receiving waiting position is the position formed by the waiting distance from the clamping position along the direction away from the base spindle. The waiting distance is the minimum axial distance required for the jaws to keep from contacting the end of the workpiece when the receiving spindle chuck is fully open.
[0065] The CNC controller reads feedback from the base spindle chuck clamping position, base spindle chuck releasing position, receiving spindle chuck opening position, receiving spindle chuck clamping position, pressure stabilization, receiving spindle chuck clamping timeout alarm, and base spindle chuck releasing timeout alarm. The effective clamping record simultaneously records the time of the receiving spindle chuck clamping command issuance, the time of the receiving spindle chuck clamping position feedback, and the time of the pressure stabilization feedback. These three times occur sequentially, and the chuck response time is equal to the time between the pressure stabilization feedback and the clamping command issuance. If there is no valid clamping record, and the receiving shaft remains in the receiving waiting position, perform an unloaded clamping calibration according to the clamping pressure registered in this receiving procedure. If the clamping feedback occurs before the pressure stabilization feedback and the clamping timeout alarm does not occur, an unloaded chuck response time is formed, and the sum of the unloaded chuck response time and the load response correction time is taken as the chuck response time. Otherwise, terminate the receiving process before receiving. After a valid clamping record is formed, the chuck response time is updated by the most recent valid clamping record.
[0066] The feedback from the base spindle chuck clamping position indicates that the base spindle chuck is holding the workpiece; the feedback from the base spindle chuck releasing position indicates that the base spindle chuck has been released; the feedback from the receiving spindle chuck opening position indicates that the jaws have retracted to the safe receiving position; the feedback from the receiving spindle chuck clamping position indicates that the mechanical clamping action is in place; the pressure stabilization feedback indicates that the clamping pressure has entered a stable clamping state; the receiving spindle chuck clamping timeout alarm is used to identify when the clamping position feedback and pressure stabilization feedback are not generated sequentially within the safe monitoring time; the base spindle chuck releasing timeout alarm is used to identify when the releasing position feedback is not generated within the safe monitoring time after the releasing command is issued.
[0067] Pressure stability feedback is generated by the pressure sensing element of the receiving spindle chuck and input to the CNC controller. The CNC controller reads the maximum permissible indication error recorded in the valid verification or calibration certificate of the pressure sensing element, subtracts the maximum permissible indication error from the clamping pressure registered in this receiving procedure, and forms a pressure stability judgment value. When the pressure stability judgment value is less than the sum of the minimum reliable clamping pressure and the maximum permissible indication error specified by the receiving spindle chuck manufacturer, an invalid pressure stability parameter result is written and pre-receiving termination processing is executed. The CNC controller collects pressure values according to the control cycle, using the median value of the pressure sampling values of the current control cycle and the previous two control cycles as the current effective pressure value. Three consecutive control cycles are taken as the pressure stability duration, and the difference between the maximum and minimum effective pressure values within the pressure stability duration is taken as the pressure fluctuation. When the receiving spindle chuck manufacturer specifies the allowable... When dealing with pressure fluctuations, the allowable pressure fluctuation value is reduced by twice the maximum allowable indication error. If the result is greater than zero, it is taken as the allowable pressure fluctuation range. If the result is not greater than zero, it is written as an invalid result in the pressure stabilization parameter and the pre-receiving termination process is executed. When no allowable pressure fluctuation value is specified, under the same conditions of receiving spindle chuck, clamping pressure registered in this receiving program, workpiece material, workpiece clamping diameter, and chuck type, no less than ten clamping calibrations with standard workpieces are performed. The sum of the maximum pressure fluctuation value and twice the maximum allowable indication error within the pressure stabilization duration of each calibration is saved as the allowable pressure fluctuation range. When the effective pressure value is not less than the pressure stabilization judgment value within three consecutive control cycles and the pressure fluctuation is not greater than the allowable pressure fluctuation range, the pressure stabilization feedback is effective. Pressure changes that do not meet the requirements of three consecutive control cycles do not form pressure stabilization feedback.
[0068] During the no-load clamping calibration, the CNC controller records the time when the clamping command is issued, the time when the clamping position feedback is received, and the time when the pressure stabilization feedback is received. If the clamping position feedback and the pressure stabilization feedback are not generated in sequence or the clamping timeout alarm is generated, the calibration result is not used. After the calibration is completed normally, the receiving spindle chuck is reopened, and the receiving control is entered after confirming that the opening position feedback is valid.
[0069] The load response correction time is determined during the machine tool debugging phase. Under the same conditions of the receiving spindle chuck, the clamping pressure registered in this receiving program, and the workpiece clamping diameter, no-load clamping calibration and clamping calibration with standard workpiece are performed respectively. The difference between the pressure stabilization feedback time with standard workpiece and the time when the receiving spindle chuck clamping command is issued is then subtracted from the no-load chuck response time. The maximum value of the non-negative difference is saved as the load response correction time. When there is no valid clamping record, the sum of the no-load chuck response time and the load response correction time is taken as the chuck response time. After a valid clamping record is formed, the chuck response time is updated by the most recent valid clamping record.
[0070] The standard workpiece clamping calibration is also used to generate a clamping angle record. Under the conditions that the receiving spindle chuck, workpiece material, workpiece clamping diameter, clamping pressure, and spindle rotation direction are the same as those of this receiving operation, the base spindle and the receiving spindle are kept synchronous. The last complete spindle rotation cycle before the clamping command is issued, the receiving spindle chuck clamping feedback, the pressure stabilization feedback, and the first complete spindle rotation cycle after the pressure stabilization feedback are generated are generated in sequence. The two complete spindle rotation cycles are aligned according to the cumulative rotation angle of the base spindle, and the clamping angle record that changes with the cumulative rotation angle of the base spindle is generated in the same way as the effective matching record. This record is saved as the standard workpiece clamping calibration result.
[0071] The directed circumferential average angle is determined by the average of the sine and cosine values of each clamping angle through a bivariate arctangent operation. The maximum circumferential deviation of the clamping angle is the maximum value among the absolute values of the minimum circumferential angle differences between each clamping angle and the directed circumferential average angle.
[0072] Records that can be used to determine the clamping angle include qualified material receiving records, as well as valid clamping records where no basic spindle release permission was output, but the material receiving spindle chuck clamping command, material receiving spindle chuck clamping in place feedback, and pressure stabilization feedback occurred sequentially, and the last complete spindle rotation cycle before the clamping command was issued and the first complete spindle rotation cycle after the pressure stabilization feedback were generated were all valid, and the material receiving was terminated only due to synchronous angle difference, actual phase difference after pressure stabilization, or the maximum synchronous angle difference of the spindle exceeding the limit.
[0073] The CNC controller filters and records according to the receiving program, base spindle, receiving spindle, spindle rotation direction, target phase difference initially written in this receiving program, workpiece material, workpiece clamping diameter, and clamping pressure. It also confirms that the actual speed of the base spindle, the actual speed of the receiving spindle, and the chuck response time are within the applicable range of the corresponding records. The validity period of the records starts from the moment when the receiving spindle chuck clamps with a standard workpiece and completes the calibration, until the moment when the receiving spindle chuck is maintained, the clamping pressure is adjusted, the encoder is calibrated, or the standard workpiece is clamped and calibrated. Records that have exceeded the validity period are not used to determine the clamping angle.
[0074] For each valid matching record, based on the last complete spindle rotation cycle before the clamping command is issued and the first complete spindle rotation cycle after the pressure stabilization feedback is generated, the difference between the synchronous angle difference after pressure stabilization and the synchronous angle difference before clamping at the same cumulative spindle angle is calculated. Then, the cumulative result of the difference between the actual angular velocity of the base spindle and the actual angular velocity of the receiving spindle during the period from the issuance of the clamping command to the generation of pressure stabilization feedback in the corresponding record is removed. After processing the complete rotation cycle, a clamping angle that changes with the cumulative spindle angle of the base spindle is formed. The corresponding clamping angle is saved according to the cumulative spindle angle of each valid sample value, forming a clamping angle record that changes with the cumulative spindle angle of the base spindle.
[0075] When there are at least three valid matching records, and the maximum circumferential deviation of the clamping angle formed by each valid matching record at the same base spindle cumulative rotation angle is not greater than half of the positive boundary of the allowable angle range for receiving materials, the clamping angle record corresponding to the cumulative rotation angle of each base spindle is obtained by the average directional circumferential angle formed by each valid matching record. When the number of records is insufficient or the maximum circumferential deviation exceeds the limit, the result of insufficient evidence for clamping angle is written. The clamping angle record formed by the clamping calibration of the same receiving spindle chuck, workpiece material, workpiece clamping diameter, clamping pressure and spindle rotation direction with standard workpiece is read and written into the initial receiving state. When there is no valid clamping calibration result with standard workpiece, the pre-receiving termination process is executed.
[0076] The CNC controller writes the following information into the receiving reference record: basic spindle number, workpiece material, workpiece clamping diameter, clamping pressure, feed speed of the receiving spindle interpolation motion, acceleration and deceleration processes, spindle synchronous speed correction command, spindle synchronous acceleration and deceleration processes, maximum number of target phase difference rewrites, maximum number of spindle synchronous restarts, maximum duration of this receiving control, receiving spindle number, target phase difference initially written in this receiving program, currently used target phase difference, synchronous reference difference, synchronous angle difference, actual phase difference, maximum synchronous angle difference of the spindle, synchronous completion signal, spindle rotation direction, minimum resolvable angle of the spindle encoder, minimum write angle of the spindle synchronous command phase difference parameter, current position of the receiving spindle, receiving waiting position, clampable position, chuck response time, clamping angle record, chuck status feedback, timeout alarm, allowable angle range for receiving, and initial receiving status.
[0077] S2. Start the spindle synchronization according to the material receiving reference record, and determine the expected phase difference when the pressure is stable based on the actual angular velocity of the base spindle, the actual angular velocity of the receiving spindle, the synchronization angle difference, the target phase difference currently in use, the target phase difference initially written in this material receiving program, the expected travel time of the receiving spindle, the chuck response time, the clamping and insertion angle record, and the initial material receiving status.
[0078] When the allowable angle range for receiving material is not empty, the CNC controller confirms that the feedback of the base spindle chuck clamping in place is valid, the feedback of the base spindle chuck releasing in place is invalid, and the feedback of the receiving spindle chuck opening in place is valid. However, the feedback of the receiving spindle chuck clamping in place and the pressure stabilization feedback are invalid. If the receiving spindle has not stopped at the receiving waiting position, it first moves to the receiving waiting position. If any feedback or the position of the receiving spindle is invalid, the pre-receiving termination process is executed. After the receiving spindle stops at the receiving waiting position, it confirms that the synchronization status of the previous spindle has been released, the synchronization completion signal is invalid, and the base spindle is in speed control mode. The spindle synchronization group is selected according to the base spindle number, the receiving spindle number, and the spindle rotation direction, and a spindle synchronization activation command with the currently used target phase difference is issued.
[0079] When the feedback of the base spindle chuck clamping in place and the feedback of the base spindle chuck releasing in place are both effective, when the feedback of the receiving spindle chuck opening in place and the feedback of the receiving spindle chuck clamping in place are both effective, or when the pressure stabilization feedback is effective in the receiving spindle chuck open state, it is considered that the chuck state is contradictory. The CNC controller will perform the pre-receiving termination process. When the receiving axis position feedback is invalid, it will not continue to output the movement command. Before the receiving axis reaches the receiving waiting position, the base spindle continues to clamp the workpiece and the receiving spindle chuck remains open.
[0080] After the spindle synchronization is enabled, the CNC controller reads the phase difference parameter actually written by the spindle synchronization command, processes it, updates the currently used target phase difference, and establishes a sequence of used target phase differences in the target phase difference hold or rewrite results. The currently used target phase difference is used as the first record. When the actual written value is invalid, the pre-receiving termination process is executed. Before the receiving axis movement permission and chuck clamping preparation permission are formed, the receiving axis remains in the receiving waiting position, and the receiving spindle chuck remains open.
[0081] The CNC controller reads the actual spindle speeds, synchronous angle differences, synchronous completion signals, maximum synchronous angle differences of the spindles, and the current position of the receiving spindle in the same control cycle. It processes the actual spindle speeds into actual angular velocities in radians per second. The estimated travel time of the receiving spindle is determined based on the remaining travel from the current position to the clamping position, as well as the feed rate, acceleration, and deceleration processes of this interpolation motion. When it has not yet moved, the complete travel time is taken; when it is moving, the remaining time is taken; when it stops at the clamping position, it is recorded as zero. When the interpolation target is the clamping position and the distance from the current position to the clamping position decreases cycle by cycle, the direction of movement of the receiving spindle is towards the clamping position; when the distance increases, it moves away from the clamping position. When the actual spindle speeds, synchronous angle differences, receiving spindle positions, clamping positions, estimated travel times, or chuck response times are invalid, or when the receiving spindle moves away from or crosses the clamping position, the estimated phase difference at stable pressure is not formed, and the results of the previous control cycle are prohibited from being used. When the receiving spindle has already moved, it stops and returns to the receiving waiting position.
[0082] The estimated pressure stabilization time is the sum of the estimated travel time of the receiving shaft and the chuck response time. The estimated travel time of the receiving shaft covers the time from its current position to when it stops at the clamping position. The chuck response time covers the time from when the clamping command is issued to when the pressure stabilization feedback is generated. The estimated pressure stabilization time is the sum of the acquisition time of the current control cycle and the estimated pressure stabilization time. When the receiving shaft has not yet moved, the estimated travel time of the receiving shaft is the full interpolation time. When the receiving shaft has already moved, the remaining time of the current interpolation movement is used.
[0083] When the data is valid, the CNC controller takes the current acquisition time as the starting point and sequentially connects the expected travel time of the receiving shaft with the chuck response time to form the pressure stabilization expected time. The actual angular velocity of the current base spindle and the actual angular velocity of the receiving spindle are used as the initial values of the expected angular velocity. Based on the direction and magnitude of the spindle synchronous speed correction command and the acceleration and deceleration processes recorded in the synchronous parameters, the expected angular velocities of the base spindle and the receiving spindle are determined sequentially within the pressure stabilization expected time according to the subsequent control cycle. After the expected synchronous angle difference enters within the minimum resolvable angle of the spindle encoder, the expected angular velocities of the two spindles are kept consistent.
[0084] The CNC controller accumulates the difference between the expected angular velocity of the base spindle and the expected angular velocity of the receiving spindle according to the duration of each expected control cycle, forming the expected phase change from the current acquisition time to the expected pressure stabilization time. It accumulates the expected angular velocity of the base spindle according to the expected travel time of the receiving spindle, determines the cumulative rotation angle of the base spindle when the expected clamping command is issued, and reads the clamping angle that matches the cumulative rotation angle of the base spindle from the effective matching record or the clamping calibration result with standard workpiece.
[0085] The CNC controller performs a complete rotation cycle processing on the current synchronous angle difference, the offset of the target phase difference currently used relative to the target phase difference initially written in this receiving program, the expected phase change formed within the expected pressure stabilization time, and the clamping angle, to form the expected phase difference when the pressure is stable. For both non-initial receiving and initial receiving, the chuck response time is included in the expected pressure stabilization time.
[0086] After the spindle synchronization is activated until the clamping command is issued, the CNC controller re-collects the actual angular velocity of the two spindles, the synchronization angle difference, and the current position of the receiving spindle in each control cycle. It then redetermines the expected travel time of the receiving spindle, the expected pressure stabilization time, the expected angular velocity of the two spindles, the cumulative rotation angle of the base spindle when the clamping command is issued, and the expected phase difference when the pressure is stable. This is not accumulated with the expected phase difference when the pressure is stable formed in the previous control cycle. When the spindle synchronization speed correction command, acceleration process, deceleration process, or expected angular velocity is invalid, the expected phase difference when the pressure is stable is not formed, and the pre-receiving termination process is executed.
[0087] After the receiving shaft returns to the receiving waiting position, the estimated travel time of the receiving shaft is restored to the complete interpolation time from the receiving waiting position to the clamping position. The CNC controller re-forms the estimated time of pressure stabilization and the estimated phase difference when the pressure is stable. The estimated results saved before the return are only used for recording and are no longer involved in the rewriting of the target phase difference, the permission for receiving shaft movement, or the judgment of chuck clamping preparation permission.
[0088] S3. Based on the synchronous completion signal, synchronous angle difference, actual phase difference, maximum synchronous angle difference of the spindle, and expected phase difference when the pressure is stable, maintain or rewrite the target phase difference currently in use, and control the receiving shaft to enter the clamping position, remain in the receiving waiting position, or return to the receiving waiting position, thus forming a chuck clamping preparation permission.
[0089] The CNC controller uses the positive boundary of the allowable angle range for receiving material as a common judgment limit for the absolute value of the synchronous angle difference, the absolute value of the actual phase difference, the maximum synchronous angle difference of the spindle, and the absolute value of the expected phase difference when the pressure is stable. It updates the actual phase difference cycle by cycle based on the synchronous angle difference and the target phase difference offset. When the expected phase difference when the pressure is stable or the required data is invalid, it maintains the currently used target phase difference, prohibits the use of the expected result of the previous control cycle, and does not output the movement permission and chuck clamping preparation permission. When the receiving shaft has moved, it stops and returns to the receiving waiting position. After returning, it re-determines the expected phase difference when the pressure is stable. When the synchronous completion signal has not yet been generated, the receiving shaft remains in the receiving waiting position, the receiving spindle chuck remains open and continues to update the synchronous angle difference and the expected phase difference.
[0090] After the synchronization completion signal is generated, if the absolute value of the synchronization angle difference or the maximum synchronization angle difference of the spindle exceeds the common judgment limit, the movement permission and chuck clamping preparation permission are revoked. If the actual synchronization deviation occurs before the receiving shaft leaves the receiving waiting position, the spindle synchronization with the currently used target phase difference is released and restarted. If the newly formed synchronization angle difference and the maximum synchronization angle difference of the spindle do not exceed the limit, the judgment continues. If they still exceed the limit, the restart is not repeated and the pre-receiving termination process is executed.
[0091] Before restarting the spindle synchronization, the CNC controller stops the receiving axis in the receiving waiting position, issues a spindle synchronization cancellation command and confirms that the synchronization completion signal has been restored to an invalid state, then clears the maximum angle difference of spindle synchronization to zero. After restarting, the phase difference parameter actually written in the spindle synchronization command is still used as the target phase difference. Before the synchronization completion signal is regenerated, no permission to move the receiving axis is output. If a restart still cannot bring the synchronization angle difference and the maximum angle difference of spindle synchronization into the common judgment limit, it is determined that the current spindle synchronization relationship cannot stably accept this receiving, and the same target phase difference will not be repeatedly verified.
[0092] When the synchronization completion signal is valid and the absolute value of the synchronization angle difference and the maximum synchronization angle difference of the spindle are both within limits, if the absolute value of the expected phase difference and the absolute value of the actual phase difference when the pressure is stable are both within limits, maintain the currently used target phase difference and output permission for the receiving axis to move to the clamping position. If the expected phase difference when the pressure is stable is within limits but the actual phase difference is within limits, execute the pre-receiving termination process. If the expected phase difference when the pressure is stable is within limits, cancel the permission for the receiving axis to move and the permission for the chuck to clamp, so that the receiving axis remains or returns to the receiving waiting position. If the target phase difference rewriting parameter is valid, execute the target phase difference rewriting. If the target phase difference rewriting parameter is invalid, execute the pre-receiving termination process.
[0093] The expected phase difference when the pressure is stable is used to determine whether the receiving shaft will still deviate from the target phase difference initially written in the receiving program after completing its journey and passing the chuck response time. The actual phase difference is used to determine whether the receiving shaft can enter the directional clamping slot. If the expected phase difference is within the allowable range but the actual phase difference exceeds the limit, it cannot be corrected by waiting for the chuck to clamp. If the actual phase difference is within the allowable range but the expected phase difference exceeds the limit, it is allowed to execute the target phase difference reverse preset at the receiving waiting position.
[0094] The target phase difference rewriting direction is opposite to the expected deviation direction. When the expected phase difference is positive, the same absolute angle is removed from the currently used target phase difference. When the expected phase difference is negative, the same absolute angle is added. After a complete rotation cycle, the target phase difference to be written is formed. The nearest writable angle is selected with the minimum writable angle of the spindle synchronization command phase difference parameter as the writable interval. When the distance is equal, the angle in the opposite direction of the expected deviation is selected to form the rewritten target phase difference. The minimum circumferential angle difference between the rewritten target phase difference and the currently used target phase difference is the target phase difference rewriting amount. When the rewriting amount is less than the minimum resolvable angle of the spindle encoder, the spindle synchronization is no longer started.
[0095] When the current receiving program starts, the CNC controller reads the maximum number of times the target phase difference is rewritten, the maximum number of times the spindle is restarted synchronously, and the maximum duration of the current receiving control. It uses the larger of the minimum resolvable angle of the spindle encoder and the maximum quantization error of the synchronous angle difference as the minimum effective improvement amount of the expected phase difference when the pressure is stable. The number of times the target phase difference is rewritten is updated each time a rewritten target phase difference is formed. The number of times the spindle is restarted synchronously is updated each time the rewritten target phase difference is started. When any number of times or the duration of the current receiving control reaches the corresponding upper limit, the decrease in the absolute value of the expected phase difference when the pressure is stable after rewriting is less than the minimum effective improvement amount of the expected phase difference when the pressure is stable, or when the target phase difference sequence has recorded all writable target phase differences, the pre-receiving termination process is executed.
[0096] The target phase difference initially written in this receiving program remains unchanged. The temporary rewriting only applies to the current spindle synchronization. The clamping angle record is still matched according to the target phase difference initially written in this receiving program. The CNC controller saves the target phase difference currently used before this round of rewriting, the expected phase difference when the pressure is stable before this round of rewriting, the rewritten target phase difference, and the sequence of used target phase differences in the target phase difference retention or rewriting results. When the rewritten target phase difference is the same as the currently used target phase difference, the target phase difference rewriting amount is less than the minimum resolvable angle of the spindle encoder, or the used target phase difference sequence has already recorded the rewritten target phase difference, the pre-receiving termination process is executed.
[0097] When the rewritten target phase difference meets the restart conditions, the receiving axis stops at the receiving waiting position. The CNC controller cancels the spindle synchronization, clears the maximum angle difference of the spindle synchronization, and re-enables the spindle synchronization with the rewritten target phase difference. When reading the actual written value of the spindle synchronization command, if the actual written value is invalid or inconsistent with the rewritten target phase difference, the pre-receiving termination process is executed. When they are consistent, the currently used target phase difference is updated and appended to the used target phase difference sequence.
[0098] After the synchronous completion signal is regenerated, the synchronous angle difference, the maximum synchronous angle difference of the spindle, the actual phase difference, and the expected phase difference when the pressure is stable are redefined. If the synchronous angle difference, the maximum synchronous angle difference of the spindle, or the actual phase difference exceeds the limit, the pre-receiving termination process is executed. If the absolute value of the redefined expected phase difference decreases but still exceeds the limit, the process is rewritten according to the new expected phase difference. If neither the expected phase difference nor the actual phase difference exceeds the limit, the rewriting result is retained and the receiving shaft movement permission is output. If the absolute value of the expected phase difference when the pressure is stable does not decrease, or the decrease is less than the minimum effective improvement amount of the expected phase difference when the pressure is stable, the pre-receiving termination process is executed.
[0099] The rewriting effect is reviewed sequentially based on the actual synchronous stability, the current actual phase relationship, and the expected phase relationship when the pressure is stable. When the actual synchronous is unstable, the expected phase difference is not evaluated. When the actual synchronous is stable but the actual phase difference exceeds the limit, the receiving shaft is not allowed to enter. When the actual phase difference does not exceed the limit and the absolute value of the expected phase difference is reduced compared to before this round of rewriting, the rewriting result is retained. When the expected phase difference still exceeds the limit, rewriting is allowed to continue. When the expected phase difference when the pressure is stable does not decrease, or the decrease is less than the minimum effective improvement amount of the expected phase difference when the pressure is stable, the pre-receiving termination process is executed.
[0100] During the movement of the receiving axis clamping position, the CNC controller updates the synchronization completion signal, synchronization angle difference, maximum synchronization angle difference of the spindle, actual phase difference, and expected phase difference when the pressure is stable on a cycle-by-cycle basis. When all results are within limits, the movement continues. When the synchronization completion signal fails, or the synchronization angle difference, maximum synchronization angle difference of the spindle, or actual phase difference exceeds the limits, the movement stops immediately and the pre-receiving termination process is executed. When only the expected phase difference exceeds the limits, the movement returns to the receiving waiting position, the expected phase difference is redefined, and it is determined whether to rewrite the currently used target phase difference.
[0101] If an actual synchronous deviation or actual phase difference exceeds the limit during the movement of the receiving shaft, the same state will no longer be verified by repeatedly executing the same receiving shaft movement. When the pressure stabilizes, the expected phase difference exceeding the limit will only be entered into the target phase difference rewriting judgment after the receiving shaft returns to the receiving waiting position and is recalculated. After the receiving shaft reaches the clamping position, whether the receiving shaft interpolation movement has ended and the position feedback are confirmed respectively.
[0102] After the receiving shaft stops at the clamping position, the judgment result is reread and updated in the same control cycle. When the synchronization status or actual phase difference is abnormal, no chuck clamping preparation permission is output and the pre-receiving termination process is executed. When only the expected phase difference exceeds the limit, the receiving shaft returns to the receiving waiting position and re-enters the target phase difference rewriting judgment. When the receiving shaft interpolation movement has ended, and the synchronization completion signal is valid, the absolute value of the synchronization angle difference, the absolute value of the actual phase difference, the maximum synchronization angle difference of the spindle, and the absolute value of the expected phase difference when the pressure is stable have all not exceeded the limit, the currently used target phase difference is maintained and the chuck clamping preparation permission is output. The CNC controller writes the target phase difference maintenance or rewriting result, the receiving shaft status, and the judgment results of each phase into the receiving reference record.
[0103] Figure 5 This reflects the phase judgment process from the simultaneous activation of the spindle to the formation of chuck clamping preparation permission. Figure 5 The degree values are converted to radians according to the relationship that 180 degrees equals π radians, and then used for control calculations. The horizontal axis represents the control cycle, and the vertical axis represents the angle values. Figure 5 The synchronous angle difference in the equation represents the direction and degree of deviation between the base spindle and the receiving spindle relative to the currently used target phase difference. The expected phase difference when the pressure is stable represents the expected deviation that the receiving spindle may form relative to the target phase difference initially written in this receiving program after it reaches the clamping position and experiences the chuck response time. The positive boundary and negative boundary of the allowable angle range for receiving together define the phase interval for receiving. As can be seen from the curve changes, the CNC controller not only judges the current synchronous angle difference, but also makes a preliminary judgment on the phase result when the chuck reaches the pressure stabilization state. Thus, it can decide whether to maintain or rewrite the currently used target phase difference before the receiving spindle enters the clamping position, and control the receiving spindle to stay in the receiving waiting position, enter the clamping position, or return to the receiving waiting position, thereby improving the accuracy of the chuck clamping preparation permission formation and the stability of the receiving process.
[0104] S4. When the receiving spindle is in the clampable position and the chuck clamping preparation permission is valid, perform receiving spindle chuck clamping, and determine whether to output basic spindle release permission based on the actual phase difference after pressure stabilization, synchronous angle difference, synchronous completion signal and maximum synchronous angle difference of the spindle.
[0105] After the chuck clamping preparation permission is valid, the CNC controller confirms in the same control cycle that the receiving spindle stops in the clamping position and the interpolation motion ends, the synchronization completion signal is valid, and the absolute values of the synchronization angle difference, the actual phase difference, the maximum synchronization angle difference of the spindle, and the expected phase difference when the pressure is stable are all within the limits. It also confirms that the chuck clamping position feedback and pressure stability feedback of the receiving spindle are invalid. If the receiving spindle status, synchronization status, or actual phase difference does not meet the requirements, the chuck clamping preparation permission is revoked and the pre-receiving termination process is executed. If only the expected phase difference exceeds the limit, the controller returns to the receiving waiting position, re-determines the expected phase difference, and enters the target phase difference rewriting judgment.
[0106] The confirmation sequence before chuck clamping is as follows: receiving shaft stop status, spindle synchronization stability, current actual phase relationship, expected phase relationship when pressure is stable, and initial feedback of receiving spindle chuck. If the receiving shaft status or actual synchronization status is abnormal, the pre-receiving termination process is executed. If only the expected phase difference when pressure is stable exceeds the limit, the receiving waiting position is returned and the target phase difference is rewritten for judgment. If the receiving spindle chuck clamping position feedback or pressure stabilization feedback is valid before the clamping command is issued, the receiving spindle chuck clamping command is not output.
[0107] After entering the chuck clamping execution process, the CNC controller obtains the synchronous angle difference during the cumulative rotation of the base spindle through one complete spindle rotation cycle from the sampled value after the synchronous completion signal is generated. This is used as the last complete spindle rotation cycle before the clamping command is issued. When a complete spindle rotation cycle has not yet been formed, the receiving spindle is kept in the clampable position, the receiving spindle chuck is open, and the base spindle clamps the workpiece, and the data acquisition continues. When the actual rotation speed of the base spindle is zero, the rotation direction changes, the actual angle of the base spindle or the synchronous angle difference is invalid, or the synchronous completion signal fails, or the synchronous angle difference, actual phase difference, or maximum synchronous angle difference of the spindle exceeds the limit, the formation of a complete spindle rotation cycle is stopped and the pre-receiving termination process is executed. When only the phase difference is expected to exceed the limit, the controller returns to the receiving waiting position and re-enters the target phase difference rewriting judgment.
[0108] Before the clamping command is issued, the last complete spindle rotation cycle only uses the sampled value after the synchronous completion signal is generated. The phase catching data before the synchronous completion signal is generated is not included in the complete spindle rotation cycle. The CNC controller selects the continuous sampled value of the cumulative rotation angle of the basic spindle covering a complete spindle rotation cycle forward from the current control cycle that is about to issue the clamping command as the end position, and saves the synchronous angle difference and the corresponding cumulative rotation angle. After forming an effective clamping record or a qualified receiving record for this material receiving, the clamping input angle corresponding to each cumulative rotation angle of the basic spindle is determined and a clamping input angle record is formed.
[0109] After the last complete spindle rotation cycle is completed before the clamping command is issued, the CNC controller rereads the actual angular velocity of the two spindles, the synchronous angle difference, the currently used target phase difference, the maximum synchronous angle difference of the spindles, and the current position of the receiving spindle in the same control cycle when preparing to output the clamping command. It updates the actual phase difference, records the expected travel time of the receiving spindle as zero, and re-determines the expected phase difference and the expected time of pressure stabilization. When all the pre-clamping conditions are met again, the receiving spindle chuck clamping command is output, the issuance time is recorded, and the chuck clamping preparation permission is revoked. If any condition is not met, the clamping command is not output and the corresponding return or termination process is executed.
[0110] In the final confirmation, the expected travel time of the receiving spindle is fixed at zero. For non-initial receiving states, the clamping angle formed by the effective matching record is used. For the initial receiving state, the clamping angle formed by the standard workpiece clamping calibration is used. The expected phase change is formed based on the difference between the expected angular velocity of the base spindle and the expected angular velocity of the receiving spindle within the chuck response time. After the expected phase difference when the pressure is stabilized, the current actual phase difference, the synchronous angle difference, and the maximum synchronous angle difference of the spindle all enter the allowable angle range for receiving, the receiving spindle chuck clamping command is output.
[0111] After the clamping command is issued, the CNC controller locks the target phase difference currently used when the chuck is clamping and no longer performs target phase difference rewriting. The base spindle holds the workpiece, the receiving spindle is kept in the clamping position, the two spindles keep the spindles synchronized, the base spindle release permission remains invalid, and the expected phase difference and the expected time of pressure stabilization are only saved as prediction results before clamping.
[0112] The CNC controller reads the status feedback of the two chucks, the synchronization completion signal, the synchronization angle difference, the maximum synchronization angle difference of the spindle, the position of the receiving shaft, and the current target phase difference cycle by cycle. It updates the actual phase difference and checks the timing of the clamping command, clamping position feedback, and pressure stabilization feedback. Before the basic spindle release permission output, if the basic spindle chuck clamping position feedback fails or the basic spindle chuck release position feedback is valid, the receiving spindle chuck clamping command remains valid, and the receiving shaft stops at the clamping position. This allows the two spindles to decelerate to a stop in a synchronized state, without opening the receiving spindle chuck or moving the receiving shaft. The controller writes "basic spindle clamping status abnormal" and waits for machine tool processing.
[0113] When the receiving spindle chuck clamping feedback is generated but the pressure stabilization feedback has not yet been generated, the base spindle continues to hold the workpiece, the receiving spindle remains in the clamping position, and the base spindle release permission remains invalid. When the pressure stabilization feedback is generated before the clamping feedback, the two feedbacks are not generated in sequence and the clamping timeout alarm is valid, or the recording order of the three moments is inconsistent, the pressure stabilization feedback is not used as the basis for stable clamping.
[0114] When the base spindle chuck is still reliably clamped, if an error occurs in the feedback sequence and a clamping timeout alarm is generated, the synchronization completion signal fails, the synchronization angle difference, the actual phase difference, or the maximum synchronization angle difference of the spindle exceeds the limit, or the receiving spindle leaves the clamping position, the chuck clamping abnormality handling is executed. The workpiece clamping of the base spindle and the permission for the base spindle to release are invalidated. The target phase difference currently used when the chuck is clamped is locked, so that the two spindles decelerate to a stop in the synchronization state. If the clamping state of the base spindle is abnormal during deceleration, the base spindle clamping state abnormality handling is initiated. When the two spindles stop and the base spindle is still reliably clamped, the receiving spindle chuck is opened. After confirming that the opening position, clamping position feedback, and pressure stability feedback are invalid, the spindle synchronization is released, the receiving spindle returns to the receiving waiting position, and the current receiving ends. The estimated pressure stability time does not replace the pressure stability feedback, nor is it used as the sole basis for clamping failure.
[0115] After the chuck clamping feedback of the receiving spindle is generated, the corresponding time is recorded. After the pressure stabilization feedback is generated, the pressure stabilization feedback time is recorded. If the three times do not occur in sequence, the chuck clamping abnormality handling is executed. If the three times occur in sequence, the difference between the pressure stabilization feedback time and the clamping command issuance time is written into the receiving record and saved as a valid clamping record.
[0116] After the pressure stabilization feedback is generated, the CNC controller performs a complete rotation cycle processing on the sum of the synchronous angle difference and the offset of the target phase difference currently used when the chuck is clamped relative to the target phase difference initially written in this receiving program, forming the actual phase difference after pressure stabilization. Starting from the first effective base spindle angle acquisition time after the pressure stabilization feedback is generated, the positive angle increment of the base spindle is accumulated to form the first complete spindle rotation cycle after the pressure stabilization feedback is generated.
[0117] The first complete spindle rotation cycle after the pressure stabilization feedback is generated is used to verify the actual phase retention within the entire circumference after the clamping action is completed, instead of directly releasing the base spindle based on the synchronous angle difference of a single control cycle when the pressure stabilization feedback is generated. During the formation of the complete spindle rotation cycle, the cumulative rotation angle of the base spindle must continuously increase along the spindle rotation direction recorded and saved on the material receiving reference. Invalid data in any control cycle will invalidate the current complete spindle rotation cycle. The first complete spindle rotation cycle after the pressure stabilization feedback is generated must also meet the minimum number of effective sampling points and the maximum interval of cumulative rotation angle requirements of the complete spindle rotation cycle. If these requirements are not met, the result of insufficient evidence for the complete spindle rotation cycle will be written and treated as if a complete spindle rotation cycle after pressure stabilization has not been formed.
[0118] During the formation of a complete spindle rotation cycle, the feedback from the receiving spindle chuck clamping position, pressure stabilization feedback, and synchronization completion signal remain effective. The receiving spindle remains in the clampable position, and the absolute value of the synchronization angle difference, the absolute value of the actual phase difference after pressure stabilization, and the maximum synchronization angle difference of the spindle are compared cycle by cycle. When the base spindle stops or changes its rotation direction, the acquired data is invalid, any feedback or synchronization completion signal fails, the receiving spindle leaves the clampable position, or any phase result exceeds the limit, no permission to release the base spindle is output. The two spindles decelerate to a stop in the synchronization state. When the base spindle is still reliably clamped, the receiving spindle chuck is opened, the spindle synchronization is released, and the receiving spindle returns to the receiving waiting position. When the clamping state of the base spindle is abnormal, the system switches to the base spindle clamping state abnormality handling. Records that do not output permission to release the base spindle are not saved as qualified receiving records. Only the feedback time and chuck response time are retained in the formed valid clamping records.
[0119] When a complete spindle rotation cycle after pressure stabilization is not formed or any state within the cycle is not met, the CNC controller retains the formed valid clamping record, but does not save it as a qualified receiving record. The sampling value of the synchronous angle difference before clamping and after pressure stabilization is not used to determine the clamping angle. When the base spindle is reliably clamped, the receiving spindle chuck is opened and returned to the receiving waiting position after the two spindles are synchronously decelerated to a stop. When the clamping state of the base spindle is abnormal during synchronous deceleration, the receiving spindle chuck is no longer opened or the receiving spindle is moved.
[0120] When all conditions are met continuously during the first complete spindle rotation cycle after the pressure stabilization feedback is generated, the CNC controller reads the receiving spindle chuck clamping position feedback, pressure stabilization feedback, receiving spindle status, synchronization completion signal, synchronization angle difference, the target phase difference currently used when the chuck is clamped, the maximum synchronization angle difference of the spindle, and the basic spindle chuck status feedback again in the same control cycle when preparing to output the basic spindle release permission, and updates the actual phase difference after the current pressure stabilization. When the basic spindle chuck clamping position feedback is valid, the basic spindle chuck release position feedback is invalid, and the other clamping, position, synchronization, and phase conditions are all met, the basic spindle release permission is output. When the basic spindle clamping state is abnormal, the basic spindle clamping state abnormality handling is executed. When the other conditions are not met, the chuck clamping abnormality handling is executed.
[0121] The actual phase difference after the current pressure stabilizes when the basic spindle is released is calculated using the synchronous angle difference reread during the same control cycle and the target phase difference currently used when the chuck is clamped. The feedback that the basic spindle is clamped in place is valid while the feedback that it is released in place is invalid. This is used to confirm that the basic spindle has not been released prematurely. The feedback that the receiving spindle is clamped in place and the pressure stabilization feedback are continuously valid. This is used to confirm that the receiving spindle is ready to receive the workpiece.
[0122] After the basic spindle release permission output is received, the time of the permission output and the time of the basic spindle chuck release command are recorded. From the basic spindle release permission output to the generation of the basic spindle chuck release position feedback, the CNC controller reads the receiving spindle chuck clamping position feedback, pressure stabilization feedback, synchronization completion signal, synchronization angle difference, the target phase difference currently used when the chuck is clamped, the maximum synchronization angle difference of the spindle, and the position of the receiving shaft in each control cycle. It updates the actual phase difference after pressure stabilization and confirms that the receiving shaft continues to be held in the clampable position. As long as the receiving spindle chuck clamping position feedback, pressure stabilization feedback, and synchronization completion signal remain valid, the receiving shaft continues to be held in the clampable position. When the position, and the absolute value of the synchronous angle difference, the absolute value of the actual phase difference after pressure stabilization, and the maximum synchronous angle difference of the spindle are all not greater than the positive boundary of the allowable angle range for receiving material, maintain the basic spindle release permission and target phase difference lock. When any clamping, position, synchronization, or phase condition fails, cancel the basic spindle release permission, keep the receiving spindle chuck clamped, and make the two spindles decelerate synchronously to a stop. Do not open the receiving spindle chuck, do not move the receiving spindle, write the abnormal result of the receiving status during the release process, and wait for the machine tool to process it. Do not save this receiving record as a qualified receiving record. When the basic spindle chuck release timeout alarm occurs, handle it as a basic spindle release abnormality.
[0123] After the basic spindle chuck release command is issued, the basic spindle chuck clamping command will no longer be output. When the basic spindle chuck release timeout occurs, the receiving spindle chuck will remain clamped and synchronized with the spindle. The receiving spindle movement will not be controlled, and the receiving spindle chuck will not open due to the basic spindle not being released. When the receiving spindle clamping feedback fails during the release process, the receiving spindle chuck clamping command will remain valid and both spindles will decelerate synchronously to a stop.
[0124] After the basic spindle chuck releases to the correct position feedback, the corresponding time is recorded. If the release to the correct position feedback time is not later than the release command issuance time, a basic spindle release feedback timing abnormality is recorded. The receiving spindle chuck is kept clamped and both spindles are decelerated synchronously to a stop. If the release command issuance time is earlier than the release to the correct position feedback time and the receiving spindle chuck clamping to the correct position feedback and pressure stabilization feedback are still effective, the workpiece is confirmed to be stably clamped by the receiving spindle chuck. The basic spindle release permission is revoked and the spindle synchronization is released. If the receiving spindle clamping feedback fails after the release to the correct position, it is handled as a receiving spindle clamping abnormality.
[0125] The CNC controller writes the target phase difference initially written in this receiving program, the target phase difference currently used when the chuck is clamping, the target phase difference holding or rewriting result, the two spindle numbers, the spindle rotation direction, the allowable angle range for receiving, the clamping command and each feedback moment, the chuck response time, the synchronous angle difference sampling value within two complete spindle rotation cycles before clamping and after pressure stabilization, the actual phase difference sampling value after pressure stabilization, the synchronous completion signal status, the receiving axis position, the chuck feedback status, the maximum synchronous angle difference of the spindle, the basic spindle release permission output moment, the basic spindle chuck release command issuance moment and the release position feedback moment into this receiving record. When all the conditions for forming a qualified receiving record are met, it is saved as a qualified receiving record. The target phase difference initially written in this receiving program is used for subsequent matching records, and the target phase difference currently used when the chuck is clamping is used to explain the actual synchronous relationship of the spindles executed within two complete spindle rotation cycles. After the record is saved, the chuck clamping preparation permission is revoked, the receiving result is written into the receiving reference record, and the spindle receiving control for this time is completed.
[0126] This receiving record saves the synchronous angle difference sample value, cumulative rotation angle of the base spindle, number of effective sampling points, maximum interval between adjacent cumulative rotation angles, and valid results of the complete spindle rotation cycle for the last complete spindle rotation cycle before the clamping command is issued and the first complete spindle rotation cycle after the pressure stabilization feedback is generated. For the complete spindle rotation cycle after pressure stabilization, it also saves the actual phase difference after pressure stabilization, synchronous completion signal, receiving spindle position, receiving spindle chuck clamping feedback, and pressure stabilization feedback. This receiving record also saves the receiving program, the two spindle numbers, the spindle rotation direction, the target phase difference initially written in this receiving program, the workpiece material, the workpiece clamping diameter, the clamping pressure, the actual speed range of the two spindles, the chuck response time, the record formation time, the record validity period, the source of the clamping angle, the number of valid matching records, and the maximum circumferential deviation of the clamping angle. When the evidence of the complete spindle rotation cycle is insufficient, the number of valid matching records is insufficient, or the maximum circumferential deviation of the clamping angle exceeds the limit, the corresponding results are written, and the corresponding historical records are not used to determine the clamping angle later.
[0127] Figure 6 This reflects the material receiving result verification process during the first complete spindle rotation cycle after the pressure stabilization feedback is generated. Figure 6The degree values in the graph are converted to radians according to the relationship that 180 degrees equals π radians, and then used for control calculations. The horizontal axis represents the cumulative rotation angle of the base spindle, and the vertical axis represents the angle value. The synchronous angle difference in the graph is used to represent the deviation of the base spindle and the receiving spindle from the target phase difference currently used when the chuck is clamped at each sampling moment. The actual phase difference after pressure stabilization is used to represent the deviation of the current actual angle relationship from the target phase difference initially written in this receiving program. The maximum synchronous angle difference of the spindle represents the maximum absolute value of the synchronous angle difference from the generation of the synchronous completion signal to the current cumulative rotation angle of the base spindle. Therefore, the curve... As the absolute value of the blue synchronous angle difference reaches a higher peak, it rises synchronously and remains unchanged thereafter. The positive and negative boundaries of the allowable angle range for receiving materials are used to limit the phase range of the allowable output of the base spindle release permission. As can be seen from the fact that each curve remains within the allowable range throughout a complete spindle rotation cycle, this invention does not rely solely on the single-point state when the pressure stability feedback is generated, but rather confirms that the actual phase relationship after pressure stabilization meets the receiving requirements through continuous verification of the complete spindle rotation cycle, thereby improving the reliability of the base spindle release permission output and the stability of workpiece reception.
[0128] This embodiment also provides a computer device applicable to the spindle feeding control method based on target phase difference, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the spindle feeding control method based on target phase difference as proposed in the above embodiment.
[0129] The computer device can be a terminal, comprising a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.
[0130] This embodiment also provides a storage medium storing a computer program that, when executed by a processor, implements the spindle feeding control method based on the target phase difference as proposed in the above embodiments. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0131] In summary, this invention improves the accuracy of the receiving phase and the stability of the workpiece by: determining the expected phase difference when the pressure is stable, and maintaining or rewriting the currently used target phase difference accordingly; determining the phase change during the movement of the receiving shaft and the clamping of the chuck; and continuously verifying the synchronous angle difference, the actual phase difference after the pressure is stable, and the maximum synchronous angle difference of the spindle within the first complete spindle rotation cycle after the pressure stabilization feedback is generated, thereby determining the permission for the basic spindle to release, thus improving the accuracy of the receiving phase and the stability of the workpiece receiving.
[0132] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A spindle feeding control method based on target phase difference, characterized in that, include: The system collects the angles and speeds of the base spindle and receiving spindle, the position of the receiving spindle, and the status feedback of the base spindle chuck and receiving spindle chuck. It reads the phase difference of the receiving program, synchronization parameters, effective clamping records, and qualified receiving records. It determines the target phase difference, synchronization angle difference, actual phase difference, maximum synchronization angle difference of the spindle, receiving waiting position, clamping position, chuck response time, clamping angle record, allowable angle range for receiving, and initial receiving status, forming a receiving benchmark record. Start the spindle synchronization based on the material receiving reference record, and determine the expected phase difference when the pressure is stable based on the actual angular velocity of the base spindle, the actual angular velocity of the receiving spindle, the synchronization angle difference, the currently used target phase difference, the target phase difference initially written in this material receiving program, the expected travel time of the receiving spindle, the chuck response time, the clamping and insertion angle record, and the initial material receiving status. Based on the synchronous completion signal, synchronous angle difference, actual phase difference, maximum synchronous angle difference of the spindle, and the expected phase difference when the pressure is stable, maintain or rewrite the target phase difference currently in use, and control the receiving shaft to enter the clamping position, remain in the receiving waiting position, or return to the receiving waiting position to form a chuck clamping preparation permission. When the receiving spindle is in the clampable position and the chuck clamping preparation permission is valid, the receiving spindle chuck clamping is performed, and the basic spindle release permission is determined based on the actual phase difference after the pressure stabilizes, the synchronous angle difference, the synchronous completion signal, and the maximum synchronous angle difference of the spindle.
2. The spindle feeding control method based on target phase difference as described in claim 1, characterized in that, The determination of the currently used target phase difference, synchronous angle difference, actual phase difference, maximum synchronous angle difference of the spindle, material receiving waiting position, clamping position, chuck response time, clamping angle record, allowable angle range for material receiving, and initial material receiving status includes: Read the phase difference parameters and synchronization reference difference initially written in this receiving program. Based on the phase difference parameters initially written in this receiving program, form the target phase difference initially written in this receiving program. Initialize it to the target phase difference currently in use before the first start of spindle synchronization. Update the target phase difference currently in use with the phase difference parameters actually written by the spindle synchronization command each time spindle synchronization is enabled. The difference between the actual angle of the base spindle and the actual angle of the receiving spindle is then removed by removing the synchronous reference difference and the target phase difference currently in use, and processed to the positive and negative angle range within a complete rotation cycle to form the synchronous angle difference; After the synchronous completion signal is generated, the maximum synchronous angle difference of the spindle is updated according to the control cycle using the maximum value of the absolute value of the synchronous angle difference. The actual phase difference is formed by performing a full rotation cycle processing on the sum of the synchronous angle difference and the offset of the currently used target phase difference relative to the target phase difference initially written in this receiving program.
3. The spindle feeding control method based on target phase difference as described in claim 2, characterized in that, The process of determining the currently used target phase difference, synchronous angle difference, actual phase difference, maximum synchronous angle difference of the spindle, material receiving waiting position, clamping position, chuck response time, clamping angle record, allowable angle range for material receiving, and initial material receiving status also includes: Read the effective entry width of the receiving spindle chuck orientation clamping groove and the workpiece orientation clamping part at the same clamping radius, the clamping radius of the workpiece orientation clamping part, and the minimum resolvable angle of the two spindle encoders. Take the larger value of the minimum resolvable angle of the two spindle encoders as the minimum resolvable angle of the spindle encoder, and take half of the sum of the minimum resolvable angles of the two spindle encoders as the maximum quantization error of the synchronous angle difference. When the effective entry width of the directional clamping groove of the receiving spindle chuck is greater than the effective entry width of the workpiece directional clamping part, the ratio of half of the difference between the two effective entry widths to the clamping radius is taken as the workpiece entry angle. Then, the maximum quantization error of the synchronous angle difference is removed to obtain the positive boundary of the allowable angle range of receiving, and the positive and negative allowable range of actual phase difference centered on zero is formed. The difference between the pressure stabilization feedback time in the effective clamping record and the time when the clamping command of the receiving spindle chuck is issued is taken as the chuck response time. When there is no effective clamping record, the no-load chuck response time is formed by no-load clamping calibration, and the sum of the no-load chuck response time and the load response correction time is taken as the chuck response time. From the effective clamping records and qualified receiving records that are identical to the receiving program, base spindle, receiving spindle, spindle rotation direction, target phase difference initially written in the receiving program, workpiece material, workpiece clamping diameter and clamping pressure, and whose base spindle actual speed, receiving spindle actual speed and chuck response time are within the saved applicable range, read the last complete spindle rotation cycle before the clamping command is issued, the first complete spindle rotation cycle after the pressure stabilization feedback is generated, and the actual angular velocities of the two spindles during the period from the issuance of the clamping command to the generation of the pressure stabilization feedback. Align the two complete spindle rotation cycles according to the cumulative rotation angle of the base spindle to form the clamping carry-in angle corresponding to the cumulative rotation angle of each base spindle. When there are at least three valid matching records, and the maximum circumferential deviation of the clamping angle formed by each valid matching record at the same base spindle cumulative rotation angle is not greater than half of the positive boundary of the allowable angle range for receiving the material, the directed circumferential average angle of the clamping angle formed by each valid matching record is determined according to the same base spindle cumulative rotation angle, and a clamping angle record is formed. Otherwise, the clamping angle record formed by the standard workpiece clamping calibration is read and written into the initial receiving state. When there is no valid standard workpiece clamping calibration result, the pre-receiving termination process is executed.
4. The spindle feeding control method based on target phase difference as described in claim 1 or 3, characterized in that, The specific steps for starting the spindle synchronously based on the material receiving reference record are as follows: When the allowable angle range for receiving material is not empty, the feedback of the basic spindle chuck clamping in place is valid, the feedback of the basic spindle chuck loosening in place is invalid, the feedback of the receiving spindle chuck opening in place is valid, and the feedback of the receiving spindle chuck clamping in place and the pressure stabilization feedback are invalid, the receiving spindle will stop at the receiving waiting position. Once it is confirmed that the previous spindle synchronization status has been released, the synchronization completion signal is invalid, and the base spindle is in speed control mode, a spindle synchronization enable command with the currently used target phase difference is issued. Read the phase difference parameters actually written by the spindle synchronization command, process them and update the currently used target phase difference. Establish the used target phase difference sequence in the target phase difference retention or rewriting result, and take the currently used target phase difference as the first record.
5. The spindle feeding control method based on target phase difference as described in claim 4, characterized in that, The specific steps for determining the expected phase difference when the pressure is stable are as follows: Based on the remaining travel from the current position of the receiving shaft to the clamping position, the feed speed of the interpolation motion, the acceleration process, and the deceleration process, the estimated travel time of the receiving shaft is determined, and the sum of the estimated travel time of the receiving shaft and the chuck response time is taken as the estimated pressure stabilization time. Using the actual angular velocity of the base spindle and the actual angular velocity of the receiving spindle as initial values, and based on the spindle synchronization speed correction command, acceleration process, and deceleration process in the synchronization parameters, the expected angular velocities of the base spindle and the receiving spindle are determined according to the control cycle within the expected pressure stabilization time, and the difference between the two expected angular velocities is accumulated to form the expected phase change; The cumulative rotation angle of the base spindle at the time the clamping command is issued is determined based on the expected angular velocity of the base spindle during the expected travel time of the receiving shaft, and the clamping angle that matches the cumulative rotation angle of the base spindle is read. The expected phase difference at pressure stabilization is formed by processing the synchronous angle difference, the offset of the target phase difference currently used relative to the target phase difference initially written in this receiving program, the expected phase change formed by the difference between the expected angular velocities of the two spindles within the expected pressure stabilization time, and the sum of the clamping angle. The expected angular velocity of the base spindle, the expected angular velocity of the receiving spindle, the cumulative rotation angle of the base spindle when the clamping command is issued, and the expected phase difference when the pressure is stable are redefined for each control cycle, without being added to the expected phase difference when the pressure is stable formed in the previous control cycle.
6. The spindle feeding control method based on target phase difference as described in claim 1 or 5, characterized in that, The specific steps for maintaining or rewriting the currently used target phase difference are as follows: When the synchronization completion signal is valid, the absolute value of the synchronization angle difference and the maximum synchronization angle difference of the spindle are not greater than the positive boundary of the allowable angle range for receiving materials, and the absolute value of the expected phase difference when the pressure is stable is greater than the positive boundary of the allowable angle range for receiving materials, the receiving shaft is kept or retracted to the receiving waiting position. When the expected phase difference when the pressure is stable is positive, remove an angle equal to the absolute value of the expected phase difference when the pressure is stable from the currently used target phase difference. When the expected phase difference when the pressure is stable is negative, add an angle equal to the absolute value of the expected phase difference when the pressure is stable to the currently used target phase difference. Perform a complete rotation cycle to form the target phase difference to be written. The minimum write angle of the phase difference of the spindle synchronous command is used as the write interval. The write angle closest to the phase difference of the target to be written is selected to form the target phase difference after rewriting. When the distance is the same, the write angle deviating from the expected phase difference when the pressure is stable is selected in the opposite direction. When the target phase difference rewrite amount is less than the minimum resolvable angle of the spindle encoder, or when the target phase difference sequence already used has recorded the rewritten target phase difference, the spindle synchronization will not be restarted with the rewritten target phase difference. In the remaining cases, the spindle synchronization is deactivated, the maximum angle difference of the spindle synchronization is cleared, the spindle synchronization is restarted with the rewritten target phase difference, and when the actual written value of the spindle synchronization command is consistent with the rewritten target phase difference, the currently used target phase difference is updated and appended to the sequence of used target phase differences. The larger of the minimum resolvable angle of the spindle encoder and the maximum quantization error of the synchronous angle difference is used as the minimum effective improvement amount of the expected phase difference when the pressure is stable. When the number of times the target phase difference is rewritten, the number of times the spindle is restarted synchronously, or the duration of the current material receiving control reaches the upper limit registered in the current material receiving program, the reduction of the absolute value of the expected phase difference when the pressure is stable after rewriting is less than the minimum effective improvement amount of the expected phase difference when the pressure is stable, or when the target phase difference sequence has recorded all writable target phase differences, the pre-receiving termination process is executed.
7. The spindle feeding control method based on target phase difference as described in claim 6, characterized in that, The control of the receiving shaft to enter the clamping position, remain in the receiving waiting position, or retract to the receiving waiting position forms a chuck clamping preparation permission. The specific steps are as follows: After the spindle starts synchronously or restarts with the rewritten target phase difference, the synchronous angle difference, the actual phase difference, the maximum synchronous angle difference of the spindle, and the expected phase difference when the pressure is stable are redefined. When the synchronization completion signal is valid, and the absolute values of the synchronization angle difference, the actual phase difference, the maximum synchronization angle difference of the spindle, and the expected phase difference when the pressure is stable are all not greater than the positive boundary of the allowable angle range for receiving materials, the receiving shaft is controlled to move from the receiving waiting position to the clamping position. When the absolute value of the expected phase difference when the pressure is stable decreases, and the decrease is not less than the minimum effective improvement of the expected phase difference when the pressure is stable, but is still greater than the positive boundary of the allowable angle range for receiving materials, the target phase difference currently in use continues to be rewritten. When the absolute value of the expected phase difference when the pressure is stable does not decrease or the decrease is less than the minimum effective improvement of the expected phase difference when the pressure is stable, the pre-receiving termination process is executed. During the movement of the receiving shaft, the synchronous completion signal, synchronous angle difference, actual phase difference, maximum synchronous angle difference of the spindle, and expected phase difference when the pressure is stable are updated every control cycle. When the synchronous state or actual phase difference is abnormal, the movement stops and returns to the receiving waiting position. When only the expected phase difference when the pressure is stable exceeds the limit, the receiving waiting position is returned and the target phase difference used is rewritten. When the receiving shaft stops in the clamping position and the interpolation motion ends, and the synchronous completion signal is valid, the absolute value of the synchronous angle difference, the absolute value of the actual phase difference, the maximum synchronous angle difference of the spindle, and the absolute value of the expected phase difference when the pressure is stable are all not greater than the positive boundary of the allowable angle range of receiving, the chuck clamping preparation permission is formed.
8. The spindle receiving control method based on target phase difference as described in claim 1 or 7, characterized in that, The process involves clamping the receiving spindle chuck when the receiving spindle is in a clampable position and the chuck clamping preparation permission is valid. Based on the actual phase difference after pressure stabilization, the synchronous angle difference, the synchronous completion signal, and the maximum synchronous angle difference of the spindle, it is determined whether to output a basic spindle release permission. The specific steps are as follows: After the chuck clamping preparation permission is valid, the last complete spindle rotation cycle before the material receiving spindle chuck clamping command is formed from the synchronous angle difference sample value after the synchronous completion signal is generated; When the receiving spindle stops at the clamping position and the interpolation motion ends, the synchronous completion signal is valid, and the absolute values of the synchronous angle difference, the actual phase difference, the maximum synchronous angle difference of the spindle, and the expected phase difference when the pressure is stable are all not greater than the positive boundary of the allowable angle range for receiving, and when the feedback of the receiving spindle chuck clamping in place and the feedback of pressure stabilization are invalid, the receiving spindle chuck clamping command is output, and the target phase difference currently used when the chuck is clamped is locked. After the timing of the material receiving spindle chuck clamping command, the timing of the material receiving spindle chuck clamping in place feedback, and the timing of pressure stabilization feedback occur sequentially, the actual phase difference after pressure stabilization is formed, and the first complete spindle rotation cycle after the pressure stabilization feedback is generated is formed. During the first complete spindle rotation cycle after the pressure stabilization feedback is generated, when the feedback of the receiving spindle chuck clamping in place, the pressure stabilization feedback and the synchronous completion signal are continuously effective, the receiving spindle remains in the clampable position, and the absolute value of the synchronous angle difference, the absolute value of the actual phase difference after pressure stabilization and the maximum synchronous angle difference of the spindle are all not greater than the positive boundary of the allowable angle range of receiving spindle, the basic spindle release permission is output. After the basic spindle release permission is output and before the basic spindle chuck release position feedback is generated, the receiving spindle chuck clamping position feedback, pressure stabilization feedback, synchronous completion signal, synchronous angle difference, actual phase difference after pressure stabilization, maximum synchronous angle difference of the spindle, and receiving shaft position are read cycle by cycle. When the receiving spindle chuck clamping position feedback, pressure stabilization feedback, and synchronous completion signal are continuously effective, the receiving shaft is kept in the clampable position, and the absolute value of the synchronous angle difference, the absolute value of the actual phase difference after pressure stabilization, and the maximum synchronous angle difference of the spindle are all not greater than the positive boundary of the allowable angle range for receiving, the basic spindle release permission is maintained; otherwise, the basic spindle release permission is revoked, and the two spindles are decelerated synchronously to a stop, and the receiving record for this time is not saved as a qualified receiving record. When the basic spindle chuck release command is issued earlier than the basic spindle chuck release position feedback time, and when the basic spindle chuck release position feedback is generated, the receiving spindle chuck clamping position feedback and pressure stabilization feedback are still effective, the receiving record is saved as a qualified receiving record.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, it implements the steps of the spindle feeding control method based on target phase difference as described in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the steps of the spindle feeding control method based on the target phase difference as described in any one of claims 1 to 8.
