FR 752 then FR 689 at Vienna
Porto → Vienna → Madrid
Timetable, Vienna time
14:45FR 752 from Porto at the gate
06:00FR 689 to Madrid leaves the gate
15 h 15 apart on the timetable, overnight
FR 689 leaves 15 h 15 after FR 752 arrives on the timetable: more than half a day, so not a connection we count.