36996-8000
MACROS
June 1999
The number of outputs available to the user and where user M codes are mapped is model dependent. If your
control is not equipped with the new M-code relay board, then M21 through M28 will be mapped from #1124-
#1131. If you have equipment with the M-code relay board installed (Parameter 209 bit MCD RLY BRD is set to
1) then M21 through M28 will be mapped to #1132-#1139.
You should always test or dry run programs that have been developed for macros that is running with new
hardware.
Tool Offsets
HAAS macros have been implemented with FANUC control memory C option in mind. This means that each
tool offset has a length (H) and radius (D) along with associated wear values.
#2001-#2100 H geometry offsets (1-100) for length.
#2200-#2300 H geometry wear (1-100) for length.
#2401-#2500 D geometry offsets (1-100) for diameter.
#2601-#2700 D geometry wear (1-100) for diameter.
Programmable Messages
#3000 ALARMS can be programmed. A programmable alarm will act just like HAAS internal alarms. An
alarm is generated by setting the macro variable #3000 to a number between 1 and 999.
#3000= 15 (MESSAGE PLACED INTO ALARM LIST) ;
When this is done, ALARM flashes in the lower right hand corner of the display and the text in the next com-
ment is placed into the alarm list. The alarm number (in this example, 15) is added to 1000 and used as an
alarm number. If an alarm is generated in this manner all motion stops and the program must be reset to
continue. Programmable alarms can always be identified in alarm history because the alarm numbers range
between 1000 and 1999.
The first 34 characters of the comment will be used for the alarm message.
Timers
HAAS macros supports access to two timers. These timers can be set to a value by assigning a number to the
respective variable. A program can then later read the variable and determine the time passed since the timer
was set. Timers can be used to emulate dwell cycles, determine part to part time or wherever time dependent
behavior is desired.
#3001 MILLISECOND TIMER - The millisecond timer is updated every 20 milliseconds and thus activities
can be timed with an accuracy of only 20 milliseconds. At POWER ON, the millisecond timer is
reset. The timer has a limit of 497 days. The whole number returned after accessing #3001 repre
sents the number of milliseconds.