CN116795041A - Debugging data processing method and device and related equipment - Google Patents

Debugging data processing method and device and related equipment Download PDF

Info

Publication number
CN116795041A
CN116795041A CN202311034325.7A CN202311034325A CN116795041A CN 116795041 A CN116795041 A CN 116795041A CN 202311034325 A CN202311034325 A CN 202311034325A CN 116795041 A CN116795041 A CN 116795041A
Authority
CN
China
Prior art keywords
data
debugging
tapping
storage area
preset storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311034325.7A
Other languages
Chinese (zh)
Other versions
CN116795041B (en
Inventor
蔡志城
曾鹏
王宇
翁师道
王震霞
徐侃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Branch Of General Technology Group Machine Tool Engineering Research Institute Co ltd
General Technology Group Machine Tool Engineering Research Institute Co ltd
Original Assignee
Shanghai Branch Of General Technology Group Machine Tool Engineering Research Institute Co ltd
General Technology Group Machine Tool Engineering Research Institute Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Branch Of General Technology Group Machine Tool Engineering Research Institute Co ltd, General Technology Group Machine Tool Engineering Research Institute Co ltd filed Critical Shanghai Branch Of General Technology Group Machine Tool Engineering Research Institute Co ltd
Priority to CN202311034325.7A priority Critical patent/CN116795041B/en
Publication of CN116795041A publication Critical patent/CN116795041A/en
Application granted granted Critical
Publication of CN116795041B publication Critical patent/CN116795041B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the application provides a debugging data processing method, a device and related equipment thereof. The debugging data processing method comprises the steps of obtaining technological parameters for debugging and running a processing simulation process corresponding to the technological parameters; storing debugging data in each interpolation period in the machining simulation process to a preset storage area, wherein the debugging data comprises debugging data of a plurality of tapping shafts; when the debug data in the preset storage area reach a preset size, reading the debug data in the preset storage area; clearing the debugging data in the preset storage area; and circularly executing the steps until the machining simulation process is finished. Through reducing the excessive expense that data transmission brought, under the prerequisite of guaranteeing data instantaneity, real-time transmission debugging data can be simultaneously recorded and data acquisition to a plurality of tapping axles in the tapping debugging.

Description

Debugging data processing method and device and related equipment
Technical Field
The embodiment of the application relates to a numerical control machine tool, in particular to a debugging data processing method, a device and related equipment thereof.
Background
Tapping is a common machining means for cutting threads into a hole by a tap. In a numerical control system, in order to enable the thread pitch to meet the machining process requirements in the tapping process, a synchronous relationship is always required between the rotation of the main shaft and the feeding of the tapping shaft. That is, in tapping, the spindle is rotated at a position controlled, not at a speed at which the frequency is highest. The rotation of the spindle and the feeding of the tapping spindle are subjected to linear interpolation, and the acceleration or deceleration during the machining of the hole bottom still meets the above conditions to improve the accuracy of rigid tapping.
Thus, there is a following error between the theoretical position and the actual position, and a synchronization error between the spindle and the tapping shaft synchronization control when the spindle and the tapping shaft are subjected to position control. The debugging parameters such as following errors, synchronization errors and the like of the spindle and the tapping shaft in the tapping machining process after the tapping parameters are set can be recorded through the tapping debugging tool, and then corresponding debugging is carried out to improve the response of the spindle and the tapping shaft.
However, the tapping accuracy obtained by processing after debugging under the current tapping debugging tool of the existing debugging system is not high.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, and a related device for debugging data processing, so as to record and collect data for a plurality of tapping axes simultaneously in tapping debugging.
In order to achieve the above object, the embodiment of the present application provides the following technical solutions:
the embodiment of the application provides a debug data processing method, which comprises the following steps:
acquiring technological parameters for debugging, and running a processing simulation process corresponding to the technological parameters;
storing debugging data in each interpolation period in the machining simulation process to a preset storage area, wherein the debugging data comprises position data of a plurality of tapping shafts;
when the debug data in the preset storage area reach a preset size, reading the debug data in the preset storage area;
clearing the debugging data in the preset storage area;
and circularly executing the steps of storing the debugging data in each interpolation period in the machining simulation process to a preset storage area and clearing the debugging data in the preset storage area until the machining simulation process is finished.
Optionally, the data structure of the preset storage area is a ring buffer, and the preset storage area can be accessed by only 1 thread at the same time.
Optionally, the method further comprises:
dividing the position data to be displayed into a plurality of pixel sections according to the pixel number of the chart for displaying the position data;
and obtaining the maximum value and the minimum value of the position data in each pixel interval, calculating to obtain a pixel block to be displayed, and displaying a chart.
Optionally, the method further comprises:
a zoom box for viewing the chart and a cursor for selecting the chart are drawn.
Optionally, the method further comprises:
selecting pixel points of the chart, calculating corresponding error information by using debugging data corresponding to the pixel points, and displaying the error information; the error information comprises a theoretical position, a feedback position, a following error and a synchronous error;
and after finishing the selection, clearing the error information.
Optionally, the preset storage area stores and transmits the acquired modulation data based on a mailbox mechanism.
Optionally, the machining simulation process comprises a tapping debugging process and a tapping execution process, and the technological parameters comprise a workpiece coordinate system, a tapping advancing speed, a tapping retreating speed and a hole bottom pause time of the tapping debugging process, and a tapping starting point and a tapping ending point of the tapping execution process.
Optionally, the location data includes: the positions of the main shaft and the tapping shaft in the tapping debugging process and the tapping execution process.
Optionally, the interpolation period is less than or equal to 2 milliseconds.
The embodiment of the application also provides a debug data processing device, which comprises:
the processing simulation device is used for acquiring technological parameters for debugging and running a processing simulation process corresponding to the technological parameters;
the data storage device is used for storing debugging data in each interpolation period in the machining simulation process to a preset storage area, wherein the debugging data comprises position data of a plurality of tapping shafts;
the data reading device is used for reading the debugging data in the preset storage area when the debugging data in the preset storage area reaches a preset size;
and the data clearing device is used for clearing the debugging data in the preset storage area.
Optionally, the method further comprises:
drawing means for dividing position data to be displayed equally into a plurality of pixel sections according to the number of pixels of a graph for displaying the position data; and obtaining the maximum value and the minimum value of the debugging position data in each pixel interval, calculating to obtain a pixel block to be displayed, and drawing a display chart.
The embodiment of the application also provides a machine tool control system which processes the debugging data by adopting the debugging data processing method.
The embodiment of the application also provides a computing device, which comprises: at least one memory storing one or more computer-executable instructions and at least one processor invoking the one or more computer-executable instructions to perform the debug data processing method as described above.
The embodiment of the application also provides a storage medium which stores one or more computer executable instructions, and when the one or more computer executable instructions are executed, the method for processing debugging data is realized.
The debugging data processing method provided by the embodiment of the application comprises the steps of obtaining technological parameters for debugging and running a processing simulation process corresponding to the technological parameters; storing debugging data in each interpolation period in the machining simulation process to a preset storage area, wherein the debugging data comprises debugging data of a plurality of tapping shafts; when the debug data in the preset storage area reach a preset size, reading the debug data in the preset storage area; clearing the debugging data in the preset storage area; and circularly executing the steps of storing the debugging data in each interpolation period in the machining simulation process to a preset storage area and clearing the debugging data in the preset storage area until the machining simulation process is finished. The obtained debugging data are temporarily stored in the preset storage area, and the data in the storage area are transmitted to the debugging system in batches, so that the excessive cost caused by data transmission is reduced on the premise of ensuring the real-time property of the transmitted data, a large amount of debugging data can be obtained by a tapping debugging tool under the condition of small system cost, the real-time transmission of the debugging data is realized on the premise of ensuring the real-time property of the data, the acquisition and recording of the debugging data of a plurality of tapping shafts are realized, and the tapping precision is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a numerical control operating system after tuning a spindle;
FIG. 2 is another schematic diagram of a graph drawn after debugging of a numerical control operating system filament axis;
FIG. 3 is a flow chart of a method for processing debug data according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an interface for inputting process parameters in the debug data processing method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a diagram drawn by the debug data processing method according to the embodiment of the present application;
FIG. 6 is a schematic diagram of another process of the debug data processing method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a debug data processing apparatus according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Tapping is a common machining means for cutting threads into a hole by a tap. In a numerical control system, in order to enable the thread pitch to meet the machining process requirements in the tapping process, a synchronous relationship is always required between the rotation of the main shaft and the feeding of the tapping shaft. That is, in tapping, the rotation of the spindle is position-controlled, rather than using only the highest frequency speed rotation. The rotation of the spindle and the feeding of the tapping shaft are to achieve linear interpolation, and the acceleration or deceleration at the time of machining the hole bottom still satisfies the above position control conditions to improve the tapping accuracy.
However, there is a following error between the theoretical position and the actual position when the spindle and the tapping shaft are position-controlled, and a synchronization error between the spindle and the tapping shaft synchronization control. The main shaft, the following error and the synchronous error of the tapping shaft in the tapping machining process after tapping parameters are set can be recorded and displayed in a graphical mode through the tapping debugging tool. And then the subsequent debugging is convenient to promote the response of the main shaft and the tapping shaft.
In the existing tapping debugging tool of a numerical control system, technological parameters such as spindle rotating speed, tapping distance and screw pitch value which need tapping debugging are set for a single tapping shaft and a spindle. And generating a test program according to the corresponding parameter setting, executing the test program by the numerical control operating system, and recording the position and error information of the main shaft and the tapping shaft in the program executing process. And then, the position and error information in the execution process are presented in a form of a chart so as to assist in the analysis of the whole numerical control operating system in the tapping process, and corresponding servo and system parameters are modified so as to achieve the effect of reducing errors and improve the machining precision of threads. Referring to fig. 1 and 2, fig. 1 and 2 are schematic diagrams of graphs drawn after tapping and debugging of two kinds of numerical control systems.
Based on the above description, the inventor finds that in tapping and debugging, the tapping and debugging tool of the numerical control system has a limited amount of data acquisition, and has no way to acquire more channels or longer data, so that only a single tapping shaft can be recorded and data can be acquired, and data meeting the debugging precision requirement cannot be acquired during multiple tapping shafts, and tapping precision is low.
In order to solve the foregoing problems, an embodiment of the present application provides a debug data processing method, so as to transmit a larger amount of data acquired in real time, thereby recording and data acquisition for a plurality of tapping shafts, and improving tapping accuracy. The specific steps of the flow are shown in fig. 3, including:
step S10: acquiring technological parameters for debugging, and running a processing simulation process corresponding to the technological parameters; the technological parameters comprise a workpiece coordinate system, a cutter number, a cutter edge number, a screw pitch, a tapping starting point, a tapping end point, a tapping advancing speed, a tapping retreating speed and a hole bottom dwell time; the machining simulation process comprises a tapping debugging process and a tapping execution process;
step S20: storing debugging data in each interpolation period in the machining simulation process to a preset storage area, wherein the debugging data comprises position data of a plurality of tapping shafts;
step S30: when the debug data in the preset storage area reach a preset size, reading the debug data in the preset storage area;
step S40: clearing the debugging data in the preset storage area;
and circularly executing the steps S20 to S40 until the machining simulation process is finished.
In the process of data transmission to a tapping and debugging tool, a real-time extension of Xenomai (strong real-time extension) is generally introduced into a system to realize hard real-time performance and data acquisition efficiency of data transmission. Xenomai is a strong real-time extension of numerical control systems that employ a dual kernel mechanism. The numerical control system does not have strong real-time performance due to the implementation mode and complexity of the kernel of the numerical control system. Under the dual-kernel technology, a microkernel supporting strong real-time exists, the microkernel and the kernel of the numerical control system operate together on a hardware platform, the priority of the real-time kernel is higher than that of the kernel of the numerical control system, the microkernel is responsible for processing real-time tasks of the system, the numerical control system is responsible for processing non-real-time tasks, and the kernel of the numerical control system can obtain the opportunity of operation only when the real-time kernel no longer has real-time tasks to be processed. Therefore, data acquired in each interpolation period can be transmitted to the tapping debugging tool in real time at any time. However, when the acquired data volume is large, if the acquired data is transmitted in real time in each interpolation period, the system overhead is too large, the data processing capability of the tapping debugging tool is limited, and the received debugging data cannot be processed in time in each interpolation period. Meanwhile, the interpolation period of the obtained debug data is fixed, and the data volume in each interpolation period is fixed. Therefore, the application temporarily stores the acquired data into the preset storage area, and then the data in the storage area is transmitted to the debugging system at regular time by setting the threshold value of the data quantity, so that the excessive expenditure caused by data transmission is reduced on the premise of ensuring the real-time property of the transmitted data.
Therefore, the tapping debugging tool can acquire a large amount of debugging data under the condition of small system overhead, and further transmit the debugging data in real time on the premise of ensuring data instantaneity, so that in tapping debugging, a plurality of tapping shafts can be recorded and data are acquired at the same time. And further, driving and system parameters of each tapping shaft in the tapping process are optimized, the tapping precision is improved, and the debugging efficiency is improved.
Further, to increase tapping debug efficiency, in one embodiment, the interpolation period is less than or equal to 2 milliseconds. Therefore, the frequency of acquiring the debugging data can be increased, more data can be acquired, and tapping debugging is facilitated. The interpolation period is the time interval between each coordinate axis increment feeding instruction calculated by the interpolation program every two times. The interpolation is carried out, the numerical control system densifies the space between the starting point and the end point of the curve described by the program section according to the input process information, so that a required contour track is formed, namely in the numerical control machine tool, the cutter cannot strictly carry out curve motion according to the curve required to be processed, and only the curve to be processed can be approximated by the curve of the broken line section.
It should be noted that, as shown in fig. 4, fig. 4 is a schematic diagram of an interface for inputting process parameters in the debugging data processing method according to the embodiment of the present application, as can be seen from fig. 4, before tapping and debugging, the process parameters need to include: the workpiece coordinate system, namely the coordinate system in which the tapping debugging program is to be executed in the tapping debugging process; cutter number and edge number, namely cutter number and cutting edge of the tap used in tapping stage in the numerical control operation system; screw pitch, i.e. the pitch of threads cut during tapping test in the tapping debugging process; the tapping starting point is the starting position of each tapping shaft of the tapping advancing section, namely the position where threads start when entering the tapping stage in the tapping debugging process; the tapping end point is the end position of each tapping shaft of the tapping advancing section, namely the position without threads, in the tapping stage in the tapping debugging process; the tapping advancing speed is the spindle rotating speed in the tapping advancing process in the tapping stage in the tapping debugging process; the tapping backspacing speed is the spindle rotating speed in the tapping backspacing process in the tapping stage; and the stop time of the hole bottom, namely the stop time in the tapping advancing and retreating process in the tapping stage in the tapping debugging process.
Further, in one embodiment, as shown in fig. 4, the process parameters further include a starting angle of the spindle and a selected tapping axis. The initial angle of the main shaft is the angle of the main shaft positioning when entering the tapping stage in the tapping debugging process. The selected tapping shaft is a tapping shaft which participates in tapping in the tapping debugging process. Therefore, tapping debugging and actual machining conditions can be more close, and the obtained debugging data are more targeted.
In the tapping debugging tool, the whole tapping debugging process is that the numerical control system controls the numerical control machine tool to execute the whole tapping process according to the set technological parameters, the main shaft is positioned to the tapping initial angle, and the tapping shaft moves to the tapping starting point position; entering a tapping stage, processing threads in a tapping advancing stage, pausing at the bottom of a hole, enabling a tap to exit the threads in a tapping retreating stage, namely, performing tapping, meanwhile, acquiring data in a digitalized tapping process, namely, performing tapping debugging, recording position and error information in the main shaft and tapping shaft performing process in the whole process, and drawing and presenting in a chart form by a numerical control system. Furthermore, in the tapping debugging process, each shaft correspondingly obtains two sets of position data, namely debugging data acquired by the numerical control machine tool and position data acquired by the numerical control system.
Furthermore, as known from the tapping debugging tool of the numerical control system, in the tapping debugging process, the following errors and the synchronous errors of the main shaft and the tapping shaft in the tapping machining process need to be recorded, wherein the following errors are deviation values of theoretical positions and feedback positions in the movement process of the main shaft and the tapping shaft, the theoretical positions are position data of the shaft acquired in the tapping debugging process, and the feedback positions are position data of the shaft acquired in the tapping executing process; the synchronization error is an error that each feed shaft follows the main shaft to control movement in the tapping stage. In order to obtain the following error and the synchronization error, therefore, in one embodiment, the position data includes the position of the spindle during execution of the tapping spindle. In this way, the tapping debugging tool may be caused to calculate the following error and synchronization error using the debugging data.
Furthermore, the debugging process has higher requirements on the reliability and the synchronism of the data, so that the sequence of the debugging data in the preset storage area is required to be ensured not to be changed, and the debugging data is not modified due to the fact that a plurality of programs are read simultaneously to generate errors. The predetermined memory area is therefore typically queued, and in one embodiment, the data structure of the predetermined memory area is a ring buffer for greater synchronicity of debug data within the predetermined memory area. The ring buffer is an application of the queue, processes the sequential memories to form a ring for a certain section of memories, and connects them end to end, one points to the head of the queue and the other points to the tail of the queue through two pointers. The pointer pointing to the head of the queue is the data readable by the buffer, the pointer pointing to the tail of the queue is the data writable by the buffer, the data of the buffer can be read and written by moving the two pointers until the buffer is full, the data can be released after the data is processed, and then new data can be stored.
In order to improve the reliability of the debug data of the preset memory region, in a specific embodiment, the preset memory region is only accessed by 1 thread at the same time. Specifically, the reliability of the data can be ensured by a semaphore mechanism under Xenomai or a mutual exclusive lock equivalent synchronous mechanism. Thus, the debugging data of the preset storage area can be prevented from being modified by mistake when a plurality of programs read the debugging data.
Specifically, in one embodiment, the preset storage area stores and transmits the acquired modulation data based on a mailbox mechanism. The mailbox mechanism abstracts data to be transmitted into a seal message, and the preset storage area abstracts the seal message into mailboxes, wherein each mailbox is provided with a unique identifier, and when two or more processes or programs share the same mailbox, the processes or programs can transmit data between the mailboxes.
Further, after the tapping debugging tool obtains the debugging data, the debugging tool is required to draw a chart similar to that of fig. 1 and 2 to display the debugging data, the drawn image is shown in fig. 6, and fig. 5 is a schematic diagram of the chart drawn by the debugging data processing method according to the embodiment of the present application. However, because the data size of the position data is large, the position data is directly used for drawing the chart, so that the chart is easy to be blocked when being displayed, and the user is influenced to view the position data. In order to draw the graph and avoid the jamming, in a specific embodiment, as shown in fig. 5, the method further includes step S51: and dividing the position data to be displayed into a plurality of pixel sections according to the pixel number of the chart for displaying the position data. Step S52: and obtaining the maximum value and the minimum value of the position data in each pixel interval, calculating to obtain a pixel block to be displayed, and displaying a chart.
Because the screen pixels for displaying the chart are limited and all the position data cannot be displayed on the screen, the position data to be displayed on the screen can be equally divided into a plurality of pixel sections according to the number of the pixels of the chart to be displayed on the screen, the maximum value and the minimum value of the position data in the pixel sections are used for calculating to obtain the value to be displayed corresponding to each pixel section to be displayed, and further, the pixel blocks for displaying the chart to be displayed by a user are determined, so that the debugging data used when drawing the image can be greatly compressed, and the smoothness of the interface is ensured while the waveform is ensured not to be distorted.
In order to facilitate the user to view the chart and the error information and improve the readability, please continue to refer to fig. 5, as shown in fig. 5, in a specific real-time manner, further comprising step S60: a zoom box used to view the chart is drawn and a cursor used to select the chart is drawn. It should be noted that, since the user directly operates the zoom frame and the cursor, the zoom frame and the cursor need to be updated in real time when the user operates. Meanwhile, the waveform displayed by the chart is fixed, and if the chart is updated in real time, a large amount of redundant calculation is brought, so that display is blocked, scaling and a cursor are simultaneously drawn and updated in real time, and the chart is independently drawn, so that the interface is smooth and blocking is avoided.
Further, if only the graph drawn by the debug data is displayed, only the error condition in the tapping process can be macroscopically displayed, and in order to facilitate the user to more specifically obtain the error information in the tapping process, in a specific real-time manner, as shown in fig. 5, step S71 is further included: selecting pixel points of the chart, calculating corresponding error information by using debugging data corresponding to the pixel points, and displaying the error information; the error information includes a theoretical position, a feedback position, a follow-up error, and a synchronization error. Step S72: and after finishing the selection, clearing the error information.
The theoretical position and the feedback position are included in the position data, so that the theoretical position and the feedback position can be directly displayed. The following error is obtained by calculating the difference between the theoretical position and the feedback position of the spindle or the tapping shaft, which are displayed by each pixel point, and the accuracy of the spindle and the tapping shaft is reflected. The synchronization error is the time phase difference of the running actions of the spindle and the tapping shaft in each pixel interval, and the degree of synchronization of the spindle and the tapping shaft is reflected.
With continued reference to fig. 6, the error information displayed in fig. 6 is the error information displayed in the step S71, so that the user can obtain the error information at any time. And calculating the error information when the tapping debugging tool is selected, and after the selection is finished, clearing the error information, and only storing the latest error information for use, so that the error information with excessive redundancy is prevented from being stored in the tapping debugging tool, the system overhead for storing the error information is reduced, and the operation efficiency of the tapping debugging tool is improved.
According to the embodiment of the application, the acquired debugging data is temporarily stored in the preset storage area, and the data in the storage area is transmitted to the debugging system at regular time, so that the excessive cost caused by data transmission is reduced on the premise of ensuring the real-time property of the transmitted data, a large amount of debugging data can be acquired by a tapping debugging tool under the condition of smaller system cost, the debugging data is transmitted in real time on the premise of ensuring the real-time property of the data, and a plurality of tapping shafts can be recorded and data acquired simultaneously in tapping debugging. After the debug data is obtained, the debug data used for drawing the chart is compressed, the latest error information is stored, and the chart, the zoom frame and the cursor are respectively drawn, so that the clamping and the stopping during the chart display are avoided, and the fluency of the data display is improved. And further, driving and system parameters of the tapping debugging tool in the tapping process are optimized, tapping precision is improved, and debugging efficiency is improved.
An embodiment of the present application further provides a debug data processing apparatus, as shown in fig. 7, including:
the processing simulation device 100 is used for acquiring process parameters for debugging and running a processing simulation process corresponding to the process parameters;
the data storage device 200 is configured to store debug data in each interpolation period in the machining simulation process to a preset storage area, where the debug data includes debug data of a plurality of tapping shafts;
the data reading device 300 is configured to read the debug data in the preset storage area when the debug data in the preset storage area reaches a predetermined size;
and the data clearing device 400 is used for clearing the debugging data in the preset storage area.
In this way, by circularly using the data storage device 200 to the data clearing device 400 until the machining simulation process of the machining simulation device 100 is completed, data in the storage area can be transmitted to the debug system at regular time, so that excessive overhead caused by data transmission is reduced on the premise of ensuring the real-time performance of the transmitted data. The tapping debugging tool can acquire a large amount of debugging data under the condition of small system overhead, and further transmit the debugging data in real time on the premise of ensuring data instantaneity, so that in tapping debugging, a plurality of tapping shafts can be recorded and data are acquired at the same time.
Further, in a specific embodiment, the device further comprises a drawing device 500 for drawing
Dividing the position data to be displayed into a plurality of pixel sections according to the pixel number of the chart for displaying the position data; and obtaining the maximum value and the minimum value of the position data in each pixel interval, calculating to obtain a pixel block to be displayed, and displaying a chart. In this way, the collected debugging information can be presented more intuitively in a chart mode, and meanwhile, the chart is drawn by taking the maximum value and the minimum value in each pixel interval, so that the debugging data used when an image is drawn can be compressed greatly in drawing, and the smoothness of an interface is ensured while the waveform is ensured not to be distorted. And further, driving and system parameters of each tapping shaft in the tapping process are optimized, the tapping precision is improved, and the debugging efficiency is improved.
According to the test data processing device provided by the embodiment of the application, the acquired debug data is temporarily stored in the preset storage area, and the data in the storage area is transmitted to the debug system at regular time, so that the excessive cost caused by data transmission is reduced on the premise of ensuring the real-time property of the transmitted data, a large amount of debug data can be acquired by a tapping debug tool under the condition of smaller system cost, the debug data is transmitted in real time on the premise of ensuring the real-time property of the data, and a plurality of tapping shafts can be recorded and data acquired simultaneously in tapping debugging. After the debug data is obtained, the debug data used for drawing the chart is compressed, so that the clamping of the chart during display is avoided, and the fluency of data display is improved. And further, driving and system parameters of each tapping debugging tool in the tapping process are optimized, tapping precision is improved, and debugging efficiency is improved.
The embodiment of the application also provides a machine tool control system which processes the debugging data by adopting the debugging data processing method.
The embodiment of the application also provides a computing device, wherein the computing device comprises: at least one memory storing one or more computer-executable instructions and at least one processor invoking the one or more computer-executable instructions to perform the method of debugging data processing as described above.
Embodiments of the present application also provide a storage medium storing one or more computer-executable instructions that, when executed, implement the debug data processing method as described above.
Although the embodiments of the present application are disclosed above, the present application is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the application, and the scope of the application should be assessed accordingly to that of the appended claims.

Claims (14)

1. A method of debugging data processing comprising:
acquiring technological parameters for debugging, and running a processing simulation process corresponding to the technological parameters;
storing debugging data in each interpolation period in the machining simulation process to a preset storage area, wherein the debugging data comprises position data of a plurality of tapping shafts;
when the debug data in the preset storage area reach a preset size, reading the debug data in the preset storage area;
clearing the debugging data in the preset storage area;
and circularly executing the steps of storing the debugging data in each interpolation period in the machining simulation process to a preset storage area and clearing the debugging data in the preset storage area until the machining simulation process is finished.
2. The debug data processing method as claimed in claim 1, wherein the data structure of the preset storage area is a ring buffer, and the preset storage area is simultaneously accessible only by 1 thread.
3. The debug data processing method of claim 1, further comprising:
dividing the position data to be displayed into a plurality of pixel sections according to the pixel number of the chart for displaying the position data;
and obtaining the maximum value and the minimum value of the position data in each pixel interval, calculating to obtain a pixel block to be displayed, and displaying a chart.
4. A debug data processing method as defined in claim 3, further comprising:
a zoom box for viewing the chart and a cursor for selecting the chart are drawn.
5. The debug data processing method of claim 4, further comprising:
selecting pixel points of the chart, calculating corresponding error information by using debugging data corresponding to the pixel points, and displaying the error information; the error information comprises a theoretical position, a feedback position, a following error and a synchronous error;
and after finishing the selection, clearing the error information.
6. The method for processing debug data as claimed in claim 1, wherein the preset storage area stores and transmits the acquired modulated data based on a mailbox mechanism.
7. The debugging data processing method of claim 1, wherein the machining simulation process comprises a tapping debugging process and a tapping execution process, and the process parameters comprise a workpiece coordinate system, a tapping advance speed, a tapping retract speed and a hole bottom dwell time of the tapping debugging process, and a tapping start point and a tapping end point of the tapping execution process.
8. The debug data processing method of claim 7, wherein the location data comprises: the positions of the main shaft and the tapping shaft in the tapping debugging process and the tapping execution process.
9. The debug data processing method of claim 1, wherein the interpolation period is less than or equal to 2 milliseconds.
10. A debug data processing apparatus, comprising:
the processing simulation device is used for acquiring technological parameters for debugging and running a processing simulation process corresponding to the technological parameters;
the data storage device is used for storing debugging data in each interpolation period in the machining simulation process to a preset storage area, wherein the debugging data comprises position data of a plurality of tapping shafts;
the data reading device is used for reading the debugging data in the preset storage area when the debugging data in the preset storage area reaches a preset size;
and the data clearing device is used for clearing the debugging data in the preset storage area.
11. The debug data processing apparatus of claim 10, further comprising:
drawing means for dividing position data to be displayed equally into a plurality of pixel sections according to the number of pixels of a graph for displaying the position data; and obtaining the maximum value and the minimum value of the debugging position data in each pixel interval, calculating to obtain a pixel block to be displayed, and drawing a display chart.
12. A machine tool control system, characterized in that the machine tool control system processes debug data by using the debug data processing method according to any one of claims 1 to 9.
13. A computing device, comprising: at least one memory storing one or more computer-executable instructions and at least one processor invoking the one or more computer-executable instructions to perform the debug data processing method of any of claims 1-9.
14. A storage medium storing one or more computer-executable instructions which, when executed, implement the debug data processing method of any of claims 1-9.
CN202311034325.7A 2023-08-16 2023-08-16 Debugging data processing method and device and related equipment Active CN116795041B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311034325.7A CN116795041B (en) 2023-08-16 2023-08-16 Debugging data processing method and device and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311034325.7A CN116795041B (en) 2023-08-16 2023-08-16 Debugging data processing method and device and related equipment

Publications (2)

Publication Number Publication Date
CN116795041A true CN116795041A (en) 2023-09-22
CN116795041B CN116795041B (en) 2023-12-08

Family

ID=88037574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311034325.7A Active CN116795041B (en) 2023-08-16 2023-08-16 Debugging data processing method and device and related equipment

Country Status (1)

Country Link
CN (1) CN116795041B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000305612A (en) * 1999-04-26 2000-11-02 Toyoda Mach Works Ltd Numerical controller capable of controlling plural main shafts
KR20030042245A (en) * 2001-11-22 2003-05-28 현대자동차주식회사 Method for checking part program on numerical control type machine tool
JP2003181722A (en) * 2001-12-18 2003-07-02 Toyoda Mach Works Ltd Tapping machining device and tapping machining method
JP2007021692A (en) * 2005-07-20 2007-02-01 Makino Milling Mach Co Ltd Cutting method and device
CN104380218A (en) * 2012-06-05 2015-02-25 三菱电机株式会社 Numeric control device
WO2017113055A1 (en) * 2015-12-28 2017-07-06 深圳配天智能技术研究院有限公司 Hole tapping method, numerically-controlled machine tool, and numerically-controlled machining device
KR20170114707A (en) * 2016-04-06 2017-10-16 두산공작기계 주식회사 Correction system and correction method for synchronization error of tapping work
JP2023031381A (en) * 2021-08-25 2023-03-09 キヤノン株式会社 Control device, control system, manufacturing system, control method, program, recording medium, and manufacturing method for article

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000305612A (en) * 1999-04-26 2000-11-02 Toyoda Mach Works Ltd Numerical controller capable of controlling plural main shafts
KR20030042245A (en) * 2001-11-22 2003-05-28 현대자동차주식회사 Method for checking part program on numerical control type machine tool
JP2003181722A (en) * 2001-12-18 2003-07-02 Toyoda Mach Works Ltd Tapping machining device and tapping machining method
JP2007021692A (en) * 2005-07-20 2007-02-01 Makino Milling Mach Co Ltd Cutting method and device
CN104380218A (en) * 2012-06-05 2015-02-25 三菱电机株式会社 Numeric control device
WO2017113055A1 (en) * 2015-12-28 2017-07-06 深圳配天智能技术研究院有限公司 Hole tapping method, numerically-controlled machine tool, and numerically-controlled machining device
KR20170114707A (en) * 2016-04-06 2017-10-16 두산공작기계 주식회사 Correction system and correction method for synchronization error of tapping work
JP2023031381A (en) * 2021-08-25 2023-03-09 キヤノン株式会社 Control device, control system, manufacturing system, control method, program, recording medium, and manufacturing method for article

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王宇 等: "五轴数控加工模拟制造技术", 城市轨道交通研究, no. 2, pages 141 - 144 *
黄海鹏 等: "多轴联动电火花加工数控系统开发", 计算机集成制造系统, no. 02, pages 372 - 379 *

Also Published As

Publication number Publication date
CN116795041B (en) 2023-12-08

Similar Documents

Publication Publication Date Title
US20130268109A1 (en) System and method for measuring cutting tool
CN108334037B (en) Numerical control system and breakpoint continuous cutting method thereof
US4941111A (en) Video picking and clipping method and apparatus
JP4329248B2 (en) NC machining simulation equipment
JP2013250636A (en) Numerical control device having display part for displaying information for evaluating processing
US20210096534A1 (en) Simulation apparatus
EP3088978A1 (en) Control apparatus for machine tool
EP0300044A1 (en) Method of numerical control having a parallel processing function
CN116795041B (en) Debugging data processing method and device and related equipment
US20210247734A1 (en) Numerical control device and numerical control method
EP0146628A1 (en) Automatic programming method
CN108829027A (en) Execute program creating method and its device, medium, terminal
US20170285606A1 (en) Numerical control device
US10437234B2 (en) Machining time calculating apparatus and machining time calculating method
US5602453A (en) Coordinate system display guide for a numerical control apparatus
US20190228501A1 (en) Display system and display method
KR20010107998A (en) Servo system controller
KR100747108B1 (en) Device for generating piston outline machining data
CN111949506B (en) Teaching track modification method and device based on three-dimensional program rollback function
US3693064A (en) Numerical control system dependent on vector magnitude
JP2024040099A (en) Analysis equipment, analysis programs, processing systems and their processing machines
CN114609965A (en) Method, device and processor for realizing processing track display processing in multi-channel numerical control system and computer readable storage medium thereof
JPH10105220A (en) Machining simulation method for numerically controlled machining
JP3660038B2 (en) Numerical controller
CN116237653B (en) Point selection processing method and device of laser cutting system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant