Macro Variables Table

Next Generation Control Mill Operator's Manual

The Online Interactive Operator's Manual is currently available in English only.

A PDF version of the Operator's Manual is available for download in multiple languages. Click the link below to view the Operator's Manual in your language. Click "Continue" to view the online version in English.

Get a translated PDF Download Continue

The macro variables table of local, global, and system variables and their usage follows. The new generation control variables list includes legacy variables.

Variable Legacy Variable Usage
#0 Not a number (read only)
#1- #33 Macro call arguments
#10100- #10199 #100- #199 General-purpose variables saved on power off
#10500- #10549 #500-#549 General-purpose variables saved on power off
#10550- #10580 #550-#580 Probe calibration data (if installed)
#10581- #10699 #581- #699 General-purpose variables saved on power off
#700- #749 Hidden variables for internal use only
#10709 #709 Macro incomplete
#10800- #10999 #800- #999 General-purpose variables saved on power off
#11000- #11063 #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)
#1098 Spindle load with Haas vector drive (read only)
#1100- #1155 Reserved. Do not use.
#1264- #1268 Maximum axis loads for C, U, V, W, and T-axes respectively
#1601- #1800 Number of flutes on 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 FEED HOLD control
#3006 Programmable stop with message
#3011 Year, month, day
#3012 Hour, minute, second
#3020 Power on timer (read only)
#3021 Cycle start timer
#3022 Feed timer
#3023 Present part timer (read only)
#3024 Last complete part timer
#3025 Previous part timer (read only)
#3026 Tool in spindle (read only)
#3027 Spindle RPM (read only)
#3028 Number of pallets loaded on receiver
#3030 Single block
#3032 Block delete
#3033 Opt stop
#3196 Cell safe timer
#3201- #3400 Actual diameter for tools 1 through 200
#3401- #3600 Programmable coolant positions for tools 1 through 200
#3901 M30 count 1
#3902 M30 count 2
#4001- #4021 Previous block G-code group codes
#4101- #4126 Previous block address codes Refer to Note (1).
#5001- #5006 Previous block end position
#5021- #5026 Present machine coordinate position
#5041- #5046 Present work coordinate position
#5061- #5069 Present skip signal position - X, Y, Z, A, B, C, U, V, W
#5081- #5086 Present tool offset
#5201- #5206 G52 work offsets
#5221- #5226 G54 work offsets
#5241- #5246 G55 work offsets
#5261- #5266 G56 work offsets
#5281- #5286 G57 work offsets
#5301- #5306 G58 work offsets
#5321- #5326 G59 work offsets
#5401- #5500 Tool feed timers (seconds)
#5501- #5600 Total tool timers (seconds)
#5601- #5699 Tool life monitor limit
#5701- #5800 Tool life monitor counter
#5801- #5900 Tool load monitor maximum load sensed so far
#5901- #6000 Tool load monitor limit
#6001- #6999 Reserved. Do not use.
#6198 NGC/CF flag
VARIABLES USAGE
#0 Not a number (read only)
#1- #33 Macro call arguments
#100- #199 General-purpose variables saved on power off
#500- #549 General-purpose variables saved on power off
#550- #580 Probe calibration data (if equipped)
#581- #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 TT Axes respectively

#2001- #2050

X Axis tool shift offsets

#2051- #2100

Y Axis tool shift offsets

#2101- #2150

Z Axis tool shift offsets

#2201- #2250

Tool nose radius offsets

#2301- #2350

Tool tip direction

#2701- #2750

X Axis tool wear offsets

#2751- #2800

Y Axis tool wear offsets

#2801- #2850

Z Axis tool wear offsets

#2901- #2950

