I would recommend reading through the ZPL programming manual. The methods you will be using are ^XA
(Start Format), ^DF
(Download Format), ^XF
(Recall Format), and ^FN
(Field Number).
You may need more, I have never used ZPL myself only EPL. But that should get you started.