I have in a note that gate & lock failures can put the car in door disconnect as well as failures to reach a limit. Parameter DCC sets the number of limit failures before going on DD. I would pay close attention to the DZ1 & DZ2 inputs from selector, outputs to pick DZ1 & DZ2 relays and the DZM input confirming that DZ1 & DZ2 relays are both picked. The DZ relays are also in series with DOL so if one of the DZ relays did not pick, it would see both limits low and think it was out of DZ. Might explain the 39 faults.