CN115903658A - Coordinate compensation method, apparatus, electronic device, storage medium, and program product - Google Patents

Coordinate compensation method, apparatus, electronic device, storage medium, and program product Download PDF

Info

Publication number
CN115903658A
CN115903658A CN202310159262.1A CN202310159262A CN115903658A CN 115903658 A CN115903658 A CN 115903658A CN 202310159262 A CN202310159262 A CN 202310159262A CN 115903658 A CN115903658 A CN 115903658A
Authority
CN
China
Prior art keywords
coordinate
cutting
axis
measuring
offset
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
CN202310159262.1A
Other languages
Chinese (zh)
Other versions
CN115903658B (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.)
Jiangsu Jingchuang Advanced Electronic Technology Co Ltd
Original Assignee
Jiangsu Jingchuang Advanced Electronic Technology 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 Jiangsu Jingchuang Advanced Electronic Technology Co Ltd filed Critical Jiangsu Jingchuang Advanced Electronic Technology Co Ltd
Priority to CN202310159262.1A priority Critical patent/CN115903658B/en
Publication of CN115903658A publication Critical patent/CN115903658A/en
Application granted granted Critical
Publication of CN115903658B publication Critical patent/CN115903658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • A Measuring Device Byusing Mechanical Method (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)

Abstract

The invention discloses a coordinate compensation method, a coordinate compensation device, electronic equipment, a storage medium and a program product. The method comprises the following steps: acquiring the track length between two coordinate points on the cutting axis based on the uncompensated coordinates of the cutting axis; taking the measuring axis as a standard coordinate axis, and acquiring the standard length between the coordinate points of the cutting axis relative to the track on the measuring axis; determining the offset ratio of the cutting axis to the measuring axis according to the track length and the standard length; obtaining the offset of the cutting axis coordinate relative to the measuring axis coordinate; and determining the compensation coordinate of the cutting shaft according to the offset ratio and the offset. According to the technical scheme provided by the invention, the coordinate difference of each cutting axis is reduced, so that the cutting axes can accurately move in a system, the axis error adjustment time is shortened, and the production efficiency is improved.

Description

