
5. SETTING AND REGISTERING DATA FOR EACH CNC MACHINE B-63364EN/03
- 112 -
The monitor condition is as follows:
The program end condition with the monitor values of the STL and
SPL signals is described below. (For an explanation of the end
condition, see the figure under "Monitor items and log output items
to be registered," shown at the beginning of this section.)
Falling of the STL signal (1 → 0)
and
Other than the rising of the SPL signal (0 → 1)
This is translated into the following conditional expression because
the STL signal is monitored in cell F6 and the SPL signal is
monitored in cell F7.
= AND(F_ISOFF(F6),NOT(F_ISON(F7)))
The figure below shows the monitor item registered for the end time.
7. Register the monitor item for monitoring the execution time of the main
program.
In this example, the execution time is determined from the start and end
times that have already been monitored. The execution time can be
obtained by subtracting the start time from the end time.
Use item type "Calculate," which obtains a calculated value.
The details of the execution time to be monitored are:
Item type : Calculate
Monitor item name: "Executing Time"
Output value : End Time – Start Time
NOTE
If the execution time is determined as in this example, the correct
execution time cannot be obtained if the start and end times are on
different dates.
To determine the execution time correctly, corrective action is
required such as taking the dates into consideration.