
B-63943EN-2/01 5.MACRO VARIABLES
- 101 -
5.8 CUSTOM MACRO SYSTEM VARIABLES (#1000 AND UP,
#100000 AND UP, #199999 AND UP)
All system variables that can be used in custom macros can be used in
execution macros, conversational macros, and auxiliary macros.
However, #10000 and up are used as P-CODE variables, and #20000
and up are used as extended P-CODE variables. So, system
variables #10000 and up are written and read by adding 100000 to the
system variable numbers.
#1000 corresponds to system variable #1000.
:
#9999 corresponds to system variable #9999.
#101000 corresponds to system variable #1000.
:
#109999 corresponds to system variable #9999.
#110000 corresponds to system variable #10000.
:
#199999 corresponds to system variable #99999.
* System variables #1000 to #9999 can be written and read
without changing the numbers.
Refer to
FANUC Series 30i/300i/300is-A User’s Manual (B-63944EN)
for details of system variables.
Caution
CAUTION
It is possible to specify system variables #3000,
#3003, #3004, and #3006 from conversational
macros and auxiliary macros. Use great caution
when specifying the variables because they affect
automatic operation.
Displaying an alarm message using variable #3000
Specifying variable #3000 from a conversational macro or auxiliary
macro places the CNC in the alarm state. On the alarm message
screen, the number of the specified macro alarm is displayed along
with the message. Placing the CNC in the alarm state causes
automatic operation to stop.
Specifying the variable from an execution macro has the same effect
as specifying it from a user program.