Coordinate compensation method, apparatus, electronic device, storage medium, and program product
Technical Field
Embodiments of the present invention relate to the field of coordinate measurement technologies, and in particular, to a coordinate compensation method and apparatus, an electronic device, a storage medium, and a program product.
Background
In the production process of modern manufacturing industry, part cutting is usually involved, and the coordinates of each cutting shaft can be uniformly expressed during cutting, which is very important for improving the cutting precision of parts.
In the prior art, a lens is arranged on one cutting shaft of the cutting equipment and used as a shaft position reference to adjust the coordinate error of the other shaft, but the coordinate adjustment needs to be carried out on a plurality of cutting shafts along with the increase of the number of the cutting shafts, the coordinate axis difference is adjusted one by one, the production period is prolonged, and the production efficiency is reduced.
Disclosure of Invention
The invention provides a coordinate compensation method, a coordinate compensation device, electronic equipment, a storage medium and a program product, which can reduce the coordinate difference of each cutting axis, further accurately move in a system, reduce the axis error adjustment time and improve the production efficiency.
In a first aspect, an embodiment of the present invention provides a coordinate compensation method, which is applied to a cutting apparatus, where the cutting apparatus includes a measurement axis and at least two cutting axes; wherein projections of the trajectories of the cutting axis and the measuring axis in the axial direction are on the same plane; the method comprises the following steps:
acquiring the track length between two coordinate points on the cutting axis based on the uncompensated coordinates of the cutting axis;
taking the measuring axis as a standard coordinate axis, and acquiring the standard length between the coordinate points of the cutting axis relative to the track on the measuring axis;
determining the offset ratio of the cutting axis to the measuring axis according to the track length and the standard length;
obtaining the offset of the cutting axis coordinate relative to the measuring axis coordinate;
and determining the compensation coordinate of the cutting shaft according to the offset ratio and the offset.
Optionally, determining the compensation coordinate of the cutting axis according to the offset ratio and the offset amount includes:
and the compensation coordinate of the cutting axis is the sum of the product of the offset and the offset ratio and the coordinate of the measuring axis.
Optionally, the cutting apparatus comprises a cutting device and a measuring device; the cutting device moves on the cutting shaft along the axial direction; the measuring device moves on the measuring shaft along the axial direction;
based on the uncompensated coordinates of the cutting axis, obtaining a trajectory length between two coordinate points on the cutting axis, including:
based on the uncompensated coordinates of the cutting axis, the cutting device cuts at two different positions of the workpiece;
and acquiring the track length between two coordinate points on the cutting shaft corresponding to the two cutting positions on the workpiece.
Optionally, determining an offset ratio of the cutting axis to the measuring axis according to the track length and the standard length includes:
the offset ratio is a ratio of the track length to the standard length.
Optionally, obtaining an offset of the cutting axis coordinate relative to the measuring axis coordinate includes:
setting target coordinates by taking the measuring axis as a standard coordinate axis;
the cutting device cuts on the workpiece according to the target coordinates;
the measuring device measures the measuring coordinate of the workpiece cutting position relative to the measuring axis;
and determining the offset of the cutting axis coordinate relative to the measuring axis coordinate according to the measuring coordinate and the target coordinate.
Optionally, determining an offset of the cutting axis coordinate relative to the measuring axis coordinate according to the cutting coordinate and the target coordinate includes:
the offset is a value obtained by subtracting the target coordinate from the cutting coordinate.
In a second aspect, an embodiment of the present invention provides a coordinate precision compensation apparatus, which is applied to a cutting device, where the cutting device includes a measurement axis and at least two cutting axes; wherein, the projection of the locus of the cutting shaft and the measuring shaft in the axial direction is on the same plane, and the projection comprises:
the first acquisition module is used for acquiring the track length between two coordinate points on the cutting axis based on the uncompensated coordinates of the cutting axis;
the second acquisition module is used for taking the measuring shaft as a standard coordinate shaft and acquiring the standard length between the coordinate points of the cutting shaft relative to the track on the measuring shaft;
a first determining module for determining the offset ratio of the cutting axis relative to the measuring axis according to the track length and the standard length;
the third acquisition module is used for acquiring the offset of the cutting axis coordinate relative to the measurement axis coordinate;
and the second determining module is used for determining the compensation coordinate of the cutting shaft according to the offset ratio and the offset.
In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes:
at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the coordinate compensation method according to any of the embodiments of the present invention.
In a fourth aspect, the present invention provides a computer-readable storage medium storing computer instructions for causing a processor to implement the coordinate compensation method according to any of the embodiments of the present invention when the computer instructions are executed.
In a fifth aspect, an embodiment of the present invention provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the computer program implements the coordinate compensation method according to any item in the embodiment of the present invention.
According to the technical scheme provided by the embodiment of the invention, the track length between two coordinate points on the cutting axis is obtained through the uncompensated coordinates based on the cutting axis; then taking the measuring axis as a standard coordinate axis, and obtaining the standard length of the track on the relative measuring axis between the coordinate points of the cutting axis; therefore, the angular offset of the cutting axis and the measuring axis is reflected according to the track length and the standard length, the offset of the cutting axis coordinate relative to the measuring axis coordinate is obtained, and the compensation coordinate of the cutting axis is determined according to the offset ratio and the offset. The measuring shaft is used as the standard shaft, and the angle deviation and the coordinate deviation of the plurality of cutting shafts relative to the measuring shaft are recorded respectively, so that the coordinate compensation is performed on the coordinate of the cutting shaft by using the coordinate of the measuring shaft, the coordinate values of the same value can be reflected on the same point by the cutting shaft in a non-parallel state, the coordinate difference of each cutting shaft is reduced, the cutting shaft can accurately move in a system, the shaft error adjusting time is shortened, and the production efficiency is improved.
Drawings
Fig. 1 is a schematic structural diagram of a cutting apparatus with multiple cutting shafts in the prior art.
Fig. 2 is a simplified schematic diagram of a motion trajectory.
Fig. 3 is a flowchart of a coordinate compensation method according to an embodiment of the present invention.
Fig. 4 is a simplified schematic diagram of the motion trajectories on the first cutting axis and the measuring axis according to the embodiment of the present invention.
Fig. 5 is a simplified schematic diagram of the motion trajectories of the first cutting axis, the second cutting axis and the measuring axis according to the embodiment of the present invention.
Fig. 6 is a flowchart illustrating a method for obtaining a track length according to an embodiment of the present invention.
Fig. 7 is a schematic flowchart of a method for obtaining an offset of a cutting axis coordinate relative to a measuring axis coordinate according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a coordinate precision compensation apparatus according to an embodiment of the present invention.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of a cutting apparatus with multiple cutting axes in the prior art, and exemplarily, the cutting apparatus includes two cutting axes and a measuring axis My, a cutting device is controlled by a servo motor on each cutting axis to move on a lead screw, the measuring axis My controls a measuring device to move on the other side by a linear module, and the measuring device may be, for example, a camera or the like. The three axial directions are all on the Y coordinate system of the device, that is, the projections of the trajectories of the first cutting axis 1, the second cutting axis 2 and the measuring axis My in the axial directions are on the same plane, and the motion trajectories of the axes can be simplified to be straight lines on the same plane. Fig. 2 is a simplified schematic diagram of a motion trajectory. The axes may not be perfectly parallel, thus causing differences in coordinate representation of the axes. It should be noted that the number of the cutting axes is only illustrated schematically and is not limited specifically.
Therefore, for a cutting device with multiple cutting axes, fig. 3 is a flowchart of a coordinate compensation method provided in an embodiment of the present invention, which is applicable to a situation where the cutting device performs cutting coordinate compensation, and the method can be executed by a coordinate precision compensation device, which can be implemented in a hardware and/or software manner. The method specifically comprises the following steps:
s110, acquiring the track length between two coordinate points on the cutting axis based on the uncompensated coordinates of the cutting axis;
specifically, the uncompensated coordinates refer to coordinates determined with the cutting axis itself as an axis standard before being uncompensated. The trace length refers to the length between two coordinate points that cut the workpiece in the axial direction according to uncompensated coordinates along the cutting axis. Fig. 4 is a simplified schematic diagram of a motion trajectory on the first cutting axis and the measuring axis according to an embodiment of the present invention, and referring to fig. 4, a cut is performed on a workpiece according to a coordinate standard of the first cutting axis itself to obtain two cutting points, so that a trajectory length LenthY1 of the two coordinate points on the cutting axis can be determined according to the two cutting points.
S120, taking the measuring axis as a standard coordinate axis, and obtaining the standard length of the track on the relative measuring axis between the coordinate points of the cutting axis;
specifically, referring to fig. 4, taking the measuring axis as a standard coordinate axis, and the axial direction of the measuring axis is a horizontal direction, for example, the length of the motion track on the measuring axis corresponding to two cutting points may be measured by using the measuring device as the standard length lentitmy.
S130, determining the offset ratio of the cutting axis to the measuring axis according to the track length and the standard length;
wherein the offset ratio may characterize the offset angle of the first cutting axis from the measuring axis according to similar principles. For example, the offset ratio may be the ratio of the track length to the standard length, i.e., Δ C = LenthY1/LenthMy. For data accuracy, the corresponding track length may be as long as possible.
S140, acquiring the offset of the cutting axis coordinate relative to the measuring axis coordinate;
specifically, the offset is a difference between a coordinate determined by itself as an axis standard before the cutting axis is not compensated and a coordinate of a measurement axis as a standard coordinate axis, and in an exemplary manner, the offset obtaining process: fig. 5 is a simplified schematic diagram of the first cutting axis, the second cutting axis and the motion track on the measuring axis according to the embodiment of the present invention, referring to fig. 5, a target coordinate P0 is set with the measuring axis as a standard axis, the target coordinate P0 is sent to the first cutting axis and the second cutting axis, so that the first cutting axis and the second cutting axis respectively scribe on a workpiece according to their own standards, and respectively observing the position coordinates of the scratch corresponding to the first cutting axis and the scratch corresponding to the second cutting axis on the measuring axis through the measuring device, wherein the position coordinates are respectively counted as P1 and P2, and then P1-P0 and P2-P0 are the Offset Offset1 of the first cutting axis and the Offset Offset2 of the second cutting axis. The coordinate relation is thus compensated in the parallel state: the compensation coordinate PY1 of the first cutting axis = PMy + Offset1, and the compensation coordinate PY2 of the second cutting axis = PMy + Offset1. The compensation coordinate is only suitable for the condition that the cutting axis is parallel to the measuring axis, the mapping of the same position under the coordinate of the other axis is unchanged under the parallel condition, and if the cutting axis is not parallel to the measuring axis, the deviation ratio, namely the coordinate change caused by the included angle between the cutting axis and the measuring axis, needs to be considered.
And S150, determining the compensation coordinate of the cutting axis according to the offset ratio and the offset.
Specifically, in combination with the compensation coordinate relation in the parallel state, the product of the Offset amount Offset1 of the first cutting axis and the Offset ratio according to the similarity relation is the Offset amount when the first cutting axis and the measuring axis are not parallel in the axial direction. The product of the Offset amount Offset2 of the second cutting axis and the Offset ratio is an Offset amount in the case where the second cutting axis and the measuring axis are not parallel in the axial direction. The final coordinate compensation relationship is therefore: the compensated coordinates PY1 = PMy + Offset1 × Δ C of the first cutting axis, and the compensated coordinates PY2 = PMy + Offset2 × Δ C of the second cutting axis.
According to the technical scheme provided by the embodiment of the invention, the track length between two coordinate points on the cutting axis is obtained based on the uncompensated coordinates of the cutting axis; then taking the measuring axis as a standard coordinate axis, and obtaining the standard length of the track on the relative measuring axis between the coordinate points of the cutting axis; therefore, the angular offset between the cutting axis and the measuring axis is reflected according to the track length and the standard length, the offset of the cutting axis coordinate relative to the measuring axis coordinate is obtained, and the compensation coordinate of the cutting axis is determined according to the offset ratio and the offset. The measuring shaft is used as a standard shaft, and the angle deviation and the coordinate deviation of the plurality of cutting shafts relative to the measuring shaft are respectively recorded, so that the coordinates of the cutting shafts are subjected to coordinate compensation by utilizing the coordinates of the measuring shaft, the coordinate values with the same value can be reflected to the same point by the cutting shafts in a non-parallel state, the coordinate difference of each cutting shaft is reduced, the accurate movement in a system can be realized, the shaft error adjusting time is shortened, and the production efficiency is improved.
Optionally, determining the compensation coordinates of the cutting axis according to the offset ratio and the offset amount includes: the compensation coordinate of the cutting axis is the sum of the product of the offset and the offset ratio and the coordinate of the measuring axis.
Specifically, the offset is a difference between a coordinate determined by itself as an axis standard before the cutting axis is not compensated and a coordinate of a measurement axis as a standard coordinate axis, and in an exemplary manner, the offset obtaining process: fig. 5 is a simplified schematic diagram of the first cutting axis, the second cutting axis and the motion track on the measuring axis according to the embodiment of the present invention, referring to fig. 5, a target coordinate P0 is set with the measuring axis as a standard axis, the target coordinate P0 is sent to the first cutting axis and the second cutting axis, so that the first cutting axis and the second cutting axis respectively scribe on a workpiece according to their own standards, and respectively observing the position coordinates of the scratch corresponding to the first cutting axis and the scratch corresponding to the second cutting axis on the measuring axis through the measuring device, wherein the position coordinates are respectively counted as P1 and P2, and then P1-P0 and P2-P0 are the Offset Offset1 of the first cutting axis and the Offset Offset2 of the second cutting axis. The coordinate relation is thus compensated in the parallel state: the compensation coordinate PY1 of the first cutting axis = PMy + Offset1, and the compensation coordinate PY2 of the second cutting axis = PMy + Offset1. The compensation coordinate is only suitable for the condition that the cutting axis is parallel to the measuring axis, the mapping of the same position under the coordinate of the other axis is unchanged under the parallel condition, and if the cutting axis is not parallel to the measuring axis, the deviation ratio, namely the coordinate change caused by the included angle between the cutting axis and the measuring axis, needs to be considered.
And combining the compensation coordinate relation in the parallel state according to the similarity relation, wherein the coordinate compensation relation is as follows: the compensated coordinates PY1 = PMy + Offset1 × Δ C of the first cutting axis, and the compensated coordinates PY2 = PMy + Offset2 × Δ C of the second cutting axis.
Optionally, the cutting device comprises a cutting device and a measuring device; the cutting device moves on the cutting shaft along the axial direction; the measuring device moves on the measuring shaft along the axial direction; fig. 6 is a schematic flow chart of a method for obtaining a track length according to an embodiment of the present invention, and referring to fig. 6, the method includes:
s210, based on the uncompensated coordinates of the cutting shaft, cutting the workpiece at two different positions by the cutting device;
specifically, the uncompensated coordinates refer to coordinates determined with the cutting axis itself as an axis standard before being uncompensated. The cutting device cuts at two different positions on the workpiece according to the uncompensated coordinates, and the coordinates of the two scratch positions can be reflected on the motion track of the cutting shaft as the cutting device moves along the axial direction of the cutting shaft.
S220, obtaining the track length between two coordinate points on the corresponding cutting axis of the two cutting positions on the workpiece.
Specifically, the length of the track between two coordinate points on the cutting axis of two cutting positions on the workpiece is measured.
Optionally, determining the offset ratio of the cutting axis to the measuring axis according to the track length and the standard length includes:
the offset ratio is the ratio of the track length to the standard length.
Specifically, when the cutting axis and the measuring axis are not parallel, only the angle between the cutting axis and the measuring axis needs to be determined, but actually, the measurement implementation difficulty is high, so that the offset ratio of the cutting axis and the measuring axis can be represented by using the actual length of the distance with the same length on each axis as a reference.
Fig. 7 is a schematic flowchart of a method for obtaining an offset of a cutting axis coordinate relative to a measuring axis coordinate according to an embodiment of the present invention, and referring to fig. 7 in conjunction with fig. 5, the method includes:
s310, setting a target coordinate by taking the measuring axis as a standard coordinate axis;
in which the coordinate information of the measuring axis is related to the position observed by the measuring device, so that the coordinates of the measuring axis are the same as the coordinate system of the measuring device and different from the coordinate system of the cutting axis, and thus it is necessary to relate the coordinate systems of the measuring axis and the cutting axis. The target coordinate P0 is a coordinate parameter set with the measurement axis as a standard coordinate axis.
S320, cutting the workpiece by the cutting device according to the target coordinates;
specifically, the cutting device cuts the workpiece with target parameters according to the cutting shaft standard.
S330, measuring the measurement coordinate of the cutting position of the workpiece relative to the measurement axis by the measuring device;
specifically, the measuring device is used for respectively observing the measuring coordinates of the scratch position corresponding to the first cutting axis and the scratch position corresponding to the second cutting axis on the measuring axis, and the measuring coordinates are respectively counted as P1 and P2.
And S340, determining the offset of the cutting axis coordinate relative to the measuring axis coordinate according to the measuring coordinate and the target coordinate.
Illustratively, the Offset amount is the value obtained by subtracting the target coordinate from the cutting coordinate, and P1-P0, and P2-P0 are the Offset amount Offset1 of the first cutting axis and the Offset amount Offset2 of the second cutting axis. Compensating the coordinate relation in the parallel state: the compensation coordinate PY1 of the first cutting axis = PMy + Offset1, and the compensation coordinate PY2 of the second cutting axis = PMy + Offset1. The compensation coordinate is only suitable for the condition that the cutting axis is parallel to the measuring axis, the mapping of the same position under the coordinate of the other axis is unchanged under the parallel condition, and if the cutting axis is not parallel to the measuring axis, the deviation ratio, namely the coordinate change caused by the included angle between the cutting axis and the measuring axis, needs to be considered.
Fig. 8 is a schematic structural diagram of a coordinate precision compensation device according to an embodiment of the present invention, and referring to fig. 8, the coordinate precision compensation device is applied to a cutting apparatus, the cutting apparatus includes a measuring axis and at least two cutting axes; wherein, the projection of cutting axis and measuring axis orbit on the axial is in the coplanar, and coordinate precision compensation arrangement includes:
a first obtaining module 810, configured to obtain a length of a trajectory between two coordinate points on a cutting axis based on an uncompensated coordinate of the cutting axis;
a second obtaining module 820, configured to obtain a standard length of a trajectory on the measurement axis relative to coordinate points of the cutting axis by using the measurement axis as a standard coordinate axis;
a first determining module 830 for determining an offset ratio of the cutting axis relative to the measuring axis based on the track length and the standard length;
a third obtaining module 840, configured to obtain an offset of the cutting axis coordinate relative to the measurement axis coordinate;
and a second determining module 850 for determining the compensated coordinates of the cutting axis according to the offset ratio and the offset amount.
Specifically, the first obtaining module 810 performs cutting on the workpiece according to the coordinate standard of the first cutting axis itself to obtain two cutting points, so that the trajectory length LenthY1 of the two coordinate points on the cutting axis can be determined according to the two cutting points. The second obtaining module 820 takes the measuring axis as a standard coordinate axis, and measures the length of the motion track on the measuring axis corresponding to the two cutting points by using the measuring device, as a standard length LenthMy. The first determination module 830 makes a ratio of the track length to the standard length, i.e., Δ C = LenthY1/LenthMy. The third obtaining module 840 sets a target coordinate P0 with the measuring axis as a standard axis, sends the target coordinate P0 to the first cutting axis and the second cutting axis, so that the first cutting axis and the second cutting axis are respectively scribed on the workpiece according to their own standards, and then respectively observes the scribe line position coordinates corresponding to the first cutting axis and the scribe line position coordinates corresponding to the second cutting axis on the measuring axis through the measuring device, and respectively counts as P1 and P2, and then P1-P0, and P2-P0 are the Offset1 of the first cutting axis and the Offset2 of the second cutting axis. The coordinate relation is thus compensated in the parallel state: the compensation coordinate PY1 of the first cutting axis = PMy + Offset1, and the compensation coordinate PY2 of the second cutting axis = PMy + Offset1. The second determining module 850 obtains the final coordinate compensation relationship according to the similarity relationship by combining the compensation coordinate relationship under the parallel state, wherein the final coordinate compensation relationship is as follows: the compensation coordinate PY1 = PMy + Offset1 × Δ C of the first cutting axis, and the compensation coordinate PY2 = PMy + Offset2 × Δ C of the second cutting axis.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 9, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the coordinate compensation method.
In some embodiments, the coordinate compensation method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the coordinate compensation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the coordinate compensation method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the Internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A coordinate compensation method is applied to a cutting device, wherein the cutting device comprises a measuring shaft and at least two cutting shafts; wherein projections of the trajectories of the cutting axis and the measuring axis in the axial direction are on the same plane; characterized in that the method comprises:
acquiring the track length between two coordinate points on the cutting axis based on the uncompensated coordinates of the cutting axis;
taking the measuring axis as a standard coordinate axis, and acquiring the standard length between the coordinate points of the cutting axis relative to the track on the measuring axis;
determining the offset ratio of the cutting axis to the measuring axis according to the track length and the standard length;
obtaining the offset of the cutting axis coordinate relative to the measuring axis coordinate;
and determining the compensation coordinate of the cutting shaft according to the offset ratio and the offset.
2. The coordinate compensation method according to claim 1, characterized in that: determining compensated coordinates of the cutting axis from the offset ratio and the offset amount, including:
and the compensation coordinate of the cutting axis is the sum of the product of the offset and the offset ratio and the coordinate of the measuring axis.
3. The coordinate compensation method according to claim 1 or 2, characterized in that: the cutting equipment comprises a cutting device and a measuring device; the cutting device moves on the cutting shaft along the axial direction; the measuring device moves on the measuring shaft along the axial direction;
obtaining a trajectory length between two coordinate points on the cutting axis based on the uncompensated coordinates of the cutting axis, including:
based on the uncompensated coordinates of the cutting axis, the cutting device cuts at two different positions of the workpiece;
and acquiring the track length between two coordinate points on the cutting shaft corresponding to two cutting positions on the workpiece.
4. The coordinate compensation method according to claim 3, characterized in that: determining a deviation ratio of the cutting axis from the measuring axis based on the trajectory length and the gauge length, comprising:
the offset ratio is a ratio of the track length to the standard length.
5. The coordinate compensation method according to claim 3, characterized in that: obtaining an offset of the cutting axis coordinate relative to the measuring axis coordinate, comprising:
setting target coordinates by taking the measuring axis as a standard coordinate axis;
the cutting device cuts on the workpiece according to the target coordinates;
the measuring device measures the measuring coordinate of the workpiece cutting position relative to the measuring axis;
and determining the offset of the cutting axis coordinate relative to the measuring axis coordinate according to the measuring coordinate and the target coordinate.
6. The coordinate compensation method according to claim 5, wherein: determining the offset of the cutting axis coordinate relative to the measuring axis coordinate according to the cutting coordinate and the target coordinate, wherein the offset comprises the following steps:
the offset is a value obtained by subtracting the target coordinate from the cutting coordinate.
7. A coordinate precision compensation device is applied to a cutting device, wherein the cutting device comprises a measuring shaft and at least two cutting shafts; wherein, the cutting axis and the measuring axis are projected on the same plane in the axial track, characterized by comprising:
the first acquisition module is used for acquiring the track length between two coordinate points on the cutting axis based on the uncompensated coordinates of the cutting axis;
the second acquisition module is used for taking the measuring shaft as a standard coordinate shaft and acquiring the standard length between the coordinate points of the cutting shaft relative to the track on the measuring shaft;
a first determining module, configured to determine an offset ratio of the cutting axis to the measuring axis according to the track length and the standard length;
the third acquisition module is used for acquiring the offset of the cutting axis coordinate relative to the measurement axis coordinate;
and the second determining module is used for determining the compensation coordinate of the cutting shaft according to the offset ratio and the offset.
8. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the coordinate compensation method of any of claims 1-6.
9. A computer-readable storage medium storing computer instructions for causing a processor to perform the coordinate compensation method of any one of claims 1-6 when executed.
10. A computer program product, characterized in that the computer program product comprises a computer program which, when being executed by a processor, implements the coordinate compensation method according to any of claims 1-6.
CN202310159262.1A 2023-02-24 2023-02-24 Coordinate compensation method, apparatus, electronic device, storage medium, and program product Active CN115903658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310159262.1A CN115903658B (en) 2023-02-24 2023-02-24 Coordinate compensation method, apparatus, electronic device, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310159262.1A CN115903658B (en) 2023-02-24 2023-02-24 Coordinate compensation method, apparatus, electronic device, storage medium, and program product

