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