On the A340-500/600, the landing gear has to be in the dipped position to avoid fouling the centre doors as they open prior to gear retraction. Once the doors are fully opened, the gear is then signalled to move to the trail position before folding forward and up into the bay.