Any Electricians out there? Air comp. question

That will work.

I use a plug for my welder and my compressor.....switch back and forth as needed. As long as your within site of the panel or put a disconnect switch before the plug your good to go.

Mop