
6.MACRO EXECUTOR FUNCTION B-63943EN-2/01
- 220 -
6.8 CUTTING TIME, DISTANCE READ AND PRESET
FUNCTIONS
Control variables can be used to read and preset the cutting time and
cutting distance. This function can be used to manage the service life
of tools.
Reading and presetting the cutting time (#8553)
By using #8553, the cumulative cutting time parameters (Nos.6753
and 6754) can be read and preset. The value of #8553 is the sum of
the parameters (Nos. 6753 and 6754) and its unit is the hour as with
the macro variable (#3002). The clock precision is 16 msec.
When a preset operation is performed, a value less than one minute is
discarded, and the values of the parameters (Nos. 6753 and 6754) are
also preset.
Example 1
#100=#8553 ; → The cutting time is read into #100.
(When #100=5.755, the cutting time
is 5 hours, 45 minutes, and 18
seconds.)
#8553=0 ; → However, cutting time is preset to 0;
the related parameters (parameter
Nos. 6753 and 6754) are also
preset to 0.
Example 2
#8553=5.755 ; → A time period less than 1 minute is
set to 0. So, 5.75 is set in #8553.
In this case, 0 is set in parameter
(No. 6753), and 345 is set in
parameter (No. 6754).
NOTE
Switching on the power does not reset #8553 to 0.
Reading and presetting a cutting distance (#8554)
#8554 adds up the cutting distance specified in commands such as
G01 (linear interpolation), G02, and G03 (circular interpolation).
The unit depends on the setting of bit 0 (CUNIT) of compile
parameter (No. 9160) as follows:
=0: Integer value. (In the case of IS-B/metric input,
#8554=1000 for a cutting distance of 1.0 mm)
=1: Real value. (In the case of IS-B/metric input, #8554=1.0
for a cutting distance of 1.0 mm)
Their measurement unit is the least input increment for the
reference axis.
Writing a value to #8554 enables the cutting distance to be preset.