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