This is a little different from what you asked for, but thought I would post it anyway since it includes what you are looking for.
Have your Renishaw manual handy so you can reference what the different G65 lines perform.
Note: G54 will need a rough position for x,y and z to begin with. The probe will set the actual value.
Let me know how you make out.
(See Below)
-------------------------------------------
This program will set G54 X & Y offsets, then it will probe 5 locations in Z to set G54 through G58.
At the end of the program the values for G54 X,Y will be copied to G55 through G58
Haas Machines
%
O10000 (PROBE MULTIPLE Z OFFSETS)
(SETS G54 X,Y AND COPIES)
(VALUES TO G55 - G58)
(SETS NEW Z OFFSET FOR EACH)
G90 G40 G49 G00
G53 G49 Z0
T25 M06
G00 G54 X0.3 Y-0.3
G43 H25 Z2.
(PROBE ON)
G65 P9832
(START PROTECTED POS MOVES - P9810)
G65 P9810 Z1. F100.
G65 P9810 Z0.25 F50.
(SET G54 X,Y, S1=G54)
G65 P9811 Y0 S1
G65 P9811 X0 S1
G65 P9810 Z1. F100.
(SET G54 Z)
G65 P9810 X-0.2 Y-1.25 F100.
G65 P9810 Z0.4 F50.
G65 P9811 Z0 S1
G65 P9810 Z1. F100.
(SET G55 Z, S2=G55)
G65 P9810 X1. Y-0.3
G65 P9810 Z0.3 F50.
G65 P9811 Z0 S2
G65 P9810 Z1. F100.
(SET G56)
G65 P9810 X1. Y-2.25
G65 P9810 Z0.3 F50.
G65 P9811 Z0 S3
G65 P9810 Z1. F100.
(SET G57)
G65 P9810 X3.1 Y-2.55
G65 P9810 Z0.3 F50.
G65 P9811 Z0 S4
G65 P9810 Z1. F100.
(SET G58)
G65 P9810 X3.1 Y0
G65 P9810 Z0.3 F50.
G65 P9811 Z0 S5
G65 P9810 Z3. F200.
(PROBE OFF)
M53
G53 G49 Z0
(SETS X, G55-G58 = TO G54)
#5241= #5221
#5261= #5221
#5281= #5221
#5301= #5221
(SETS Y, G55-G58 = TO G54)
#5242= #5222
#5262= #5222
#5282= #5222
#5302= #5222
M30
%