I would always place the outlet in line of sight or next to the equipment.
I think it was in the code update notes that they were trying to prevent A/C guys from taking a leg of the A/C power and hooking up to the ground to provide power for their cords.