FR 6266 then FR 6874 at Barcelona
Edinburgh → Barcelona → Dublin
Timetable, Barcelona time
16:50FR 6266 from Edinburgh at the gate
10:20FR 6874 to Dublin leaves the gate
17 h 30 apart on the timetable, overnight
FR 6874 leaves 17 h 30 after FR 6266 arrives on the timetable: more than half a day, so not a connection we count.