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