21
45. ESC x n
Reversing the print direction
[Code]
[1Bh] + [78h] + n
[Outline] This command changes the characters’ print direction from left to right to right to left. The
character itself is not mirrored horizontally.
The command is intended for languages that use right to left scripting, like Hebrew and Arabic.
Only the lowest bit of “n” is valid with the following meaning:
0
– left to right printing
1
– right to left printing
[Caution] The command changes only the print direction of the characters - all graphics and bar codes are
unaffected.
This command is ignored in the Chinese version of the printer.
The command reverses all print attributes of the line and the characters, though the characters
themselves are not mirrored horizontally.
Though the command allows mixing reversed and non-reversed characters in one line the print
results could be unsatisfactory and unreliable.
[Default] The default value is 0 – left to right printing.
46. ESC { n
Specifying/Canceling the Inverted Characters
[Code]
[1Bh] + [7Bh] + n
[Range]
{0 <= n <= FFh}
[Outline] Specifying/canceling inverted characters.
• "n" is valid only for the lowest bit (n0).
• Bit n (n0) means the followings.
0
Canceling inverted characters.
1
Specifying inverted characters.
[Caution] • Inverted printing means printing the line at 180º turned.
• Valid is the last value specified in a line.
[Default] • The initial value of n is "0".
47. 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 included 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 ,)
48. GS B n
Specifying/canceling the black/white inverted printing
[Code]
[1Dh] + [42h] + 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