FR 5685 then FR 11 at Madrid
Edinburgh → Madrid → Dublin
Timetable, Madrid time
23:40FR 5685 from Edinburgh at the gate
18:10FR 11 to Dublin leaves the gate
18 h 30 apart on the timetable, overnight
FR 11 leaves 18 h 30 after FR 5685 arrives on the timetable: more than half a day, so not a connection we count.