I know they sometimes mounted ballistas on the backs of elephants in SE Asia. But any gunpowder weapon above small swivel-guns would probably be a bit too much, in terms of both weight and recoil, for both the animal and the howdah. Gotta be a pain and a half to train the big animals to get used to the noise, anyway.