SATO SG112 ex Programming Reference Manual page 370

Hide thumbs Also See for SG112 ex:
Table of Contents

Advertisement

[ESC+WP] Calendar Arithmetic (Add)
Hexadecimal code
Initial value
Valid range and term of
command
[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
      0 before the additional value can be omitted.
[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. This command cannot be used without Calendar
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.
ESC
<1B>
16
None
When the power is OFF
Valid range within items
Valid range between items
WP
<57>
<50>
16
16
The set parameter is not maintained.
The set parameter is valid until the next specification is
made.
The set parameter becomes invalid.
369
Parameter
abbb

Advertisement

Table of Contents
loading

Table of Contents