FR 635 then FR 7156 at Dublin
Cardiff → Dublin → Madrid
Timetable, Dublin time
09:35FR 635 from Cardiff at the gate
05:45FR 7156 to Madrid leaves the gate
20 h 10 apart on the timetable, overnight
FR 7156 leaves 20 h 10 after FR 635 arrives on the timetable: more than half a day, so not a connection we count.