![](http://datasheet.mmic.net.cn/10000/02-A104B_datasheet_1244473/02-A104B_8.png)
5.8 Control Codes
9 character sets which may be selected for backwards compatibility. The default character set is the 8
bit IBM 224-character set.
Previous versions of the A160B family have been supplied programmed with 7 bit character sets, UK,
French, German, “Scandinavian”, Danish/Norwegian, Swedish, Japanese and Spanish character
variations (often to special order). The A104B contains all these variants, which may be software
selected for backwards compatibility. 8 bit data is selected when using the 8 bit IBM character set,
otherwise the 8th data bit is ignored.
The structure of the command is as follows:
<ESC><127><n> where n is a byte of the form [X,X,X,X,B3,B2,B1,B0] (X = don’t care)
Country selection:
0
1
Spanish
1
0
Japanese
0
1
0
Swedish
1
0
1
0
Danish
0
1
0
Scandinavian
1
0
German
0
1
0
French
1
0
UK
0
Full 8 bit IBM (default)
B0
B1
B2
B3
Character set
ESC><n>
(If buffer is not empty, print buffer contents and) Set print mode.
Note: n is a byte of the form [ 0,0,0,0,B3,B2,B1,B0] (all except the lower 4 bits must be zero, to avoid
conflict with other ESCape codes).
Mode selection:
X
1
Double height mode
X
1
X
Double width mode
X
1
X
Graphics mode
1
X
Inverted (reversed)
0
Default
B0
B1
B2
B3
Print Mode
Any combination of modes is permissible.
The command <ESC><126> stores the current character set and print mode (double height, etc.) in the
EEPROM and these will be the default setting the next time the printer is powered on or reset. If this
code is not received the A104B reverts to previous default values on the next power up.
<ESC><ESC>
(Print any buffer contents, and) Print Self test message.
<ESC><127><n>
(Print any buffer contents, and) Select country character set.
<ESC><126>
(Print any buffer contents, and) Store country character set and print mode
in EEPROM.
<ESC><125>
(Print any buffer contents, and) Clear the EEPROM.
<CR>
Print any buffer contents (line terminator). Treat as <CR><LF>.
<LF>
Print any buffer contents (line terminator). Treat as <CR><LF>.
<CR><LF>
Print any buffer contents (line terminator). Treat as single <CR><LF>.
A104B Users’ Guide Page 8 of 11