Original: When he returned to Cambrai for his final years, he was appointed canon of the cathedral.
Simplified: When he returned again to Cambrai he was made canon of the cathedral.