104
Macros
96-8000 rev R June 2007
Here, the X and brackets stand-alone and are individually editable items. It is possible, through editing, to delete the
entire expression and replace it with a floating-point constant.
G1 G90 X 0 Y3.0 ; WRONG
The above block will result in an alarm at runtime. The correct form looks as follows:
G1 G90 X0 Y3.0; CORRECT
Note that there is no space between the X and the Zero (0). REMEMBER when you see an alpha character standing
alone it is an address expression.
FANUC-STYLE MACRO F EATURES NOT I NCLUDED IN HAAS CNC CONTROL
This section lists the FANUC macro features that are not available on the Haas control.
M Aliasing Replace G65 Pnnnn with Mnn PROGS 9020-9029.
G66 Modal call in every motion block
G66.1 Modal call in every motion block
G67 Modal cancel
M98 Alaising, T code PROG 9000, VAR #149, enable bit
M98 Aliasing, S Code PROG 9029, VAR #147, enable bit
M98 Aliasing, B Code PROG 9028, VAR #146, enable bit
SKIP/N N=1..9
#3007 Mirror image on flag each axis
#4201-#4320 Current block modal data
#5101-#5106 Current servo deviation
Names for Variables for Display Purposes
ATAN [ ]/[ ] Arctangent, FANUC version
BIN [ ] Conversion from BCD TO BIN
BCD [ ] Conversion from BIN TO BCD
FUP [ ] Truncate fraction ceiling
LN [ ] Natural logarithm
EXP [ ] Bade E Exponentiation
ADP [ ] Re-Scale variable to whole number
BPRNT [ ]
The following can be used as alternative methods for achieving the same results for a few of the unavailable FANUC
macro features.
GOTO-nnnn
Searching for a block to jump in the negative direction, i.e. backwards through a program, is not necessary if you
use unique N address codes.
A block search is made starting from the current block being interpreted. When the end of the program is reached,
searching continues from the top of the program until the current block is encountered.