Publications (2)

Publication Number Publication Date
CN115903658A true CN115903658A (en) 2023-04-04
CN115903658B CN115903658B (en) 2023-05-26

Family

ID=85744755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310159262.1A Active CN115903658B (en) 2023-02-24 2023-02-24 Coordinate compensation method, apparatus, electronic device, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN115903658B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116153824A (en) * 2023-04-20 2023-05-23 沈阳和研科技股份有限公司 Discharging precision compensation method based on visual algorithm

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5329457A (en) * 1993-04-15 1994-07-12 General Electric Company Comprehensive three-dimensional rotary tool point compensation
CN109623485A (en) * 2019-01-24 2019-04-16 江门市奥斯龙机械有限公司 A kind of cutting tool for CNC machine length compensation system and method
CN111077845A (en) * 2018-10-18 2020-04-28 维嘉数控科技(苏州)有限公司 Tool error compensation method and device and computer equipment
CN115138991A (en) * 2022-07-26 2022-10-04 华中科技大学 Dynamic error compensation method and system for three laser head cutting blanking lines in triangular layout
CN115519267A (en) * 2022-08-24 2022-12-27 浙江西图盟数字科技有限公司 Method and device for cutting circle
CN115562161A (en) * 2022-10-17 2023-01-03 南京航空航天大学 Tool cutting path machining error compensation method based on online monitoring

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5329457A (en) * 1993-04-15 1994-07-12 General Electric Company Comprehensive three-dimensional rotary tool point compensation
CN111077845A (en) * 2018-10-18 2020-04-28 维嘉数控科技(苏州)有限公司 Tool error compensation method and device and computer equipment
CN109623485A (en) * 2019-01-24 2019-04-16 江门市奥斯龙机械有限公司 A kind of cutting tool for CNC machine length compensation system and method
CN115138991A (en) * 2022-07-26 2022-10-04 华中科技大学 Dynamic error compensation method and system for three laser head cutting blanking lines in triangular layout
CN115519267A (en) * 2022-08-24 2022-12-27 浙江西图盟数字科技有限公司 Method and device for cutting circle
CN115562161A (en) * 2022-10-17 2023-01-03 南京航空航天大学 Tool cutting path machining error compensation method based on online monitoring

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116153824A (en) * 2023-04-20 2023-05-23 沈阳和研科技股份有限公司 Discharging precision compensation method based on visual algorithm
CN116153824B (en) * 2023-04-20 2023-08-25 沈阳和研科技股份有限公司 Discharging precision compensation method based on visual algorithm

