Inch/metric dimensions (G70, G71, G700, G710)
G70 dimensions in inches
Command | G70 |
Cancellation | G71, G700 or G710 |
Set the unit for lengths to inch. The new unit also applies to the current block. G70
is equivalent to the call unitLengthSet(unitLengthInch)
. The unit for velocity is not affected. See UnitLength and G71 for details.
G71 dimensions in millimeters
Command | G71 |
Cancellation | G70, G700 or G710 |
Set the unit for lengths to millimeter. The new unit also applies to the current block. G71
is equivalent to the call unitLengthSet(unitLengthMillimeter)
. The unit for velocity is not affected. See UnitLength for details.
Example:
In Figure “ExampleG70G71” the path of the following example is shown, which uses the unit millimeter.
- The first line of the program sets the unit for lengths to inch. This unit is used in the same line to interprete
X2
in inch. Thus, the pathN10
ends at position [50.8
mm,0
mm,0
mm]. - Accordingly, the next line moves the tool along
N20
towards [50.8
mm,25.4
mm,0
mm]. - The last line sets the unit to millimeter. Therefore, the path
N30
ends at position [80
mm,25.4
mm,0
mm]. Accordingly, the segmentN30
is a horizontal line.
N10 G01 X2 G70 F6000
N20 G01 Y1
N30 G01 X80 Y25.4 G71
M02
Figure “ExampleG70G71”.
G700 dimensions in inches with calculation of the feed
Command | G700 |
Cancellation | G70, G71 or G700 |
Like G70
, but also applies to the interpretation of velocity. The new unit comes into effect in the current block. G700
is equivalent to the calls unitLengthSet(unitLengthInch)
and unitVelocitySet(unitLengthInch,unitTimeMinute)
.
G710 dimensions in millimeters with calculation of the feed
Command | G710 |
Cancellation | G70, G71 or G700 |
Like G71
, but also applies to the interpretation of velocity. The new unit comes into effect in the current block. G710
is equivalent to the calls unitLengthSet(unitLengthMillimeter)
and unitVelocitySet(unitLengthMillimeter,unitTimeMinute)
.
Example:
The path of the following example is shown in Figure “ExampleG700G710”.
- The first line defines a linear movement to
[1 in, 1 in, 0 in]
with a velocity of100 in/min
. - The second line sets the length unit to
mm
, but does not affect the velocity unit. It defines a movement to[30 mm, 10 mm, 0 mm]
with a velocity of50 in/min
. - The last line also sets the velocity unit to
mm/min
. Therefore, there is a movement to[40 mm, 20 mm, 0 mm]
with a velocity of1000 mm/min
.
N10 G700 G01 X1 Y1 F100
N20 G71 G01 X50 Y10 F50
N30 G710 G01 X80 Y20 F1000
Figure “ExampleG700G710”.