FR 189 then FR 2051 at Madrid
Edinburgh → Madrid → Palma de Mallorca
Timetable, Madrid time
09:45FR 189 from Edinburgh at the gate
09:25FR 2051 to Palma de Mallorca leaves the gate
23 h 40 apart on the timetable, overnight
FR 2051 leaves 23 h 40 after FR 189 arrives on the timetable: more than half a day, so not a connection we count.