Tankīr and tamakkun always serve the same function.

Tanwīn: Five Types, Their Function, and Omission