Hugh- Your stock charging system
WILL FAIL YOU at some point, and it is $$$$ to fix, and you’ll likely have trouble again.
The stock XS650 charging system is terrible for many reasons. It requires nearly 40 Amps just to “Turn-On” the system. Sucks for almost dead batteries. It won’t charge at idle and uses a brushed alternator style system – Charging requires contact of moving parts.