I don't know if this will work for Cubasis but for Cakewalk you need to use the following.
Bank A is 0
Bank GM is 7168
BankDrums is 7968
Look for something in your cubasis manual that might give you a formula to use for different manufacturers...or wait a day and I'm sure someone with an X5D and Cubasis will respond.