FR 677 then FR 814 at Dublin
Cardiff → Dublin → Edinburgh
Timetable, Dublin time
00:50FR 677 from Cardiff at the gate
20:30FR 814 to Edinburgh leaves the gate
19 h 40 apart on the timetable
FR 814 leaves 19 h 40 after FR 677 arrives on the timetable: more than half a day, so not a connection we count.