Calculate movement from part program offline, calculate axis references online