Access to P-Code Variables through Custom Macro function Additional Manual Page 2

Additional Manual
2
Edit
A
pprvDesig.
Sheet
Title
Draw
No.
3
Date
Desig
Descri
p
tion
Date
FANUC Series16i /18i /21i-TA
A
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.

Contents Summary of Access to P-Code Variables through Custom Macro function Additional Manual

  • Page 1FANUC Series 16i /18i /21i –MA / TA Specification Access to P-Code Variables through Custom Macro function FANUC Series16i /18i /21i-TA Title Access to P-Code Variables through Custom Macro function. Draw No. A-76389E Edit Date Desig Description Sheet 1/3 Date 2000.05.16 Desig. T.Saitoh Apprv S.Isoh
  • Page 21. 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
  • Page 32.2 Notice (1) When power ON, the value of #8570=0, and value, 0 or 1, of this parameter is not changed by RESET operation. (2) The area of P-Code variables and expanded P-Code variables are decided by compile parameter No.9037,9044 of Macro Executor. (3) P-code variable number which can be read or