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 three ranges: 100-199,
500-699 and 800-999. The global variables remain in memory when power is
turned off.
Occasionally, there have been some macros written for factory installed options
that use the global variables. For example, probing, pallet changers, etc. When
using global variables, be sure they are not in use by another program on the
machine.
System Variables
System variables give the programmer the ability to interact with a variety of
control conditions. By setting a system variable, the function of the control can
be modied. 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 the programmer cannot modify them. 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-#999 General-purpose variables saved on power off
#1000-#1063 64 discrete inputs (read only)
#1064-#1068 Maximum axis loads for X, Y, Z, A, and B-axes respectively
#1080-#1087 Raw analog to digital inputs (read only)
#1090-#1098 Filtered analog to digital inputs (read only)
#1094 Coolant Level
#1098 Spindle load with Haas vector drive (read only)
#1100-#1139 40 discrete outputs
#1140-#1155 16 extra relay outputs via multiplexed output
#1264-#1268 Maximum axis loads for C, U, V, W, and T-axes respectively
#1601-#1800 Number of Flutes of tools #1 through 200
#1801-#2000 Maximum recorded vibrations of tools 1 through 200
#2001-#2200 Tool length offsets
#2201-#2400 Tool length wear
#2401-#2600 Tool diameter/radius offsets
#2601-#2800 Tool diameter/radius wear
#3000 Programmable alarm
#3001 Millisecond timer
#3002 Hour Timer
#3003 Single block suppression
#3004 Override control
#3006 Programmable stop with message
#3011 Year, month, day