Difference between revisions of "Internal/concave Path Tool Radius Compensation Example G41/G42"

From Dynomotion

Jump to: navigation, search
(Internal/concave Path Tool Radius Compensation Example G41/G42)
 
(Fanuc vs EMC/NIST Radius Compensation Entry Move Styles)
 
Line 9: Line 9:
  
 
( Tool Table should contain:          )<br />( Slot 1 Length 0.000 Diam 0.500 )<br /><br />G49 G40 G54<br />G20  (inches mode)<br /><br />G0 x1y0z0 (Path with no compensation) <br />T1 M6<br />F120<br />G1X4<br />G3X5Y1I0J1<br />G1Y4<br />G3X4Y5I-1J0<br />G1X1<br />G3X0Y4I0J-1<br />G1Y1<br />G3X1Y0I1J0<br /><br />G0 x2y3z0 <br />G41 D1 (Tool #1 Radius comp Left of contour) <br />F60<br />G1X2Y1<br />G3X3Y0I1J0<br />G1X3Y0<br />G1X4<br />G3X5Y1I0J1<br />G1Y4<br />G3X4Y5I-1J0<br />G1X1<br />G3X0Y4I0J-1<br />G1Y1<br />G3X1Y0I1J0<br />G1X3<br />G40<br />G0X2y3z0<br />M30
 
( Tool Table should contain:          )<br />( Slot 1 Length 0.000 Diam 0.500 )<br /><br />G49 G40 G54<br />G20  (inches mode)<br /><br />G0 x1y0z0 (Path with no compensation) <br />T1 M6<br />F120<br />G1X4<br />G3X5Y1I0J1<br />G1Y4<br />G3X4Y5I-1J0<br />G1X1<br />G3X0Y4I0J-1<br />G1Y1<br />G3X1Y0I1J0<br /><br />G0 x2y3z0 <br />G41 D1 (Tool #1 Radius comp Left of contour) <br />F60<br />G1X2Y1<br />G3X3Y0I1J0<br />G1X3Y0<br />G1X4<br />G3X5Y1I0J1<br />G1Y4<br />G3X4Y5I-1J0<br />G1X1<br />G3X0Y4I0J-1<br />G1Y1<br />G3X1Y0I1J0<br />G1X3<br />G40<br />G0X2y3z0<br />M30
 +
 +
 +
 +
==Fanuc vs EMC/NIST Radius Compensation Entry Move Styles==
 +
A new Fanuc Style Radius Compensation Entry Move has been added.  To Select which type of Entry move should be performed add a setting to the GCode Interpreter Settings file as shown below.  KMotionCNC specifies the GCode Interpreter Settings File to be used in the [http://dynomotion.com/Help/KMotionCNC/ToolSetupScreenFiles.htm#Setup_File Tool Setup | Setup Files] section.  The first value after comp_entry_style will be the selected type.
 +
 +
 +
comp_entry_style        FANUC_COMP_ENTRY_STYLE        EMC_COMP_ENTRY_STYLE
 +
 +
 +
 +
The Original EMC Entry Style type performed an immediate movement to a tangent point as shown below:
 +
 +
 +
[[File:emc_comp_entry_style.png|none|link=]]
 +
 +
 +
 +
The New Fanuc TYPE A Entry Style delays movement of the entry move until a successive line or arc is specified.  It then performs the entry move to a position tangent to the beginning of the successive line or arc.  No gouging warnings or errors are generated.  The system assumes it is proper to move to the tangent point.  Only Type A is currently supported.
 +
 +
[[File:fanuc_comp_entry_style.png|none|link=]]
 +
 +
This GCode utilizes the Fanuc Entry style to perform a tight helix bore.  The code was designed for a nominal tool diameter of 0.194 inches
 +
 +
 +
(T1 D=0.194 CR=0. - ZMIN=-0.2 - flat end mill)<br />G90 G94 G17 G40<br />G20<br />G53 G0 Z0.<br /><br />(Bore2)<br />T1 M6<br />S2500 M3<br />G56<br />M8<br />G0 X0.563 Y0.<br />G43 Z0.18 H1<br />G1 Z0.1 F10.<br />G41 X0.5285 Y0.122 D1<br />G3 X0.4065 Y0. I0. J-0.122<br />X0.4071 Y0.0136 Z-0.0479 I0.1565 J0.<br />X0.7194 Y-0.0068 Z-0.124 I0.1559 J-0.0136<br />X0.4065 Y0. Z-0.2 I-0.1564 J0.0068<br />X0.7195 I0.1565 J0.<br />X0.4065 I-0.1565 J0.<br />X0.5285 Y-0.122 I0.122 J0.<br />G1 G40 X0.563 Y0.<br />G0 Z0.18<br /><br />M5<br />M9<br />G53 G0 Z0.<br />G53 X0. Y0.<br />M30
 +
 +
 +
Here is a Plot of the result:
 +
 +
[[File:HelixBore.png|none|link=]]
 +
 +
 +
Orthogonal Top View
 +
 +
[[File:HelixBoreTopView.png|none|link=]]

Latest revision as of 21:21, 16 November 2016

Internal/concave paths must not be angled as it is impossible for a round tool to follow such a path without gouging.  Instead arcs must be used with a radius larger than the tool radius.  Here is a GCode Example showing a possible internal path and the resulting tool center path with tool radius compensation turned on.

Note a carefully chosen entry move with a convex corner must be made to avoid gouging the path.

InternalCountourG41.png


The G Code:

( Tool Table should contain:          )
( Slot 1 Length 0.000 Diam 0.500 )

G49 G40 G54
G20  (inches mode)

G0 x1y0z0 (Path with no compensation)
T1 M6
F120
G1X4
G3X5Y1I0J1
G1Y4
G3X4Y5I-1J0
G1X1
G3X0Y4I0J-1
G1Y1
G3X1Y0I1J0

G0 x2y3z0
G41 D1 (Tool #1 Radius comp Left of contour)
F60
G1X2Y1
G3X3Y0I1J0
G1X3Y0
G1X4
G3X5Y1I0J1
G1Y4
G3X4Y5I-1J0
G1X1
G3X0Y4I0J-1
G1Y1
G3X1Y0I1J0
G1X3
G40
G0X2y3z0
M30


Fanuc vs EMC/NIST Radius Compensation Entry Move Styles

A new Fanuc Style Radius Compensation Entry Move has been added.  To Select which type of Entry move should be performed add a setting to the GCode Interpreter Settings file as shown below.  KMotionCNC specifies the GCode Interpreter Settings File to be used in the Tool Setup | Setup Files section.  The first value after comp_entry_style will be the selected type.


comp_entry_style        FANUC_COMP_ENTRY_STYLE        EMC_COMP_ENTRY_STYLE


The Original EMC Entry Style type performed an immediate movement to a tangent point as shown below:


emc comp entry style.png


The New Fanuc TYPE A Entry Style delays movement of the entry move until a successive line or arc is specified.  It then performs the entry move to a position tangent to the beginning of the successive line or arc.  No gouging warnings or errors are generated.  The system assumes it is proper to move to the tangent point.  Only Type A is currently supported.

fanuc comp entry style.png

This GCode utilizes the Fanuc Entry style to perform a tight helix bore.  The code was designed for a nominal tool diameter of 0.194 inches


(T1 D=0.194 CR=0. - ZMIN=-0.2 - flat end mill)
G90 G94 G17 G40
G20
G53 G0 Z0.

(Bore2)
T1 M6
S2500 M3
G56
M8
G0 X0.563 Y0.
G43 Z0.18 H1
G1 Z0.1 F10.
G41 X0.5285 Y0.122 D1
G3 X0.4065 Y0. I0. J-0.122
X0.4071 Y0.0136 Z-0.0479 I0.1565 J0.
X0.7194 Y-0.0068 Z-0.124 I0.1559 J-0.0136
X0.4065 Y0. Z-0.2 I-0.1564 J0.0068
X0.7195 I0.1565 J0.
X0.4065 I-0.1565 J0.
X0.5285 Y-0.122 I0.122 J0.
G1 G40 X0.563 Y0.
G0 Z0.18

M5
M9
G53 G0 Z0.
G53 X0. Y0.
M30


Here is a Plot of the result:

HelixBore.png


Orthogonal Top View

HelixBoreTopView.png