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