As a general rule the position light are on anytime the aircraft is 'power up', that is an APU or GPU is powering the electrical system of the aircraft.
Only when the engines are ready for immediate start are the beacons turned on.
That way when you look at an aircraft on a ramp you can tell it's status with one glance.