Setting and Viewing the QLn Series Printer Real Time Clock

Article ID: 60835959




The following commands illustrate how to both set the real time clock and print the values for the time and date

Applies To

Zebra QLn Series Mobile Printers


Ability to send commands/files to the printer using Zebra Setup Utilities, the ZDesigner Driver for the printer, or some other method  Read More>>


To set the real time clock use these commands

! U1 setvar "rtc.time" "13:02:00" 
! U1 setvar "" "12-05-2011"

To print a real time clock value on the label use the following:

! 0 200 200 203 1
TEXT 0 2 0 50 !<TIME
TEXT 0 2 0 100 !<DATE

If you want the printer to return the value to the host use the following:

! U1 getvar "rtc.time"  
! U1 getvar ""

Helpful Information

ZPL Programming Guide  Read More>>

CPCL Programming Guide  Read More>>

USB Communication Information  Read More>>


+ Product Codes

  • QLn Series Healthcare Mobile Printers
  • QLn Series Mobile Printers
  • QLn220 Healthcare
  • QLn220 Mobile Printer
  • QLn320 Healthcare
  • QLn320 Mobile Printer
  • QLn420 Mobile Printer