
PROGRAMMING
B–63514EN/01
15. CUSTOM MACRO
295
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 15.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 mac-
ro. Variables #1000 to #1015 are used to read a signal 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–63503EN–1).
Tool compensation values can be read and written using system variables.
Table 15.2 (b) System variables for tool compensation memory C
Tool length compensation (H)
Cutter compensation
(D)
Compensation
number
Geometric
compensation
Wear
compensation
Geomet-
ric com-
pensation
Wear
com-
pensation
1
:
200
:
400
#11001(#2201)
:
#11201(#2400)
:
#11400
#10001(#2001)
:
#10201(#2200)
:
#10400
#13001
:
:
:
#13400
#12001
:
:
:
#12400
When the number of offset groups is 200 or less, #2001 to #2400 can also
be used.
15.2
SYSTEM VARIABLES
Explanations
D Interface signals
D Tool compensation
values