I'm not aware of any codes specifying where the 'control panel' must be. I frequently see them installed in locked rooms half a county away from the equipment controlled.

This differs from 'disconnecting means' which must simply be 'accessible' and usually 'within sight.'

Please note that control panels typically do NOT qualify as the disconnecting means.