Based on a 2007 VF-2ss with Renishaw probing:
G65 P9811 Z.025 S1 should work.
Never put math in a program that you do not want done every cycle!
Probing Z sets #187, but do not use #187 directly. After probing, do #500 = #187 or whatever variable you want. More reliable this way.