@randyl00123 OK, here it is. I run G28 to home all, and I USED to have my find_Z_range macro called from the end of homeall.g, but after homeall.g, even if I manually call the macro find_Z_range.g, it doesn't move to bed center, but the bed starts rising slowly til it binds or causes other issues. Here are the error messages:

2022-02-04, 5:38:39 p.m. Emergency stop, attemping to reconnect...
2022-02-04, 5:38:24 p.m. M98 P"0:/macros/Find_Z_Range.g"
Error: G1/G2/G3: intermediate position outside machine limits
2022-02-04, 5:38:05 p.m. G28
Warning: the height map was loaded when the current Z=0 datum was not determined probing. This may result in a height offset.

homeall.g
M117 S"about to run home Z"
;T-1 ;deselect all tools

M98 P"homez.g"
M117 S"back from home Z"

M400
M117 S"about to run home y"
M98 P"homey.g"
M117 S"back from home y"

M400 ;Wait for current moves to finish
M117 S"about to run home x"
M98 P"homex.g"

M400
M117 S"about to run home U"
M98 P"homeU.g"
M117 S"back from home U"

M400

;M98 P/macros/Find_Z_Range.g ;run find z range macro

M400 ;wait for movement to stop
G29 S1 ; load heightmap

Find_Z_Range.g
;Find_Z_Range_Min-Max.g

;T0 P0 ;select tool with X carriage but don't run the macro files associated

M117 S"about to run Find_Z_range"

M140 S80 ;heat the bed to 80C

;G31 X-38.32 Y-16.15 Z1.00 ;Z probe trigger sensitivity, offset in relation to nozzle. And trigger height adjustment
;decrease this number to lower the nozzle closer to the bed
;M117 S"T0"

;T0 ;select and prepare X hotend

M400 ;wait til everything stops

M117 S"move to bed center"

G1 X155.3 Y93.0 Z5 f4500 ;move to bed center for probing

M400 ;wait til everything stops

M117 S"probing"

G30 ;probe and set to zero

M117 S"reset Z max"

G1 H3 Z300 ;find z max and set it as M_max

G1 H3 Y300 ;rehome y gantry

G1 H3 X-300 ;rehome x carriage

M117 S"saving config_override"

M500 P10:31 ;save offsets etc to config-override.g

M117 S"exiting Find_Z_range"

homez.g
; homez.g
; called to home the Z axis

G91 ; relative positioning
G1 H1 Z500 F1000 ; move Z down until the each motor endstop is triggered
G1 Z-5 F500 ; back off five mm
G1 H4 Z50 F200 ; move slowly back down to zstop switches and set this position as Z maxima that is declared in config.g
;G1 Z-10 ;move the bed up because with the T1 offsets, it confuses the max z fot T1
G90 ; absolute positioning

;H1 means terminate move when endstop is hit.
;H2 individual motor mode either xy or z.
;H3 Terminate the move when endstop triggered and set the axis limit to the current position, orverriding the valuse set in M208.
;H4 - terminate the move when the endstop switch is triggered and update the current position (supported in RRF 3.2-b4 or newer)

