I'm confused about when a circuit breaker (OCPD) must be sized for the gauge of the wire connected to it, and when it must be sized for the required minimum circuit ampacity (MCA) of the circuit being driven.
Nameplate of equipment such as HVAC specifies the MCA (minimum circuit amapacity) and MOP (maximum overprotection device). My understanding is that provided the wire is sized to meet the MCA, that the OCPD may be larger than normally used for that size wire (as long as it doesn't exceed the MOP spec). For example, I installed an HVAC compressor with MCA of 23 amps and MOP of 40 amps; I used 10awg wire and a 30amp breaker. But my understanding is that I could have used a 40amp breaker. This seems wrong to me, because a 40amp breaker could allow 40amps to flow (or 32 amps continuously), whereas 10awg NM-B can only safely carry 30 amps. I guess the rationale is that the equipment cannot draw more than 23amps, unless something goes wrong, and if it does, it'll draw more than 40amps and trip the breaker. Why you'd want to use a 40amp breaker is a mystery to me, unless that's just what you happen to have lying around.
Which is the case for me. I have a subpanel that feeds a two water heaters, one draws 4500 watts and the other 3000 watts, fed by 10awg and 12awg NM-B respectively, protected by 30 amp and 20 amp breakers respectively. The total amperage is (4500+3000)/240 = 31.25 amps; since it's considered a continuous load, this must be upsized by 25% to about 39 amps. So clearly I can feed the subpanel with 8awg NM-B. But can I protect the feeder with a 50amp breaker instead of a 40amp one ?
Clearly I should just purchase a 40 amp btreaker. But clearly I'm also confused, and I'd appreciate any light that can be shone on this.