input bat,copy to Global.batPh