FANUC Series 16/18/160/180-Model C for Lathe Operator Manual

PROGRAMMING
16. CUSTOM MACRO
B–62754EN/01
279
System variables can be used to read and write internal NC data such as
tool compensation values and current position data. Note, however, that
some system variables can only be read. System variables are essential
for automation and general–purpose program development.
Signals can be exchanged between the programmable machine controller
(PMC) and custom macros.
Table 16.2(a) System variables for interface signals
Variable
number
Function
#1000–#1015
#1032
A 16–bit signal can be sent from the PMC to a custom
macro. Variables #1000 to #1015 are used to read a sig-
nal bit by bit. Variable #1032 is used to read all 16 bits of
a signal at one time.
#1100–#1115
#1132
A 16–bit signal can be sent from a custom macro to the
PMC. Variables #1100 to #1115 are used to write a signal
bit by bit. Variable #1132 is used to write all 16 bits of a
signal at one time.
#1133 Variable #1133 is used to write all 32 bits of a signal at one
time from a custom macro to the PMC.
Note, that values from –99999999 to +99999999 can be
used for #1133
.
For detailed information, refer to the connection manual (B–62443E–1).
When the system does not differentiate tool geometry compensation from
tool wear compensation, use variable numbers for wear compensation.
Table 16.2(b) System variables for tool compensation memory C
Compensation
n mber
X axis
compensation
value
Z axis
compensation
value
Tool nose radius
compensation
value
Imaginary
tool nose
ii
Y axis
compensation
value
n
u
mber
Wear
Geome-
try
Wear
Geome-
try
Wear
Geome-
try
position T
Wear
Geome-
try
1
:
49
:
64
#2001
:
:
:
#2064
#2701
:
#2749
#2101
:
:
:
#2164
#2801
:
#2849
#2201
:
:
:
#2264
#2901
:
:
:
#2964
#2301
:
:
:
#2364
#2401
:
#2449
#2451
:
#2499
Table 16.2(c) System variables for 99 tool compensation values
Compensation
n mber
X axis
compensation
value
Z axis
compensation
value
Tool nose radius
compensation
value
Imaginary
tool nose
ii
Y axis
compensation
value
n
u
mber
Wear
Geome-
try
Wear
Geome-
try
Wear
Geome-
try
position T
Wear
Geome-
try
1
:
:
99
#10001
:
:
#10099
#15001
:
:
#15099
#11001
:
:
#11099
#12001
:
:
#12099
#12001
:
:
#12099
#17001
:
:
#17099
#13001
:
:
#13099
#14001
:
:
#14099
#19001
:
:
#19099
16.2
SYSTEM VARIABLES
Explanations
D Interface signals
D Tool compensation
values

Leave a Reply

Your email address will not be published. Required fields are marked *