366
MACROS
96-8000
June 1999
Global Variables
Global variables are variables that are accessible at all times. There is only one copy of each global variable.
Global variables occur in two ranges: 100..199 and 500..599. The global variables remain in memory when
power is turned off. They are not cleared as in the FANUC controls.
System Variables
System variables give the programmer the ability to interact with a variety of control parameters and settings.
By setting a system variable, the function of the control can be modified or altered. By reading a system
variable, a program can modify its behavior based on the value in the variable. Some system variables have a
READ ONLY status. This means that they can not be modified by the programmer. A brief table of currently
implemented system variables follows with an explanation of their use.
VARIABLES USAGE
#0 Not a number (read only)
#1-#33 Macro call arguments
#100-#199 General purpose variables saved on power off
#500-#699 General purpose variables saved on power off
#700-#749 Hidden variables for internal use only.
#800-#899 General purpose variables saved on power off
#1000-#1031 32 discrete inputs (read only)
#1032-#1063 32 additional discrete inputs for expansion (read only)
#1080-#1087 Raw analog to digital inputs (read only)
#1090-#1097 Filtered analog to digital inputs (read only)
#1094 Spindle load with OEM spindle drive (read only)
#1098 Spindle load with Haas vector drive (read only)
#1100-#1131 32 discrete outputs
#1132-#1155 24 extra relay outputs via multiplexed output
#2000-#2099 Tool length offsets
#2200-#2299 Tool length wear
#2400-#2499 Tool diameter/radius offsets
#2600-#2699 Tool diameter/radius wear
#3000 Programmable alarm
#3001 Millisecond timer
#3002 Hour timer
#3004 Override control
#3006 Programmable stop with message
#3011 Year, month,day
#3012 Hour, minute, second
#3020 Power on timer (read only)
#3021 Cycle start timer (read only)
#3022 Feed timer (read only)
#3023 Present part timer (read only)
#3024 Last complete part timer (read only)
#3025 Previous part timer (read only)