Device for charging gun