A piece of heavy machinery unloads something from a train car.
A piece of machinery is unloading pallets.
Just because a piece of machinery is unloading something does not make that something pallets.
(-x)
(-x)