In hand-to-hand fighting the crew will defend their machines and models are automatically repositioned so that they can fight enemy in contact with the machine.
If several machines are organised into a battery all the crew from all the machines plus any characters with the battery may group together to fight so long as individual crewmen/characters do not move further than their normal move distance to reach an enemy. Enemy models can divide attacks between crew, characters or machines that they are touching. The machine itself does not fight.