I resolved the issue by rewriting the ZPL template file in TSCs own language TSPL. The code for the printing sequence has not been adapted.