30amp or 50amp
they function slightly differently, although the end result is the same
30amp will have a set of normally closed contacts and a set of normally open
usually shore power is the default "closed set of contacts"
and the genset power has a slight time delay 20~60 seconds and switches over
opens the shore side closing the generator side
and will stay that way until you turn off the generator, no matter if shore power returns
50amp will have usually have (2) contractors with open contacts
neither will be energized unless there is power, and that locks out the other side, again generator takes precedence over shore power