FR 6266 then FR 12 at Barcelona
Edinburgh → Barcelona → Vienna
Timetable, Barcelona time
21:20FR 6266 from Edinburgh at the gate
15:00FR 12 to Vienna leaves the gate
17 h 40 apart on the timetable, overnight
FR 12 leaves 17 h 40 after FR 6266 arrives on the timetable: more than half a day, so not a connection we count.