I threw this drawing together a little to quickly. There will need to be a switch on the negative side between the battery and the ground cable returning to the charging unit/alternator. Also, each of the positive path switches need to be only used one at a time. A 4 positon rotary battery switch would make this much easier and safer. You cannot charge both batteries on the 24 volt system at the same time.