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