The issue isn't about length at all. The problem is finding a recpt and cord cap with the appropriate HP rating. All I can find locally either have no HP rating or it is only 2 or 3.That's not correct.
Working in a facility that has seven of its own substations, indoors, with 15kV feeders, 1200A bus feeds, and bus plugs/drops distributed all over its 400,000+ ft² ceilings, there is NO NFPA limitation on service cord length. There are practical limits, and I/R drop restrictions, but national codes do not prohibit that. Using strain reliefs at cord terminations, suspension at intervals that meet NEC tables, and appropriate caps/plugs for connections will make it perfectly acceptable.
Local jurisdictions' inspectors often have their own opinions, however. To circumvent that, one needs only to ask them for a published copy of their code(s). That usually shuts them up permanently since with the exception of larger counties and cites, most municipalities never truly formalize their "codes' and if they do, anything that contradicts NEC can be disputed, while restrictions that adhere to NEC but are more stringent usually cannot. There again, pointing out the codes published by NFPA including the exceptions and details will often resolve any discrepancies.
Residential inspectors are actually the worst to deal with, since they need to be educated just about every time they show up, and yet can still become a PITA for approvals. Appealing their misjudgements usually only annoys them, so even when they are educated and overturned they continue to be obstacles.
That said, the EMT/THWN solution is certainly "code" about everyw
That said, I've successfully used "normal" 30 and 50 amp recpt's with 5hp motors for years, but never had them passed by an inspector. Recpts were there at inspection, but not cord plugged in.
I don't consider it a practical issue as they are fine as long as they are never unplugged under load. My understanding of the motor rating is to withstand plugging or unplugging when loaded. Just don't do that and it should be OK.
EMT is allowed to be used as the safety ground. One must take care to make excellent connections though. I use only compression connectors and grounding bushings at both ends.