
B. EXAMPLES OF REGISTERING MONITOR ITEMS AND LOG OUTPUT ITEMS B-63364EN/03
- 178 -
2) Log data output of number and used time of each tool used in the program
The tool number is output starting at F0026 of the machine signal from
CNC to PMC with a long value. This tool number and used time are
monitored and output as log data.
The following explains the registered data on each line.
Line 6
The current value [I/O Type: 0] of the machine signal [Item Type:
Machine Signal] in the long value [Data Type: 3] starting at address
F0026 [Address: F0026] is obtained at each sampling [Condition:
None], and the obtained value is used as the output value [Output Value:
=E6] as is.
The name of this monitor item is "Tool No." [Item Name: Tool No.].
Line 7
The increment value [I/O Type: 1] of the time [Item Type: Time]
during which the monitored tool number in use is the same (no change)
[Condition: =NOT(F_ISCHG(F6))] is obtained, and the obtained value
is used as the output value [Output Value: =E7] as is.
The name of this monitor item is "Used Time" [Item Name: Used
Time].
Line 8
When the tool number changes [Condition: =F_ISCHG(F6)], the tool
number and used time [Output Value: =F6+F7] are additionally output
[I/O Type: 1] from cells A4 and B3 [Address: =A4+B3] of the sheet
named "Used Tool" [Item Name: Used Tool].