
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)
364
(iii) When the initial setting data of the program currently displayed
is to be read
#????? = # [#9891 + (offset number)] –1.
1. Reads the offset added to #9891 containing the first macro
variable number of the initial setting data of the program
currently displayed.
(iv) Examples of execution
D When a process being edited is to be searched for using the
process data and its offset
[A process of bar outer surface rough machining is searched
for which uses a tool with the tool ID number 101.]
#9895 = 0 ; Search mode (editing program)
#9899 = –1 ; Completion code (to set #9898 = 99)
#9892 = 1 ; Bar machining
#9893 = 3 ; Type of machining
#9892 = 1 ; Rough machining
#9893 = 6 ; Machining cycle
#9892 = 101 ; Tool ID number 101
#9893 = 14 ; Tool ID number
#9899 = –1 ; Completion code
#10500 = #9898 ; Loads the first macro variable number
of a found process into #10500
D When the process data of the process currently displayed is
to be read
[The machining type of the process currently displayed is
read.]
#12345 = # [#9890 + 3]
The internal code representing the machining type of the
process currently displayed is read into #12345.