SATO CL408E Reference Guide

Page of 242
Unit 5:  Optional Command Codes
E/Pro Programming Reference
5-3
PN: 9001096B
CALENDAR INCREMENT
FUNCTION
Prints the date and/or time field from the printer’s internal clock. 
FORMAT
<ESC>WPabbb
a
= Y: Years
M: Months
W: Week number
D: Days
h: Hours
bbb
= Numeric data
Years (0 to 9)
Months (01 to 99)
Weeks (00 to 99)
Days (001 to 999)
Hours (000 to 999)
Place anywhere within the data stream.
EXAMPLE
<ESC>A
<ESC>H0100<ESC>V0100<ESC>XB1Current Date:
<ESC>WAMM/DD/YY
<ESC>WPM06
<ESC>H0100<ESC>V0200<ESC>XB1Expiration Date:
<ESC>WAMM/DD/YY
<ESC>Q1<ESC>Z
OUTPUT
(5-1)
NOTES
Once the year increments past “99” it will wrap back to “00”. This command can only be used once per
data stream.
The printer’s internal clock may be set through the Calendar Set command.
If a print quantity of more than one label per job is used, the same time and date will be on each label of
the entire print job.
Calendar Increment Example: 1998 January 15 (ww=03) plus 48 weeks = week 51.
The Week Calendar specification follows ISO8601. Days of the week are numbered 1 through 7,
beginning with Monday. The first week of the year is the week containing the first Thursday. If January
1st falls on Friday, it belongs to the last week of the previous year. If December 31st falls on a
Wednesday, it belongs to the first week of the following year. If Calendar Increment calculation extends
over the year, the result belongs to the week number of the following year.