Ref: "Ap1400ProgGuide1_2.docx"
Page 11 of 42
Document Revision: “1.2”
Document Date: “9 Apr. 2013”
Formatting Commands
ESC,"-"..
1BH,2DH,n
Turn underline on/off
+
If n=0: Underlining is turned off; otherwise is turned on.
ESC,"2"
1BH,32H
Set default Row Height
Set default row height. ie:-30 (0.125mm) dots in Font Mode 0,1 and 2; 24 dots in Font Mode 3; and
16 dots in Font Mode 4.
ESC,"3",..
1BH,33H,n
Set Row Height
n is the row height. Allowed range: 16 to 99. Row height refers to the interval from the top of one
character row to the top of the next, including inter-row spacing. This setting is retained until
cleared, or the Font Mode is changed or the printer is powered off.
ESC,"D",..
1BH,44H,d1..dk,00
Set horizontal tab positions
+
Up to 6 positions may be recorded, and replace the default settings. If more are given, the first 6
are accepted and normal processing resumes from that point. If less than 6 are given then the
command should be terminated with a NUL(00H) character. Note that tab settings take variable
character spacing into account. Setting is retained until cleared or the printer is powered off.
ESC,"J",..
1BH,4AH,n
Print and feed extra paper
+
n is the count of notional 1/20th print lines to be fed. This command terminates the current line; n is
divided by 20 (remainder discarded) and the quotient used as a count of additional blank single-
height character lines.
ESC,"$",..
1BH,24H,n1,n2
Set absolute print position
+
Position = (n1 + 256*n2) dots from start of line. If printing is currently to the left of this position, blank
space is inserted up to it. If it is to the right, then over-printing can occur, allowing special character
combinations to be formed. Any overflow is cut off at end of line.
ESC,"\",..
1BH,5CH,n1,n2
Set relative position
Position = (n1+ 256*n2) dots from current position in text lines. Blank space is inserted up to the
selected dot position. Any overflow is cut off at end of line.
ESC,"d",..
1BH,64H,n
Print and feed n lines
Terminates the current line and feeds n blank print lines
ESC,"{",..
1BH,7B,n
Set/Cancel inverted character printing
n is encoded so:
bit 0 cleared
(0) Normal (upright) text
bit 0 set
(1) Inverted text
Normal and inverted text cannot be mixed in a single line. This setting is temporary (the default
setting can be redefined by the ESC,X command and stored in non-volatile memory [FLASH]).