config.g (since I know you're gonna ask...lol)
; Configuration file for Duet WiFi (firmware version 3)
; executed by the firmware on start-up
;
; Randy's corexy idex 26 January 2022

;General preferences
M111 S1 ; Debugging
G21 ; Work in millimetres
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M555 P0 ; Set firmware compatibility to look like RepRap_Firmware to look like rrf
M404 N1.75 D0.6 ; Set nominal filament diameter to 1.75 and nozzle width to 0.4
M575 P0 B250000 ; Set baud rate for USB port for Octoprint
M575 P1 S1 B57600 ; enable support for PanelDue (Default B57600)

;Network
M550 P"Randy corexy idex" ; set printer name
M552 S1 ; enable network
M586 P0 S1 ; enable HTTP
M586 P1 S1 ; enable FTP
M586 P2 S0 ; disable Telnet
M575 P1 B57600 S1 ; Set auxiliary serial port baud rate and require checksum (for PanelDue)

;Drives
M569 P7 S0 ;Drive 9(XX7)
M569 P8 S0 ;Drive 1(XY8)

M569 P0 S0 ;Drive 8(UX) change to a 1 for forwards
M569 P9 S1 ;Drive 7(UY)

M569 P2 S0 ;Drive 2(ZRR5) Right front lead screw driver 2
M569 P5 S0 ;Drive 5(ZCF2) Center rear lead screw driver 5
M569 P6 S0 ;Drive 6(ZRL6)Left front lead screw, driver 6

M569 P3 S1 ;Drive 3(e0)
M569 P4 S1 ;Drive 4(e1)

;stepper drive configuration
M584 X8 Y7 Z2:5:6 U9 V1 E3:4 P4 ;this one works! X8 and Y7 are corexy X carriage. u9 (UX),v0 (UY) are the U carriage 2=ZRR5, 5=ZCF2,6=ZRL6

;lead screws
M671 X300:120:-90 Y315:-60:315 F10 ;lead screws are located at drive 2 = back right corner, drive 5 at front center, drive 6 at left rear

M669 K5 ; select 5=corexyu 8=CoreXYUV mode

;Axis Limits
M208 S0 X331 Y208 U451.00 Z268.35 ;set axis maxima S0 means maxima V350 - V240
M208 S1 X-98 Y0 U0 Z-2.00 ;set axis minima S1 means minima V80

;endstops
M574 X1 S1 P"e0stop"
M574 U2 S1 P"xstop"
M574 Y2 S1 P"ystop" ;Y MAX active high endstop switch

M574 Z2 S1 P"e1stop+zstop+duex.e2stop" ; configure active-high endstops for high end on Z - bed lowers to the three switches for initial self leveling

;M574 E0 S1 ;x filament sensor
;M574 E1 S1 ;U filament sensor

;Heaters
M140 H0 ; map heated bed to heater 0
M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
M143 H0 S120 A2 ; set temperature limit for heater 0 to 120C
M307 H0 B0 R0.616 C164.1 D1.24 S1.00 V24.1 ;bed tuning settings
M570 S120 ;after a heater has been switched on, wait 120 seconds for it to get to the set temperature. If it takes longer, raise a heater fault.

M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp
M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
M143 H1 S275 A2 ; set temperature limit for heater 1 to 280C

M308 S2 P"e1temp" Y"thermistor" T100000 B4138 ; configure sensor 2 as thermistor on pin e1temp
M950 H2 C"e1heat" T2 ; create nozzle heater output on e1heat and map it to sensor 2
M307 H2 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
M143 H2 S275 A2 ; set temperature limit for heater 2 to 280C

;M305 P2 X101 ;Use thermocouple for heater P2// note for when I upgrade to a K type thermocouple

;show the MCU and stepper driver temperature, send the following commands:
M308 S10 Y"mcu-temp" A"MCU"
M308 S11 Y"drivers" A"Steppers"

;Tools
;T0 (X carriage)
M563 P0 S"X" D0 H1 F2 ; X0 Y1Fan0 is thermostatically controlled, F2 is gcode controlled by tool P0
G10 L1 P0 X0 Y0 Z0 ;X has no offsets
M568 P0 R240 S250 ;set standby temperature at 240 and active temperature at 250
M307 H1 B0 R2.572 C150.0 D7.50 S1.00 V24.0 ;X hotend tuning parameters
M950 F0 C"duex.FAN4" ;create fan 0 on pin duex.FAN4 because fan0 on duet is always on
M106 P0 T75 S255 H1 ;when heater 1(XHotend) reaches 75 Celcius, turn on Fan0 at 100% (0-255)
M950 F2 C"FAN2" ;H1 x part fan

;capacitive sensor
M558 P5 C"!zprobe.in" H10 F100 T2000 A3 S-1 ;enable pullup resistor(^), invert input (!), (H)Dive height 10mm,
;probing feed rate100mm/min
;travel speed between probe points 2000mm/min, A2 -probe each point twice
;M558 P9 means BLTouch P10 is stall detect. C" " is the pin input name, H5 means drop 5mm between points,
;A3 means probe three times S-1 means average the three probe distances
G31 X-38.32 Y-16.15 Z1.00 ;initial offsets to the center of the zprobe from X nozzle, redefined in find_Z_range.g which is called from homeall.g

T1 (U carriage)
M563 P1 S"U" F3 D1 H2 X3 Y1:4 ;Fan1 is thermostatically controlled, F3 is gcode controlled by tool P1 X mapped to U axis, Y mapped to Y axiswhere X=0, Y=1, Z=2, U=3 etc, not by driver number
G10 L1 P1 X0.0 y1.5 Z-2.15 ;use U_find_the_dot to tweak
M568 P1 R240 S250 ;initial tool set and stanby temperatures
M307 H2 B0 R3.174 C186.4:172.2 D8.41 S0.50 V24.0 ;u hotend tuing parameters
M950 F1 C"FAN1" ;create fan 1 on pin fan1
M106 P1 T75 S255 H2 ;when heater 2(UHotend) reaches 75 Celcius, turn on Fan1 at 100%
M950 F3 C"duex.FAN3" ;H2 u part fan

;T2 (Copy mode)
;M563 P2 S"copy" D0:1 H1:2 X0:3 Y1:4 F2:3 ; define tool 2
;G10 P2 X50 Y0 U-50 S0 R0 ; set tool offsets and temperatures
;M567 P2 E1:1 ; set mix ratio 100% on both extruders
;M568 P2 S1 ; turn on mixing for tool 2

;T3 (Mirror mode)
;M563 P2 S"Mirror" D0:1 H1:2 X0:3 Y1:4 F2:3 ; define tool 3
;G10 P2 X50 Y0 U-50 S0 R0 ; set tool offsets and temperatures
;M567 P2 E1:1 ; set mix ratio 100% on both extruders
;M568 P2 S1 ; turn on mixing for tool 2

;chamber
M308 S3 P"duex.e2temp" Y"thermistor" T100000 B4138 ; configure sensor 3 as thermistor on pin duex.e2temp
M950 H3 C"duex.e2heat" T3 ; create chamber heater output on duex.e2heat and map it to sensor 3
M307 H3 B1 S1.00 ; enable bang-bang mode for the chamber heater and set PWM limit
M141 H3 ; map chamber to heater 3
M143 H3 S100 ; set temperature limit for heater 3 to 100C

;machine
M92 X80 Y80 U80 V80 Z1600 ; set axis steps per mm
M92 E428.46:428.46 ; set extruder steps per mm
M350 X16 Y16 U16 V16 Z16 E16:16 I1 ; configure microstepping with interpolation
M566 X1200 Y1200 U1200 V1200 Z12 E120:120 ; set maximum instantaneous speed changes (mm/min)
M203 X16000 Y16000 U16000 V16000 Z800 E1200:1200 ; set maximum speeds (mm/min)
M201 X600 Y600 U600 V600 Z500 E250:250 ; set accelerations (mm/s^2)
M906 X1100 Y1100 U1100 V1100 Z800 E800:800 I20 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout
M204 P666 T666 ; set print and travel accel
M566 P0 ; uses jerk between all moves. yes or no.

;Print settings
;M207 S1.0 F3600 Z0.2 ; Retraction
;M572 D0:1 S0.05 ; Pressure advance
; M593 F60 ; Dynamic acceleration
; M592 D0 A0.03 B0.01 ; Non linear advance
; M592 D1 A0.06 B0.03 ; Non linear advance

;CPU temp calibration
M912 P0 S-11

;Automatic power saving
;M911 S22 R23 P"M913 X0 Y0 U800 G91 M83 G1 Z3 E-1 F1000" ; Set voltage thresholds and actions to run on power loss

;Miscellaneous
;M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss

M501 ;load settings from /sys/config.override.g