Connection of dusl 12v NiCd battery packs
Since it's a -12V battery and based on the schematic, red wire should be connected with terminal 24 which is connected to the ground terminal.

Black wire need to be connected with terminal 20 for negative -12V battery.