CN109719313B - Lathe control method, device and system - Google Patents

Lathe control method, device and system Download PDF

Info

Publication number
CN109719313B
CN109719313B CN201811616134.0A CN201811616134A CN109719313B CN 109719313 B CN109719313 B CN 109719313B CN 201811616134 A CN201811616134 A CN 201811616134A CN 109719313 B CN109719313 B CN 109719313B
Authority
CN
China
Prior art keywords
tailstock
coordinate
range
tool rest
lathe
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.)
Active
Application number
CN201811616134.0A
Other languages
Chinese (zh)
Other versions
CN109719313A (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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Gree Intelligent Equipment Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201811616134.0A priority Critical patent/CN109719313B/en
Publication of CN109719313A publication Critical patent/CN109719313A/en
Application granted granted Critical
Publication of CN109719313B publication Critical patent/CN109719313B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

The invention discloses a lathe control method, device and system. The lathe at least comprises: the tool rest and the tailstock are both moving parts, wherein the method comprises the following steps: acquiring a first coordinate of a tool rest and a second coordinate of a tailstock; judging whether collision risks exist between the tool rest and the tailstock or not based on the first coordinate and the second coordinate; and under the condition that the collision risk of the tool rest and the tailstock is determined, controlling the tool rest and the tailstock to stop moving. The lathe tailstock structure solves the technical problem that in the prior art, a lathe tool rest and a tailstock are easy to collide during the working process of a lathe, so that the lathe is damaged.

Description

Lathe control method, device and system
Technical Field
The invention relates to the field of automatic control, in particular to a lathe control method, device and system.
Background
The general numerically controlled lathe consists of a moving tool rest platform, a main shaft, a tailstock, external equipment and the like. The main shaft is used for clamping a workpiece to rotate; a cutting tool is arranged on the tool rest platform, and the cutting tool performs cutting action on the workpiece according to the track gauge specified by a program; the tailstock is used for tightly pushing the workpiece according to the processing requirement. Because the tool rest and the tailstock are moving parts, the moving ranges of the tool rest and the tailstock intersect. And the positions of the tool rest and the tailstock are changed all the time, so that the phenomenon of collision between the tool rest platform and the tailstock is easy to occur in the operation or machining process of the lathe, and the lathe is damaged.
Aiming at the problem that the lathe is damaged due to the fact that a phenomenon that a tool rest and a tailstock are impacted easily occurs in the working process of the lathe in the prior art, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a lathe control method, device and system, which at least solve the technical problem that in the prior art, a lathe is damaged due to the fact that a tool rest and a tailstock are easy to collide in the working process of the lathe.
According to an aspect of an embodiment of the present invention, there is provided a lathe control method, the lathe including at least: the tool rest and the tailstock are both moving parts, wherein the method comprises the following steps: acquiring a first coordinate of a tool rest and a second coordinate of a tailstock; judging whether collision risks exist between the tool rest and the tailstock or not based on the first coordinate and the second coordinate; and under the condition that the collision risk of the tool rest and the tailstock is determined, controlling the tool rest and the tailstock to stop moving.
Further, acquiring the first coordinate of the tool post and the second coordinate of the tailstock comprises: acquiring a first position of a tool rest on a lathe and a second position of a tailstock on the lathe; obtaining a first coordinate based on a pre-established coordinate system and a first position, wherein the coordinate system is positioned on a plane where the lathe is positioned; and obtaining a second coordinate based on the coordinate system and the second position.
Further, the motion axis of the tailstock is parallel to the preset axis in the coordinate system.
Further, the lathe further includes: the motion axis of the tailstock intersects with the center of the spindle.
Further, based on the first coordinate and the second coordinate, whether collision risks exist between the tool post and the tailstock is judged, and the method comprises the following steps: obtaining a first range of the tool rest based on the first coordinate; obtaining a second range of the tailstock based on the second coordinate; judging whether an intersection exists between the first range and the second range; determining that the tool rest and the tailstock have collision risks under the condition that the intersection exists between the first range and the second range; and under the condition that the intersection of the first range and the second range is determined not to exist, determining that the tool rest and the tailstock have no collision risk.
Further, the first coordinate is located at the center of the first range, and the second coordinate is located at the center of the second range.
Further, the tool rest is located in the first range, and the tailstock is located in the second range.
Further, when determining that the tool rest and the tailstock have collision risks, outputting alarm information for prompting collision of the tool rest and the tailstock.
Further, under the condition that the tool rest and the tailstock are determined not to have collision risks, the tool rest and the tailstock are controlled to continue to move according to the preset track.
According to another aspect of the embodiments of the present invention, there is also provided a lathe control apparatus, the lathe including at least: knife rest and tailstock, knife rest and tailstock are the moving part, and wherein, above-mentioned device includes: the acquisition module is used for acquiring a first coordinate of the tool rest and a second coordinate of the tailstock; the judgment module is used for judging whether the tool rest and the tailstock have collision risks or not based on the first coordinate and the second coordinate; and the control module is used for controlling the tool rest and the tailstock to stop moving under the condition that the collision risk exists between the tool rest and the tailstock.
According to another aspect of the embodiments of the present invention, there is also provided a lathe control system, the lathe including at least: knife rest and tailstock, knife rest and tailstock are the moving part, and wherein, above-mentioned system includes: the data acquisition device is used for acquiring a first coordinate of the tool rest and a second coordinate of the tailstock; and the control device is connected with the data acquisition device and used for judging whether the tool rest and the tailstock have collision risks or not based on the first coordinate and the second coordinate, and controlling the tool rest and the tailstock to stop moving under the condition of determining that the tool rest and the tailstock have the collision risks.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein the apparatus on which the storage medium is located is controlled to execute the above-described lathe control method when the program runs.
According to another aspect of the embodiments of the present invention, there is also provided a processor for executing a program, wherein the program executes the lathe control method described above.
In the embodiment of the invention, after the first coordinate of the tool rest and the second coordinate of the tailstock are obtained, whether the tool rest and the tailstock have collision risks or not can be judged based on the first coordinate and the second coordinate, and the tool rest and the tailstock are controlled to stop moving under the condition that the tool rest and the tailstock have collision risks, so that the purpose of lathe collision avoidance control is achieved. Compared with the prior art, no matter how the position that knife rest and tailstock removed changes, can all realize judging whether there is collision risk knife rest and tailstock to get rid of the improper factor of manual operation and cause the collision harm, reach the technological effect who improves the lathe security, and then solved among the prior art lathe and appeared the phenomenon that knife rest and tailstock striking easily in the course of the work, caused the technical problem of lathe damage.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of controlling a lathe according to an embodiment of the present invention;
FIG. 2 is a schematic view of an alternative lathe layout according to an embodiment of the present invention;
FIG. 3 is a schematic view of an alternative tool holder and tailstock safety margin according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a lathe control apparatus according to an embodiment of the present invention; and
FIG. 5 is a schematic diagram of a lathe control system according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a lathe control method, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Optionally, the lathe comprises at least: the tool rest and the tailstock are both moving parts.
The lathe may be a numerically controlled lathe (CNC) controlled by a CNC system. The tool rest is a loading platform of a tool, the tailstock is auxiliary equipment for tightly pushing a workpiece, the two components move in a machining plane where the lathe is located, and the two components may intersect in the moving range to cause collision.
Fig. 1 is a flowchart of a lathe control method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, a first coordinate of the tool rest and a second coordinate of the tailstock are obtained.
The tool rest and the tailstock move in the processing plane, and the collision position of the tool rest and the tailstock is random. In order to avoid collisions, a coordinate system of X and Z axes can be constructed in advance in the machining plane. The position of the tool holder moved in the machining plane can be regarded as a first coordinate in the coordinate system and the position of the tailstock moved in the machining plane can be regarded as a second coordinate in the coordinate system.
The CNC system has a data acquisition function, and can acquire a first coordinate of the tool rest and a second coordinate of the tailstock in real time through the shaft data acquisition device.
And step S104, judging whether the tool rest and the tailstock have collision risks or not based on the first coordinate and the second coordinate.
The CNC system also has a data analysis and comparison function. In order to avoid collision between the tool rest and the tailstock, whether the tool rest and the tailstock have collision risks or not needs to be judged in advance, a collision risk range can be preset, and after the first coordinate and the second coordinate are obtained, whether the two coordinates are located in the collision risk range or not can be judged through the comparison system according to the relative positions of the two coordinates, so that whether the tool rest and the tailstock have collision risks or not can be determined.
And S106, controlling the tool rest and the tailstock to stop moving under the condition that the tool rest and the tailstock have collision risks.
Under the condition that the tool rest and the tailstock have collision risks, in order to avoid collision of the tool rest and the tailstock when the tool rest and the tailstock move continuously in opposite directions, the tool rest and the tailstock can be controlled to stop moving continuously in opposite directions through the comparison system according to the control program, and collision of the tool rest and the tailstock is avoided.
According to the embodiment of the invention, after the first coordinate of the tool rest and the second coordinate of the tailstock are obtained, whether the tool rest and the tailstock have collision risks or not can be judged based on the first coordinate and the second coordinate, and the tool rest and the tailstock are controlled to stop moving under the condition that the tool rest and the tailstock have collision risks, so that the purpose of lathe collision avoidance control is achieved. Compared with the prior art, no matter how the position that knife rest and tailstock removed changes, can all realize judging whether there is collision risk knife rest and tailstock to get rid of the improper factor of manual operation and cause the collision harm, reach the technological effect who improves the lathe security, and then solved among the prior art lathe and appeared the phenomenon that knife rest and tailstock striking easily in the course of the work, caused the technical problem of lathe damage.
Optionally, in the foregoing embodiment of the present invention, in step S102, acquiring the first coordinate of the tool post and the second coordinate of the tailstock includes: acquiring a first position of a tool rest on a lathe and a second position of a tailstock on the lathe; obtaining a first coordinate based on a pre-established coordinate system and a first position, wherein the coordinate system is positioned on a plane where the lathe is positioned; and obtaining a second coordinate based on the coordinate system and the second position.
Optionally, the axis of motion of the tailstock is parallel to a preset axis in a coordinate system.
Optionally, the lathe further comprises: the motion axis of the tailstock intersects with the center of the spindle.
As shown in fig. 2, a tool post 1, a tailstock 2, and a spindle 3 are disposed on a lathe. An XZ coordinate system may be established on the machining plane of the lathe, with a zero point of the coordinate system being (X0, Z0), the Z axis being the horizontal direction, and the X axis being the vertical direction, wherein the positive direction of the Z axis is to the right and the positive direction of the X axis is to the top. The tool holder is movable along the Z-axis and the X-axis in the entire machining plane, and thus the first coordinate of the tool holder may be (Xa, Za). The motion axis of the tailstock is a B axis, the B axis is parallel to a Z axis (namely the preset axis) and intersects with the center of the spindle, and the distance between the B axis and the Z axis is X1, so that the X coordinate of the tailstock in the moving process is fixed, and the Z coordinate is changed, and the second coordinate of the tailstock is (-X1, Zb).
The CNC system can detect the moving positions of the tool rest and the tailstock in real time, and determine a first coordinate (Xa, Za) of the tool rest and a second coordinate (-X1, Zb) of the tailstock by combining an XZ coordinate system.
Optionally, in the foregoing embodiment of the present invention, the step S104, determining whether there is a collision risk between the tool post and the tailstock based on the first coordinate and the second coordinate, includes: obtaining a first range of the tool rest based on the first coordinate; obtaining a second range of the tailstock based on the second coordinate; judging whether an intersection exists between the first range and the second range; determining that the tool rest and the tailstock have collision risks under the condition that the intersection exists between the first range and the second range; and under the condition that the intersection of the first range and the second range is determined not to exist, determining that the tool rest and the tailstock have no collision risk.
Optionally, the first coordinate is located at the center of the first range and the second coordinate is located at the center of the second range.
Optionally, the tool holder is located in a first range and the tailstock is located in a second range.
In order to avoid collision between the tool post and the tailstock, as shown in fig. 3, a safety boundary range of the tool post may be preset, and assuming that the first coordinate of the tool post is (Xa, Za) within the safety boundary range, the X-axis boundary values are Xa + R1 and Xa-R1, and the Z-axis boundary values are Za + R1 and Za-R1, so that the first range may be determined. Similarly, a safety margin range of the tailstock may be preset, and the tailstock is also within the safety margin range, and assuming that the second coordinate of the tailstock is (-X1, Zb), the X axial boundary value is-X1 + R2, -X1-R2, and the Z axial boundary value is Zb + R2, Zb-R2, so that the second range may be determined.
In the embodiment of the present invention, the first range and the second range are square, but the present invention is not limited thereto, and the first range and the second range may be circular, oval, rectangular, and the like, and may be determined according to the shapes of the tool holder and the tailstock and the control accuracy.
After the first range and the second range are determined, whether the tool rest and the tailstock are in the collision danger range can be determined by judging whether the two ranges have an intersection, and if the two ranges have the intersection, the tool rest and the tailstock are determined to be in the collision danger range and have collision risks; and if the intersection does not exist, determining that the tool rest and the tailstock are not in the collision range, and not having collision risk.
Optionally, in the above embodiment of the present invention, when it is determined that there is a collision risk between the tool rest and the tailstock, an alarm message for prompting that the tool rest and the tailstock collide is output.
After the collision risk of the tool rest and the tailstock is determined, the CNC system can send out an alarm stop signal according to the instruction of the control program, prompt a user that the tool rest and the tailstock can collide, and simultaneously control the tool rest and the tailstock to stop moving in opposite directions, so that the tool rest and the tailstock are prevented from colliding.
Optionally, in the above embodiment of the present invention, in a case that it is determined that there is no collision risk between the tool post and the tailstock, the tool post and the tailstock are controlled to continue to move according to the preset trajectory.
The predetermined trajectory may be a predetermined gauge for controlling the operation of the tool post and tailstock.
After determining that the tool rest and the tailstock have no collision risk, the CNC system can continuously control the tool rest and the tailstock to operate according to the set track gauge according to the control program.
Example 2
According to an embodiment of the present invention, there is provided an embodiment of a lathe control apparatus.
Optionally, the lathe comprises at least: the tool rest and the tailstock are both moving parts.
The lathe may be a numerically controlled lathe and controlled by a CNC system. The tool rest is a loading platform of a tool, the tailstock is auxiliary equipment for tightly pushing a workpiece, the two components move in a machining plane where the lathe is located, and the two components may intersect in the moving range to cause collision.
Fig. 4 is a schematic diagram of a lathe control apparatus according to an embodiment of the present invention, as shown in fig. 4, the apparatus including:
and the acquiring module 42 is used for acquiring the first coordinate of the tool rest and the second coordinate of the tailstock.
The tool rest and the tailstock move in the processing plane, and the collision position of the tool rest and the tailstock is random. In order to avoid collisions, a coordinate system of X and Z axes can be constructed in advance in the machining plane. The position of the tool holder moved in the machining plane can be regarded as a first coordinate in the coordinate system and the position of the tailstock moved in the machining plane can be regarded as a second coordinate in the coordinate system.
The CNC system has a data acquisition function, and can acquire a first coordinate of the tool rest and a second coordinate of the tailstock in real time through the shaft data acquisition device.
And the judging module 44 is configured to judge whether the tool post and the tailstock have a collision risk based on the first coordinate and the second coordinate.
The CNC system also has a data analysis and comparison function. In order to avoid collision between the tool rest and the tailstock, whether the tool rest and the tailstock have collision risks or not needs to be judged in advance, a collision risk range can be preset, and after the first coordinate and the second coordinate are obtained, whether the two coordinates are located in the collision risk range or not can be judged through the comparison system according to the relative positions of the two coordinates, so that whether the tool rest and the tailstock have collision risks or not can be determined.
And the control module 46 is used for controlling the tool rest and the tailstock to stop moving under the condition that the tool rest and the tailstock have collision risks.
Under the condition that the tool rest and the tailstock have collision risks, in order to avoid collision of the tool rest and the tailstock when the tool rest and the tailstock move continuously in opposite directions, the tool rest and the tailstock can be controlled to stop moving continuously in opposite directions through the comparison system according to the control program, and collision of the tool rest and the tailstock is avoided.
According to the embodiment of the invention, after the first coordinate of the tool rest and the second coordinate of the tailstock are obtained, whether the tool rest and the tailstock have collision risks or not can be judged based on the first coordinate and the second coordinate, and the tool rest and the tailstock are controlled to stop moving under the condition that the tool rest and the tailstock have collision risks, so that the purpose of lathe collision avoidance control is achieved. Compared with the prior art, no matter how the position that knife rest and tailstock removed changes, can all realize judging whether there is collision risk knife rest and tailstock to get rid of the improper factor of manual operation and cause the collision harm, reach the technological effect who improves the lathe security, and then solved among the prior art lathe and appeared the phenomenon that knife rest and tailstock striking easily in the course of the work, caused the technical problem of lathe damage.
Optionally, in the above embodiment of the present invention, the obtaining module includes: the acquisition unit is used for acquiring a first position of the tool rest on the lathe and a second position of the tailstock on the lathe; the first processing unit is used for obtaining a first coordinate based on a pre-established coordinate system and a first position, wherein the coordinate system is positioned on a plane where the lathe is positioned; and the second processing unit is used for obtaining a second coordinate based on the coordinate system and the second position.
Optionally, the axis of motion of the tailstock is parallel to a preset axis in a coordinate system.
Optionally, the lathe further comprises: the motion axis of the tailstock intersects with the center of the spindle.
Optionally, in the foregoing embodiment of the present invention, the determining module includes: the third processing unit is used for obtaining a first range of the tool rest based on the first coordinate; the fourth processing unit is used for obtaining a second range of the tailstock based on the second coordinate; the judging unit is used for judging whether an intersection exists between the first range and the second range; and the determining unit is used for determining that the tool rest and the tailstock have collision risks under the condition that the intersection exists between the first range and the second range, and determining that the tool rest and the tailstock do not have collision risks under the condition that the intersection does not exist between the first range and the second range.
Optionally, the first coordinate is located at the center of the first range and the second coordinate is located at the center of the second range.
Optionally, the tool holder is located in a first range and the tailstock is located in a second range.
Optionally, in the above embodiment of the present invention, the apparatus further includes: and the output module is used for outputting alarm information for prompting collision of the tool rest and the tailstock under the condition that the tool rest and the tailstock have collision risks.
Optionally, in the above embodiment of the present invention, the control module is further configured to control the tool post and the tailstock to continue to move according to the preset track when it is determined that there is no collision risk between the tool post and the tailstock.
Example 3
According to an embodiment of the present invention, there is provided an embodiment of a lathe control system.
Optionally, the lathe comprises at least: the tool rest and the tailstock are both moving parts.
The lathe may be a numerically controlled lathe and controlled by a CNC system. The tool rest is a loading platform of a tool, the tailstock is auxiliary equipment for tightly pushing a workpiece, the two components move in a machining plane where the lathe is located, and the two components may intersect in the moving range to cause collision.
Fig. 5 is a schematic diagram of a lathe control system according to an embodiment of the present invention, as shown in fig. 5, the system including:
and the data acquisition device 52 is used for acquiring the first coordinate of the tool rest and the second coordinate of the tailstock.
The tool rest and the tailstock move in the processing plane, and the collision position of the tool rest and the tailstock is random. In order to avoid collisions, a coordinate system of X and Z axes can be constructed in advance in the machining plane. The position of the tool holder moved in the machining plane can be regarded as a first coordinate in the coordinate system and the position of the tailstock moved in the machining plane can be regarded as a second coordinate in the coordinate system.
The CNC system has a data acquisition function, and can acquire the first coordinate of the tool post and the second coordinate of the tailstock in real time through the axis data acquisition device (i.e., the data acquisition device described above).
And the control device 54 is connected with the data acquisition device and is used for judging whether the tool rest and the tailstock have collision risks or not based on the first coordinate and the second coordinate.
The CNC system also has a data analysis and comparison function. In order to avoid collision between the tool post and the tailstock, it is necessary to determine in advance whether there is a collision risk between the tool post and the tailstock, a collision risk range may be preset, and after the first coordinate and the second coordinate are obtained, a comparison system (i.e., the control device) may determine whether the two coordinates are located within the collision risk range according to the relative positions of the two coordinates, so as to determine whether there is a collision risk between the tool post and the tailstock.
Under the condition that the tool rest and the tailstock have collision risks, in order to avoid collision of the tool rest and the tailstock when the tool rest and the tailstock move continuously in opposite directions, the tool rest and the tailstock can be controlled to stop moving continuously in opposite directions through the comparison system according to the control program, and collision of the tool rest and the tailstock is avoided.
According to the embodiment of the invention, after the first coordinate of the tool rest and the second coordinate of the tailstock are obtained, whether the tool rest and the tailstock have collision risks or not can be judged based on the first coordinate and the second coordinate, and the tool rest and the tailstock are controlled to stop moving under the condition that the tool rest and the tailstock have collision risks, so that the purpose of lathe collision avoidance control is achieved. Compared with the prior art, no matter how the position that knife rest and tailstock removed changes, can all realize judging whether there is collision risk knife rest and tailstock to get rid of the improper factor of manual operation and cause the collision harm, reach the technological effect who improves the lathe security, and then solved among the prior art lathe and appeared the phenomenon that knife rest and tailstock striking easily in the course of the work, caused the technical problem of lathe damage.
Optionally, in the foregoing embodiment of the present invention, the control device is further configured to obtain a first position of the tool post on the lathe and a second position of the tailstock on the lathe, obtain a first coordinate based on a pre-established coordinate system and the first position, and obtain a second coordinate based on the coordinate system and the second position, where the coordinate system is located on a plane where the lathe is located.
Optionally, the axis of motion of the tailstock is parallel to a preset axis in a coordinate system.
Optionally, the lathe further comprises: the motion axis of the tailstock intersects with the center of the spindle.
Optionally, in the foregoing embodiment of the present invention, the control device is further configured to obtain a first range of the tool post based on the first coordinate, obtain a second range of the tailstock based on the second coordinate, and determine whether the first range and the second range intersect with each other, determine that there is a collision risk between the tool post and the tailstock when it is determined that the first range and the second range intersect with each other, and determine that there is no collision risk between the tool post and the tailstock when it is determined that the first range and the second range do not intersect with each other.
Optionally, the first coordinate is located at the center of the first range and the second coordinate is located at the center of the second range.
Optionally, the tool holder is located in a first range and the tailstock is located in a second range.
Optionally, in the above embodiment of the present invention, the control device is further configured to output an alarm message for prompting that the tool post and the tailstock collide when it is determined that there is a collision risk between the tool post and the tailstock.
Optionally, in the above embodiment of the present invention, the control device is further configured to control the tool post and the tailstock to continue to move according to the preset trajectory when it is determined that there is no collision risk between the tool post and the tailstock.
Example 4
According to an embodiment of the present invention, there is provided an embodiment of a storage medium including a stored program, wherein an apparatus in which the storage medium is controlled to execute the lathe control method in the above-described embodiment 1 when the program runs.
Example 5
According to an embodiment of the present invention, an embodiment of a processor for running a program is provided, wherein the program is run to execute the lathe control method in the above embodiment 1.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A lathe control method characterized in that the lathe comprises at least: a tool post and a tailstock, both of which are moving parts, wherein the method comprises:
acquiring a first coordinate of the tool rest and a second coordinate of the tailstock acquired in real time;
judging whether collision risks exist between the tool rest and the tailstock or not based on the first coordinate and the second coordinate;
under the condition that the collision risk exists between the tool rest and the tailstock, controlling the tool rest and the tailstock to stop moving;
wherein obtaining a first coordinate of the tool holder and a second coordinate of the tailstock comprises:
acquiring a first position of the tool rest on the lathe and a second position of the tailstock on the lathe;
obtaining the first coordinate based on a pre-established coordinate system and the first position, wherein the coordinate system is located on a plane where the lathe is located, and an XZ coordinate system is established on a machining plane of the lathe;
obtaining the second coordinate based on the coordinate system and the second position;
wherein, based on the first coordinate and the second coordinate, determining whether the tool post and the tailstock have collision risk includes:
obtaining a first range of the tool rest based on the first coordinate and a preset safety boundary range of the tool rest;
obtaining a second range of the tailstock based on the second coordinate and a preset safety boundary range of the tailstock;
judging whether an intersection exists between the first range and the second range;
determining that the tool rest and the tailstock have collision risks under the condition that the intersection of the first range and the second range is determined;
and under the condition that the intersection of the first range and the second range is determined not to exist, determining that the tool rest and the tailstock have no collision risk.
2. The method according to claim 1, characterized in that the axis of motion of the tailstock is parallel to a preset axis in the coordinate system.
3. The method of claim 2, wherein the lathe further comprises: the motion axis of the tailstock is intersected with the center of the spindle.
4. The method of claim 1, wherein the first coordinate is located at a center of the first range and the second coordinate is located at a center of the second range.
5. The method of claim 1, wherein the tool post is located in the first range and the tailstock is located in the second range.
6. The method according to claim 1, characterized in that in the case where it is determined that there is a risk of collision between the tool post and the tailstock, an alarm message for prompting collision between the tool post and the tailstock is output.
7. The method according to claim 1, characterized in that, in the case that it is determined that there is no risk of collision between the tool post and the tailstock, the tool post and the tailstock are controlled to continue to move according to a preset trajectory.
8. A lathe control device, characterized in that the lathe comprises at least: a tool post and a tailstock, both of which are moving parts, wherein the device comprises:
the acquisition module is used for acquiring a first coordinate of the tool rest and a second coordinate of the tailstock acquired in real time;
the judgment module is used for judging whether collision risks exist between the tool rest and the tailstock on the basis of the first coordinate and the second coordinate;
the control module is used for controlling the tool rest and the tailstock to stop moving under the condition that the collision risk exists between the tool rest and the tailstock;
wherein the acquisition module comprises: the acquisition unit is used for acquiring a first position of the tool rest on the lathe and a second position of the tailstock on the lathe; the first processing unit is used for obtaining the first coordinate based on a pre-established coordinate system and the first position, wherein the coordinate system is located on a plane where the lathe is located, and an XZ coordinate system is established on a machining plane of the lathe; the second processing unit is used for obtaining the second coordinate based on the coordinate system and the second position;
wherein, the judging module comprises:
the third processing unit is used for obtaining a first range of the tool rest based on the first coordinate and a preset safety boundary range of the tool rest;
the fourth processing unit is used for obtaining a second range of the tailstock based on the second coordinate and a preset safety boundary range of the tailstock;
the judging unit is used for judging whether an intersection exists between the first range and the second range;
the determining unit is configured to determine that there is a collision risk between the tool post and the tailstock when it is determined that the first range intersects with the second range, and determine that there is no collision risk between the tool post and the tailstock when it is determined that the first range does not intersect with the second range.
9. A lathe control system, characterized in that the lathe comprises at least: a tool post and a tailstock, both of which are moving parts, wherein the system comprises:
the data acquisition device is used for acquiring a first coordinate of the tool rest and a second coordinate of the tailstock acquired in real time;
the control device is connected with the data acquisition device and used for judging whether the tool rest and the tailstock have collision risks or not based on the first coordinate and the second coordinate and controlling the tool rest and the tailstock to stop moving under the condition that the tool rest and the tailstock have collision risks;
the control device is further configured to obtain a first position of the tool post on the lathe, obtain a first coordinate based on a pre-established coordinate system and the first position at a second position of the tailstock on the lathe, and obtain a second coordinate based on the coordinate system and the second position, where the coordinate system is located on a plane where the lathe is located, and the coordinate system establishes an XZ coordinate system on a machining plane of the lathe;
the control device is further configured to obtain a first range of the tool rest based on the first coordinate and a preset safety boundary range of the tool rest, obtain a second range of the tailstock based on the second coordinate and the preset safety boundary range of the tailstock, determine whether an intersection exists between the first range and the second range, determine that a collision risk exists between the tool rest and the tailstock when it is determined that the intersection exists between the first range and the second range, and determine that the collision risk does not exist between the tool rest and the tailstock when it is determined that the intersection does not exist between the first range and the second range.
10. A storage medium characterized by comprising a stored program, wherein a device in which the storage medium is located is controlled to execute the lathe control method according to any one of claims 1 to 7 when the program is executed.
11. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the lathe control method according to any one of claims 1 to 7 when running.
CN201811616134.0A 2018-12-27 2018-12-27 Lathe control method, device and system Active CN109719313B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811616134.0A CN109719313B (en) 2018-12-27 2018-12-27 Lathe control method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811616134.0A CN109719313B (en) 2018-12-27 2018-12-27 Lathe control method, device and system

Publications (2)

Publication Number Publication Date
CN109719313A CN109719313A (en) 2019-05-07
CN109719313B true CN109719313B (en) 2021-06-29

Family

ID=66296716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811616134.0A Active CN109719313B (en) 2018-12-27 2018-12-27 Lathe control method, device and system

Country Status (1)

Country Link
CN (1) CN109719313B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113843423B (en) * 2021-10-26 2024-02-27 湖北文特斯智能科技有限公司 Lathe control method for preventing tool rest from collision

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0716218D0 (en) * 2007-08-20 2007-09-26 Renishaw Plc Measurement path generation
CN106383493B (en) * 2016-09-30 2018-12-18 同济大学 A kind of real-time collision-proof method of numerically-controlled machine tool
CN108296854A (en) * 2018-02-01 2018-07-20 上海铼钠克数控科技股份有限公司 Lathe avoiding collision and device
CN108526987A (en) * 2018-05-05 2018-09-14 孙秋梅 A kind of anticollision knife system of CNC milling machine

Also Published As

Publication number Publication date
CN109719313A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN103576606B (en) processing support device and processing support system
EP3088979B1 (en) Control device for machine tool
US8538574B2 (en) Method and apparatus for generating control data for controlling a tool on a machine tool
CN101893873B (en) Method and device for generating control data for controlling cutter arranged on machine tool
CN111781447B (en) Method and device for determining mechanical zero point and machine tool equipment
CN102667650B (en) Numerical control machine tool
JP6370821B2 (en) Robot programming device that teaches robot programs
CN106346315A (en) Machine tool control system capable of obtaining workpiece origin and workpiece origin setting method
JP4904731B2 (en) Interference check device for machine tools
CN105549539B (en) Layout for drilling control system
KR20170067700A (en) Method of controlling a gear cutting machine and gear cutting machine
CN109719313B (en) Lathe control method, device and system
JP2000284819A (en) Interference detecting method in numerically controlled machine tool and numerical controller
EP2915625A1 (en) Machine tool control device and machine tool
CN112720073A (en) Tool setting gauge control method and device, storage medium and processor
US20190202017A1 (en) Selecting device, selecting method, and program
JPH08263116A (en) Interference checking method for nc lathe
CN112247671B (en) Method and device for centering cylinder workpiece
CN103792881A (en) Control equipment for cutting tool machine
CN203636508U (en) Machine tooling misplacement preventing system
KR20120103993A (en) Method for safe space decision of tool and tool holer and apparatus thereof
CN103722450A (en) Lathe tool dislocation preventing method and system
CN111399445A (en) Cooling control method and device based on numerical control machine tool
CN205928103U (en) Prevent data entry error's device before cutter processing
CN108227621B (en) DXF track processing method based on double-edge milling of double-edge milling lathe

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