PROGRAMMING
B–64144EN/01
8. COORDINATE VALUE
AND DIMENSION
97
Numerical values can be entered with a decimal point. A decimal point
can be used when entering a distance, time, or speed. Decimal points can
be specified with the following addresses:
X, Y, and Z.
There are two types of decimal point notation: calculator–type notation
and standard notation.
When calculator–type decimal notation is used, a value without decimal
point is considered to be specified in millimeters inch,or deg. When
standard decimal notation is used, such a value is considered to be
specified in least input increments.Select either calculator–type or
standard decimal notation by using the DPI bit (bit 0 of parameter
3401).Values can be specified both with and without decimal point in a
single program.
Program command
Pocket calculator
type decimal point
programming
Standard type decimal
point programming
X1000
Command value without
decimal point
1000mm
Unit : mm
1mm
Unit : Least input increment
(0.001 mm)
X1000.0
Command value with
decimal point
1000mm
Unit : mm
1000mm
Unit : mm
WARNING
In a single block, specify a G code before entering a value. The position of decimal point may
depend on the command.
Examples:
G20; Input in inches
X1.0 G04; X1.0 is considered to be a distance and processed as X10000. This command
is equivalent to G04 X10000. The tool dwells for 10 seconds.
G04 X1.0; Equivalent to G04 X1000. The tool dwells for one second.
NOTE
1 Fractions less than the least input increment are truncated.
Examples:
X1.23456; Truncated to X1.234 when the least input increment is 0.001 mm.
Processed as X1.2345 when the least input increment is 0.0001 inch.
2 When more than eight digits are specified, an alarm occurs. If a value is entered with a decimal
point, the number of digits is also checked after the value is converted to an integer according
to the least input increment.
Examples:
X1.23456789; P/S alarm 0.003 occurs because more than eight digits are specified.
X123456.7; If the least input increment is 0.001 mm, the value is converted to integer
123456700. Because the integer has more than eight digits, an alarm occurs.
8.4
DECIMAL POINT
PROGRAMMING
Explanations
Examples