zpl 2

select the ^FN you want to print

Hi,

I am currently developing a machine using a zebra printer and a PLC.
A format file is stored in the printer's memory and the PLC creates a variable fields file pushed to the printer via FTP
The stored format is the following :
^XA
^DFE:FORMAT.ZPL

^FX data 1^FS
^FO5,5
^FN1^FS

^FX data 2^FS
^FO5,20
^FN2^FS

^XZ

The file sent by PLC is the following :

^XA
^XFE:format.zpl^FS
^FN1^FDthis is data 1^FS
^FN2^FDthis is data 2^FS
^FN3^FDThis is data 3^FS
^XZ

how to print the current date and time on the label after peeling off ?

Hello,

how to print the current date and time on the label after peeling off ?

For example:

Print the 1st Label: 2019-10-28 18:58:01

Wait 5 second and peel off label.

The second label must be 2019-10-28 18:58:06

Currently I have this:

^FC%,{,#^FD%Y-%m-%Y%H%M%S^FS

The date and time are still the same 2019-10-28 18:58:01 on each label.

Thanks