
1 DATECS
EP-50
60
61
User’s Manual
[Sample Program]
LPRINT CHR$ (&H1B) + “{“ + CHR$ (0);
LPRINT “AAAAA” + CHR$ (&HA);
LPRINT “BBBBB” + CHR$ (&HA);
LPRINT CHR$ (&H1B) + “{“ + CHR$ (1);
LPRINT “AAAAA” + CHR$ (&HA);
LPRINT “BBBBB” + CHR$ (&HA);
[Print Results]
Inversion Canceled
Inversion Specificed
Paper Feed Direction
44. GS (A pL pH n m
Printing a self-test
[Code]
[1Dh] + [28h] + [41h] + pL + pH + n + m
[Range]
{ 0 <= pL <= 255 }
{ 0 <= pH <= 255}
{ 0 <= n <= 255 }
{ 2 <= m <= 3 }
[Outline]
This command is intended for compatibility purposes. A “short” or
“long” test is printed depending on the value of m.
m = 2 – printing a “long” test (ESC .)
m = 3 – printing diagnostic information (“short” test) (ESC ,)
45. GS B n
Specifying/canceling the black/white inverted printing
[Code]
[1Dh] + [62h] + n
[Range]
{ 0 <= n <= 255 }
[Outline]
According to the least significant bit of n (n0) the following modes
are possible:
n0 = 0 – Black/white inverted printing is canceled
n0 = 1 – Black/white inverted printing is specified
The space skipped by tab command or by positioning commands
(ESC $, ESC \) is not affected.
Both built-in and downloaded character sets are inverted by this
command.
The black/white inversion works on the right space defined by ESC SP
command.
[Default]
The initial value is n=0
[Sample Program]
LPRINT CHR$(&H1D) + “B” + CHR$(0);
LPRINT “AAAAA”;
LPRINT CHR$(&H1D) + “B” + CHR$(1);
LPRINT “AAAAA”;
[Print Results]
AAAAA
AAAAA
46. GS C
Getting current date and time
[Code]
[1Dh] + [43h]
[Outline]
• Gets the current date and time. The result string consists of six deci
mal numbers in ASCII format each consisting of two digits. The numbers
are divided by space, the string ends with a NULL character.
• The parameters are in order: year, month, day, day of the week, hour,
minute, seconds.
• If the real time clock is not set only NULL character is returned.