368
[ESC+WP] Calendar Arithmetic (Add)
ESC WP ParameterHexadecimal code
<1B>
16
<57>
16
<50>
16
abbb
Initial value Nil
When the power is OFF The set parameter is maintained.
Valid range within items The set parameter is valid until the next valid setting.
Valid range and term of
command
Valid range between items The set parameter becomes invalid.
[Function]
Specifying addition of calendar date.
[Format]
<WP>abbb
• Parameter
a [Specification of Year-Month-Day]
Y
:
Year
M
:
Month
D
:
Day
h
:
Time
W
:
Week
b [Specification of additional value for Y-M-D-h]
Valid Range of Y
:
0 to 9
Valid Range of M
:
00 to 99
Valid Range of D
:
000 to 999
Valid Range of h
:
000 to 999
Valid Range of W
:
00 to 99
[Coding Example]
Specifying and printing out the date that is three months from today.
<A>
<WP>M03
<V>100<H>200
<OB><WA>DD/MM/YY
<Q>2
<Z>
[Supplementary Explanation]
• This command requires optional calendar IC and it is no usable without IC.
• This command adds specified value to specified data (Year, Month, Day, Hour and Week). It can
specify the date three months from current date.
• When there are more than one <WP> in one item, the last one is available.
Parent topic Calendar Command