FR 1279 then FR 606 at Copenhagen
Barcelona → Copenhagen → Madrid
Timetable, Copenhagen time
12:55FR 1279 from Barcelona at the gate
06:20FR 606 to Madrid leaves the gate
17 h 25 apart on the timetable, overnight
FR 606 leaves 17 h 25 after FR 1279 arrives on the timetable: more than half a day, so not a connection we count.