In the process of fixing water softener I learned more about what it’s doing and clever bits of the design, so I thought I'd share for anyone interested.
First, a simplified version why and how we use a softener.
Hard water contains calcium (Ca2+) and magnesium (Mg2+), which binds with soap making it less effective, and can crystalize onto plumbing creating scale buildup. A typical softener contains millions (billions?) of tiny resin beads which provide a surface for these ions to bind to before they can reach plumbing. When the beads are "full” the softener does a backwash that sends salty water through the beads, stripping off the Ca2+ and Mg2+ ions and flushing them down the drain.
1/6