Tool nose radius wear offsets
#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
#3012 Hour, minute, second
#3020 Power on timer (read only)
#3021 Cycle start timer
#3022 Feed timer
#3023 Present cycle time
#3024 Last cycle time
#3025 Previous cycle time
#3026 Tool in spindle (read only)
#3027 Spindle RPM (read only)
#3030 Single block
#3032 Block delete
#3033 Opt stop
#3901 M30 count 1
#3902 M30 count 2
#4001- #4021 Previous block G-code group codes
#4101- #4126 Previous block address codes
note: (1) Mapping of 4101 to 4126 is the same as the alphabetic addressing of Macro Arguments section; e.g., the statement X1.3 sets variable #4124 to 1.3.
Variables Legacy Variables USAGE
#14001- #14006 #7001- #7006 G110 (G154 P1) additional work offsets
#14021- #14026 #7021- #7026 G111 (G154 P2) additional work offsets
#14041- #14046 #7041- #7046 G112 (G154 P3) additional work offsets
#14061- #14066 #7061- #7066 G113 (G154 P4) additional work offsets
#14081- #14086 #7081- #7086 G114 (G154 P5) additional work offsets
#14101- #14106 #7101- #7106 G115 (G154 P6) additional work offsets
#14121- #14126 #7121- #7126 G116 (G154 P7) additional work offsets
#14141- #14146 #7141- #7146 G117 (G154 P8) additional work offsets
#14161- #14166 #7161- #7166 G118 (G154 P9) additional work offsets
#14181- #14186 #7181- #7186 G119 (G154 P10) additional work offsets
#14201- #14206 #7201- #7206 G120 (G154 P11) additional work offsets
#14221- #14226 #7221- #7226 G121 (G154 P12) additional work offsets
#14241- #14246 #7241- #7246 G122 (G154 P13) additional work offsets
#14261- #14266 #7261- #7266 G123 (G154 P14) additional work offsets
#14281- #14286 #7281- #7286 G124 (G154 P15) additional work offsets
#14301- #14306 #7301- #7306 G125 (G154 P16) additional work offsets
#14321- #14326 #7321- #7326 G126 (G154 P17) additional work offsets
#14341- #14346 #7341- #7346 G127 (G154 P18) additional work offsets
#14361- #14366 #7361- #7366 G128 (G154 P19) additional work offsets
#14381- #14386 #7381- #7386 G129 (G154 P20) additional work offsets
#7501- #7506 Pallet priority
#7601- #7606 Pallet status
#7701- #7706 Part program numbers assigned to pallets
#7801- #7806 Pallet usage count
#8500 Advanced Tool Management (ATM) group ID
#8501 ATM percent of available tool life of all tools in the group
#8502 ATM total available tool usage count in the group
#8503 ATM total available tool hole count in the group
#8504 ATM total available tool feed time (in seconds) in the group
#8505 ATM total available tool total time (in seconds) in the group
#8510 ATM next tool number to be used
#8511 ATM percent of available tool life of the next tool
#8512 ATM available usage count of the next tool
#8513 ATM available hole count of the next tool
#8514 ATM available feed time of the next tool (in seconds)
#8515 ATM available total time of the next tool (in seconds)
#8550 Individual tool ID
#8551 Number of flutes of tools
#8552 Maximum recorded vibrations
#8553 Tool length offsets
#8554 Tool length wear
#8555 Tool diameter offsets
#8556 Tool diameter wear
#8557 Actual diameter
#8558 Programmable coolant position
#8559 Tool feed timer (seconds)
#8560 Total tool timers (seconds)
#8561 Tool life monitor limit
#8562 Tool life monitor counter
#8563 Tool load monitor maximum load sensed so far
#8564 Tool load monitor limit
#9000 Thermal comp accumulator
#9000- #9015 Reserved (duplicate of axis thermal accumulator)
#9016 Thermal spindle comp accumulator
#9016- #9031 Reserved (duplicate of axis thermal accumulator from spindle)
#10000- #10999 General purpose variables
#11000- #11255 Discrete inputs (read only)
#12000- #12255 Discrete outputs
#13000- #13063 Filtered analog to digital inputs (read only)
#13013 Coolant level
#14401- #14406 G154 P21 additional work offsets
#14421- #14426 G154 P22 additional work offsets
#14441- #14446 G154 P23 additional work offsets
#14461- #14466 G154 P24 additional work offsets
#14481- #14486 G154 P25 additional work offsets
#14501- #14506 G154 P26 additional work offsets
#14521- #14526 G154 P27 additional work offsets
#14541- #14546 G154 P28 additional work offsets
#14561- #14566 G154 P29 additional work offsets
#14581- #14586 G154 P30 additional work offsets
#14781 - #14786 G154 P40 additional work offsets
#14981 - #14986 G154 P50 additional work offsets
#15181 - #15186 G154 P60 additional work offsets
#15381 - #15386 G154 P70 additional work offsets
#15581 - #15586 G154 P80 additional work offsets
#15781 - #15786 G154 P90 additional work offsets
#15881 - #15886 G154 P95 additional work offsets
#15901 - #15906 G154 P96 additional work offsets
#15921 - #15926 G154 P97 additional work offsets
#15941 - #15946 G154 P98 additional work offsets
#15961- #15966 G154 P99 additional work offsets
#20000- #29999 Setting
#30000- #39999 Parameter
#50201- #50400 Tool material
#50601- #50800 Current offset
#50801- #51000 Current offset
#51301- #51500 VPS template offset
#51401- #51600 Work material
#51601- #51800 VPS feedrate
#51801- #52000 Approximate length
#52001- #52200 Approximate diameter
#52201- #52400 Edge Measure height
#52401- #52600 Tool Tolerance
#60000- #60049 Commanded position
#60050- #60099 Internal commanded position
#60100- #60149 Actual position
#60150- #60199 Secondary actual position
#60200- #60249 Raw encoder count
#60250- #60299 Servo error
#60300- #60349 Z channel travel
#60350- #60399 Integral
#60400- #60449 Current
#60450- #60499 Fuse level
#60500- #60549 Lag
#60550- #60599 Thermal position comp
#60600- #60649 Thermal accumulator
#60650- #60699 Thermal position comp from spindle
#60700- #60749 Thermal accumulator from spindle
#60750- #60799 Total compensation
#14781 - #14786 #14981 - #14986 #15181 - #15186 #15381 - #15386 #15581 - #15586 #15781 - #15786 #15881 - #15886
VARIABLES USAGE
#7001- #7006 ( #14001- #14006) G110 (G154 P1) additional work offsets
#7021- #7026 ( #14021- #14026) G111 (G154 P2) additional work offsets
#7041- #7046 ( #14041- #14046) G112 (G154 P3) additional work offsets
#7061- #7066 ( #14061- #14066) G113 (G154 P4) additional work offsets
#7081- #7086 ( #14081- #14086) G114 (G154 P5) additional work offsets
#7101- #7106 ( #14101- #14106) G115 (G154 P6) additional work offsets
#7121- #7126 ( #14121- #14126) G116 (G154 P7) additional work offsets
#7141- #7146 ( #14141- #14146) G117 (G154 P8) additional work offsets
#7161- #7166 ( #14161- #14166) G118 (G154 P9) additional work offsets
#7181- #7186 ( #14181- #14186) G119 (G154 P10) additional work offsets
#7201- #7206 ( #14201- #14206) G120 (G154 P11) additional work offsets
#7221- #7226 ( #14221- #14221) G121 (G154 P12) additional work offsets
#7241- #7246 ( #14241- #14246) G122 (G154 P13) additional work offsets
#7261- #7266 ( #14261- #14266) G123 (G154 P14) additional work offsets
#7281- #7286 ( #14281- #14286) G124 (G154 P15) additional work offsets
#7301- #7306 ( #14301- #14306) G125 (G154 P16) additional work offsets
#7321- #7326 ( #14321- #14326) G126 (G154 P17) additional work offsets
#7341- #7346 ( #14341- #14346) G127 (G154 P18) additional work offsets
#7361- #7366 ( #14361- #14366) G128 (G154 P19) additional work offsets
#7381- #7386 ( #14381- #14386) G129 (G154 P20) additional work offsets
#8550 Tool/tool group id
#8552 Maximum recorded vibrations
#8553 X Axis tool shift offsets
#8554 Z Axis tool shift offsets
#8555 Tool nose radius offsets
#8556 Tool tip direction
#8559 X Axis tool wear offsets
#8560 Z Axis tool wear offsets
#8561 Tool nose radius wear offsets
#8562 Tool feed timers
#8563 Total tool timers
#8564 Tool life monitor limit
#8565 Tool life monitor counter
#8566 Tool load monitor maximum load sensed so far
#8567 Tool load monitor limit
#14401- #14406 G154 P21 additional work offsets
#14421- #14426 G154 P22 additional work offsets
#14441- #14446 G154 P23 additional work offsets
#14461- #14466 G154 P24 additional work offsets
#14481- #14486 G154 P25 additional work offsets
#14501- #14506 G154 P26 additional work offsets
#14521- #14526 G154 P27 additional work offsets
#14541- #14546 G154 P28 additional work offsets
#14561- #14566 G154 P29 additional work offsets
#14581- #14586 G154 P30 additional work offsets
.
G154 P40 additional work offsets
G154 P50 additional work offsets
G154 P60 additional work offsets
G154 P70 additional work offsets
G154 P80 additional work offsets
G154 P90 additional work offsets
G154 P95 additional work offsets
#15901 - #15906 G154 P96 additional work offsets
#15921 - #15926 G154 P97 additional work offsets
#15941 - #15946 G154 P98 additional work offsets
#15961- #15966 G154 P99 additional work offsets

Be aware: Many service and repair procedures should be done only by authorized personnel. The service technicians at your Haas Factory Outlet (HFO) have the training, experience, and are certified to do these tasks safely and correctly. You should not do machine repair or service procedures unless you are qualified and knowledgeable about the processes.

Danger: Some service procedures can be dangerous or life-threatening. DO NOT attempt a procedure that you do not completely understand. Contact your Haas Factory Outlet (HFO) and schedule a service technician visit if you have any doubts about doing a procedure.

Feedback