FR 677 then FR 10 at Dublin
Cardiff → Dublin → Madrid
Timetable, Dublin time
00:50FR 677 from Cardiff at the gate
16:25FR 10 to Madrid leaves the gate
15 h 35 apart on the timetable
FR 10 leaves 15 h 35 after FR 677 arrives on the timetable: more than half a day, so not a connection we count.