
2
Edit
pprvDesig.
Sheet
Title
Draw
No.
3
Date
Desig
Descri
tion
Date
FANUC Series16i /18i /21i-TA
ccess to P-Code Variables through
Custom Macro function.
A-76389E
2000.05.16
T.Saitoh
S.Isohata
1. Outline
This function enables Custom Macro function to read from or to write into P-code
Variables for Macro Executor.
2. Specification
In the Custom Macro function, P-Code Variables(#10000~) or expanded P-Code
Variables(#20000~) can be read out or write into after Parameter No.8570=1.
Otherwise the variables, used in the block after setting Parameter No.8570=0, are
regarded as the variables of Custom Macro function.
(Ex.1) Read out:
When P-Code Variable #10000 is set to “123.” and following Macro program is
commanded,
O0010;
#8570=1
#100=#10000;
the Custom Macro Variable #100 becomes “123.”.
(Ex.2) Write into:
The value “456.” is written into P-Code Variable #10001 by following Macro
program.
O0011;
#8570=1;
#10001=456.;
2.1 The detail of Parameter #8570
#8570=1: P-Code or expanded P-Code variables are read out or written into.
#8570=0: Custom Macro variables are read out or written into.
Parameter #8570 is valid while Macro Executor is effective.
If trying to set #8570 while Macro Executor is not effective, then P/S alarm 115 is
generated.