RTC General Information
RTC General Information

RTC General Information

The Real Time Clock commands are only applicable if the Real Time Clock option is installed in the printer. For those printers with an LCD control panel display, additional control panel configuration parameters are also included.
The ZPL II Field Clock
^FC
command is used to specify the clock‑indicator character for the primary, secondary, and third clocks. This command must be included within each label field command string whenever the date or time clock values are required within the field. No date or time clock information can be printed in a label field unless this command is included. The
^FC
command can now be combined with the
^SN
command in V60.13.0.10 and later.
A clock-indicator can be any printable character except the ZPL II Format Prefix, Control Prefix, or Delimiter characters. The default value for the primary clock-indicator is the percent sign
%
. The secondary and third clock-indicators have no defaults and must be specified in order for that clock to be used.
The Field Data
^FD
command has been expanded to recognize the clock-indicators and associated command characters, and to replace them during the printing process with the corresponding time or date parameter. For example, if the primary clock-indicator is the percent sign
%
, then during printing, the character sequence
%H
in the
^FD
statement would be replaced by the 2-digit current hour.
If the Real Time Clock is not installed, or the
^FC
command has not preceded the
^FD
statement, no replacement would occur. In this case, the characters
%H
would print as text on the label.
The name of the day of the week, the name of the month, and the AM or PM designation can also be inserted in place of a specific clock-indicator/command character sequence. This table lists command characters and their functions.
Command Characters
Command Character
Function
%a
is replaced by the abbreviated weekday name
%A
is replaced by the weekday name
%b
is replaced by the abbreviated month name
%B
is replaced by the month name
%d
is replaced by the day of the month number, 01 to 31
%H
is replaced by the hour of the day (military), 00 to 23
%I
is replaced by the hour of the day (civilian), 01 to 12
%j
is replaced by the day of the year, 001 to 366
%m
is replaced by the month number, 01 to 12
%M
is replaced by the minute, 00 to 59
%p
is replaced by the AM or PM designation
%S
is replaced by the seconds, 00 to 59
%U
is replaced by the week# of the year, 00 to 53, Sunday is 1st day
1
%W
is replaced by the week# of the year, 00 to 53, Monday is 1st day
2
%w
is replaced by the day# of the week, 00 (Sunday) to 06 (Saturday)
%y
is replaced by the 2 digits of the year, 00 to 99
%Y
is replaced by the full 4 digit year number—where% is the specified clock-indicator character
1.
%U
establishes Sunday as the first day of the year.
2.
%W
establishes Monday as the first day of the year.
The Set Offset
^SO
command permits the printing of specific times and dates relative to the primary clock. The secondary (or third) clock is enabled when secondary (or third) offsets are entered using this command. The secondary (or third) clock time and date are determined by adding the offsets to the current clock reading.
One
^SO
command is required to set the secondary offset; an additional
^SO
command is required for a third offset. The offsets remain until changed or until the printer is either powered down or reset.
Only dates from January 1, 1998 to December 31, 2097 are supported. Setting the offsets to values that result in dates outside this range is not recommended and may have unexpected results.
The Set Mode/Language (see ^SL) command is used to select the language the days of the week and the months are printed in. This command also sets the printing mode, which can be
S
for START TIME,
T
for TIME NOW, or a Numeric Value for the time accuracy. In START TIME mode, the time printed on the label is the time that is read from the Real Time Clock when the label formatting begins (when the
^XA
command is received by the printer). In TIME NOW mode, the time printed on the label is the time that is read from the Real Time Clock when the label is placed in the queue to be printed. In Numeric Value mode, a time accuracy tolerance can be specified.