this is not good at all...
1. you cannot declare and initialize variable REL in one line in SRC. That only works in DAT file.
2. declaration of REL is in wrong place, need to be before INI, initialization need to be after INI
3. why are you not specifying at least tool and base before motions P10..P30?if the first PTP HOME is inline form, it will set tool and base but probably not one you have in mind. if that motion is not an inline form, there is nothing to do that so this simply cannot work at all.