Understand that the "same" program is a set of identical instructions that the controller ( Mach ) executes, but, the controller will take into account
what state it is in and where it is when those instructions are given.
I think you need to have a read of the Mach Manual, understand Machine Coordinates and Part Coordinates and work offsets, how to setup a job, etc.
CNC is not plug and play........
Read the manuals, watch the videos, etc to get a basic understanding.
RICH