How to remove allowance in manual programming of machining cente
Publish: 2021-04-17 14:49:38
1. To be exact, you should use the tool radius compensation
G41 and G42
in this way, increasing and decreasing the compensation is effective
otherwise, it is very troublesome to calculate the node of tool offset by yourself
increasing the wear is actually changing the tool radius compensation
as for what you mean
I'm not too clear
I suggest that in the wear, it's very convenient
to make up half of the size
G41 and G42
in this way, increasing and decreasing the compensation is effective
otherwise, it is very troublesome to calculate the node of tool offset by yourself
increasing the wear is actually changing the tool radius compensation
as for what you mean
I'm not too clear
I suggest that in the wear, it's very convenient
to make up half of the size
2. It's easy to make mistakes when programming than column scaling. It's troublesome for you to calculate, draw and verify the scaling scale according to your needs. The calculation of numerical control system is also quite inappropriate
this method can be used in a wide range of fields. There are few macro programs to write. As long as you are familiar with the macro program, it is very easy to use in a wide range of fields. The macro program I'm going to talk about here can also change the cost of compensation. I will write a simple macro program< br />G54G17G40G90
M3 S_< br />G0Z20;
x0y0
#1 = 5 (tool radius)
#2 = 0 (tool compensation variable value)
#3 = 10 (tool compensation maximum variable value)
#4 = 1 (progressive increment of tool compensation value)
while [#2 Le #3] do1
#4 = #1 + #2 (tool compensation value)
G10 L12 P1 R #4 (modified) Change tool compensation value)
M98 P1 (in this subroutine, you only need to write a figure outline)
#2 = #2 + #4
end1
goz200
MO5
M30
(Note: G41 / G42 and G40 should be cancelled in the subroutine, You need to have the contour programming of + cutter compensation, and then milling it out, and finally cancel the cutter compensation to the origin, which is a closed program. The simple point is to write the contour of the graph)
I hope my shallow knowledge can help you!
this method can be used in a wide range of fields. There are few macro programs to write. As long as you are familiar with the macro program, it is very easy to use in a wide range of fields. The macro program I'm going to talk about here can also change the cost of compensation. I will write a simple macro program< br />G54G17G40G90
M3 S_< br />G0Z20;
x0y0
#1 = 5 (tool radius)
#2 = 0 (tool compensation variable value)
#3 = 10 (tool compensation maximum variable value)
#4 = 1 (progressive increment of tool compensation value)
while [#2 Le #3] do1
#4 = #1 + #2 (tool compensation value)
G10 L12 P1 R #4 (modified) Change tool compensation value)
M98 P1 (in this subroutine, you only need to write a figure outline)
#2 = #2 + #4
end1
goz200
MO5
M30
(Note: G41 / G42 and G40 should be cancelled in the subroutine, You need to have the contour programming of + cutter compensation, and then milling it out, and finally cancel the cutter compensation to the origin, which is a closed program. The simple point is to write the contour of the graph)
I hope my shallow knowledge can help you!
3. According to the accuracy of the bed and the processing materials, the cutting tool decides that one of the beds I use now is a bridge bed. Because the knife was hit before, now the conical sleeve of the knife edge is scratched. I usually dry the cast iron mold, and leave 10 wire allowance. According to the actual situation, look at the workpiece accuracy requirements.
4. What is the allowance? Is it rough machining allowance? Is there any feed rate? Is there any feed rate? What material are you machining,
5. 0 points are designed at 0 points at the angle of a working face at a angle of: :
%
T1M006
T1M006
G43H1
G00ZZ100
G00ZZ100
X-5Y2
z3 (reserv3mm) <3mm
M02S1000
M02S1000
#1 = 0
N100G01Y[2+ [#1*5.5*5.8] IF [2+[#1+1]*5*0.8] GE 140 GOTO200
G00Y[2+[#1+1]*5*0.8]
G01X-5
#1=#1+2
IF #1LT36 GOTO100
N200 Z50
M30
%
T1M006
T1M006
G43H1
G00ZZ100
G00ZZ100
X-5Y2
z3 (reserv3mm) <3mm
M02S1000
M02S1000
#1 = 0
N100G01Y[2+ [#1*5.5*5.8]
G00Y[2+[#1+1]*5*0.8]
G01X-5
#1=#1+2
IF #1LT36 GOTO100
N200 Z50
M30
6. 1、 G90 / 91 absolute / incremental dimension programming
(1) G90 (mode), G90 is the absolute dimension input, all data correspond to the actual workpiece zero
(2) G91 (mode), G91 is the incremental dimension input, and each dimension corresponds to the previous contour point< (2) G70 / G71 English system / metric system programming
G70 English system, G71 metric system, according to the needs of parts drawing, when preparing parts processing program, you can switch between English system and metric system< Third, g54-g57 is used to set the zero point offset and establish the workpiece coordinate system.
g54 / G55 / g56 / G57: call the first to the fourth to set the zero point offset< (1) G17: machining plane X / Y
(2) G18: machining plane Z / X
(3) G19: machining plane Y / Z
the division of machining plane is used to determine the plane to be machined, as well as the plane of tool radius compensation, the direction of tool length compensation and the plane of arc interpolation. Generally, the machining plane is defined at the beginning of the program; When using the tool radius compensation command G41 / G42, the machining plane must be defined so that the control system can correct the tool length and radius. The machining center has a default machining plane, which is XY plane. G17 can be omitted. Otherwise, G17 and G18 cannot be omitted< (1) programming format. G0 X__ Y__ Z__
(2) meaning: X__ Y__ Z__: The coordinates of the end point in the rectangular coordinate system
G00 can be used to quickly move the tool to the workpiece surface or tool change point; This instruction is not suitable for workpiece processing. When executing the G00 command, the tool moves as fast as possible (fast). This fast moving speed is defined for each axis in the machine parameters, but it is regulated by the feed speed adjustment switch< (1) programming format: G1 X__ Y__ Z__ F__
(2) meaning
x, y, Z: end point coordinates in rectangular coordinate system
F: feed speed, unit: mm / min
G1 command can move along any straight line parallel to the coordinate axis, inclined to the coordinate axis or space. Linear interpolation can process 3D surface and groove. The target point can be input in Cartesian coordinate system or polar coordinate system. The tool moves from the current starting point to the programming target point along a straight line with the feed speed F. along this path, the workpiece is machined
G1 is the mode command, and the spindle speed s and spindle steering m3 / M4 must be specified before machining< 7. G2 / G3 / CIP circular interpolation instruction
(1) programming format< br />1G2/G3 X—— Y—— Z—— I—— J—— K—— < br />2CIP X—— Y—— Z—— I1=—— J1=—— K1=——
(2) meaning
G2: the tool moves clockwise along the arc
G3: the tool moves along the arc in a counterclockwise direction
CIP: circular interpolation through the middle point
X-Y-Z: end point in rectangular coordinate system
i-j-k: coordinates of arc center point in rectangular coordinate system (in X, y, z direction)
I1 = - J1 = - K1 = -: coordinates of arc midpoint in rectangular coordinate system (in X, y and Z directions respectively)
note: when programming with radius R method, if the center angle of machining arc is less than 180 degrees, R is followed by a positive value of arc radius. If the center angle of machining arc is greater than 180 degrees, R is followed by a negative value of arc radius. When machining a whole circle, the radius R method cannot be used, but the specified center method must be used< 8. G94 / g95 feed speed control command
(1) G94: determine the unit of feed speed as M / min, inches / min, degrees / min, which is the mode command
(2) g95: the unit of determining the feed speed is mm / R and inches / R, which is related to the spindle speed and is the mode command
(3) f: determine the feed speed value, the specific unit is determined by G94 / g95, which is the mode command< 9. G41 / G42 / G40 tool radius compensation command
G40: cancel tool radius compensation
G41: the tool radius compensation is activated, and the tool is on the left side of the workpiece contour in the cutting direction
G42: tool radius compensation is activated, and the tool is on the right side of the workpiece contour when viewed along the cutting direction
(1) G90 (mode), G90 is the absolute dimension input, all data correspond to the actual workpiece zero
(2) G91 (mode), G91 is the incremental dimension input, and each dimension corresponds to the previous contour point< (2) G70 / G71 English system / metric system programming
G70 English system, G71 metric system, according to the needs of parts drawing, when preparing parts processing program, you can switch between English system and metric system< Third, g54-g57 is used to set the zero point offset and establish the workpiece coordinate system.
g54 / G55 / g56 / G57: call the first to the fourth to set the zero point offset< (1) G17: machining plane X / Y
(2) G18: machining plane Z / X
(3) G19: machining plane Y / Z
the division of machining plane is used to determine the plane to be machined, as well as the plane of tool radius compensation, the direction of tool length compensation and the plane of arc interpolation. Generally, the machining plane is defined at the beginning of the program; When using the tool radius compensation command G41 / G42, the machining plane must be defined so that the control system can correct the tool length and radius. The machining center has a default machining plane, which is XY plane. G17 can be omitted. Otherwise, G17 and G18 cannot be omitted< (1) programming format. G0 X__ Y__ Z__
(2) meaning: X__ Y__ Z__: The coordinates of the end point in the rectangular coordinate system
G00 can be used to quickly move the tool to the workpiece surface or tool change point; This instruction is not suitable for workpiece processing. When executing the G00 command, the tool moves as fast as possible (fast). This fast moving speed is defined for each axis in the machine parameters, but it is regulated by the feed speed adjustment switch< (1) programming format: G1 X__ Y__ Z__ F__
(2) meaning
x, y, Z: end point coordinates in rectangular coordinate system
F: feed speed, unit: mm / min
G1 command can move along any straight line parallel to the coordinate axis, inclined to the coordinate axis or space. Linear interpolation can process 3D surface and groove. The target point can be input in Cartesian coordinate system or polar coordinate system. The tool moves from the current starting point to the programming target point along a straight line with the feed speed F. along this path, the workpiece is machined
G1 is the mode command, and the spindle speed s and spindle steering m3 / M4 must be specified before machining< 7. G2 / G3 / CIP circular interpolation instruction
(1) programming format< br />1G2/G3 X—— Y—— Z—— I—— J—— K—— < br />2CIP X—— Y—— Z—— I1=—— J1=—— K1=——
(2) meaning
G2: the tool moves clockwise along the arc
G3: the tool moves along the arc in a counterclockwise direction
CIP: circular interpolation through the middle point
X-Y-Z: end point in rectangular coordinate system
i-j-k: coordinates of arc center point in rectangular coordinate system (in X, y, z direction)
I1 = - J1 = - K1 = -: coordinates of arc midpoint in rectangular coordinate system (in X, y and Z directions respectively)
note: when programming with radius R method, if the center angle of machining arc is less than 180 degrees, R is followed by a positive value of arc radius. If the center angle of machining arc is greater than 180 degrees, R is followed by a negative value of arc radius. When machining a whole circle, the radius R method cannot be used, but the specified center method must be used< 8. G94 / g95 feed speed control command
(1) G94: determine the unit of feed speed as M / min, inches / min, degrees / min, which is the mode command
(2) g95: the unit of determining the feed speed is mm / R and inches / R, which is related to the spindle speed and is the mode command
(3) f: determine the feed speed value, the specific unit is determined by G94 / g95, which is the mode command< 9. G41 / G42 / G40 tool radius compensation command
G40: cancel tool radius compensation
G41: the tool radius compensation is activated, and the tool is on the left side of the workpiece contour in the cutting direction
G42: tool radius compensation is activated, and the tool is on the right side of the workpiece contour when viewed along the cutting direction
7. Unknown_Error
8. Unknown_Error
Hot content
