FR 11 then FR 816 at Dublin
Madrid → Dublin → Edinburgh
Timetable, Dublin time
19:55FR 11 from Madrid at the gate
13:45FR 816 to Edinburgh leaves the gate
17 h 50 apart on the timetable, overnight
FR 816 leaves 17 h 50 after FR 11 arrives on the timetable: more than half a day, so not a connection we count.