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