Zebra 170PAX2 Series User Manual Page 16

  • Download
  • Add to my manuals
  • Print
  • Page
    / 20
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 15
RTC ZPL II Commands
ZPL II Samples
12
47867L-001 Rev. A 05/25/2005
ZPL II Samples
The ZPL II scripts shown on this page establish the initial settings for the date and time clock.
The script below then references these settings to provide the output shown in Figure 1
on page 13.
Setting the date and time for the Real Time Clock only needs to be done once. The date and
time are maintained by an on-board battery when the printer is reset or the printer is turned
Off (
O).
To set the date and time to April 23, 1999 at 2:30 PM, the following command string should be
sent to the printer:
^XA
^ST04,23,1999,02,30,0,P^FS
^XZ
To initialize the Real Time Clock and set up two offset values (offset #2 set to 3 months and 1
hour in the future, offset #3 set to 1 year in the past), the following command sequence should
be sent to the printer:
^XA
^SL
^SO2,3,0,0,1,0,0^FS
^SO3,0,0,-1,0,0,0^FS
^XZ
The above ZPL II scripts initialize the RTC date and time and must be sent to a printer to
provide proper date and time parameters for the ZPL II script below.
The following ZPL II script illustrates the various methods of printing the date and time
initialized in the script above within separate fields on continuous media. Figure 1 on page 13
illustrates the printout of this script on a label.
Page view 15
1 2 ... 11 12 13 14 15 16 17 18 19 20

Comments to this Manuals

No comments