FR 189 then FR 2063 at Madrid
Edinburgh → Madrid → Palma de Mallorca
Timetable, Madrid time
18:35FR 189 from Edinburgh at the gate
13:45FR 2063 to Palma de Mallorca leaves the gate
19 h 10 apart on the timetable, overnight
FR 2063 leaves 19 h 10 after FR 189 arrives on the timetable: more than half a day, so not a connection we count.