Trying to use this macro for auto setting a G30, I got this from this site(thank you) and put it on a few machines with no issues fanuc 18, 21i 31i 0i (all lathes) but will not run on this i series , says illegal address ? but it does set the numbers in the 101,102 and reference page (parameter 1241). any help would be Great! thanks'.

O9010(G30 AUTO SET)
#101=#5021*25400.
#102=#5022*25400.
G10L50
N1241P1R#101
N1241P2R#102
G11
M30