The 500,000th engine has come off the production line at BMW Group's Hams Hall engine plant.