There is really no loophole for a generator.

If the generator was permanently installed as this UPS would be rubber cord would not really be an option either.

Code wise you can not put a cord cap on NM. (The UL white book makes this clear.)

And you can not use rubber cord for branch circuits.

Sorry I do not have an answer for you.


Bob Badger
Construction & Maintenance Electrician
Massachusetts