If you google Honeywell heating wiring diagrams they are self explanatory. Most systems use either two port valves for HW and CH, or a three port valve to do both. Follow the wiring and you'll see how it works. Programmer feeds heating and HW stats, stat tells required valve to open, micro switch in valve switches on boiler and pump.