The G28 command is commonly used prior to an automatic tool change. It allows the existing tool to be positioned to the predefined reference point automatically via an intermediate position. This ensures that when the tool turret is engaged, it is properly aligned and clears the workpiece.