13. CUSTOM MACRO
System variables can be used to read and write internal NC data such as
cutter 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 13.2 (a) System variables for interface signals
A 16–bit signal can be sent from the PMC to a custom
macro. 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.
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 (function)
Tool compensation values can be read and written using system variables.
Usable variable numbers depend on the number of compensation pairs,
whether a distinction is made between geometric compensation and wear
compensation, and whether a distinction is made between tool length
compensation and cutter compensation. When the number of compensation
pairs is not greater than 200, variables #2001 to #2400 can also be used.
Table 13.2 (b) System variables for tool compensation memory A
Compensation number System variable
Table 13.2 (c) System variables for cutter compensation memory B
Geometry compensation Wear compensation
D Interface signals
D Tool compensation