Megatron TP UP-NH User Manual - page 8
24 25
ESC J
'n' Dot Line Feed
Format
ASCII :
ESC J n
Decimal :
27 74 n
Hexadecimal:
1B 4A n
Explanation:
print data in buffer of the printer and feed 'n' -dot line forward. The value of n is
between 0 and 255.
Line space will be automatically adjusted when using commands ESC V & ESC W
for enlarge characters.
ESC 1
Set n’ dot line spacing
Format
ASCII :
ESC 1 n
Decimal :
27 49 n
Hexadecimal: 1B 31 n
Explanation:
The line spacing is set to n dot lines for future Line Feed command. The value of n
is between 0 and 255. Default setting n=10 for text printing, n=0 for bit map
printing when using ESC K command.
3.3
Format Setting Commands
ESC D
Set Horizontal Tabs
Format
ASCII :
ESC D n1 n2 ... NUL
Decimal :
27 68 n1 n2 ... 0
Hexadecimal:
1B 44 n1 n2 ... 00
Explanation:
The tab positions are entered as n
1
, n
2
and so on. These n
1
, n
2
should be within the
line width of the printer. For character set A 12x24 dots,
the maximum value n=32; for character set B 8x16 dots, the maximum value n=48.
NUL character is added to indicate the end of command.
All settings can be cleared by using command ESC D NUL.
HT
Horizontal Tab
Format
ASCII :
HT
Decimal :
9
Hexadecimal:
09
Explanation:
The printing position is advanced to the next horizontal tab.
HT command will not execute if the current print position exceeds the last
horizontal tab.
ESC f
Print Blank Characters or Lines
Format
ASCII :
ESC f
m n
Decimal :
27 102 m n
Hexadecimal:
1B 66 m n
Explanation:
If m=0, command ESC f NUL will print n blank characters. The value n should be
within the line width of the printer (see command ESC D in the chapter).
If m=1, command ESC f n will print n blank lines. The value of n should be within
the range between 0 to 255.
ESC I
Set Left Margin
Format
ASCII :
ESC I
n
Decimal :
27 108
n
Hexadecimal: 1B 6C n
Explanation:
This command sets start printing position as n character from left.
The value of n should be within the line width of the printer. For character set A,
n=32 and character set B, n=48. Default value n=0, This means no left margin.
The command sets an absolute position and is not affected by character enlarge
command ESC U or ESC W.
3.4 Character Setting Commands
ESC U
Enlarge Width
Format
ASCII :
ESC U
n
Decimal :
27 85 n
Hexadecimal:
1B 55 n
Explanation:
Characters or graphics following this command are printed at n times normal width.
The value n should be in the range 1- 2. Default value n=1, that means normal
width.
ESC V
Enlarge Height
Format
ASCII :
ESC V
n
Decimal :
27 86 n
Hexadecimal:
1B 56 n
Explanation: