FR 817 then FR 1740 at Dublin
Edinburgh → Dublin → Valencia
Timetable, Dublin time
13:15FR 817 from Edinburgh at the gate
06:20FR 1740 to Valencia leaves the gate
17 h 05 apart on the timetable, overnight
FR 1740 leaves 17 h 05 after FR 817 arrives on the timetable: more than half a day, so not a connection we count.