FR 815 then FR 10 at Dublin
Edinburgh → Dublin → Madrid
Timetable, Dublin time
20:05FR 815 from Edinburgh at the gate
19:00FR 10 to Madrid leaves the gate
22 h 55 apart on the timetable, overnight
FR 10 leaves 22 h 55 after FR 815 arrives on the timetable: more than half a day, so not a connection we count.