
E. FANUC Super CAP T/CAP II T MACRO
COMPILER/EXECUTOR (Series 16/18)
and Super Capi T Macro Compiler/
EXECUTOR (Series 16i/18i/21iT)
B–61803E–1/10
APPENDIX
278
3. Reads the variables corresponding to data to be referenced if
the tool is registered.
! If the tool cannot be found, 99 is set in #9998.
(d) When a tool ID number is to be searched for using tool type
number information and tool data
#9999 = (tool type number) ; –1.
#9999 = (control symbol number) ; –2.
#99?? = **.* ; –3.
#9999 = (control symbol number) ; –4.
#99?? = **.* ; –5.
#9999 = – 1;–6.
#????? = #9998 ; –7.
1. Sets the tool type number of a tool to be referenced.
2., 4. Writes control symbol numbers specifying an ordinal
relationship in #9999.
3., 5. Writes search reference data to the corresponding macro
variables.
6. Writes the setting completion code (– 1) to #9999 upon
completion of the setting of search reference data.
7. Allows the desired tool ID number to be obtained by
reading #9998.
! If there is no tool that matches specified conditions, 99 is
setin #9998.
Control symbol numbers and tool data need to be specified
in pairs. Be sure to specify a control symbol number first,
then specify tool data. Up to five pairs can be specified. If
a control symbol number is missing and the next tool data is
read, or tool data is missing and the next control symbol
number is read, the error code (99) is set in #9998. When
several tools match specified conditions, the tool that has the
smallest tool ID number is searched for.
(e) Examples of execution
Assume that the following tools are registered:
101 Outer surface machining 451 Outer surface grooving
102 Outer surface machining 452 Outer surface grooving
103 Outer surface machining 453 Outer surface grooving
104 Outer surface machining 601 Drilling
151 Inner surface machining 651 Tapping
201 End facing 701 Center drilling
251 External threading
(i) When the data of a certain tool is to be referenced
[The cutting edge angle of the tool ID number 251 (external
threading) is read into #10000.]
#9999 = 251 ;
Writes the tool ID number 251 to #9999.
#10000 = #9907 ;