Also Published As

Publication number Publication date
CN115903658B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN115903658B (en) Coordinate compensation method, apparatus, electronic device, storage medium, and program product
CN109870111B (en) Involute cylindrical gear tooth pitch accumulated error measuring method based on machine vision
US20190162524A1 (en) Tubing dimensional measurement system
CN105334802B (en) It is a kind of to adjust main shaft and the method for C axis concentricities
CN115100299B (en) Calibration method, device, equipment and storage medium
CN114708338A (en) Calibration method, device, equipment and medium of dispenser
CN105973212B (en) A kind of hull measurement auxiliary mould and measurement method
CN110744355A (en) Compensation method based on measuring head machine tool on-line measuring error and used standard sample block
CN108108335B (en) Wild value eliminating method and device
CN113029136A (en) Method, apparatus, storage medium, and program product for positioning information processing
CN110977612B (en) CNC (computer numerical control) machining online measurement error correction method and system
TWI645274B (en) Work piece processing method and processing system thereof
CN116026263A (en) Thickness measurement calibration method, device, equipment and storage medium
CN116275616A (en) Product cutting control method, electronic equipment and storage medium
CN111968183B (en) Gauge block calibration method for calibrating monocular line laser three-dimensional measurement module
CN114274148A (en) Trajectory planning method and device, electronic equipment and storage medium
CN114926545A (en) Camera calibration precision evaluation method and device, electronic equipment and storage medium
CN107470988B (en) The method for grinding of conscope
CN108592838B (en) Calibration method and device of tool coordinate system and computer storage medium
The et al. Non-contacted optical measurement system with 16-channel synchronous laser sensor applied for three-axis machine tool
CN115775279B (en) Dispensing positioning method and device and electronic equipment
CN117289686B (en) Parameter calibration method and device, electronic equipment and storage medium
CN117393451B (en) Method and system for measuring average curvature radius of wafer surface
CN117104263A (en) Method, device, equipment and medium for detecting and calibrating straight-line running deviation
CN118015101A (en) Error calibration method, device, equipment and storage medium

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