
B–61803E–1/10
APPENDIX
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)
363
(Data format) = 300001 : The data represents a tool ID number.
Soft keys and numeric keys can be used
for data input.
(Data format) = 300002 : The data represents a T code. Soft keys
and numeric keys can be used for data
input.
(d) Examples of command format
(i) When a process is to be searched for using the process data and
offset
#9895 = (search mode) ; –1.
#9892 = (process data) ; –2.
#9893 = (offset number) ; –3.
#9892 = (process data) ; –4.
#9893 = (offset number) ; –5.
#9899 = –1;–6.
#????? = #9898 ; –7.
1. Sets #9895=0 when an editing program is searched for, or
sets #9895 = 1 when an executable program is searched for.
2., 4. Sets reference data used for process search operation in
#9892.
3., 5. Sets the offset number in #9893.
6. Enters the completion code.
7. Reads the first macro variable number, set in #9898, of a
found process.
NOTE
1 Be sure to specify #9892 first, then specify #9893. A pair
of these two variables makes up a command. Up to five
pairs can be specified until –1 is set in #9899. If more than
five pairs are specified, those pairs beyond the first five are
ignored. If the number of specified #9892 variables does
not match the number of specified #9893 variables, the
error code (99) is set in #9898.
2 Process search operation starts with the process
immediately after the process set in #9898. So, in order to
perform process search operation starting with the first
process, once perform a search operation that causes an
error intentionally to set #9898=99.
(ii) When the process data of the process currently displayed is to be
read
#????? = # [#9890 + (offset number)] –1.
1. Reads the offset added to #9890 containing the first macro
variable number of the process currently displayed.