Let's bust out the calculator.
180hp excavator
180hp x 746w per hp = 134,280w power consumption
134,280w x 8hrs = 1,074,240 watt hours, a megawatt hour per day
200a service panel x 240v = 48,000w
48kw x 24 hours = 1,152,000w
So that's just barely enough to charge one excavator. That's assuming 100% efficiency, which won't be the case, assuming no one else needs any power for anything else, and also ignoring the 8 hours the excavator will be working and not plugged in.
Just for funsies, let's get an idea of how much solar that would take. I'll use my own solar panels as a basis, because those are the numbers I have off the top of my head.
1mw needed per day, divided by ~8 hours average sunlight per day to collect it, means 125,000w needs to be harvested per hour.
125,000w divided by 410w panels is 305 panels, which will cover almost 5900 square feet.
This is very far from portable. For comparison, the roof of the average semi trailer is 424 square feet. This is also assuming that the panels will actually harvest their full rated output, which won't happen - 75% would be good, which means even more panels would be needed. In the winter, you'll be lucky to harvest 10% of rated output.
As I said, I'm not against alternative energy, when it makes sense. Solar powers my fridge, lights, and well pump. This device that I'm typing this on was charged by solar, the water for the shower I just took was pumped by solar, the clippers I used on my hair and beard were powered by solar. It makes sense there.
For a reasonable size excavator? We're not there yet.