Thanks for the reply. The cnc uses LNC software and it’s a Chinese blue elephant brand. The xy datum changes after after a job is completed. When a job is completed it lands at the set xy for that job but if you move the the spindle away from table to take out the completed job, on pressing the “back to reference position” it move away from the set origin.