
Edit
Apprv.Desig.
Sheet
Title
Draw
No.
7
11
Date
Design
Descri
tion
Date
FANUC Series16i/18i/21i–MB/TB
Automatic operation and temporary
storage of external program
A-79189EN
03.Sep.’03
3.Example
In case that the parameters are set as follows.
No.12011 = 7,000
No.12012 = 7,999
:
M298 P7000 ; Request to register O7000 from I/O device into
the temporary storage
memory.
:
G01 X_; These blocks are executed while O7000 is
X_; been registered by M298
command.
X_;
M297 ; Wait until registration of O7000 is completed
M98 P7000 ; Execution of registered O7000
:
If the program O7000 is already registered into the temporary storage memory,
M298 command is ignored. If the registration of the program O7000 is always
necessary, it is necessary to do the M296 command before M298 command.
If the O7000 is called before the program registration is completed, a P/S 78
alarm is caused.