13. Program Support Functions
13.5 User Macro Specifications
341
Example of program for tool life management
(1) Normal
commands
#101 = #60001 ; ............. Reads the number of registered tools.
#102 = #60002 ; ............. Reads the life current value.
#103 = #60003 ; ............. Reads the tool selection No.
#60000 = 10 ; ................. Designates the group No. of the life data
to be read.
#104 = #60004 ; ............. Reads the remaining number of registered
tools in group 10.
#105 = #60005 ; ............. Reads the signal being executed in group 10.
#111 = #61001 ; ............. Reads the group 10, #1 tool No.
#112 = #62001 ; ............. Reads the group 10, #1 status.
#113 = #61002 ; ............. Reads the group 10, #2 status.
%
Designated
program No. is
valid until reset.
(2) When group No. is not designated.
#104 = #60004 ; ........... Reads the remaining number of registered tools in the group
registered first.
#111 = #61001 ; ........... Reads the #1 tool No. in the group registered first.
%
(3) When non-registered group No. is designated. (Group 9999 does not exist.)
#60000 = 9999 ; ........... Designates the group No.
#104 = #60004 ; ........... #104 = -1.
(4) When registration No. not used is designated. (Group 10 has 15 tools)
#60000 = 10 ; ............... Designates the group No.
#111 = #61016 ; ........... #101 = -1.
(5) When registration No. out of the specifications is designated.
#60000 = 10 ;
#111 = #61017 ; ........... Program error (P241)
(6) When tool life management data is registered with G10 command after group No. is
designated.
#60000 = 10 ; .........Designates the group No.
G10 L3 ; ...................Starts the life management data registration.
P10 LLn NNn ; ........10 is the group No., Ln is the life per tool,
Nn is the method.
TTn ; .......................Tn is the tool No.
:
G11 ; ......................Registers the group 10 data with the G10
command.
#111 = #61001 ; .....Reads the group 10, #1 tool No.
G10 L3 ; ...................Starts the life management data registration.
P1 LLn NNn ; ..........1 is the group No., Ln is the life per tool,
Nn is the method.
TTn ; .......................Tn is the tool No.
:
G11 ; ........................Registers the life data with the G10
command.
(The registered data is deleted.)
#111 = 61001 ; .......Group 10 does not exist. #201 = –1.
The group 10 life data
is registered.
The life data other than
group 10 is registered.