If you arrive in Cologne main station, please go to the big hall facing the cathedral. Within the train station building go downstairs to the subway, U signs.
There is a ticket counter and a vending machine.
Short distance ticket is 2 Euro and named Kurzstrecke
Get down the second stairway to the train.
Line 5 to Heumarkt
Two stops and you are there.